xsl-list
[Top] [All Lists]

RE: [xsl] regex error in saxon8.9n?

2007-07-17 02:18:06
 
Error at character 5 in regular expression "^[\i-[:]][\c-[:]]*$": 

Incidentally, if you're interested, the native .NET regular expression that
Saxon translates this to is:

^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\
u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFF
D](?!:)(?:[:\--\.0-9A-Z_a-z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u03
7F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\u
F900-\uFDCF\uFDF0-\uFFFD](?!:)|[\uD800-\uDB7F][\uDC00-\uDFFF])*$

(except that the \uXXXX notation is for display purposes only, the actual
regex contains the underlying UTF-16 code point.)

IIRC, .NET supports the subtraction syntax in 2.0 but not in 1.1, so Saxon
isn't using it, and uses a negative zero-width lookahead (?!:) instead.

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--