Logo

Few Words on XML Query

for $a in document("AllAddresses.xml")/Team
    let $b := $a/@file
        for $c in $b=>//Addresses/Person[Tel/@where = 'mobile']
            return
               <dt>{ $c/Name }</dt>
               <dd>{ $c/Tel[@where = 'mobile'] }</dd>

Ivan Herman, W3C Head of Offices16 July, 200211 (27)