I have a variable called $statuses.
I want to output the full xml rather than just the values in the nodes so I tried to do the following:-
<xsl:message>Contents of the nodeset_statuses:-
<xsl:copy-of select="$statuses"/>
</xsl:message>
However, this only outputs the values in the nodes in the XML which is not what I want. I want the XML "as it is". I've seen some examples of "prettyPrint" templates like with dom4j but I'll be honest it really shouldn't be that much work.
Is there any java called available?
I tried something like:
<xsl:message>
<xsl:variable name="output" select="java:System.out.println('print me something')"/>
</xsl:message>
With an xml namespace definition of:
xmlns:java="http://xml.apache.org/xslt/java"
But that didn't work as System.out.println isn't a recognised part of the java / xslt apache extensions.
Does anyone know what the actual java call is to achieve what I want or a way to do it?
Thanks in advance.