T
tentstitcher
Hi all:
I have a source xml document with an element of type string. This
element contains something like the following:
<stringData>
<Header> <Body>
</stringData>
I would like to apply an XSLT and replace all occurances of < with <
and > with >.
I tried the following but without success:
<xsl:template match="stringData">
<xsl:variable name="lessThan" select='<'/>
<xsl:value-of select="translate(text()[1], '<', $lessThan)"/>
</xsl:template>
I'd appreciate any help.
Thanks
I have a source xml document with an element of type string. This
element contains something like the following:
<stringData>
<Header> <Body>
</stringData>
I would like to apply an XSLT and replace all occurances of < with <
and > with >.
I tried the following but without success:
<xsl:template match="stringData">
<xsl:variable name="lessThan" select='<'/>
<xsl:value-of select="translate(text()[1], '<', $lessThan)"/>
</xsl:template>
I'd appreciate any help.
Thanks