I am currently trying to transform a larger stack of XML documents with XSLT and am using a shell-script to do so. However, I am getting the following error:
The only value that can pass type-checking is an empty sequence. Required item type of first argument of contains() is xs:string; supplied value has item type xs:anyURI
When I tracked down the corresponding lines in the xsl, it turned out that this is probably due to a variable which is defined in another script. Its definition looks like this:
<xsl:variable name="crturi" select="document-uri(/)"/>
So does my error message mean that I somehow need to convert the value of $crturi to thr string format before it can be processed?
system-property('xsl:product-version')in a message, or in a comment node in your transformation output.