Hi Frank,
Not exactly sure if it's what you want, but maybe helps you get closer:
for $x in $doc/b/c[@xml:lang eq"nl"]
where $x/fn:string() = fn:tokenize('auto, kind', ',')
return
$x/../@id/fn:string()
returns 'car'.
I changed it so it compares the string value of $x with a list of
strings from tokenize. Note that I'm using = instead of eq. That
lets you use a sequence compare. Also the return now returns the @id
attribute node.
- Chris
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general