Project

Profile

Help

Bug #3429

closed

Regular expression in fn:replace does not match (but should)

Added by Stefan Pöschel over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
-
Start date:
2017-09-06
Due date:
% Done:

100%

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

Description

Hello,

I have an XSLT with an Regex that extracts the unit from a numeric value e.g. "10%" results in "%".

With e.g. Saxon HE 9.6.0.7 the result is as expected:

<?xml version="1.0" encoding="UTF-8"?>
<unit>%</unit>

With Saxon HE 9.8.0.4 however the result is different:

<?xml version="1.0" encoding="UTF-8"?>
<unit>10%</unit>

OS is Linux, but another user experiences the problem under Windows as well.

I attached a minimal example XSLT, which may also be used as its own input; command line is:

java -jar saxon9he.jar -s:regex_min.xsl -xsl:regex_min.xsl

Files

regex_min.xsl (300 Bytes) regex_min.xsl Stefan Pöschel, 2017-09-06 16:43

Please register to edit this issue

Also available in: Atom PDF