Another way to do this (though not valid HTML) is to use:
<textarea class="display-xml">
<xsl:copy-of select="."/>
</textarea>
and use CSS to style as desired.
-Rob
Michael Kay wrote:
I am writing a stylesheet which outputs HTML. My stylesheet
pulls in a chunk of XML from an XML file and then stuffs it
within the HTML <body> element. Here's what I want my
stylesheet to generate:
I've just published my test results for the XQuery test suite at
http://www.saxonica.com/conformance/xqts100/SaxonResults.html
including a report of tests that required manual inspection at
http://www.saxonica.com/conformance/xqts100/inspection.html
For the inspection report I had exactly the same problem. The solution I
used was this:
<xmp>
<xsl:value-of select="unparsed-text(...)"
disable-output-escaping="yes"/>
</xmp>
Pretty horrible having to use two deprecated features, I agree. But my
priority was to publish the information not to write a perfect stylesheet!
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>
--~--