Hi Maud,
thanks for your e-mail. I’m pleased to hear you’ve nearly finished your work!
We only have a last bug using the Full Text functions.
Out of curiosity: have you also tried 7.7.2 or the latest snapshot?
works fine and returns the number of occurrences whereas let $occurrences := count(collection("Desanti")/*[local-name() = 'ead']/*[local-name() = 'archdesc']/*[local-name() = 'dsc']//*[local-name() = 'c'] /*[local-name() = 'controlaccess']/*[local-name() = 'persname'][text() contains text 'Aristote'])
…how does the full query look like? If I get it right, everything after "let $occurrences :=" is identical to the first query, and after that, something seems to be missing..
By the way, your query could probably be rewritten as follows:
count(collection('Desanti')/ead/archdesc/dsc/c/controlaccess/persname[text() contains text 'Aristote'])
If you use namespaces, and if you don’t want to specify them explicitly, you could prefix the local names with wildcards:
count(collection('Desanti')/*:ead/*:archdesc/*:dsc/*:c/*:controlaccess/*:persname[text() contains text 'Aristote'])
Looking forward to your feedback, Christian