comparison refs2.xsl @ 58:adeb9575b273

add inverted rel pointers back to referencing from referenced
author Henry S. Thompson <ht@markup.co.uk>
date Thu, 01 Jun 2017 17:21:45 +0100
parents 3e9a3e51627e
children
comparison
equal deleted inserted replaced
57:a783afa2b109 58:adeb9575b273
21 <xsl:for-each select="distinct-values( 21 <xsl:for-each select="distinct-values(
22 for $s in e:ref//e:s return translate($s/@r,'$',''))"> 22 for $s in e:ref//e:s return translate($s/@r,'$',''))">
23 <xsl:variable name="r" select="."/> 23 <xsl:variable name="r" select="."/>
24 <i r="{$r}"> 24 <i r="{$r}">
25 <xsl:for-each select="key('ref',$r,$refs)"> 25 <xsl:for-each select="key('ref',$r,$refs)">
26 <r><xsl:value-of select="@r"/></r> 26 <r b="{string-join(distinct-values(for $s in e:s return
27 if (translate($s/@r,'$','')=$r) then e:bcrnf($s) else ()),
28 ',')}"><xsl:value-of select="@r"/></r>
27 </xsl:for-each> 29 </xsl:for-each>
28 <xsl:for-each select="key('rrefTL',$r,$refs)"> 30 <xsl:for-each select="key('rrefTL',$r,$refs)">
29 <r>&lt;<xsl:value-of select="@r"/></r> 31 <r>&lt;<xsl:value-of select="@r"/></r>
30 </xsl:for-each> 32 </xsl:for-each>
31 <xsl:for-each select="key('rrefBR',$r,$refs)"> 33 <xsl:for-each select="key('rrefBR',$r,$refs)">