
I'm transforming an SVG, and the SVG has a style node. The contents are in a CDATA wrapper. The CDATA wrapper is being stripped in the copy. I've added the line <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" cdata-section-elements="style"/> to my stylesheet, but, the output still has the CDATA wrapper stripped. Would anyone know why?

Is the style element in a namespace and is there a namespace prefix for this namespace, e.g., 'svg'? Then try cdata-section-elements="svg:style". On 17.07.2013 15:15, Reaves, Timothy wrote:
I'm transforming an SVG, and the SVG has a style node. The contents are in a CDATA wrapper. The CDATA wrapper is being stripped in the copy. I've added the line
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" cdata-section-elements="style"/>
to my stylesheet, but, the output still has the CDATA wrapper stripped.
Would anyone know why?

That was indeed the issue. Thanks! On Wed, Jul 17, 2013 at 9:35 AM, Imsieke, Gerrit, le-tex < gerrit.imsieke@le-tex.de> wrote:
Is the style element in a namespace and is there a namespace prefix for this namespace, e.g., 'svg'? Then try cdata-section-elements="svg:style".
On 17.07.2013 15:15, Reaves, Timothy wrote:
I'm transforming an SVG, and the SVG has a style node. The contents are in a CDATA wrapper. The CDATA wrapper is being stripped in the copy. I've added the line
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" cdata-section-elements="style"/>
to my stylesheet, but, the output still has the CDATA wrapper stripped.
Would anyone know why?
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
Imsieke, Gerrit, le-tex
-
Reaves, Timothy