For Xerces as soon as a DTD is present it will be resolved even though
features such as
"http://apache.org/xml/features/nonvalidating/load-external-dtd" is set to
false.
This from the Xercex FAQ:
* keep your DTD and DTD references local
* use internal DTD subsets, if possible
* load files from server to local client before parsing
* Cache document files into a local client cache. You should do an HTTP
header request to check whether the document has changed, before accessing
it over the network.
* Do not reference an external DTD or internal DTD subset at all. In this
case, no DTD will be read.
* Use a custom EntityResolver and keep common DTDs in a memory buffer.
I use a custom EntityResolver that checks for a local cached dtd first to be
able to work off-line with Xerces and are very happy with the result.
Best regards,
Per
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron
> Mulder
> Sent: den 23 augusti 2001 14:01
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-dev] DTDs
>
>
> My fault, I had the case wrong (JBoss <> JBOSS). BTW, it appears
> that you must provide a URL - if I use something like:
>
> <!DOCTYPE jboss PUBLIC '-//JBoss//DTD JBOSS 2.4//EN' 'jboss.dtd'>
>
> The parser refuses to accept it. In any case, is there some way
> to avoid loaded the DTD at all when the validate flag is off?
>
> Aaron
>
> On Wed, 22 Aug 2001, Scott M Stark wrote:
> > The following local entities are defined, which is not resolving:
> >
> > registerDTD("-//Sun Microsystems, Inc.//DTD
> Enterprise JavaBeans
> > 1.1//EN", "ejb-jar.dtd");
> > registerDTD("-//Sun Microsystems, Inc.//DTD
> Enterprise JavaBeans
> > 2.0//EN", "ejb-jar_2_0.dtd");
> > registerDTD("-//Sun Microsystems, Inc.//DTD J2EE Application
> > 1.2//EN", "application_1_2.dtd");
> > registerDTD("-//Sun Microsystems, Inc.//DTD
> Connector 1.0//EN",
> > "connector_1_0.dtd");
> > registerDTD("-//JBoss//DTD JAWS//EN", "jaws.dtd");
> > registerDTD("-//JBoss//DTD JAWS 2.4//EN", "jaws_2_4.dtd");
> > registerDTD("-//JBoss//DTD JBOSS//EN","jboss.dtd");
> > registerDTD("-//JBoss//DTD JBOSS 2.4//EN","jboss_2_4.dtd");
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development