Mercurial > hg > ooxml
diff 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 |
line wrap: on
line diff
--- a/html.xsl Tue Apr 04 16:20:46 2017 +0100 +++ b/html.xsl Tue Apr 04 17:45:50 2017 +0100 @@ -12,6 +12,7 @@ td {padding: 0} .e {color: red} .formula {font-style: italic} + .reffed {border: solid 1px black} </style> </head> <body> @@ -37,7 +38,9 @@ <xsl:choose> <xsl:when test="text()"> <xsl:attribute name="class"> - <xsl:value-of select="(.,if (@f) then 'formula' else ())"/> + <xsl:value-of select="(., + if (@f) then 'formula' else (), + if (@r) then 'reffed' else ())"/> </xsl:attribute> <xsl:value-of select="."/></xsl:when> <xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise>