Skip to content

Commit

Permalink
Make line number references stable; add processor version to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Jun 8, 2020
1 parent 8d3629e commit cd1c3c3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/xslt/summarize.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@
<xsl:sequence select="format-dateTime($now, '[H01]:[m01]')"/>
<xsl:text> on </xsl:text>
<xsl:sequence select="format-dateTime($now, '[D01] [MNn,*-3] [Y0001]')"/>
<xsl:text> with </xsl:text>
<xsl:sequence select="system-property('xsl:product-name')"/>
<xsl:text> version </xsl:text>
<xsl:sequence select="system-property('xsl:product-version')"/>
<xsl:text>.</xsl:text>
</p>
<p>
Expand Down Expand Up @@ -241,7 +245,7 @@
<td valign="top" align="right">
<pre class="fake-prism">
<xsl:for-each select="tokenize($code,'&#10;')">
<span id="line-{generate-id($stylesheet)}-{position()}">
<span id="line-{$stylesheet/@id}-{position()}">
<xsl:choose>
<xsl:when test="position() eq 1 or (position() mod 5 = 0)">
<xsl:sequence select="position()"/>
Expand Down Expand Up @@ -682,7 +686,7 @@
<xsl:if test="string($source-listings) = ('1','true','yes')
and $node/@line-number">
<xsl:attribute name="title" select="'Line ' || $node/@line-number/string()"/>
<a href="#line-{generate-id($node/ancestor::a:stylesheet[1])}-{$node/@line-number}"
<a href="#line-{$node/ancestor::a:stylesheet[1]/@id}-{$node/@line-number}"
class="goto-lno">
<xsl:text>§</xsl:text>
</a>
Expand Down

0 comments on commit cd1c3c3

Please sign in to comment.