Fix: adjust return values to function signatures
Created by: peterstadler
This is my try to fix #309 (closed). I basically replaced /string(@attribute)
with /@attribute => string()
to make sure the return type is xs: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 function edition:getLanguageFileURI
will break.