comparison ascii.xsl @ 15:e767bef35bb9

default to ascii, but accept html.xsl for pretty
author Henry S. Thompson <ht@markup.co.uk>
date Mon, 03 Apr 2017 16:02:10 +0100
parents 261e439a19fb
children 93fd0d532754
comparison
equal deleted inserted replaced
14:261e439a19fb 15:e767bef35bb9
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" 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><xsl:apply-templates select="*"/></e:a> 8 <e:a>
9 <xsl:text>&#10;</xsl:text>
10 <xsl:apply-templates select="*"/>
11 </e:a>
9 </xsl:template> 12 </xsl:template>
10 13
11 <xsl:template match="e:r"> 14 <xsl:template match="e:r">
12 <xsl:apply-templates/> 15 <xsl:apply-templates/>
13 <xsl:text>&#10;</xsl:text> 16 <xsl:text>&#10;</xsl:text>