|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] xquery and collection()Michael Kay mike at saxonica.comTue Jul 15 23:54:21 PDT 2008
Yes, like all the core functions, collection() is available in both XSLT and
XQuery.
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
http://www.saxonica.com/
_____
From: http://x-query.com/mailman/listinfo/talk [mailto:http://x-query.com/mailman/listinfo/talk] On Behalf
Of Philip Vallone
Sent: 15 July 2008 22:35
To: http://x-query.com/mailman/listinfo/talk
Subject: xquery and collection()
Hi,
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
Thanks
Phil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachments/20080715/1a2396d9/attachment.htm
|
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
|






