Re: [xsl] Dynamic Input file path on document method

Subject: Re: [xsl] Dynamic Input file path on document method
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Thu, 3 Dec 2009 14:27:03 +0000
2009/12/3 Ramkumar <ramkumar@xxxxxxxxxxxxxxxxxx>:
> Hi List,
>
> When using "document('comments.xml')", xslt looking default path for
> comments.xml' on xslt path. Actually I have it in input file path.
>
> So how to implement the dynamic input path on this code. Please suggest your
> idea.put

You can supply a node from the input as second arg to the document()
function, and then it will be resolved against that.

http://www.w3.org/TR/xslt20/#function-document




-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread