[xquery-talk] xquery and collection()
Philip Vallone
philip.vallone at verizon.net
Tue Jul 15 19:44:20 PDT 2008
Thanks -typo
_____
From: Michael Kay [mailto:mike at saxonica.com]
Sent: Tuesday, July 15, 2008 6:41 PM
To: 'Philip Vallone'; talk at x-query.com
Subject: RE: [xquery-talk] xquery and collection()
Yes. (except I'm not sure what that ":" is doing before MELTITLE).
Michael Kay
http://www.saxonica.com/
_____
From: talk-bounces at x-query.com [mailto:talk-bounces at x-query.com] On Behalf
Of Philip Vallone
Sent: 15 July 2008 23:03
To: talk at x-query.com
Subject: RE: [xquery-talk] 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: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
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: 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()
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/4b135a01/attachment-0001.htm
More information about the talk
mailing list