This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 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> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]