You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Elliotte Rusty Harold (Jira)" <xe...@xml.apache.org> on 2025/07/02 12:58:00 UTC
[jira] [Resolved] (XERCESJ-1153) xi:include element recognized and resolved without declaration in the schema
[ https://issues.apache.org/jira/browse/XERCESJ-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Elliotte Rusty Harold resolved XERCESJ-1153.
--------------------------------------------
Resolution: Invalid
This would violate the W3C XML Schema spec. What you likely want is to resolve the XInlcudes and then validate, rather than the other way around.
> xi:include element recognized and resolved without declaration in the schema
> ----------------------------------------------------------------------------
>
> Key: XERCESJ-1153
> URL: https://issues.apache.org/jira/browse/XERCESJ-1153
> Project: Xerces2-J
> Issue Type: Improvement
> Components: XInclude 1.0
> Affects Versions: 2.8.0
> Environment: Java 1.5.0
> Windows XP SP 2
> Reporter: Sorin Ristache
> Priority: Minor
>
> When the file foo.xml is parsed Xerces should recognize the include element in the "http://www.w3.org/2001/XInclude" namespace without any declaration of that element in the DTD or schema associated with foo.xml. The schema developer should not be forced to declare the xi:include element in every type definition where he wants to include other file just as he can refer external entities without any special declaration in the type definition of the including element. Example:
> foo.xml:
> <!DOCTYPE root [
> <!ELEMENT root (child)>
> <!ELEMENT child EMPTY>
> ]>
> <root>
> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="bar.xml"/>
> </root>
> bar.xml:
> <child/>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org