changeset 20:104ef815b0b0

fix false negs, add mouseover to show refs
author Henry S. Thompson <ht@markup.co.uk>
date Tue, 04 Apr 2017 18:04:13 +0100
parents 9b1b169dc8db
children f05f0d0ee296
files html.xsl rect.xsl
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/html.xsl	Tue Apr 04 17:45:50 2017 +0100
+++ b/html.xsl	Tue Apr 04 18:04:13 2017 +0100
@@ -42,6 +42,7 @@
                              if (@f) then 'formula' else (),
                              if (@r) then 'reffed' else ())"/>
      </xsl:attribute>
+     <xsl:if test="@r"><xsl:attribute name="title"><xsl:value-of select="@r"/></xsl:attribute></xsl:if>
      <xsl:value-of select="."/></xsl:when>
     <xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise>
    </xsl:choose>
--- a/rect.xsl	Tue Apr 04 17:45:50 2017 +0100
+++ b/rect.xsl	Tue Apr 04 18:04:13 2017 +0100
@@ -5,7 +5,7 @@
  
  <xsl:variable name="refs" select="collection()[2]/*"/>
  
- <xsl:key name="ref" match="e:ref" use="@r"/>
+ <xsl:key name="ref" match="e:ref" use="tokenize(@r)"/>
  
  <xsl:function name="e:a2n" as="xs:integer">
   <!-- Convert an alphabetic excel column 'index' into a number,