Skip to content
This repository was archived by the owner on Nov 2, 2020. It is now read-only.

Commit a4528fe

Browse files
committed
Patch for the #47 issue (#47) The document-uri() function is not available for XSLT1
1 parent 44fbf79 commit a4528fe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

trunk/schematron/code/iso_schematron_skeleton_for_saxon.xsl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,12 @@ which require a preprocess.
652652
<axsl:param name="fileDirParameter" />
653653

654654

655-
<axsl:variable name="document-uri"><axsl:value-of select="document-uri(/)" /></axsl:variable>
655+
<axsl:variable name="document-uri">
656+
<xsl:if test="@queryBinding and translate(@queryBinding, 'XSLT', 'xslt')!='xslt'
657+
and translate(@queryBinding, 'XSLT', 'xslt')!='xslt1' and @queryBinding!='xpath'">
658+
<axsl:value-of select="document-uri(/)" />
659+
</xsl:if>
660+
</axsl:variable>
656661
<xsl:text>&#10;&#10;</xsl:text><xsl:comment>PHASES</xsl:comment><xsl:text>&#10;</xsl:text>
657662
<xsl:call-template name="handle-phase"/>
658663
<xsl:text>&#10;&#10;</xsl:text><xsl:comment>PROLOG</xsl:comment><xsl:text>&#10;</xsl:text>

0 commit comments

Comments
 (0)