--- sebb <[EMAIL PROTECTED]> wrote:

> Is it possible to use the XPath features of Xalan
> without downloading DTDs etc?
> 
> I.e. can it be run in "offline" mode where no
> external files are downloaded?

No, because DTDs are not only needed for validation,
but also for attribute value defaulting and general
entity definitions. That is, unless document is
declared to be standalone ('standalone="yes"' in xml
declaration); in which case it is not necessary to
load dtd except for validation purposes.

But this is all handled by the underlying parser, not
Xalan, so it's up to parser to deal with it properly.
I think Xerces nonetheless will try to get the
external DTD subset, for whatever the reason, even for
standalone docs (that's not a bug, but seems like a
sub-optimal feature). At least that was my experience
when I tried to make it ignore dtd.

Fortunately you can work around the problem by
creating a entity resolver that returns empty contents
(which is valid as an external DTD subset), like
someone already pointed out.

-+ Tatu +-




      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Reply via email to