Ghee Teo-san wrote (12/ 3/08 01:04 AM):
> -<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
> "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd";>
> +<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
> "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd";>
> 
> But are you sure that your patch stop xsltproc accessing network, it 
> seems to access different uri to me.
> It is possible to refer to 
> fiel:///usr/share/sgml/docbook/xml-dtd-4.4-1.0-30.1/docbookx.dtd ?

Yes, the rewriteURI is defined in /usr/share/sgml/docbook/xmlcatalog
xsltproc
  -> /etc/xml/catalog (SGML_CATALOG_FILES=foo xsltproc --catalogs)
     -> /usr/share/sgml/docbook/xmlcatalog (XML_CATALOG_FILES=foo xsltproc)

4.0/docbookx.dtd is not defined in xmlcatalog so xsltproc accesses network.
Since language xml files are made from C xml file, I think language xml files 
also will have 4.4/docbookx.dtd during the build.

Now I also updated SUNWprint-monitor.spec to have the dependencies of 
SUNWgnome-xml-root and SUNWgnome-xml-share.

I have no idea to get the dtd version number automatically however I think this 
solution is better than 'xsltproc --nonet' because --nonet option 
omits the dtd validation.

If xsltproc uses the local dtd, it takes 0.1 seconds (xsltproc --timing).
If xsltproc uses the external dtd, it takes 16 seconds in my env (xsltproc 
--timing).

fujiwara

> 
> -Ghee
> 


Reply via email to