Mercurial > hg > ooxml
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ascii.xsl Mon Apr 03 15:07:00 2017 +0100 @@ -0,0 +1,24 @@ +<?xml version='1.0'?> +<!DOCTYPE doc SYSTEM "../../../lib/xml/xsl.dtd" > +<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"> + <xsl:strip-space elements="e:a"/> + <xsl:output omit-xml-declaration="yes"/> + + <xsl:template match="e:a"> + <e:a><xsl:apply-templates select="*"/></e:a> + </xsl:template> + + <xsl:template match="e:r"> + <xsl:apply-templates/> + <xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="e:c"> + <xsl:value-of select="if (text()) + then + if (@f) + then translate(.,'cdens','CDENS') + else . + else ' '"/> + </xsl:template> +</xsl:stylesheet>