Mercurial > hg > ooxml
comparison merge.xsl @ 45:6ed900e8cc61
towards comparable formulae
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Sun, 07 May 2017 19:21:53 +0100 |
parents | 6f448ac67778 |
children | 3e9a3e51627e |
comparison
equal
deleted
inserted
replaced
44:5b2333e59d91 | 45:6ed900e8cc61 |
---|---|
13 <xsl:template match="e:r/e:c"> | 13 <xsl:template match="e:r/e:c"> |
14 <xsl:variable name="row" select="../@r"/> | 14 <xsl:variable name="row" select="../@r"/> |
15 <xsl:variable name="col" select="@c"/> | 15 <xsl:variable name="col" select="@c"/> |
16 <xsl:variable name="reffed" select="key('ref',concat(e:n2a($col),$row),$refs)"/> | 16 <xsl:variable name="reffed" select="key('ref',concat(e:n2a($col),$row),$refs)"/> |
17 <c> | 17 <c> |
18 <xsl:apply-templates select="node()|@*"/> | 18 <xsl:apply-templates select="@*"/> |
19 <xsl:if test="e:f"> | |
20 <xsl:attribute name="f"></xsl:attribute> | |
21 </xsl:if> | |
19 <xsl:if test="$reffed"><xsl:copy-of select="$reffed"/></xsl:if> | 22 <xsl:if test="$reffed"><xsl:copy-of select="$reffed"/></xsl:if> |
20 </c> | 23 </c> |
21 </xsl:template> | 24 </xsl:template> |
22 | 25 |
23 <xsl:template match="@*|node()"><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy> | 26 <xsl:template match="@*|node()"><xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy> |