Mercurial > hg > ooxml
annotate ascii.xsl @ 33:27bffc66ce10
external vars preserved, [0]!... == internal handled, but note that children of ref may not be contiguous by name anymore
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Wed, 12 Apr 2017 17:43:54 +0100 |
parents | e767bef35bb9 |
children | 93fd0d532754 |
rev | line source |
---|---|
14 | 1 <?xml version='1.0'?> |
2 <!DOCTYPE doc SYSTEM "../../../lib/xml/xsl.dtd" > | |
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://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xpf="http://www.w3.org/2005/xpath-functions"> | |
4 <xsl:strip-space elements="e:a"/> | |
5 <xsl:output omit-xml-declaration="yes"/> | |
6 | |
7 <xsl:template match="e:a"> | |
15
e767bef35bb9
default to ascii, but accept html.xsl for pretty
Henry S. Thompson <ht@markup.co.uk>
parents:
14
diff
changeset
|
8 <e:a> |
e767bef35bb9
default to ascii, but accept html.xsl for pretty
Henry S. Thompson <ht@markup.co.uk>
parents:
14
diff
changeset
|
9 <xsl:text> </xsl:text> |
e767bef35bb9
default to ascii, but accept html.xsl for pretty
Henry S. Thompson <ht@markup.co.uk>
parents:
14
diff
changeset
|
10 <xsl:apply-templates select="*"/> |
e767bef35bb9
default to ascii, but accept html.xsl for pretty
Henry S. Thompson <ht@markup.co.uk>
parents:
14
diff
changeset
|
11 </e:a> |
14 | 12 </xsl:template> |
13 | |
14 <xsl:template match="e:r"> | |
15 <xsl:apply-templates/> | |
16 <xsl:text> </xsl:text> | |
17 </xsl:template> | |
18 | |
19 <xsl:template match="e:c"> | |
20 <xsl:value-of select="if (text()) | |
21 then | |
22 if (@f) | |
23 then translate(.,'cdens','CDENS') | |
24 else . | |
25 else ' '"/> | |
26 </xsl:template> | |
27 </xsl:stylesheet> |