comparison format.xsl @ 16:2bbd067529b6

improve efficiency, detect blank rows, don't type empty cells
author Henry S. Thompson <ht@markup.co.uk>
date Mon, 03 Apr 2017 19:22:03 +0100
parents 5f2d691014ff
children 8309dcfce613
comparison
equal deleted inserted replaced
15:e767bef35bb9 16:2bbd067529b6
14 <xsl:value-of select="matches($format,concat('^[&quot;',&quot;'&quot;,'\\]\p{Sc}'))"/> 14 <xsl:value-of select="matches($format,concat('^[&quot;',&quot;'&quot;,'\\]\p{Sc}'))"/>
15 </xsl:function> 15 </xsl:function>
16 16
17 <xsl:template match="s:worksheet"> 17 <xsl:template match="s:worksheet">
18 <!-- Just here to bind the namespaces at the top --> 18 <!-- Just here to bind the namespaces at the top -->
19 <worksheet xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"><xsl:apply-templates select="@*|node()"/></worksheet> 19 <worksheet xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><xsl:apply-templates select="@*|node()"/></worksheet>
20 </xsl:template> 20 </xsl:template>
21 21
22 <xsl:template match="s:c[@t and @t!='n']"> 22 <xsl:template match="s:c[@t and @t!='n']">
23 <!-- These take precedence over formatting--> 23 <!-- These take precedence over formatting-->
24 <xsl:copy> 24 <xsl:copy>