Re: [xslt] A bit of help



On Thu, Mar 07, 2002 at 06:00:57PM +0000, Bjorn Reese wrote:
> Daniel Veillard wrote:
> 
> > <xsl:value-of select="format-number(-1,'###,###;###,###')"/>|
> 
> The current behaviour of libxslt for this case is a conscious
> design decision. William and I discussed it during implementation,
> and although JDK permits the same prefix/suffix for both positive
> and negative numbers in the formatting, it does not allow it for
> parsing. That seemed inconsistant to both of us, and although we
> do not parse the formatted numbers, we decided to follow the
> advice for parsing in JDK, which says "the positive and negative
> prefixes or the suffixes must be distinct", to stay clear of the
> inconsistancy (for who knows what future specs may include?)

  Okay thanks for giving a clarification on this issue.

> The decision is even documented in the comments of numbers.c ;)

  That's what I understood, precisely by reading the comment. So
far I closed the bug report estimating the current behaviour is the
correct one. I just hope this will be clarified in next version of XSLT.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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