|Tech Tip: Caching the XHTML DTDs
||[Apr. 16th, 2011|11:09 pm]
Shlomif's Technical Posts Community
|[||Tags|||||html, tech, tech tip, tip, web, xml||]|
|||||Juicebox Assassins - "Fireflies" Cover (from YouTube)||]|
Some days ago I needed to speed up validating an
XHTML document (the module
XHTML 1.1) based on the DTDs provided by the W3C, so I sought a way
to cache them on the disk. Problem is I could not effectively download them
from the W3C because their download speed was throttled.
Gentoo Wiki's “W3C Validator HOWTO” document provided some insights. Just
unpack it, cd to its directory and do
export XML_CATALOG_FILES="$(pwd)/catalog.xml" to set the XML
catalogue appropriately. It's too bad I could not find a Mandriva Linux
package for that.
Anyway, after I did that, the validation and other XML processing worked