Posted: Thu Feb 07, 2008 11:58 pm Post subject: XML trasnformation giving Strange Errors
Apprentice
Joined: 20 Jan 2008 Posts: 29
Hi All,
Here i am facing the strange error when i am adding the xslt instructions to body for XML Transformation. But i am getting below Errors. I am using XMLNSC domian from start to end and not using XML. Can anyone help me ti resolve it.
ExceptionList
RecoverableException
CHARACTER File = F:\\build\\S600_P\\src\\DataFlowEngine\\ImbDataFlowNode.cpp
INTEGER Line = 616
CHARACTER Function = ImbDataFlowNode::createExceptionList
CHARACTER Type = ComIbmJniNode
CHARACTER Name = xxxxx/xxxxxxx#FCMComposite_1_15.Validation/Validation#FCMComposite_1_6.Validation/Sub_Validation#FCMComposite_1_9.Validation/XSLT_VALIDATION#FCMComposite_1_1
CHARACTER Label = xxx.xxxxx.xxxxxxx.qwe.SF.cccccc.qwe.SF.XSLT_VALIDATION.XMLTransformation
CHARACTER Catalog = BIPv600
INTEGER Severity = 3
INTEGER Number = 2230
CHARACTER Text = Node throwing exception
RecoverableException
CHARACTER File = XMLTransformNode.java
INTEGER Line = 998
CHARACTER Function = transformData
CHARACTER Type =
CHARACTER Name =
CHARACTER Label =
CHARACTER Catalog = BIPv600
INTEGER Severity = 3
INTEGER Number = 4447
CHARACTER Text = Error during transformation
Insert
Insert
INTEGER Type = 5
CHARACTER Text = Transformation failure when processing Stylesheet #Testid\r\n\r\n; Line#: 5; Column#: 2383\r\njavax.xml.transform.TransformerException: The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly.\r\n\tat org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerImpl.java:808)\r\n\tat org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:785)\r\n\tat org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1251)\r\n\tat org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1229)\r\n\tat com.ibm.xsl.exmlt.ParseFacilitator.parseXmlStylesheet(ParseFacilitator.java:676)\r\n\tat com.ibm.xsl.exmlt.ParseFacilitator.parse(ParseFacilitator.java:253)\r\n\tat com.ibm.xsl.exmlt.EnhancedXMLTransform.transformWithStylesheet(EnhancedXMLTransform.java:773)\r\n\tat com.ibm.xsl.exmlt.EnhancedXMLTransform.transformDocument(EnhancedXMLTransform.java:706)\r\n\tat com.ibm.xsl.mqsi.XMLTransformData.transformData(XMLTransformData.java:838)\r\n\tat com.ibm.xsl.mqsi.XMLTransformNode.evaluate(XMLTransformNode.java:942)\r\n\tat com.ibm.broker.plugin.MbNode.evaluate(MbNode.java:1298)\r\n
Looks like there could be some problem with the XSL. Make sure all the namespaces are defined correctly in the XSL. Please see below a sample XSL. Both input and output are XMLNS messages.
Hi i have checked the xsl file it is almost look like the sample xsl file provided. The problem is occuring when adding the style sheet dynamically to the Body for transformation. it is adding the correctly to the body and giving the above results. I observed all the peopple in the forum facing the sema problem.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum