[XML-SIG] xsl:decimal-format ?

Nicolas Chauvat Nicolas.Chauvat@logilab.fr
Thu, 15 Nov 2001 16:19:59 +0100 (CET)


Here is the begining of my stylesheet :

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <xsl:output method="html" 
              version="4.0" 
              encoding="ISO-8859-1" 
              indent="yes" 
              doctype-public="-//W3C//DTD HTML 4.0//EN"/>

<xsl:decimal-format name="fr" decimal-separator="," grouping-separator=" "/>

...

Here is my error :

$ 4xslt journal.xml xsl/journal2html.xsl
Illegal Element "decimal-format" in XSLT Namespace (see XSLT Spec: 2.1).
$

But (XSLT Spec: 2.1 - http://www.w3c.org/TR/xslt/) says :

The xsl:stylesheet element may contain the following types of elements:

                xsl:import 
                xsl:include 
                xsl:strip-space 
                xsl:preserve-space 
                xsl:output 
                xsl:key 
                xsl:decimal-format 	!!!
                xsl:namespace-alias 
                xsl:attribute-set 
                xsl:variable 
                xsl:param 
                xsl:template 

An element occurring as a child of an xsl:stylesheet element is called a
top-level element.

Now, I don't want to use that american comma-dot notation for numbers
that I'm stuck with when using XSL(T)... any ideas besides reinventing the
wheel? (Which I'm about to do).

-- 
Nicolas Chauvat

http://www.logilab.com - "Mais oł est donc Ornicar ?" - LOGILAB, Paris (France)