Project

Profile

Help

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

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

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

    
3
declare function local:deadbeat( $b as element(billTo, ipo:USAddress) )
4
  as xs:boolean
5
{
6
   $b/name = doc("deadbeats.xml")/deadbeats/row/name
7
}; 
8

    
9
for $p in doc("ipo.xml")/schema-element(ipo:purchaseOrder)
10
where local:deadbeat( $p/element(billTo) )
11
return <warning>{string($p/billTo/name)} is a known deadbeat!</warning>
(10-10/27)