Skip to content

Commit

Permalink
markup update, #407
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Apr 15, 2024
1 parent bfc3707 commit 4b41fc6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/resources/sts2mn.adoc.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -2481,6 +2481,10 @@
<xsl:variable name="sectionsFolder"><xsl:call-template name="getSectionsFolder"/></xsl:variable>
<xsl:variable name="adoc_path" select="concat($sectionsFolder, '/', $sec_number, '-', $sec_title, '.adoc')"/>
<redirect:write file="{$outpath}/{$adoc_path}">
<xsl:if test="@sec-type = 'non-norm-refs'">
<xsl:text>&#xa;</xsl:text>
<xsl:text>[bibliography]</xsl:text>
</xsl:if>
<xsl:text>&#xa;</xsl:text>
<xsl:call-template name="setIdOrType"/>
<xsl:apply-templates />
Expand Down Expand Up @@ -6789,7 +6793,11 @@
<xsl:value-of select="@id"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@sec-type"/>
<xsl:variable name="sec_type" select="@sec-type"/>
<xsl:value-of select="$sec_type"/>
<xsl:if test="count(//*[@sec-type = $sec_type]) &gt; 1">
<xsl:number count="*[@sec-type = $sec_type]"/>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:text>]]</xsl:text>
Expand Down

0 comments on commit 4b41fc6

Please sign in to comment.