Hi Chris,


for $title in collection('edil_target/eDIL-A.xml')//entry//title
where not($title/@target = $biblStruct) and not($title/@target = $biblFull)
return $title
Best regards,

Am 25.03.2019 um 23:07 schrieb Chris Yocum:

I have a question that is more XQuery based than BaseX specifically
but I thought I would pose it here to see if any one knows.

The basic problem statement is: given a list of tags that have an id
attribute and a list of target attributes which should correspond to
those ids, are there any target attrbutes which reference ids which do
not exist?

Basically, I am trying to link up a tag called biblFull or biblStruct
which have an id attribute with a tag named title which has a target
attribute which should match up with one of the two tags (biblFull or
biblStruct) above.  I have formulated the query below which I believe
*should* give me all the title tags which do not exist either in the
biblFull or biblStruct id lists.  I am not getting the results that I
am expecting.

let $biblFull := distinct-values(collection('edil_target/Prologue Merged 
let $biblStruct := distinct-values(collection('edil_target/Prologue Merged 
for $title in collection('edil_target/eDIL-A.xml')//entry//title
where $title/@target != $biblStruct or $title/@target != $biblFull
return $title

I am basically getting all the title tags back which is not what I am
expecting at all.  Can anyone shed any light on this?

Thank you very much in advance!

All the best,

Markus Wittenberg

Tel +49 (0)8382 911 07 24
Mail wittenb...@axxepta.de


axxepta solutions GmbH
Lehmgrubenweg 17, 88131 Lindau

Amtsgericht Berlin HRB 97544B
Geschäftsführer: Karsten Becke, Maximilian Gärber

Reply via email to