W
werD
Hello,
Ive been reading about cdata-section-elements b/c ive got a comments
field that id like to inlcude some html in. For some reason the final
output is not including any cdata tags though? The original field that
this is pulled from does use cdata tags but they dont seem to come
through
Is this possible or is there something im missing?
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslutput omit-xml-declaration="no" method="xml"
cdata-section-elements="comments"/>
<xsl:template match="/">
<data>
<xsl:for-each select="data/supervisors/supentry">
<entry>
<id><xsl:value-of select="@id"/></id>
<author>
<xsl:value-of select="@author"/>
</author>
<xsl:element name="comments">
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:element>
</entry>
</data>
thanks
drewg
Ive been reading about cdata-section-elements b/c ive got a comments
field that id like to inlcude some html in. For some reason the final
output is not including any cdata tags though? The original field that
this is pulled from does use cdata tags but they dont seem to come
through
Is this possible or is there something im missing?
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslutput omit-xml-declaration="no" method="xml"
cdata-section-elements="comments"/>
<xsl:template match="/">
<data>
<xsl:for-each select="data/supervisors/supentry">
<entry>
<id><xsl:value-of select="@id"/></id>
<author>
<xsl:value-of select="@author"/>
</author>
<xsl:element name="comments">
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:element>
</entry>
</data>
thanks
drewg