A
andrew_nuss
Hi,
I have a <code> tag for my xml file and plan to have code snippets
that contain lots of < > and & metacharacters. That's not tough to
put in xml because I'll just wrap in a CDATA section.
However, I need to use xsl to spit out HTML <pre> tag with the code
block and obviously to
use HTML escapes for < > and &. What's the easiest way to get XSL to
escape the necessary characters
found in the PCDATA of my <code> tag?
Thanks,
Andy
I have a <code> tag for my xml file and plan to have code snippets
that contain lots of < > and & metacharacters. That's not tough to
put in xml because I'll just wrap in a CDATA section.
However, I need to use xsl to spit out HTML <pre> tag with the code
block and obviously to
use HTML escapes for < > and &. What's the easiest way to get XSL to
escape the necessary characters
found in the PCDATA of my <code> tag?
Thanks,
Andy