On Thu, 23 Aug 2001, Victor Langelo wrote:
> The standard way of accessing a local dtd in SGML/XML is the following:
>
> <!DOCTYPE jboss SYSTEM 'jboss.dtd'>
>
> if jboss.dtd is in the same directory as the xml file. Otherwise use relative or
> absolute paths. I don't know if this works with the crimson parser though.
It should work, if not, you can provide an EntityResolver. Have a look at
the ant sources.
> Aaron Mulder wrote:
>
> > 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?
I don't remember the reason, but there's no way to prevent the parser from
resolving entities. However, xerces used some proprietary method, to allow
this.
Holger
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development