comparison merge.xsl @ 59:f90bbd38b8f6

towards display of reffed info via colour
author Henry S. Thompson <ht@markup.co.uk>
date Fri, 02 Jun 2017 12:54:54 +0100
parents 5d9806f90896
children
comparison
equal deleted inserted replaced
58:adeb9575b273 59:f90bbd38b8f6
23 </xsl:template> 23 </xsl:template>
24 24
25 <xsl:template match="e:r/e:c"> 25 <xsl:template match="e:r/e:c">
26 <xsl:variable name="row" select="../@r"/> 26 <xsl:variable name="row" select="../@r"/>
27 <xsl:variable name="col" select="@c"/> 27 <xsl:variable name="col" select="@c"/>
28 <xsl:variable name="reffed" select="key('ref',concat(e:n2a($col),$row),$refs)"/> 28 <xsl:variable name="r" select="concat(e:n2a($col),$row)"/>
29 <xsl:variable name="reffed" select="key('ref',$r,$refs)"/>
29 <c> 30 <c>
30 <xsl:apply-templates select="@*"/> 31 <xsl:apply-templates select="@*"/>
31 <xsl:if test="e:f"> 32 <xsl:if test="e:f">
33 <xsl:attribute name="r"><xsl:value-of select="$r"/></xsl:attribute>
32 <xsl:attribute name="fi"><xsl:value-of select="key('nf',e:nf/text(),$nfs)/@i"/></xsl:attribute> 34 <xsl:attribute name="fi"><xsl:value-of select="key('nf',e:nf/text(),$nfs)/@i"/></xsl:attribute>
33 </xsl:if> 35 </xsl:if>
34 <xsl:if test="$reffed"><xsl:copy-of select="$reffed"/></xsl:if> 36 <xsl:if test="$reffed"><xsl:copy-of select="$reffed"/></xsl:if>
35 <xsl:apply-templates select="node()"/> 37 <xsl:apply-templates select="node()"/>
36 </c> 38 </c>