Project

Profile

Help

Bug #2187

closed

Entity Re-Declarations Bug

Added by Yvon DUBOIS over 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XSLT conformance
Sprint/Milestone:
-
Start date:
2014-10-17
Due date:
% Done:

100%

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

Description

Hi, Based on the Extensible Markup Language (XML) 1.1 (Second Edition)", "W3C Recommendation 16 August 2006, edited in place 29 September 2006", any first entity declaration is binding; See "4.2 Entity Declarations ... If the same entity is declared more than once, the first declaration encountered is binding; ...

URL: http://www.w3.org/TR/xml11/#sec-entity-decl

To my knowledge, since Saxon 8.3, up to Saxon-EE 9.5.1.5J, the last declaration is bounded in Saxon.

Our multilingual International environment makes extensive use of images external entity declarations. The order in which they are binded is crucial for our operations; Example:

For a Spanish publication, our first declaration would be something like

and a second declaration further down the DTD modules for common images in other languages like

We expect the Spanish image to be used, but Saxon binds the second declaration and we end up with the common image rather than the "es"panol one.

We've been using a work-around where we use a reverse order of entity declarations when generating output from XML. But we need to keep the Recommendation order for compliance with the authoring software and composition engine.

Is this a non-compliance in Saxon that was not yet reported? Or is there a command line option to address this issue (searched the documentation but was unsuccessful)? It would be great to cease using this reverse order of entity declarations.

We currently use the following Saxon and Java versions:

Saxon-EE 9.5.1.5J from Saxonica

Java version 1.7.0_67

Regards,

Yvon


Files

entityTest.zip (248 KB) entityTest.zip Yvon DUBOIS, 2014-11-18 23:55

Please register to edit this issue

Also available in: Atom PDF