Thanks. There are some problems with the handling of certain regex
constructs on .NET - \W is known to cause problems, and it wouldn't surprise
me if \w does also. I had to adapt the code here because the regex
translator used for Java uses constructs that aren't available on .NET such
as "&&". I've done some work on this and will check that this example works
on the new version of the code.
I should also be catching the exception that comes from the .NET regex
engine - I do wish that .NET exceptions were declared in the same way as
happens on Java!
> -----Original Message-----
> From: saxon-help-bounces@...
> [mailto:saxon-help-bounces@...] On Behalf
> Of David Pirkle
> Sent: 31 August 2006 17:26
> To: saxon-help@...
> Subject: [saxon] .NET Saxon problem evaluating
> xsl:analyze-string regexpattern
> The attached XSLT throws an exception when run using .NET
> Saxon, but works fine with the Java Saxon. I used version
> 8.7.3 for both .NET and Java. It appears to be happening
> when the regular expression used in the xsl:analyze-string is
> evaluated. The exception stack trace is also attached.
> Notice: This e-mail message, together with any attachments,
> contains information of Symyx Technologies, Inc. or any of
> its affiliates or subsidiaries that may be confidential,
> proprietary, copyrighted, privileged and/or protected work
> product, and is meant solely for the intended recipient. If
> you are not the intended recipient, and have received this
> message in error, please contact the sender immediately,
> permanently delete the original and any copies of this email
> and any attachments thereto.