comparison backref.xsl @ 60:588cb9ba7c9c

display of reffed info via colour minimally working
author Henry S. Thompson <ht@markup.co.uk>
date Fri, 02 Jun 2017 15:50:43 +0100
parents f90bbd38b8f6
children
comparison
equal deleted inserted replaced
59:f90bbd38b8f6 60:588cb9ba7c9c
11 <xsl:variable name="col" select="../@c"/> 11 <xsl:variable name="col" select="../@c"/>
12 <xsl:variable name="r" select="concat(e:n2a($col),$row)"/> 12 <xsl:variable name="r" select="concat(e:n2a($col),$row)"/>
13 <xsl:variable name="ris" select="for $r in e:r/text() 13 <xsl:variable name="ris" select="for $r in e:r/text()
14 return key('fcell',$r)/@fi"/> 14 return key('fcell',$r)/@fi"/>
15 <xsl:copy> 15 <xsl:copy>
16 <xsl:attribute name="ri"><xsl:value-of select="string-join($ris,',')"/></xsl:attribute> 16 <xsl:attribute name="ri"><xsl:value-of select="string-join($ris,'_')"/></xsl:attribute>
17 <xsl:apply-templates select="node()|@*"/> 17 <xsl:apply-templates select="node()|@*"/>
18 </xsl:copy> 18 </xsl:copy>
19 </xsl:template> 19 </xsl:template>
20 20
21 <xsl:template match="@*|node()"><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy> 21 <xsl:template match="@*|node()"><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>