In the iso_schematron_skeleton_for_saxon.xsl the value of the document-uri variable is <axsl:value-of select="document-uri(/)" />.
But if you create a Schematron file with the query binding set to "xslt1", and compile it using iso_schematron_skeleton_for_saxon.xsl styleseet, the file will not be valid because the document-uri() function is not available in XSLT1.
I propose a modification in the iso_schematron_skeleton_for_saxon.xsl styleseet, to generate the value of the document-uri variable only if is not XSLT1 query binding.
Change this line from iso_schematron_skeleton_for_saxon.xsl styleseet:
In the
iso_schematron_skeleton_for_saxon.xsl
the value of thedocument-uri
variable is<axsl:value-of select="document-uri(/)" />
. But if you create a Schematron file with the query binding set to "xslt1", and compile it usingiso_schematron_skeleton_for_saxon.xsl
styleseet, the file will not be valid because thedocument-uri()
function is not available in XSLT1.I propose a modification in the
iso_schematron_skeleton_for_saxon.xsl
styleseet, to generate the value of thedocument-uri
variable only if is not XSLT1 query binding. Change this line fromiso_schematron_skeleton_for_saxon.xsl
styleseet:in