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

Pass xsl:include in Schematron through to the compiled stylesheet #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion trunk/schematron/code/iso_schematron_skeleton_for_saxon.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ which require a preprocess.
<xsl:text>&#10;&#10;</xsl:text><xsl:comment>XSD TYPES FOR XSLT2</xsl:comment><xsl:text>&#10;</xsl:text>
<xsl:apply-templates mode="do-types" select="xsl:import-schema"/>
<xsl:text>&#10;&#10;</xsl:text><xsl:comment>KEYS AND FUNCTIONS</xsl:comment><xsl:text>&#10;</xsl:text>
<xsl:apply-templates mode="do-keys" select="xsl:key | xsl:function "/>
<xsl:apply-templates mode="do-keys" select="xsl:key | xsl:function | xsl:include "/>
<xsl:text>&#10;&#10;</xsl:text><xsl:comment>DEFAULT RULES</xsl:comment><xsl:text>&#10;</xsl:text>
<xsl:call-template name="generate-default-rules" />
<xsl:text>&#10;&#10;</xsl:text><xsl:comment>SCHEMA SETUP</xsl:comment><xsl:text>&#10;</xsl:text>
Expand Down Expand Up @@ -1199,6 +1199,10 @@ which require a preprocess.
<xsl:template match="iso:function " >
<xsl:message><xsl:call-template name="outputLocalizedMessage" ><xsl:with-param name="number">17</xsl:with-param></xsl:call-template></xsl:message>
</xsl:template>

<xsl:template match="xsl:include" mode="do-keys">
<xsl:copy-of select="."/>
</xsl:template>


<!-- ISO INCLUDE -->
Expand Down