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 09:48:06 +0100
This bug does not seem to occur in the current 8.9.0.4n release, I believe
it was fixed by the changes associated with bug 1660975:

http://sourceforge.net/tracker/index.php?func=detail&aid=1660975&group_id=29
872&atid=397617

(However, it has revealed a different bug in my current development
build...)

As Abel says, product-specific issues are best raised on a product-specific
list, and for Saxon that is the saxon-help mailing list or forum accessible
via the Sourceforge project. (The mailing list works better than the forum
if you want other users to join in the discussion.)

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

> -----Original Message-----
> From: Erik Wilde [mailto:dret@xxxxxxxxxxxx] 
> Sent: 17 July 2007 02:11
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Cc: Darcy Parker
> Subject: [xsl] regex error in saxon8.9n?
> 
> hello.
> 
> in my xipr implementation of xinclude in xslt 2.0 (available 
> at http://dret.net/projects/xipr/), i use regexes to parse 
> xpointers. this works fine for me in saxon 8.9j, but seems to 
> cause errors in saxon 8.9n, at least this is what i suspect. 
> when using the current version of xipr (id 297), saxon 8.9n 
> produces the following error messages:
> 
> 
> Error at xsl:when on line 88 of file:///d:/temp/xipr.xsl: FORX0002: 
> Error at character 5 in regular expression "^[\i-[:]][\c-[:]]*$": 
> character must be escaped ([)
> 
> Error at xsl:when on line 92 of file:///d:/temp/xipr.xsl: FORX0002: 
> Error at character 14 in regular expression
> "^element\([\i-[:]][\c-[:]]*((/...": character must be escaped ([)
> 
> Failed to compile stylesheet. 2 errors detected.
> 
> 
> running xipr with saxon 8.9j works fine. i think that the 
> above message is wrong and that the regex and saxon 8.9j are 
> right, but there definitely is a regex parsing problem in one 
> of the two saxon versions. 
> it is my understanding that the xipr regexes are correct 
> because of the following construct in the xpath 2.0 regex syntax:
> 
> http://www.w3.org/TR/xmlschema-2/#nt-charClassSub
> 
> please cc me when replying to this post! thanks a lot! kind regards,
> 
> erik wilde   tel:+1-510-6432253 - fax:+1-510-6425814
>         dret@xxxxxxxxxxxx  -  http://dret.net/netdret
>         UC Berkeley - School of Information (iSchool)

Current Thread