Mercurial > hg > ooxml
comparison rect.xsl @ 38:468a6cf8bf0b
big change wrt formulae compiles, crashes
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Tue, 25 Apr 2017 22:17:12 +0100 |
parents | 93fd0d532754 |
children | 4c6a341e75da |
comparison
equal
deleted
inserted
replaced
37:ac3cd8de7a10 | 38:468a6cf8bf0b |
---|---|
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0" xmlns:s="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:e="http://markup.co.uk/excel" exclude-result-prefixes="xs s xpf" xmlns="http://markup.co.uk/excel" xmlns:xpf="http://www.w3.org/2005/xpath-functions"> | 3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0" xmlns:s="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:e="http://markup.co.uk/excel" exclude-result-prefixes="xs s xpf" xmlns="http://markup.co.uk/excel" xmlns:xpf="http://www.w3.org/2005/xpath-functions"> |
4 <xsl:strip-space elements="s:sheetData"/> | 4 <xsl:strip-space elements="s:sheetData"/> |
5 | 5 |
6 <xsl:include href="a2n.xsl"/> | 6 <xsl:include href="a2n.xsl"/> |
7 <xsl:include href="n2a.xsl"/> | 7 <xsl:include href="n2a.xsl"/> |
8 <xsl:include href="tokenise.xsl"/> | |
8 | 9 |
9 <xsl:variable name="refs" select="collection()[2]/*"/> | 10 <xsl:variable name="refs" select="collection()[2]/*"/> |
10 | 11 |
11 <xsl:key name="ref" match="e:i" use="@r"/> | 12 <xsl:key name="ref" match="e:i" use="@r"/> |
12 | 13 |
38 <xsl:if test="$c/s:f"><xsl:attribute name="f">1</xsl:attribute></xsl:if> | 39 <xsl:if test="$c/s:f"><xsl:attribute name="f">1</xsl:attribute></xsl:if> |
39 <xsl:if test="$c/*"> | 40 <xsl:if test="$c/*"> |
40 <t> | 41 <t> |
41 <xsl:if test="$c/@e:class"><xsl:attribute name="c"><xsl:value-of select="substring($c/@e:class,1,1)"/></xsl:attribute></xsl:if> | 42 <xsl:if test="$c/@e:class"><xsl:attribute name="c"><xsl:value-of select="substring($c/@e:class,1,1)"/></xsl:attribute></xsl:if> |
42 <xsl:if test="$c/@e:code"><xsl:attribute name="l"><xsl:value-of select="$c/@e:code"/></xsl:attribute></xsl:if> | 43 <xsl:if test="$c/@e:code"><xsl:attribute name="l"><xsl:value-of select="$c/@e:code"/></xsl:attribute></xsl:if> |
44 <xsl:if test="$c/s:f"> | |
45 <s:f> | |
46 <xsl:copy-of select="e:tokenise($c/s:f,$row,$col)"/> | |
47 </s:f></xsl:if> | |
43 <xsl:value-of select="substring($c/@e:type,1,1)"/> | 48 <xsl:value-of select="substring($c/@e:type,1,1)"/> |
44 </t> | 49 </t> |
45 </xsl:if> | 50 </xsl:if> |
46 <xsl:if test="$reffed"><xsl:copy-of select="$reffed/e:r"/></xsl:if> | 51 <xsl:if test="$reffed"><xsl:copy-of select="$reffed/e:r"/></xsl:if> |
47 </c> | 52 </c> |