view format.xsl @ 3:2c115aefde6b

beginning work on elaboration of worksheets
author Henry S. Thompson <ht@markup.co.uk>
date Sat, 01 Apr 2017 12:57:31 +0800
parents
children fe3fc6b2d890
line wrap: on
line source

<?xml version='1.0'?>
<!DOCTYPE doc SYSTEM "../../../lib/xml/xsl.dtd" >
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:s="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
 <xsl:variable name="xldir" select="replace(base-uri(),'/[^/]*/[^/]*$','')"/>
 <xsl:variable name="styles" select="document(concat($xldir,'/styles.xml'))/*"></xsl:variable>
 <xsl:variable name="cellXfs" select="$styles//s:cellXfs"/>
 <xsl:template match="/">
  <xsl:message>|<xsl:value-of select="count($cellXfs/s:xf)"/>|</xsl:message>
 </xsl:template>
</xsl:stylesheet>