W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2009

Re: numbering

From: Frederick Hirsch <frederick.hirsch@nokia.com>
Date: Thu, 5 Mar 2009 10:59:46 -0500
Cc: Frederick Hirsch <frederick.hirsch@nokia.com>, WebApps WG <public-webapps@w3.org>
Message-Id: <D5A7A9B1-2663-468B-84D9-74F24CF9ED46@nokia.com>
To: "timeless@gmail.com" <timeless@gmail.com>
Josh,

This does not seem quite right since it requires 10 or more signatures?

e.g. disallows signature01.xml, signature02.xml etc
and requires signature10.xml etc

---

I propose the following alternative in section 5.3

Naming convention for a distributor signature:"signature" [0-9]* ".xml"

Every distributor signature MUST have the same number of digits in the  
file name and use leading zeros for numbers less than the maximum  
numeric value. This is to enable consistent sorting.

To give an example, if nine distributor signatures are expected the  
numbers should range from 01 to 09, e.g. signature01.xml to  
signature09.xml.
---

Does this make sense?

regards, Frederick


Frederick Hirsch
Nokia



On Mar 5, 2009, at 9:15 AM, ext timeless wrote:

> http://dev.w3.org/2006/waf/widgets-digsig/#locating-signatures
>
> 4.3
>> If the signatures list is not empty, sort the list of signatures by  
>> the file name field in descending order (e.g. signature001.xml  
>> followed by signature9.xml followed by signature.xml).
>
> How do you sort signature009.xml and signature9.xml?
>
> The proposal is to only allow [1-9][0-9]*, which should solve this.
>
> And validators should complain about archives containing files of the
> form "signature" [0][0-9]* ".xml"
>
Received on Thursday, 5 March 2009 16:02:16 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:30 GMT