W3C home > Mailing lists > Public > www-forms-editor@w3.org > May 2007

[LC] 5.2.6 xforms:ID-card-number and 7.8.7 The luhn() Function

From: Steven Pemberton <Steven.Pemberton@cwi.nl>
Date: Thu, 24 May 2007 15:23:45 +0200 (CEST)
To: www-forms-editor@w3.org
Message-Id: <20070524132345.1F58C77BBF@sirius.ins.cwi.nl>

http://www.w3.org/TR/xforms11/#id-card-type
http://www.w3.org/TR/xforms11/#fn-luhn

"The complementary XPath function luhn() should be used to validate
that the ID number conforms to the specification."

I imagine that almost exclusively these will be used like this:

      <bind nodeset="cc" type="ID-card-number" constraint="luhn()" />

While I applaud the recognition of computer scientists who have
contributed to society, I fear that this is too hard to remember for
this single occurring case. May I propose as easier to cope with
something along the lines of:

      <bind nodeset="cc" type="card-number" constraint="card-number()" />
Received on Thursday, 24 May 2007 13:23:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 10 June 2009 18:12:15 GMT