Steve, Steve Ebersole <steven.ebers...@gmail.com> wrote on 08/17/2010 04:00:37 PM:
> Hey Michael. > > I'll look into that for sure as like you said it probably allows me to > apply the entities more easily. > > But I don't think that allows me to apply the DOCTYPE only to xincluded > documents only when the the xinclude parse type is xml. Thats the real > problem I am facing. > > Imagine a document like: > <book> > <xi:include > xmlns:xi="http://www.w3.org/2001/XInclude" > href="Book_Info.xml" /> > <programlisting> > <xi:include > xmlns:xi="http://www.w3.org/2001/XInclude" > href="exampl.xml" > parse="text"/> > </programlisting> > </book> > > The problem is that in the first XInclude I need the entities injected; > in the second they should not. Sure but the second one is a text include. This is not processed as an XML document, even if it looks like one, so EntityResolver2.getExternalSubset() won't be called for it. Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org