Project

Profile

Help

Bug #6665

open

Saxon 10 -> 12 migration xsd import issue

Added by Dimitry Ushakov 7 days ago. Updated 3 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2025-01-22
Due date:
% Done:

0%

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

Description

Hello,

We're trying to upgrade from saxon ee 10.6 to saxon ee 12.5. We have a schema that we import via

processor.getSchemaManager().load(new StreamSource(getResource("/path/to/our.xsd")).toString)

While in saxon 10.6 everything imported successfully, in 12.5 we encountered SaxonApiException errors. Digging into it, it seems that the issue is when we import our own xlink.xsd and then proceed to use it in other included schemas.

Here's a sample of warnings and errors we're seeing

Warning at xs:import on line 11 column 86 of doc-db.xsd: Failed to locate imported schema document: ../xlink.xsd Warning at xs:schema/xs:import[1] in override.xsl: Failed to locate imported schema document: file:/tmp/test-saxon/build/resources/main/xsd/test/xlink.xsd Error in override.xsl: Unknown attribute declaration Q{http://www.w3.org/1999/xlink}href

I sent the code to replicate the issue via email and am creating this ticket for public tracking.

Thank you!

Please register to edit this issue

Also available in: Atom PDF