|
Subject: [xsl] CDATA in XML->XML transformation From: "me" <info@xxxxxxxxxxxxx> Date: Tue, 25 Sep 2001 18:19:45 +0200 |
hi list
i came across the following problem: i need to transform an XML file into
a different XML file. one element needs to be defined as CDATA in the
second XML file.
right now i got
<xsl:template match="Action">
<solution><xsl:apply-templates select="text()|i|b" /></solution>
</xsl:template>
which produces an output like
<solution>this is a <i>nice</i> test</solution>
but now i need the output to be a CDATA section, as i don't want the
<i></i> part being parsed further, eg the output must look like
<solution><![CDATA[this is a <i>nice</i> test]]></solution>
right now i got no clue whatsoever how to include "<![CDATA[" and "]]>"
through the XSL file...
any help is very appreciated!
thanks
Thomas
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] xalan vs. xalan-j output, xal, Marc Elliott | Thread | Re: [xsl] CDATA in XML->XML transfo, Thomas B. Passin |
| Re: [xsl] Get parent's node positio, Paulo Henrique S. Be | Date | RE: [xsl] Java extension functions, Matthew L. Avizinis |
| Month |