|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Use of Document Function to search in *.xml files
Saurabh,
At 08:35 AM 11/13/2002, you wrote: Can xsl:document funtion take (e:\base\*.xml)as input? If you're asking whether the expression document('e:\base\*.xml') will work, the answer is no, since the string argument violates URI syntax. If you're asking whether document('*.xml') works, it's still no, for the same reason. XSLT really doesn't want to specify a language for traversing a file system, so it uses URI syntax; URIs don't use wildcards. However, the document() can take a node set argument, so you can do document(file) in a context where your source has children <file>one.xml</file> <file>two.xml</file> <file>three.xml</file> and get them all that way. Of course, it may be convenient to put the file list somewhere other than your source document. In which case, naturally, you retrieve the node set with a document() function. As in: <xsl:variable name="filenames" select="document('filelist.xml')//file"/> and then call document($filenames), and voila. I hope that helps, Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








