Project

Profile

Help

How to connect?
Download (397 Bytes) Statistics
| Branch: | Revision:

he / src / use-cases / strong / q7.xq @ a31dd97a

1
import schema namespace ipo="http://www.example.com/IPO" at "ipo.xsd";
2

    
3
declare function local:comment-text($c as schema-element(ipo:comment))
4
  as xs:string
5
{
6
    xs:string( $c )
7
};
8

    
9
for $p in doc("ipo.xml")/schema-element(ipo:purchaseOrder),
10
    $t in local:comment-text( $p//ipo:shipComment )
11
where $p/shipTo/name="Helen Zoe"
12
    and $p/@orderDate = xs:date("1999-12-01")
13
return $t 
(20-20/27)