[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

xquery and collection()

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


  xquery and  collection()
Thank you MIchael,
 
Using Saxon 9.1.0.1, 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:http://x-query.com/mailman/listinfo/talk] 
Sent: Tuesday, July 15, 2008 5:54 PM
To: 'Philip Vallone'; http://x-query.com/mailman/listinfo/talk
Subject: RE:  xquery and collection()


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/125bbf9e/attachment.htm


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-2007 All Rights Reserved.