[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Challenge: create xPath 2.0 regular expressions fo
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|