Project

Profile

Help

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

he / src / use-cases / strong / q7a.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
where $p/shipTo/name="Helen Zoe"
11
  and $p/@orderDate = xs:date("1999-12-01")
12
return local:comment-text( $p//ipo:customerComment ) 
(21-21/27)