[xquery-talk] Context node for ancestor-or-self

padmapriya ayyagari asn.padmapriya at gmail.com
Wed Dec 1 19:18:15 PST 2004

This gives an error :

for $n in fn:document("xmark.xml")/site/people/person/emailaddress)
return fn:string-join(for $p in ancestor-or-self::* return
fn:name($p), "/")

Exception in thread "main" galapi.GalapiException: Failure("Context
item not defined")

I think this is because the processor cannot locate the context node
for ancestor-or-self. How does one specify the context node for
ancestor-or-self, $n in this case?


More information about the talk mailing list