![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: xhtml.xsd error? [Thread Next] \d meaning (Was: Re: xhtml.xsd error?)To: <xmlschema-dev@--.---> Date: 8/9/2006 11:14:00 AM
On the topic of matching numbers...
The spec says that \d is equivalent to \p{Nd}.
By my reading of the Unicode tables, \p{Nd} not only includes the characters
0-9, but also equivalents in other languages, such as "0660;ARABIC-INDIC
DIGIT ZERO;Nd", "06F0;EXTENDED ARABIC-INDIC DIGIT ZERO;Nd;",
"0966;DEVANAGARI DIGIT ZERO;Nd;", "09E6;BENGALI DIGIT ZERO;Nd;",
"0A66;GURMUKHI DIGIT ZERO;Nd;" and so on and so on.
Does this mean that for a lot of business logic cases people might be best
advised using [0-9] in their patterns rather than \d?
And for my illumination, I assume most peoples of the world (that are likely
to come into contact with XML either directly or indirectly) would be
familiar with the digits 0-9 from the international language of mathematics.
Is this the case?
Thanks,
Pete.
--
=============================================
Pete Cordell
Tech-Know-Ware Ltd
for XML to C++ data binding visit
http://www.tech-know-ware.com/lmx
(or http://www.xml2cpp.com)
=============================================
From jsb@h... Fri Aug 11 11:58:31 2006
Received: from aji.w3.or | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
