[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] how to include nodes inside CData tags
Subject: [xsl] how to include nodes inside CData tags From: Terry Ofner <tdofner@xxxxxxxxx> Date: Tue, 30 Apr 2013 09:16:05 -0400 |
I need to generate the following format: <question> <![CDATA[The city council passed the new <strong>regulation</strong>.]]> </question> from this input: <question>The city council passed the new <strong>regulation</strong>.></question> when I add cdata-section-elements="question" to my xsl:output statement, I get this results: <question><![CDATA[6. The city council passed the new ]]><strong>regulation</strong><![CDATA[.]]></question> Is there a way to include the <strong> element in the CDATA? I have tried to convert the <strong> tag to text: <xsl:text disable-output-escaping="yes">&#x003C;strong&#x003E;</xsl:text> <xsl:apply-templates/> <xsl:text disable-output-escaping="yes">&#x003C;/strong&#x003E;</xsl:text> but to no avail. I am using xslt 2.0 Any help would be appreciated. Terry
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL-List Guidelines, Tommie Usdin | Thread | Re: [xsl] how to include nodes insi, Andrew Welch |
[xsl] XSL-List Guidelines, Tommie Usdin | Date | Re: [xsl] how to include nodes insi, Andrew Welch |
Month |
Keywords