pass an argument to XSL file? 2003-09-19 - By Esther Parrilla Endrino
Hello all,
I am re-using the Xalan simpletransform.java class to transform and XML into HTML using an XSL, I would like to know if is possible to pass an argument to the XSL template using any transformation method of Xalan... now I am using: Transformer transformer = tFactory.newTransformer(new StreamSource(xsl)); transformer.transform(new StreamSource(xml), new StreamResult(new FileOutputStream(html))); Is possible to pass a value to any transformation function and read that input value in the XSL? I need this because in the XSL I am loading an external XML file using the document() function but the full path to that external file is not always the same and I do not know how I could make this path a variable ....
thanks in advance,
e*
--
~ Code matters more than comercials ~
--
|
|