comparison 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
comparison
equal deleted inserted replaced
43:5469a32795da 44:5b2333e59d91
1 <?xml version='1.0'?> 1 <?xml version='1.0'?>
2 <!DOCTYPE doc SYSTEM "../../../lib/xml/xsl.dtd" > 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"> 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 e" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xpf="http://www.w3.org/2005/xpath-functions">
4 <xsl:strip-space elements="e:a"/> 4 <xsl:strip-space elements="e:a"/>
5 <xsl:output omit-xml-declaration="yes"/> 5 <xsl:output omit-xml-declaration="yes"/>
6 6
7 <xsl:template match="e:a"> 7 <xsl:template match="e:a">
8 <e:a> 8 <e:a>
15 <xsl:apply-templates/> 15 <xsl:apply-templates/>
16 <xsl:text>&#10;</xsl:text> 16 <xsl:text>&#10;</xsl:text>
17 </xsl:template> 17 </xsl:template>
18 18
19 <xsl:template match="e:c"> 19 <xsl:template match="e:c">
20 <xsl:value-of select="if (e:t) 20 <xsl:value-of select="if (@t or text())
21 then 21 then
22 let $v := if (e:t/@c) then e:t/@c else e:t return 22 let $v := if (@t) then @t else text() return
23 if (@f) 23 if (e:f)
24 then translate($v,'cdens','CDENS') 24 then translate($v,'cdens','CDENS')
25 else $v 25 else $v
26 else ' '"/> 26 else ' '"/>
27 </xsl:template> 27 </xsl:template>
28 </xsl:stylesheet> 28 </xsl:stylesheet>