Skip to content

Commit

Permalink
Patch for the Schematron#47 issue (Schematron#47) The document-uri() …
Browse files Browse the repository at this point in the history
…function is not available for XSLT1
  • Loading branch information
octavianN committed May 3, 2017
1 parent 44fbf79 commit a4528fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion trunk/schematron/code/iso_schematron_skeleton_for_saxon.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,12 @@ which require a preprocess.
<axsl:param name="fileDirParameter" />


<axsl:variable name="document-uri"><axsl:value-of select="document-uri(/)" /></axsl:variable>
<axsl:variable name="document-uri">
<xsl:if test="@queryBinding and translate(@queryBinding, 'XSLT', 'xslt')!='xslt'
and translate(@queryBinding, 'XSLT', 'xslt')!='xslt1' and @queryBinding!='xpath'">
<axsl:value-of select="document-uri(/)" />
</xsl:if>
</axsl:variable>
<xsl:text>&#10;&#10;</xsl:text><xsl:comment>PHASES</xsl:comment><xsl:text>&#10;</xsl:text>
<xsl:call-template name="handle-phase"/>
<xsl:text>&#10;&#10;</xsl:text><xsl:comment>PROLOG</xsl:comment><xsl:text>&#10;</xsl:text>
Expand Down

0 comments on commit a4528fe

Please sign in to comment.