- From: <Svgdeveloper@aol.com>
- Date: Fri, 21 Mar 2003 16:24:37 EST
- To: Shane.McMillan@softwareagusa.com, public-qt-comments@w3.org
- Message-ID: <9c.2f465363.2bacdd15@aol.com>
In a message dated 21/03/2003 20:59:30 GMT Standard Time,
Shane.McMillan@softwareagusa.com writes:
> I have been reading the specs on 1.0 working draft for XQuery regarding the
> where clause. It does not seem to support the following syntax:
> Let $a := input()/person/lastname
> Where $a = "miller"
> Return $a
>
> Notice in the where clause there is no further navigation down the tree
> because this query wants all documents with lastname = to miller. All spec
> examples do not show this usage of the where clause. Is the above query
> syntactically correct based on the 1.0 standards?
> many thanks in advance
> Shane
>
Shane,
I may be misunderstanding your question.
Try the following query in the X-Hive online demo:
<books>
{
for $b in document("/XQuery/docs/XMP/bib.xml")/bib/book
where $b/publisher = "Addison-Wesley"
return $b
}
</books>
http://support.x-hive.com/xquery/index.html
Paste the above query into XMP 1.1.9Q1
Is that the usage of the where clause you are interested in (given the
constraints on what can be queried in the online demo)?
BTW general XQuery questions can be discussed at the mailing list on
http://yahoogroups.com/group/XQuery
Andrew Watt
Received on Friday, 21 March 2003 16:24:49 UTC