Project

Profile

Help

Support #5979

closed

Java 11 || Saxon9.9 EE || XmlCatalogResolver.setCatalog(catalogFile, processor.getUnderlyingConfiguration(), true) not working as expected like cmd line validation

Added by Kumaran AG 11 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2023-04-19
Due date:
% Done:

0%

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

Description

Hi,

We are working on the setup of validating the xml, dita, ditamap using saxon EE

XmlCatalogResolver.setCatalog(catalogFile, processor.getUnderlyingConfiguration(), true);

the above line is used to resolve the catalog files, but it's able to resolve URI partially because of that validation throws error "One validation error was reported: Cannot validate <Q{}topic>: no element declaration available" "Validation will continue without the schema at urn:test.dita.v1_3.com:dita:xsd:topic.xsd"

topic.xsd file is present in catalog file but this is not getting resolved.

Note: xml resolver 1.2 is added in our POM file

Please help us to get moving from this issue.

Actions #1

Updated by Norm Tovey-Walsh 11 months ago

We are working on the setup of validating the xml, dita, ditamap using saxon EE

XmlCatalogResolver.setCatalog(catalogFile, processor.getUnderlyingConfiguration(), true);

the above line is used to resolve the catalog files, but it's able to resolve URI partially
because of that validation throws error "One validation error was reported: Cannot validate <Q
{}topic>: no element declaration available" "Validation will continue without the schema at
urn:test.dita.v1_3.com:dita:xsd:topic.xsd"

topic.xsd file is present in catalog file but this is not getting
resolved.

Can you provide a test case that demonstrates the problem? Saxon 9.9
uses the Apache resolver so I think 1.2 is the right version, but a test
case would help.

Be seeing you,
norm

--
Norm Tovey-Walsh
Saxonica

Actions #2

Updated by Norm Tovey-Walsh 5 months ago

  • Status changed from New to Closed

No additional details provided. Please reopen if you can provide a test case.

Please register to edit this issue

Also available in: Atom PDF