Closed peterstadler closed 1 year ago
Maybe we should do a systematic search across all XQueries if such cases still appear
Maybe we should do a systematic search across all XQueries if such cases still appear
Yes, imho the Edirom would benefit a lot from systematic refactoring but I dare to say that this is out of scope of the current issue.
This is my try to fix #309. I basically replaced
/string(@attribute)
with/@attribute => string()
to make sure the return type isxs:string
even when the leading XPath expression returns the empty sequence.NB, no error checking was introduced, so if e.g., (for any reason) there are multiple
edirom:language
with the same@xml:lang
, the functionedition:getLanguageFileURI
will break.