Hi Christian,
On 2012-05-08, Christian Grün christian.gruen@gmail.com wrote:
to get the requested result, you need to deactivate the chopping of whitespaces (via SET CHOP OFF, or Dialog → New… → Parsing → Chop Whitespaces).
Ah, thanks a lot! I would have never guessed this... Maybe the documentation should say something like: "Querying across elements is only supported when whitespace chopping is off." If it's ok with you, I'll add it.
Another question: The examples in the documentation and the actual behavior of BaseX suggest that ft:extract and ft:mark only work for queries on a single text node, i.e., queries such as
//p[text() contains text 'sit amet']
but not for
//p[. contains text 'sit amet']
Is this correct?
Thanks and greetings