Project

Profile

Help

Feature #3081

closed

suppress warning: The schema document at xxx.xsd is not being read because schema components for this namespace are already available. To force the schema document to be read...

Added by Petr K almost 8 years ago. Updated almost 8 years ago.

Status:
Won't fix
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2016-12-20
Due date:
% Done:

0%

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

Description

on addSchemaSource:

we load xsds from jar so uris are like

jar:file:/C:/xsds.jar!/a.xsd

jar:file:/C:/xsds.jar!/b.xsd

jar:file:/C:/xsds.jar!/c.xsd

if a.xsd and b.xsd import c.xsd we end up with warning even with MULTIPLE_SCHEMA_IMPORTS=true

is it possible to turn the warning off and use MULTIPLE_SCHEMA_IMPORTS=false?


Files

addSchemaSource.zip (4.12 KB) addSchemaSource.zip Petr K, 2017-02-01 13:10

Related issues

Copied to Saxon - Feature #3125: Duplicate conflicts when schema is read twice after building from NodeInfoClosedMichael Kay2016-12-20

Actions
Actions #1

Updated by Michael Kay almost 8 years ago

  • Status changed from New to Won't fix

I do not think it is possible to get this warning when the configuration option MULTIPLE_SCHEMA_IMPORTS is on. If you think you are seeing this, please provide a repro.

There is a mechanism for suppressing warnings in Saxon, which is to provide your own ErrorListener (or, where appropriate, your own Logger). We could improve this mechanism, for example by giving all messages a unique identifier, but the mechanism is there if you want it.

I'm closing this now, but feel free to re-open it if you have further information.

Actions #3

Updated by Petr K almost 8 years ago

the problem is when using NodeInfo in config.addSchemaSource

Actions #4

Updated by Petr K almost 8 years ago

  • Copied to Feature #3125: Duplicate conflicts when schema is read twice after building from NodeInfo added

Please register to edit this issue

Also available in: Atom PDF