Mercurial > hg > ooxml
changeset 46:8dd54346bfd8
tabulate unique normalised formulae
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Sun, 07 May 2017 22:03:31 +0100 |
parents | 6ed900e8cc61 |
children | 3e9a3e51627e |
files | refs.xsl refs2.xsl |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/refs.xsl Sun May 07 19:21:53 2017 +0100 +++ b/refs.xsl Sun May 07 22:03:31 2017 +0100 @@ -15,7 +15,7 @@ <xsl:if test="@r='xxx' and @c='1'"><xsl:message><xsl:value-of select="count(e:f/*)"/>|</xsl:message> </xsl:if> <nf r="{$i}"><xsl:value-of select="e:fnf(e:f/*)"/></nf> - <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> + <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> </xsl:template> <xsl:template match="e:c"/>
--- a/refs2.xsl Sun May 07 19:21:53 2017 +0100 +++ b/refs2.xsl Sun May 07 22:03:31 2017 +0100 @@ -32,6 +32,9 @@ <r><xsl:value-of select="@r"/>></r> </xsl:for-each> </i> + </xsl:for-each> + <xsl:for-each select="distinct-values(e:nf/text())"> + <nf i="{position()}"><xsl:value-of select="."/></nf> </xsl:for-each> </xsl:variable> <xsl:copy>