[Home] [By Thread] [By Date] [Recent Entries]
David Carlisle wrote:
Most of those are already listed in the schema spec eg http://www.w3.org/TR/xmlschema-2 But he was thinking of a regular expression. Though it seems a bit outrageous to create a regex for a byte, it might look something like this: regex = "^\s*(([+-]?(1[01]\d|12[0-7]|0?\d?\d))|+?128)\s*$" Note that this regex does not allow for an empty string (which is correct, as xs:byte('') would fail) -- Abel Braaksma http://www.nuntia.com
|

Cart



