Note that there are some explanatory texts on larger screens.

plurals
  1. POGettting ERROR while adding Name spaces in XSLT
    primarykey
    data
    text
    <p>Hi am getting below error while using adding name spaces code.</p> <p>I have added the namespaces code in the while loop.for the first iteration it is working fine.for the second iteration it is giving below error.</p> <p>Error:</p> <pre><code>exception class="oracle.xml.parser.v2.XMLDOMException"&gt; invalid character : in name &lt;stack&gt; &lt;f&gt;oracle.xml.util.XMLUtil.validateQualifiedName#525&lt;/f&gt; &lt;f&gt;oracle.xml.parser.v2.XMLDocument.createElementNS#2705&lt;/f&gt; &lt;f&gt;oracle.xml.parser.v2.XMLDocument.otherImportNode#2350&lt;/f&gt; &lt;f&gt;oracle.xml.parser.v2.XMLDocument.importNode#2326&lt;/f&gt; &lt;f&gt;oracle.xml.parser.v2.XMLDocument.otherImportNode#2459&lt;/f&gt; &lt;f&gt;oracle.xml.parser.v2.XMLDocument.importNode#2326&lt;/f&gt; &lt;f&gt;com.collaxa.cube.xml.dom.DOMUtil.copyElement#558&lt;/f&gt; &lt;f&gt;com.collaxa.cube.xml.dom.DOMUtil.copyObjHelper#300&lt;/f&gt; </code></pre> <p>I am using the below adding Namesapces code inside the while loop.The while loop process multiple records for the first iteration.It is able to process.but for the second iteration it is giving error.</p> <p>adding Namespaces code:</p> <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vbs="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt"&gt; &lt;xsl:output omit-xml-declaration="yes" /&gt; &lt;xsl:template match="node()|@*"&gt; &lt;xsl:copy&gt; &lt;xsl:apply-templates select="node()|@*" /&gt; &lt;/xsl:copy&gt; &lt;/xsl:template&gt; &lt;!-- Just change the match="/*" to match="*" ; if you want to add namespace in all elements --&gt; &lt;xsl:template match="*"&gt; &lt;xsl:element name="inp1:{local-name()}" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/sp/Call856OutboundProcedure1"&gt; &lt;xsl:apply-templates select="node()|@*" /&gt; &lt;/xsl:element&gt; &lt;/xsl:template&gt; &lt;/xsl:stylesheet&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload