Skip to content

Commit

Permalink
Process xml:id= wherever the output of a <list> is generated in an at…
Browse files Browse the repository at this point in the history
…tempt to fix #616.
  • Loading branch information
sydb committed Jul 30, 2023
1 parent 2322b81 commit d538650
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 d538650

Please sign in to comment.