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

Subject: RE: [xsl] regex error in saxon8.9n?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 17 Jul 2007 10:17:37 +0100
>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/

Current Thread