Project

Profile

Help

Support #5942

closed

Handling of elements without text() child elements changed between 9.8.x.x and 9.9.x.x

Added by Marijn Sanderse over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
2023-03-27
Due date:
% Done:

0%

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

Description

If I have an XML document

* <EmptyDoc />*

and I perform the following test

*<xsl:if test="EmptyDoc/text()=''">*

that test is TRUE in 9.8.x.x but it is FALSE in 9.9.x.x and 11.5

I can see the reasoning behind the change (there is no text node so it cannot be equal to "") and I can see the impossibility in you changing this back after so much time but it is a bit of a headache for me given the 300+ services I am maintaining that could all suffer from this when I upgrade to a more current Saxon version.

Are there any pointers you could give me about how to handle this? Like:

  • is there I flag I can provide that reinstates previous behaviour?
  • what kind of statements also to look for?

Any help is really appreciated, thanks in advance

SaxonEE on Java


Files

saxon-textnode.tgz (2.66 KB) saxon-textnode.tgz problem reproducer Marijn Sanderse, 2023-03-28 15:19

Please register to edit this issue

Also available in: Atom PDF