comparison refs2.xsl @ 42:6f448ac67778

merge working with new refs(2), rect
author Henry S. Thompson <ht@markup.co.uk>
date Tue, 02 May 2017 10:20:59 +0100
parents afda541de4c4
children 8dd54346bfd8
comparison
equal deleted inserted replaced
41:afda541de4c4 42:6f448ac67778
14 <xsl:key name="ref" match="e:ref[e:s]" use="for $s in e:s return translate($s/@r,'$','')"/> 14 <xsl:key name="ref" match="e:ref[e:s]" use="for $s in e:s return translate($s/@r,'$','')"/>
15 <xsl:key name="rrefTL" match="e:ref[e:r]" use="for $s in e:r/(e:s[1]) return translate($s/@r,'$','')"/> 15 <xsl:key name="rrefTL" match="e:ref[e:r]" use="for $s in e:r/(e:s[1]) return translate($s/@r,'$','')"/>
16 <xsl:key name="rrefBR" match="e:ref[e:r]" use="for $s in e:r/(e:s[2]) return translate($s/@r,'$','')"/> 16 <xsl:key name="rrefBR" match="e:ref[e:r]" use="for $s in e:r/(e:s[2]) return translate($s/@r,'$','')"/>
17 17
18 <xsl:template match="e:refs"> 18 <xsl:template match="e:refs">
19 <xsl:message><xsl:value-of select="count(e:ref/e:r)"/>|<xsl:value-of select="count(e:ref/e:r/(e:s[1]))"/>|<xsl:value-of select="distinct-values(count(e:ref/e:r/(e:s[1])))"/></xsl:message>
20 <xsl:variable name="refs" select="."/> 19 <xsl:variable name="refs" select="."/>
21 <xsl:variable name="invert"> 20 <xsl:variable name="invert">
22 <xsl:for-each select="distinct-values( 21 <xsl:for-each select="distinct-values(
23 for $s in e:ref//e:s return translate($s/@r,'$',''))"> 22 for $s in e:ref//e:s return translate($s/@r,'$',''))">
24 <xsl:variable name="r" select="."/> 23 <xsl:variable name="r" select="."/>