On Saturday, June 14, 2003, at 02:51 PM, Robin Berjon wrote:


S Woodside wrote:
in XSLT,
document(foo.xml, .) will work relative to the source document
document(foo.xml, document('') ) will work relative to the XSLT in question
(I might have that backwards)

No, you have the right way, except that the second one is uselessly complex and can be written as document("foo.xml") as that's the default.

Yup, but if you feed it a node value or attribute value, it works relative to the URI of that node. Putting in the second argument as document('') ensures it will always treat it relative to the stylesheet


http://www.dpawson.co.uk/xsl/sect2/N2602.html#d2849e46

simon


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to