Results 1 to 3 of 3
Thread: Can I pass a variable to an XSLT
Jun 27, 2004, 00:43 #1
- Join Date
- Dec 1999
- Southampton, Hants, UK
- 0 Post(s)
- 0 Thread(s)
Can I pass a variable to an XSLT
Can I pass a variable to an XSLT, without having to dynamically create the transformer.
You see I have a java class that takes the path to an xml document, path to the xslt, and returns the resultant string:
String result = xmlTransformer.transform( "menu.xml","menu.xsl")
But there are a few cases where I would love to have all the information in a single xml document, and a single xslt, so I could have something like:
String result = xmlTransformer.transform( "menu.xml","menu.xsl?entries=5" )
or something like that. the idea is that I can get away with having to have an excessive amount of xslt files.