Just my guess ;) Thanks, Bridger. Here are some general comparisons
with their correct results:
() = () : false
() != () : false
(1,2) = (2,3) : true
(1,2) != (2,3) : true
(1) > (10,20,30,40,0) : true
(5) < (1,2,3,4) : false
On Tue, Mar 26, 2019 at 1:58 PM Bridger Dyson-Smith
wrote:
>
> C
Chris -
thanks for sharing your solution (IMO it will help future searchers/readers
of the list, or others with similar problems searching the list archive)!
Note that the `!=` is an existential quantifier in XPath; i.e. it returns
`true` if *any* value on the left is not equal to *any* value of t
Hi Chris,
I’m glad to hear you found a solution.
I was surprised to hear that functx:is-value-in-sequence did the job,
though. The body of this function is nothing else than a general
comparison: $value = $seq [1] (and I would even have guessed that your
query will be eventually rewritten to a re
Hi Bridger,
The solution was indeed using is-value-in-sequence:
import module namespace functx = 'http://www.functx.com';
let $biblFull := distinct-values(collection('edil/Prologue Merged
2013.xml')//biblFull/@id)
let $biblStruct := distinct-values(collection('edil/Prologue Merged
2013.xml')//bib
Chris,
please don't leave us hanging :). What was your solution?
Best,
Bridger
On Tue, Mar 26, 2019 at 8:40 AM Christopher Yocum wrote:
> Hi,
>
> Of course the instant you say that, you fix it. Thanks for everyone's
> support.
>
> All the best,
> Chris
>
> On Tue, Mar 26, 2019 at 12:35 PM Chr
Hi,
Of course the instant you say that, you fix it. Thanks for everyone's support.
All the best,
Chris
On Tue, Mar 26, 2019 at 12:35 PM Christopher Yocum wrote:
>
> Hi Everyone,
>
> I just tried using functx:is-value-in-sequence: where
> not(functx:is-value-in-sequence($title/@id, $biblFull)).
Hi Everyone,
I just tried using functx:is-value-in-sequence: where
not(functx:is-value-in-sequence($title/@id, $biblFull)). I am still
getting erroneous results. At this point, I very near offering money
for someone to help me fix this. It looks like a bug though to me. I
should not be getting
Hi,
> If you are allowed to share some snippets of the actual documents, it
> will be easier to see how the query needs to be phrased.
>
Sadly, probably not. I can probably do something off list but even
then I would hesitate.
I tried your proposal from your other email and I am getting the sam
If you are allowed to share some snippets of the actual documents, it
will be easier to see how the query needs to be phrased.
Have you verified that $biblFull and $biblStruct actually contain
strings? If not, do you need to declare a default namespace? The
vocabulary looks like TEI, so
decl
Hi Gerrit,
> Are you sure that the @target attributes are supposed to be identical to the
> IDs?
Yes, they should be. If they are not, I need to find them so I can
fix them to be identical.
> Don’t you prepend a pound sign to @target attributes when they point to
> IDs within the same document?
Are you sure that the @target attributes are supposed to be identical to
the IDs? Don’t you prepend a pound sign to @target attributes when they
point to IDs within the same document?
So you probably need to say
where not(substring($title/@target,2) = $biblStruct) and
not(substring($title/@tar
Hi Markus,
> try
>
> for $title in collection('edil_target/eDIL-A.xml')//entry//title
> where not($title/@target = $biblStruct) and not($title/@target = $biblFull)
> return $title
Thank you for the quick reply at such a late hour! However, I am
getting the same results sadly. These results I c
Hi Chris,
try
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,
Markus
Am 25.03.2019 um 23:07 schrieb Chris Yocum:
Hello,
I have a question that is more XQuery based t
Hello,
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
14 matches
Mail list logo