How Do I Pass a Parameter from a Java Program to an XSL Stylesheet?
Is there a way to pass a parameter from a Java program to an XSLT stylesheet using Oracle XSL processor? The XSLT standard states that “…XSLT does not define the mechanism by which parameters arepassed to the stylesheet.” (see http://www.w3.org/TR/xslt#variable-values). This is possible, but is a vendor-dependant implementation. However, none of the XSL constructors in the OracleXSLprocessor seems to allow for this. We need to pass in an integer to a stylesheet and use the xsl:position() function to extract a document fragmentfrom an XML doc.