Project

Profile

Help

Bug #3733

closed

Bug in regexp matching when using '[/s/S]+'?

Added by Anonymous over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
-
Start date:
2018-03-29
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8, trunk
Fix Committed on Branch:
9.7, 9.8, trunk
Fixed in Maintenance Release:
Platforms:

Description

When I run the attached stylesheet in Oxygen 20 with Saxon EE 9.8.0.8 I get the result 'non-matching false foaf:name'.

When I run the same stylesheet with starting template start in Oxygen 19.1 with 9.7.0.18, I get 'name true name' which I expect.

I downloaded HE from maven and ran from command line with:

java -jar Saxon-HE-9.8.0-10.jar -it:start -xsl:matching-nonmatching.xsl -o:test.txt which returns 'non-matching false foaf:name'.

If I change around from '[\s\S]+' to '[\S\s]+' it seems to work.

The bundled java in Oxygen20 is 'java.runtime.version 1.8.0_121-b13' (Oracle) and I'm running it on a laptop with fedora 27. Java for command line is openjdk version "1.8.0_161".


Files

matching-nonmatching.xsl (1.14 KB) matching-nonmatching.xsl Anonymous, 2018-03-29 15:55

Please register to edit this issue

Also available in: Atom PDF