Xpath query fails if "all opened files"
Posted: Wed Jun 17, 2015 10:07 pm
This executes just fine if run individually on any given file:
//mods:relatedItem/mods:titleInfo[(following-sibling::mods:titleInfo)]/mods:title
but if I tell it to run on all opened files (which are all the same kind of xml metadata)
I get this error:
XPath failed du to: Prefix mods has not been declared.
the mods comes from xmlns:mods="http://www.loc.gov/mods/v3 presumably.
If I remove the mods: from the node names the query runs but doesn't work.
//mods:relatedItem/mods:titleInfo[(following-sibling::mods:titleInfo)]/mods:title
but if I tell it to run on all opened files (which are all the same kind of xml metadata)
I get this error:
XPath failed du to: Prefix mods has not been declared.
the mods comes from xmlns:mods="http://www.loc.gov/mods/v3 presumably.
If I remove the mods: from the node names the query runs but doesn't work.