I’m passing XML nodes to my JAVA transformer:
transformer.setParameter("orset", qRes);
The contents of qRes is similar to this:
<DOCTYPES>
<SUBTYPE>Passport</SUBTYPE>
<DOCTYPE>Proof of identity</DOCTYPE>
</DOCTYPES>
<DOCTYPES>
<SUBTYPE>Driving License</SUBTYPE>
<DOCTYPE>Proof of address</DOCTYPE>
</DOCTYPES>
I have a global parameter declared in my XSL file:
<xsl:param name="orset"/>
Can I access specific values from the parameter something like this:
<xsl:for-each SELECT="$orset/DOCTYPES">
<xsl:value-of select="$orset/DOCTYPES/DOCTYPE"/>
...
Or what would be the proper way of doing this?
Many thanks!
You are best to use the eXslt node-set function…
There are alternative node-set functions available based on your processor etc, they are all listed in the below reference.
http://www.xml.com/pub/a/2003/07/16/nodeset.html