I have an XML document similar to:
<tag>
<content>adsfasdf<b>asdf</b></content>
</tag>
I would like for the XSLT to select the content element and show all of the content:
<xsl:value-of select="/tag/content"/>
The XSLT is configured to render as HTML. Is there a way that I can get the value-of/copy-of to display the exact content without having to render it?
What I’m looking for is
asdfasdf<b>asdf</b>
And not:
asdfasdf asdf
You need to escape the tag names within the content, I’d recommend something like:
which you then can call with: