DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24318>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24318 XInclude also includes comments from DTD ------- Additional Comments From [EMAIL PROTECTED] 2003-11-02 09:13 ------- My previous comment might not have been accepted, without thinking, I just replied to the mail, so lets try again. Thought about it again, and came up with an example, which exclude the XSLT processing. Included is the Docbook documents and a shell script, which will illustrate my observation. You will need the DocBook XML DTD ver 4.2 (availible from docbook.org). Remember to change the system identifier in both book.xml and chap1.xml. I would think, if we included more chapters, the comment from the dtd would be inclded multiple times. ----------------- test.sh ----------------- #!/bin/sh cp=xml-apis.jar cp=$cp:xercesSamples-2.5.0.jar cp=$cp:xercesImpl-2.5.0.jar java -cp $cp -verbose \ -Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration \ sax.Writer book.xml --------------- book.xml --------------- <?xml version="1.0"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "../src//schema/dtd/docbkx42/docbookx.dtd"> <book> <bookinfo> <title>Test af XInclude Problem</title> <corpauthor>Xerces user</corpauthor> </bookinfo> <chapter><title>A Chapter</title> <para>Some text</para> </chapter> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="chap2.xml"/> </book> ------------- chap2.xml ------------- <?xml version="1.0"?> <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "../src//schema/dtd/docbkx42/docbookx.dtd"> <chapter><title>Included chapter</title> <para>There should not be any DTD comments here</para> </chapter> ----------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
