view refs.xsl @ 39:4c6a341e75da

big rework works on sample2, w/o refs processing
author Henry S. Thompson <ht@markup.co.uk>
date Wed, 26 Apr 2017 18:51:34 +0100
parents 468a6cf8bf0b
children ac6d1ca099f7
line wrap: on
line source

<?xml version='1.0'?>
<!DOCTYPE xsl:stylesheet 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 e xf" xmlns="http://markup.co.uk/excel" xmlns:xf="http://www.w3.org/2005/xpath-functions">
 
 <xsl:include href="a2n.xsl"/>
 
 <xsl:param name="sheet-name"/>

 <xsl:template match="/">
  <refs sheetName="{$sheet-name}"><xsl:apply-templates select="//s:c"/></refs>
 </xsl:template>
 
 <xsl:template match="e:c[e:f]">
  <xsl:variable name="cr" select="e:cr(@r,0,0)"/>
  <xsl:if test="@r='xxx'"><xsl:message><xsl:value-of select="count(e:f/*)"/>|</xsl:message>
  </xsl:if>
 </xsl:template>
 
 <xsl:template match="s:c"/>
</xsl:stylesheet>