[xquery-talk] xquery and collection()

Philip Vallone philip.vallone at verizon.net
Tue Jul 15 19:03:05 PDT 2008

Thank you MIchael,
Using Saxon, could I use:?
let $docs:= collection("file:///c:/temp <BLOCKED::file:///c:/temp> ")
for $t in distinct-values($docs//:MELTITLE)
return $t


From: Michael Kay [mailto:mike at saxonica.com] 
Sent: Tuesday, July 15, 2008 5:54 PM
To: 'Philip Vallone'; talk at x-query.com
Subject: RE: [xquery-talk] xquery and collection()

Yes, like all the core functions, collection() is available in both XSLT and
However, the specification of collection() leaves a great deal of discretion
to implementors, so you may well find that the collection URI is interpreted
in different ways in different products.
Incidentally, "c:/temp" is not a valid URI.
Michael Kay


From: talk-bounces at x-query.com [mailto:talk-bounces at x-query.com] On Behalf
Of Philip Vallone
Sent: 15 July 2008 22:35
To: talk at x-query.com
Subject: [xquery-talk] xquery and collection()

Can you use collection() like in XSLT 2.0?
for example:
let $docs:= collection("c:/temp")
for $t in distinct-values($doc//TITLE)
return $t

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachments/20080715/125bbf9e/attachment.htm

More information about the talk mailing list