Note that there are some explanatory texts on larger screens.

plurals
  1. POwso2 ESB xslt transformation issue
    primarykey
    data
    text
    <p>I am hoping that somebody can give some guidance with an xslt issue I am having. I am recieving a generic XML message into a proxy service, I then need to wrap the xml in a soap message and forward it on to an axis2 jms service.</p> <p>I have tested the stylehseet against my xml using both a saxon and xalan engine and they both work as expected but wso2 will not accept it I get an error WstxParsingException: String ']]>' not allowed in textual content if I have the CDATA section (which I need).</p> <p>any advice would be much appreciated thanks Paul</p> <p>The stylesheet is as follows</p> <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:klr="http://klr.com"&gt; &lt;xsl:output method="xml" indent="yes" encoding="UTF-8" cdata-section-elements="klr:legaldocument"/&gt; &lt;xsl:template match="/"&gt; &lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:klr="http://klr.com"&gt; &lt;SOAP-ENV:Body&gt; &lt;klr:Hypertext&gt; &lt;klr:legaldocument&gt; &lt;xsl:text disable-output-escaping="yes"&gt;&amp;lt;![CDATA[&lt;/xsl:text&gt; &lt;xsl:apply-templates select="*"/&gt; &lt;xsl:text disable-output-escaping="yes"&gt;]]&amp;gt;&lt;/xsl:text&gt; &lt;/klr:legaldocument&gt; &lt;/klr:Hypertext&gt; &lt;/SOAP-ENV:Body&gt; &lt;/SOAP-ENV:Envelope&gt; &lt;/xsl:template&gt; &lt;xsl:template match="node()"&gt; &lt;xsl:element name="{local-name(.)}"&gt; &lt;xsl:copy-of select="@*"/&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