This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Re: [xslt] xsl:number format="{$...}"
- To: docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK-APPS: Re: [xslt] xsl:number format="{$...}"
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: Sun, 15 Jul 2001 17:32:37 -0400
- References: <E15L8MF-0005FZ-00@wing6.herald.ox.ac.uk>
/ Sebastian Rahtz <sebastian.rahtz@computing-services.oxford.ac.uk> was heard to say:
| In message <3B4F46CB.25CA8BCD@mail1.stofanet.dk> xslt@gnome.org writes:
| > Sebastian Rahtz wrote:
| >
| > > <xsl:number format="{$Format}"/>xxx
| > [...]
| > > I presume this is a simple oversight? or is it a confusion in the spec?
| >
| > Neither. The spec says that 'format = string', not 'format = string-expression'
| > which would be necessary for the above to work.
The spec says:
<!-- Category: instruction -->
<xsl:number
level = "single" | "multiple" | "any"
count = pattern
from = pattern
value = number-expression
format = { string }
lang = { nmtoken }
letter-value = { "alphabetic" | "traditional" }
grouping-separator = { char }
grouping-size = { number } />
Which says that the format attribute is an attribute value template, so
{$Format} should work fine. (Though, I admit, I don't recall seeing the
beginning of this thread, so I'm not sure what the problem is.)
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | Even while a thing is in the act
http://www.oasis-open.org/docbook/ | of coming into existence, some
Chair, DocBook Technical Committee | part of it has already ceased to
| be.--Marcus Aurelius