I guess my assumption was right that there isn't a way to pass in XML
data as a parameter.
Of course, such assumption is wrong. Every XSLT processor has
(implementation-dependent) ways of passing external parameters to the
transformation.
Just read the respective documentation.
Cheers,
Dimitre Novatchev
<pl*************@gmail.comwrote in message
news:11*********************@f16g2000cwb.googlegro ups.com...
Thanks using a HTTP URI works. I probably won't link directly to the
web service, instead I'll point to local a php page that'll serve up
the XML after doing some preprocessing.
I guess my assumption was right that there isn't a way to pass in XML
data as a parameter.
Thanks
Martin Honnen wrote:
>pl*************@gmail.com wrote:
Does any XSLT expert know if there is a way to import xml data as a
parameter into an XSL stylesheet. I know you can import an XML file
using the document('file.xml') function but the data I get comes from a
web service and I would rather not write it to a file and then delete
after the transformation if I don't have to.
Well the document function load from a URI and not necessarily a static
file so I don't see any problem, if that web service exposes its service
with a HTTP URI then simply use e.g.
document('http://example.com/service?arg1=1&arg2=2')
and the XSLT processor will access the web service as needed.
--
Martin Honnen
http://JavaScript.FAQTs.com/