Mercurial > hg > ooxml
diff ascii.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 |
line wrap: on
line diff
--- a/ascii.xsl Sun May 07 11:55:50 2017 +0100 +++ b/ascii.xsl Sun May 07 11:56:02 2017 +0100 @@ -1,6 +1,6 @@ <?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: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 e" 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"/> @@ -17,10 +17,10 @@ </xsl:template> <xsl:template match="e:c"> - <xsl:value-of select="if (e:t) + <xsl:value-of select="if (@t or text()) then - let $v := if (e:t/@c) then e:t/@c else e:t return - if (@f) + let $v := if (@t) then @t else text() return + if (e:f) then translate($v,'cdens','CDENS') else $v else ' '"/>