comparison refs.xsl @ 45:6ed900e8cc61

towards comparable formulae
author Henry S. Thompson <ht@markup.co.uk>
date Sun, 07 May 2017 19:21:53 +0100
parents ac6d1ca099f7
children 8dd54346bfd8
comparison
equal deleted inserted replaced
44:5b2333e59d91 45:6ed900e8cc61
6 6
7 <xsl:template match="/"> 7 <xsl:template match="/">
8 <refs><xsl:apply-templates select="//e:c"/></refs> 8 <refs><xsl:apply-templates select="//e:c"/></refs>
9 </xsl:template> 9 </xsl:template>
10 10
11 <xsl:template match="e:c[e:f/(e:s|e:r)]"> 11 <xsl:template match="e:c[e:f]">
12 <xsl:variable name="r" select="../@r"/> 12 <xsl:variable name="r" select="../@r"/>
13 <xsl:variable name="c" select="@c"/> 13 <xsl:variable name="c" select="@c"/>
14 <xsl:variable name="i" select="concat(e:n2a($c),$r)"/>
14 <xsl:if test="@r='xxx' and @c='1'"><xsl:message><xsl:value-of select="count(e:f/*)"/>|</xsl:message> 15 <xsl:if test="@r='xxx' and @c='1'"><xsl:message><xsl:value-of select="count(e:f/*)"/>|</xsl:message>
15 </xsl:if> 16 </xsl:if>
16 <ref r="{e:n2a($c)}{$r}"><xsl:apply-templates select="e:f/(e:s|e:r)"/></ref> 17 <nf r="{$i}"><xsl:value-of select="e:fnf(e:f/*)"/></nf>
18 <xsl:if test="e:f[e:s|e:r]"><ref r="{$i}"><xsl:apply-templates select="e:f[e:s|e:r]"/></ref></xsl:if>
17 </xsl:template> 19 </xsl:template>
18 20
19 <xsl:template match="e:c"/> 21 <xsl:template match="e:c"/>
20 22
21 <xsl:template match="node()|@*"> 23 <xsl:template match="node()|@*">