diff format.xsl @ 9:5f2d691014ff

allow \ to start and use Unicode currency class Sc for currency format code detection
author Henry S. Thompson <ht@markup.co.uk>
date Sun, 02 Apr 2017 23:45:02 +0800
parents fd8678fb7b4d
children 2bbd067529b6
line wrap: on
line diff
--- a/format.xsl	Sun Apr 02 21:13:16 2017 +0800
+++ b/format.xsl	Sun Apr 02 23:45:02 2017 +0800
@@ -11,7 +11,7 @@
  <xsl:function name="e:currencyFormatP" as="xs:boolean">
   <xsl:param name="format"/>
   <!-- Really need a unicode block check -->
-  <xsl:value-of select="matches($format,concat('^[&quot;',&quot;'&quot;,'][£$&#162;-&#165;]'))"/>
+  <xsl:value-of select="matches($format,concat('^[&quot;',&quot;'&quot;,'\\]\p{Sc}'))"/>
  </xsl:function>
 
  <xsl:template match="s:worksheet">