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 method call 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 it returned the error:
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.