-
Notifications
You must be signed in to change notification settings - Fork 0
Home
kumy edited this page Jun 7, 2016
·
13 revisions
xquery doc('geokrety')//geokret[@missing=""]
xquery count(doc('geokrety')//geokret[@missing=""])
xquery doc('geokrety')//geokret[not(@ownername)]
xquery count(doc('geokrety')//geokret[not(@ownername)])
xquery for $i in doc('pending-geokrety')/gkxml/errors/geokret return (insert node $i as last into doc('pending-geokrety')/gkxml/geokrety, delete node $i)
xquery let $db := doc('geokrety-details')/gkxml/geokrety/geokret return for $a in doc('geokrety')/gkxml/geokrety/geokret return replace value of node $a/@missing with $db[@id=$a/@id]/missing/string()