Le vendredi, 17 jan 2003, � 20:03 Europe/Berlin, James Strachan a �crit :

It'd be a fairly minor patch to the transform tag to allow a node or nodeset to be passed in as the source XML...
<x:parse var="doc" xml="foo.xml"|/>
<!-- define a variable to be the result of an XPath -->
<x:set var="input" select="$doc//foo[@bar='abc']"/>
<!-- now pass in the nodes to XSLT -->
<x:transform xslt="foo.xsl" xml="${input}"/>
Yes, that would be simple and efficient... for sure !
(how generic is the transform tag ? I got surprised to be required to put xalan in, I would have expected TRaX to be used...).

Yet another option could be to pass values into the stylesheet as a
parameter.
That sounds a bit fuzzy to me but would be definitely elegant!
How would you do this ?

Paul
--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to