[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: Re: [xslt] xsl:number format="{$...}"
/ Sebastian Rahtz <sebastian.rahtz@computing-services.oxford.ac.uk> was heard to say:
| In message <3B4F46CB.25CA8BCD@mail1.stofanet.dk> [email protected] 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC