Skip to content

Commit

Permalink
Stylesheets group figured out
Browse files Browse the repository at this point in the history
how to process constraintDecl when processing the Schematron that
goes into RELAX NG output. Still no tests.
  • Loading branch information
sydb committed Dec 18, 2024
1 parent e99b32b commit 8225ab9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion odds/odd2relax.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ of this software, even if advised of the possibility of such damage.
<xsl:call-template name="schemaSpecBody"/>
</xsl:otherwise>
</xsl:choose>
<xsl:apply-templates select="tei:constraintSpec"/>
<xsl:apply-templates
select=" tei:constraintSpec
|tei:constraintDecl[ @scheme eq 'schematron']
|ancestor::tei:TEI/tei:teiHeader//tei:constraintDecl[ @scheme eq 'schematron']"/>
</xsl:variable>
<xsl:call-template name="generateOutput">
<xsl:with-param name="method">xml</xsl:with-param>
Expand Down
6 changes: 5 additions & 1 deletion odds/teiodds.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -2482,10 +2482,14 @@ of this software, even if advised of the possibility of such damage.
</xsl:for-each>
</xsl:template>

<xsl:template match="tei:constrainSpec|tei:constraint">
<xsl:template match="tei:constraintSpec|tei:constraint">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="tei:constraintDecl[ @scheme eq 'schematron']">
<xsl:apply-templates select="sch:*" mode="justcopy"/>
</xsl:template>

<xsl:template match="sch:*">
<xsl:call-template name="processSchematron"/>
</xsl:template>
Expand Down

0 comments on commit 8225ab9

Please sign in to comment.