Skip to content

Commit d1c8d7b

Browse files
committed
Implemented feedback from Markus's review
1 parent 2f1da99 commit d1c8d7b

File tree

3 files changed

+404
-464
lines changed

3 files changed

+404
-464
lines changed

unicodetools/src/main/resources/org/unicode/uax42/index2html.xsl

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
<div class="body">
6767
<h2 style="text-align:center">
6868
<xsl:call-template name="display-stage"/>
69-
<xsl:text> </xsl:text>
7069
<xsl:choose>
7170
<xsl:when test="articleinfo/unicode:tr/@class='uax'">
7271
<xsl:text>Unicode® Standard Annex</xsl:text>
@@ -106,10 +105,10 @@
106105
<xsl:template name="display-stage">
107106
<xsl:choose>
108107
<xsl:when test="articleinfo/unicode:tr/@stage='working-draft'">
109-
<span style="background-color: #ffff00; border-style:dotted; border-width:1px"><xsl:text>Working draft</xsl:text></span>
108+
<span><xsl:attribute name="class">changed</xsl:attribute><xsl:text>Working draft </xsl:text></span>
110109
</xsl:when>
111110
<xsl:when test="articleinfo/unicode:tr/@stage='proposed-update'">
112-
<span style="background-color: #ffff00; border-style:dotted; border-width:1px"><xsl:text>Proposed Update</xsl:text></span>
111+
<span><xsl:attribute name="class">changed</xsl:attribute><xsl:text>Proposed Update </xsl:text></span>
113112
</xsl:when>
114113
</xsl:choose>
115114
</xsl:template>
@@ -497,21 +496,29 @@
497496
<!-- Revision history aka. Modifications -->
498497

499498
<xsl:template match="revision">
500-
<div>
501-
<xsl:apply-templates select="@edit"/>
502-
<p>
503-
<b>Revision <xsl:value-of select="@revnumber"/></b>
504-
</p>
505-
<xsl:apply-templates/>
506-
</div>
499+
<xsl:choose>
500+
<xsl:when test="@edit">
501+
<div>
502+
<xsl:apply-templates select="@edit"/>
503+
<p>
504+
<b>Revision <xsl:value-of select="@revnumber"/></b>
505+
</p>
506+
<xsl:apply-templates/>
507+
</div>
508+
</xsl:when>
509+
<xsl:otherwise>
510+
<p>
511+
<b>Revision <xsl:value-of select="@revnumber"/></b>
512+
</p>
513+
<xsl:apply-templates/>
514+
</xsl:otherwise>
515+
</xsl:choose>
507516
</xsl:template>
508517

509518
<xsl:template match="proposed_update">
510-
<div>
511-
<p>
512-
<xsl:apply-templates/>
513-
</p>
514-
</div>
519+
<p>
520+
<xsl:apply-templates/>
521+
</p>
515522
</xsl:template>
516523

517524
<xsl:template match="changes">
@@ -526,6 +533,10 @@
526533
</li>
527534
</xsl:template>
528535

536+
<xsl:template match="reissued">
537+
<b><xsl:apply-templates/></b>
538+
</xsl:template>
539+
529540
<!-- Copyright -->
530541

531542
<xsl:template name="copyright">

0 commit comments

Comments
 (0)