[ http://issues.apache.org/jira/browse/XERCESJ-1062?page=comments#action_62885 ] George Cristian Bina commented on XERCESJ-1062: -----------------------------------------------
Thanks Michael, I verified with the latest build and the problem is gone. Best Regards, George > xi:include empty but Xerces reports that it contains include. > ------------------------------------------------------------- > > Key: XERCESJ-1062 > URL: http://issues.apache.org/jira/browse/XERCESJ-1062 > Project: Xerces2-J > Type: Bug > Components: XInclude 1.0 > Versions: 2.6.2 > Environment: Windows XP, Java version 1.5.0-b64, using the > XIncludeParserConfiguration parser configuration. > Reporter: George Cristian Bina > Assignee: Michael Glavassevich > Priority: Critical > > Trying to validate the following document: > <!DOCTYPE book [ > <!ELEMENT book (xi:include?, chapter)> > <!ELEMENT para (#PCDATA)> > <!ELEMENT chapter (xi:include)> > <!ELEMENT xi:include (#PCDATA) > > <!ATTLIST xi:include > xmlns:xi CDATA #FIXED "http://www.w3.org/2001/XInclude" > href CDATA #REQUIRED> > ]> > <book> > <xi:include href="included.xml" > xmlns:xi="http://www.w3.org/2001/XInclude"/> > <chapter> > <xi:include href="included.xml" > xmlns:xi="http://www.w3.org/2001/XInclude"/> > </chapter> > </book> > with included.xml being: > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE para [ > <!ELEMENT para (#PCDATA)> > ]> > <para> > Test. > </para> > both Xerces 2.6.2 and the latest CVS build give the error: > F Elements from namespace 'http://www.w3.org/2001/XInclude', other than > 'fallback', are not allowed to be children of 'include' elements. However, > 'include' was found. xerces-XInclude-bug.xml > file:/F:/test/xerces-XInclude-bug.xml 13:85 > This makes Docbook processing fail when XInclude is used in a similar way. > Regards, > George -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
