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>


"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 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:38:09 UTC