/ Sebastian Rahtz <[EMAIL PROTECTED]> was heard to say:
| In message <[EMAIL PROTECTED]> [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 <[EMAIL PROTECTED]>      | 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

Reply via email to