Re: [xslt] xsl:number format="{$...}"



Le 13/07/01 21:06:51, Bjorn Reese a écrit :
> >       <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.

No, it would be necessary to be 'format = { string }', and actually it is.

string-expression would have meant the attribute value must be evaluated as
an XPath expression (no attribute value template) and the result converted
to a string.

{ string } means the value must be a string and _can_ be an attribute value
template.

Tom.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]