Mercurial > hg > ooxml
comparison html.xsl @ 44:5b2333e59d91
updated html, ascii output to new raw doctype
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Sun, 07 May 2017 11:56:02 +0100 |
parents | 93fd0d532754 |
children | 01a7c2ebd3d1 |
comparison
equal
deleted
inserted
replaced
43:5469a32795da | 44:5b2333e59d91 |
---|---|
46 </xsl:template> | 46 </xsl:template> |
47 | 47 |
48 <xsl:template match="e:c"> | 48 <xsl:template match="e:c"> |
49 <td> | 49 <td> |
50 <xsl:choose> | 50 <xsl:choose> |
51 <xsl:when test="e:t"> | 51 <xsl:when test="@t|text()"> |
52 <xsl:attribute name="class"> | 52 <xsl:attribute name="class"> |
53 <xsl:value-of select="(e:t, | 53 <xsl:value-of select="(if (@t) then @t else text(), |
54 if (@f) then 'formula' else (), | 54 if (e:f) then 'formula' else (), |
55 if (e:r) then 'reffed' else ())"/> | 55 if (e:i) then 'reffed' else ())"/> |
56 </xsl:attribute> | 56 </xsl:attribute> |
57 <xsl:attribute name="title"><xsl:value-of select="e:n2a(@c)"/><xsl:value-of select="../@r"/><xsl:if test="e:r">: <xsl:value-of select="e:r"/></xsl:if></xsl:attribute> | 57 <xsl:attribute name="title"> |
58 <xsl:value-of select="if (e:t/@c) then e:t/@c else e:t"/></xsl:when> | 58 <xsl:choose> |
59 <xsl:when test="e:i"> | |
60 <xsl:value-of select="e:i/@r"/>: <xsl:value-of select="e:i/e:r"/> | |
61 </xsl:when> | |
62 <xsl:otherwise> | |
63 <xsl:value-of select="e:n2a(@c)"/><xsl:value-of select="../@r"/> | |
64 </xsl:otherwise> | |
65 </xsl:choose> | |
66 </xsl:attribute> | |
67 <xsl:value-of select="if (@t) then @t else text()"/></xsl:when> | |
59 <xsl:otherwise></xsl:otherwise> | 68 <xsl:otherwise></xsl:otherwise> |
60 </xsl:choose> | 69 </xsl:choose> |
61 </td> | 70 </td> |
62 </xsl:template> | 71 </xsl:template> |
63 </xsl:stylesheet> | 72 </xsl:stylesheet> |