[4suite] Bugs in <xsl:number format=...> ?

Bob Myers rtm at pacifitech.com
Sat Sep 30 15:08:43 MDT 2000


Hi.  It seems that the format attribute on the xsl:number element may not
have been exhaustively tested :-)

1. The regular expression of
(r"([^a-zA-Z0-9]+)?([a-zA-Z0-9]+)([^a-zA-Z0-9]+)") does not allow the
simplest of number formats, namely "1" (or "A", or "a", or "i").  The fix
may be as simple as putting a "?" after the third grouping.

2. Giving a format such as "A." yields a NameError for "asc".

3. The default for the format attribute is "1" per the spec, but here it
appears to be being set to "1."

4. There is no support for Japanese i-ro-ha style katakana numbering.  I
assume this is planned for version 29?

Bob

----- Original Message -----
From: "Nicolas Chauvat" <nico at logilab.com>
To: "Mike Olson" <Mike.Olson at fourthought.com>
Cc: <4suite at dollar.fourthought.com>
Sent: Saturday, September 30, 2000 10:26
Subject: Re: [4suite] HTML -> XHTML


> Thanks for your help Mike.
>
> The first piece of code you sent works fine to build the DOM tree on which
> to apply an XSLT.
>
> I haven't tried the second one (with XHtmlPrint()) yet, as I don't have
> time now to install the latest CVS snapshot of 4Suite. I'll try it when
> you'll release 0.9.2.
>
> html-tidy + HtmlLib.FromXmlStream + xml.xpath.Evaluate is good enough for
> me right now.
>
> --
> Nicolas Chauvat
>
> http://www.logilab.com - "Mais o est donc Ornicar ?" - LOGILAB, Paris
(France)
>
> _______________________________________________
> 4suite mailing list
> 4suite at lists.fourthought.com
> http://lists.fourthought.com/mailman/listinfo/4suite
>




More information about the 4suite mailing list