Skip to content

Commit

Permalink
Try pulling in the various fixes made to ISOSCH processing of constra…
Browse files Browse the repository at this point in the history
…intDecl recently
  • Loading branch information
sydb committed Jan 20, 2025
2 parents 7ae03e1 + 8225ab9 commit 0138754
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 0138754

Please sign in to comment.