comparison html.xsl @ 19:9b1b169dc8db

use refs, but broken: doesn't deal with ranges (false negs) or external refs (false pos), and not finding things it should (e.g. kenneth_lay X88)
author Henry S. Thompson <ht@markup.co.uk>
date Tue, 04 Apr 2017 17:45:50 +0100
parents 2bbd067529b6
children 104ef815b0b0
comparison
equal deleted inserted replaced
18:16bba7a0d0bd 19:9b1b169dc8db
10 <style> 10 <style>
11 body {font-family: 'DejaVu Sans Mono' , monospace} 11 body {font-family: 'DejaVu Sans Mono' , monospace}
12 td {padding: 0} 12 td {padding: 0}
13 .e {color: red} 13 .e {color: red}
14 .formula {font-style: italic} 14 .formula {font-style: italic}
15 .reffed {border: solid 1px black}
15 </style> 16 </style>
16 </head> 17 </head>
17 <body> 18 <body>
18 <xsl:apply-templates/> 19 <xsl:apply-templates/>
19 </body> 20 </body>
35 <xsl:template match="e:c"> 36 <xsl:template match="e:c">
36 <td> 37 <td>
37 <xsl:choose> 38 <xsl:choose>
38 <xsl:when test="text()"> 39 <xsl:when test="text()">
39 <xsl:attribute name="class"> 40 <xsl:attribute name="class">
40 <xsl:value-of select="(.,if (@f) then 'formula' else ())"/> 41 <xsl:value-of select="(.,
42 if (@f) then 'formula' else (),
43 if (@r) then 'reffed' else ())"/>
41 </xsl:attribute> 44 </xsl:attribute>
42 <xsl:value-of select="."/></xsl:when> 45 <xsl:value-of select="."/></xsl:when>
43 <xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise> 46 <xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise>
44 </xsl:choose> 47 </xsl:choose>
45 </td> 48 </td>