Hi Ana,
Sorry for bothering and thank you for the attention.
You are welcome. Your need to declare the default namespace in order to get results:
declare namespace v3 ="http://www.loc.gov/mods/v3"; for $doc in collection('ExemploBibtex') where matches(document-uri($doc), 'quantuminformation.xml') return $doc/v3:modsCollection/v3:mods/v3:titleInfo/v3:title/text()
You can also use wildcards, and you can specify the filename in the argument of the collection() function:
for $doc in collection('ExemploBibtex/quantuminformation.xml') return $doc/*:modsCollection/*:mods/*:titleInfo/*:title/text()
Hope this helps, Christian