Difference between revisions of "Catalog Resolver"

From BaseX Documentation
Jump to navigation Jump to search
(stub!)
 
Line 8: Line 8:
 
</pre>
 
</pre>
  
Fetching the <code>xhtml1-strict.dtd</code>
+
Fetching the <code>xhtml1-strict.dtd</code> obviously involves some network traffic. When dealing with single files this may seem tolerable, but
 +
importing large collections might benefit from caching these resources locally.

Revision as of 10:18, 24 January 2011

Overview

XML documents often rely on Document Type Definitions (DTD). While parsing a document with BaseX elements and entities can be checked for validity with respect to that particular DTD.

XHTML for example defines its doctype via the following line:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 

Fetching the xhtml1-strict.dtd obviously involves some network traffic. When dealing with single files this may seem tolerable, but importing large collections might benefit from caching these resources locally.