Skip to content

Commit

Permalink
Merge pull request #617 from TEIC/sydb_616
Browse files Browse the repository at this point in the history
process `@xml:id` wherever the output of a <list> is generated
  • Loading branch information
HelenaSabel authored Sep 28, 2023
2 parents 2640fe4 + d538650 commit f6524f8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions html/html_core.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ of this software, even if advised of the possibility of such damage.
<xsl:when test="@type='catalogue'">
<p>
<dl>
<xsl:apply-templates select="@xml:id"/>
<xsl:call-template name="makeRendition">
<xsl:with-param name="default">false</xsl:with-param>
</xsl:call-template>
Expand All @@ -665,6 +666,7 @@ of this software, even if advised of the possibility of such damage.
</xsl:variable>
<p>
<table>
<xsl:apply-templates select="@xml:id"/>
<xsl:call-template name="makeRendition">
<xsl:with-param name="default">false</xsl:with-param>
</xsl:call-template>
Expand All @@ -685,6 +687,7 @@ of this software, even if advised of the possibility of such damage.
</xsl:when>
<xsl:when test="tei:isGlossList(.)">
<dl>
<xsl:apply-templates select="@xml:id"/>
<xsl:call-template name="makeRendition">
<xsl:with-param name="default">false</xsl:with-param>
</xsl:call-template>
Expand All @@ -694,6 +697,7 @@ of this software, even if advised of the possibility of such damage.
</xsl:when>
<xsl:when test="tei:isGlossTable(.)">
<table>
<xsl:apply-templates select="@xml:id"/>
<xsl:call-template name="makeRendition">
<xsl:with-param name="default">false</xsl:with-param>
</xsl:call-template>
Expand All @@ -706,6 +710,7 @@ of this software, even if advised of the possibility of such damage.
</xsl:when>
<xsl:when test="@type='inline' or @type='runin'">
<p>
<xsl:apply-templates select="@xml:id"/>
<xsl:apply-templates select="*[not(self::tei:head or self::tei:trailer)]" mode="inline"/>
</p>
</xsl:when>
Expand All @@ -714,6 +719,7 @@ of this software, even if advised of the possibility of such damage.
</xsl:when>
<xsl:otherwise>
<xsl:element name="{if (tei:isOrderedList(.)) then 'ol' else 'ul'}">
<xsl:apply-templates select="@xml:id"/>
<xsl:call-template name="makeRendition">
<xsl:with-param name="default">false</xsl:with-param>
</xsl:call-template>
Expand Down

0 comments on commit f6524f8

Please sign in to comment.