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=9317>.
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=9317

sch-props-correct.2





------- Additional Comments From [EMAIL PROTECTED]  2002-05-23 16:10 -------
The default entity resolver doesn't check for duplicate includes. It simply 
creates an InputSource using the system id. Later on such system id is used to 
determine whether it's a duplicate.

But if your customized entity resolver returns a1.xsd in an input stream or a 
reader, without setting the system id, then there is no way for us to tell that 
b1 and b2 includes the same document.

The solution you mentioned works. An alternitive is to set the system id along 
with the input stream/reader, and the parser can check for duplicates for you. 
This way you won't see the extra warning, and it works for more complicated 
cases. For example, if your c1 imports b1 and b2, and b1 and b2 include a1, 
then you can't ignore the second reference to a1. To solve this, your entity 
resolve would become more and more complicated. But such work is already done 
in the parser.

If setting system ids doesn't solve your problem, then it's a bug in the 
parser. In that case, I'll need to see your xml/xsd files and a sample java 
program.

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to