annotate ascii.xsl @ 14:261e439a19fb

use UC for computed cells
author Henry S. Thompson <ht@markup.co.uk>
date Mon, 03 Apr 2017 15:07:00 +0100
parents
children e767bef35bb9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
1 <?xml version='1.0'?>
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
2 <!DOCTYPE doc SYSTEM "../../../lib/xml/xsl.dtd" >
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
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">
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
4 <xsl:strip-space elements="e:a"/>
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
5 <xsl:output omit-xml-declaration="yes"/>
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
6
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
7 <xsl:template match="e:a">
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
8 <e:a><xsl:apply-templates select="*"/></e:a>
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
9 </xsl:template>
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
10
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
11 <xsl:template match="e:r">
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
12 <xsl:apply-templates/>
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
13 <xsl:text>&#10;</xsl:text>
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
14 </xsl:template>
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
15
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
16 <xsl:template match="e:c">
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
17 <xsl:value-of select="if (text())
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
18 then
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
19 if (@f)
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
20 then translate(.,'cdens','CDENS')
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
21 else .
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
22 else ' '"/>
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
23 </xsl:template>
261e439a19fb use UC for computed cells
Henry S. Thompson <ht@markup.co.uk>
parents:
diff changeset
24 </xsl:stylesheet>