xsl-list
[Top] [All Lists]

RE: [xsl] rendering xml fragment tree as syntax highlighted HTML

2007-01-12 08:47:40
I want to copy a fragment tree from my source xml document 
using <xsl:copy-of/> to the result html document.
This xml fragment should be rendered als well known code2html 
tools does it for perl code etc.
It means at least all < and > have to be transformed into 
&lt; and &gt;

If you want to transform the subtree, then you can't use xsl:copy-of.
xsl:copy-of always produces an exact copy. You need a modified identity
template. I can't tell you any more, because the way "well known code2html
tools does it for perl code" isn't well-known to this reader.

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--