diff format.xsl @ 27:8309dcfce613

preparing for variable deref
author Henry S. Thompson <ht@markup.co.uk>
date Mon, 10 Apr 2017 17:29:24 +0100
parents 2bbd067529b6
children e500d7c18aad
line wrap: on
line diff
--- a/format.xsl	Fri Apr 07 18:42:47 2017 +0100
+++ b/format.xsl	Mon Apr 10 17:29:24 2017 +0100
@@ -2,9 +2,9 @@
 <!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" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:e="http://markup.co.uk/excel" exclude-result-prefixes="xs s" xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
  <xsl:param name="elabDir"/>
- <xsl:variable name="xldir" select="replace(base-uri(),'/[^/]*/[^/]*$','')"/>
+ <xsl:param name="xlDir"/>
  <xsl:variable name="fmts" select="document(concat($elabDir,'/fmt.xml'))/fmts/fmt"/>
- <xsl:variable name="styles" select="document(concat($xldir,'/styles.xml'))/*"/>
+ <xsl:variable name="styles" select="document(concat($xlDir,'/styles.xml'))/*"/>
  <xsl:variable name="xfs" select="$styles//s:cellXfs/s:xf"/>
  <xsl:variable name="nfs" select="$styles//s:numFmts/s:numFmt"/>