[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Referencing Multiple Documents in One Folder -- R

Subject: RE: Referencing Multiple Documents in One Folder -- Repost
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 18 Sep 2006 12:12:03 +0100
RE:  Referencing Multiple Documents in One Folder --  R
If the directory is called "c:\XML files", then you should use

collection('file:///c:/XML%20files')

(It might work without escaping the space as %20, I'm not sure)

If you use a relative URI, then it will be taken as relative to the URI of
the stylesheet.

Michael Kay
http://www.saxonica.com/. 

> -----Original Message-----
> From: Jeff Sese [mailto:jsese@xxxxxxxxxxxx] 
> Sent: 18 September 2006 11:55
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Referencing Multiple Documents in One 
> Folder -- Repost
> 
> I'm trying to load a group of xml files that are found in a 
> local sub-directory where the xslt file is located, what i'm doing is:
> 
> <xsl:for-each select="collection('XML files')">
>     <xsl:copy-of select="."/>
> </xsl:for-each>
> 
> But i'm getting an invalid URI error. I'm do not know much 
> about URIs and this is the first time that i'm trying to do 
> this loop thru a collection of document thing, i usually make 
> a reference to a single document with can be easily done 
> using the document() function.
> -- Jeff
> Michael Kay wrote:
> >> What do i need to pass as a parameter of the collection 
> function? Is 
> >> it a URI of an catalog xml file that list all the files i need to 
> >> loop through? or is it just the URI of the folder that 
> contains all 
> >> the xml files i need?
> >>     
> >
> > In Saxon, those are the two options supported by the default 
> > collection URI resolver. You can use either approach, but I 
> think you 
> > wanted the latter. If there's part of the documentation you don't 
> > understand, please explain what part.
> >
> > Michael Kay
> > http://www.saxonica.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.