[ 
https://issues.apache.org/jira/browse/XERCESJ-1153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Elliotte Rusty Harold closed XERCESJ-1153.
------------------------------------------

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to