So, you want to create a <textarea> element and unload everything into this element?
Then you can use something like:
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <textarea> <xsl:copy-of select="/" /> </textarea> </xsl:template> </xsl:stylesheet>
Be careful: The output will not be shielded!
Or put <xsl:copy-of> wherever you create the text box.
A quick note, if you need to work with really large XML files: if you call a copy from a template that is somewhere deeper in the hierarchy, this can slow down the xslt processor because it must “jump” outside the local node. Thus, the xslt processor cannot use certain optimizations.
source share