Mercurial > hg > ooxml
comparison refs.xsl @ 25:a5125a2e77ea
towards inverted map of refs
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Thu, 06 Apr 2017 18:31:46 +0100 |
parents | 87e0d620deea |
children | 8309dcfce613 |
comparison
equal
deleted
inserted
replaced
24:87e0d620deea | 25:a5125a2e77ea |
---|---|
39 $tokens[$i + 3][@nr=10 and .=':']) | 39 $tokens[$i + 3][@nr=10 and .=':']) |
40 then concat($bit,':',translate($tokens[$i + 4],'$','')) | 40 then concat($bit,':',translate($tokens[$i + 4],'$','')) |
41 else $bit | 41 else $bit |
42 else ()"/> | 42 else ()"/> |
43 <ref c="{@r}"> | 43 <ref c="{@r}"> |
44 <xsl:for-each select="$singles"> | 44 <xsl:for-each select="distinct-values($singles)"> |
45 <s><xsl:value-of select="."/></s> | 45 <s><xsl:value-of select="."/></s> |
46 </xsl:for-each> | 46 </xsl:for-each> |
47 <xsl:for-each select="$ranges"> | 47 <xsl:for-each select="distinct-values($ranges)"> |
48 <r><xsl:value-of select="."/></r> | 48 <r><xsl:value-of select="."/></r> |
49 </xsl:for-each> | 49 </xsl:for-each> |
50 <xsl:for-each select="$externals"> | 50 <xsl:for-each select="distinct-values($externals)"> |
51 <e><xsl:value-of select="."/></e> | 51 <e><xsl:value-of select="."/></e> |
52 </xsl:for-each> | 52 </xsl:for-each> |
53 </ref></xsl:if> | 53 </ref></xsl:if> |
54 </xsl:template> | 54 </xsl:template> |
55 | 55 |