Skip to content

Commit

Permalink
7.51.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Cole committed Mar 1, 2021
2 parents 23a51f2 + 13dc205 commit 73dbab7
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 14 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.51.0
7.51.1
35 changes: 24 additions & 11 deletions common/common_tagdocs.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -739,9 +739,9 @@
</xsl:otherwise>
</xsl:choose>
<!--
<xsl:for-each select="$myatts/a">
<xsl:copy-of select="*|text()"/>
</xsl:for-each>
<xsl:for-each select="$myatts/a">
<xsl:copy-of select="*|text()"/>
</xsl:for-each>
-->
</xsl:element>
</xsl:element>
Expand Down Expand Up @@ -940,8 +940,21 @@
<xsl:call-template name="showClassAtts"/>
</xsl:for-each>
</xsl:if>
<xsl:apply-templates mode="tangle"
select="../tei:attList"/>
<!--
We want the attributes here as the result of
tangling our sibling <attList>(s). However, we do
not want the <constraintSpec>s to be processed. See
https://github.com/TEIC/Stylesheets/issues/488
and
https://github.com/TEIC/TEI/issues/2115.
To do this, we pass a tunneled parameter to the tangle
mode templates so that they can suppress the constraintSpecs
when rendering the element content model.
—Syd, Martin, Nick, and Martina, 2021-02-25
-->
<xsl:apply-templates mode="tangle" select="../tei:attList">
<xsl:with-param as="xs:boolean" name="includeConstraints" tunnel="yes" select="false()"/>
</xsl:apply-templates>
<xsl:for-each select="..">
<xsl:call-template name="defineContent"/>
</xsl:for-each>
Expand All @@ -960,7 +973,7 @@
</xsl:element>
</xsl:element>
</xsl:template>

<xsl:template
match="
tei:constraintSpec[parent::tei:schemaSpec or parent::tei:elementSpec or
Expand Down Expand Up @@ -1098,8 +1111,8 @@
<xsl:for-each select="tokenize($atts, ' ')">
<xsl:variable name="TOKEN" select="."/>
<!-- Show a selected attribute where "$HERE" is the
starting node
and $TOKEN is attribute we have been asked to display-->
starting node
and $TOKEN is attribute we have been asked to display-->
<xsl:for-each select="$HERE">
<xsl:choose>
<xsl:when test="$TOKEN = '+'">
Expand Down Expand Up @@ -1235,7 +1248,7 @@
<xsl:when
test="@xml:lang = 'mul' and not($documentationLanguage = 'zh-TW')">
<!-- will need to generalize this if other langs come along like
chinese -->
chinese -->
<xsl:call-template name="showExample"/>
</xsl:when>
<xsl:when test="@xml:lang = $documentationLanguage">
Expand Down Expand Up @@ -2485,8 +2498,8 @@
</xsl:attribute>
<xsl:value-of select="."/>
<xsl:if test="@validUntil">
<!-- This clause added 2016-07-22 by Syd and Martin so that -->
<!-- default values can be deprecated. See issue #158. -->
<!-- This clause added 2016-07-22 by Syd and Martin so that -->
<!-- default values can be deprecated. See issue #158. -->
<xsl:element namespace="{$outputNS}" name="{$tableName}">
<xsl:call-template name="validUntil"/>
</xsl:element>
Expand Down
10 changes: 8 additions & 2 deletions odds/teiodds.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@ of this software, even if advised of the possibility of such damage.

<xsl:template match="tei:attDef" mode="tangle">
<xsl:param name="element"/>
<!-- This tunneled parameters is set when we are processing
attDefs in the context of generating documentation of an
element content model, so that we
don't spew out Schematron in the middle of it. -->
<xsl:param tunnel="yes" as="xs:boolean" name="includeConstraints" select="true()"/>
<xsl:variable name="I">
<xsl:value-of select="translate(@ident,':','')"/>
</xsl:variable>
Expand All @@ -373,8 +378,9 @@ of this software, even if advised of the possibility of such damage.
</xsl:when>
</xsl:choose>
</xsl:if>
<xsl:apply-templates select="tei:constraintSpec"/>

<xsl:if test="$includeConstraints = true()">
<xsl:apply-templates select="tei:constraintSpec"/>
</xsl:if>
</xsl:template>

<xsl:template match="tei:attList" mode="tangle">
Expand Down

0 comments on commit 73dbab7

Please sign in to comment.