Project

Profile

Help

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

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

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

    
3
declare function local:names-match( $s as element(shipTo, ipo:Address), 
4
                                    $b as element(billTo, ipo:Address) )
5
  as xs:boolean
6
{
7
     $s/name = $b/name
8
};
9
 
10
for $p in doc("ipo.xml")/schema-element(ipo:purchaseOrder)
11
where not( local:names-match( $p/shipTo, $p/billTo ) )
12
return $p 
(18-18/27)