do not access network when make html in mac

wuzhouhui wuzhouhui14 at mails.ucas.ac.cn
Sat Jan 19 20:23:28 CST 2019


Thanks for your hint.

After "brew install docbook-xsl", and "export XML_CATALOG_FILES='/usr/local/etc/xml/catalog'"
according to the message print by brew, then "make html" do not access network anymore and
compilation faster than before.

Thanks again.

--
zhouhui

> On Jan 19, 2019, at 11:00 PM, C. Michael Pilato <cmpilato at red-bean.com> wrote:
> 
> I assume that the difference is that on your Ubuntu machine you have a local copy of the Docbook 4.5 DTD (in /usr/share/docbook or something) whereas your Mac doesn't.  Is there a package containing that DTD that you could put on your Mac that would allow xsltproc to avoid hitting the network for that information?
> 
> On Fri, Jan 18, 2019 at 10:33 PM wuzhouhui <wuzhouhui14 at mails.ucas.ac.cn> wrote:
> Hi,
> 
> I have two hosts to compile svnbook, one is ubuntu 14.04 and another is mac os.
> When compile svnbook in ubuntu by
> 
>     make html
> 
> the compilation completes within 20s. But in mac, the compilation failed
> frequently and will cost several minutes before exit:
> 
> $ make html
> xmllint --noout --valid book/book.xml
> if ! test -e "../tools/xsl"; then ../tools/bin/find-xsl.py; fi
> xsltproc  --output book/svn-book.html \
>           `[ -d stylesheets ] && echo stylesheets || echo ../tools`/html-stylesheet.xsl book/book.xml
> http://www.oasis-open.org/docbook/xml/4.5/dbpoolx.mod:3795: parser error : Comment must not contain '--' (double-hyphen)
> <!--end of allow.html.tables-->]]>
>     ^
> http://www.oasis-open.org/docbook/xml/4.5/dbpoolx.mod:3811: parser warning : PEReference: %tables.role.attrib; not found
>         %tables.role.attrib;">
>                              ^
> http://www.oasis-open.org/docbook/xml/4.5/dbpoolx.mod:3815: parser warning : PEReference: %bodyatt; not found
>         %secur;">
>                 ^
> http://www.oasis-open.org/docbook/xml/4.5/dbpoolx.mod:3815: parser warning : PEReference: %secur; not found
>         %secur;">
>                 ^
> http://www.oasis-open.org/docbook/xml/4.5/dbpoolx.mod:3868: parser warning : PEReference: %tablemodel; not found
> %tablemodel;
>             ^
> http://www.oasis-open.org/docbook/xml/4.5/dbpoolx.mod:3873: parser warning : PEReference: %informaltable.module; not found
> <![%informaltable.module;[
>                          ^
> http://www.oasis-open.org/docbook/xml/4.5/dbpoolx.mod:3873: parser error : conditional section INCLUDE or IGNORE keyword expected
> <![%informaltable.module;[
>                          ^
> unable to parse book/book.xml
> make: *** [book/svn-book.html] Error 6
> 
> 
> I found that the compilation in mac will access network but not for ubuntu,
> so is there a way to accelerate compilation in mac?
> 
> 
> Thanks.
> 
> 
> _______________________________________________
> svnbook-dev mailing list
> svnbook-dev at red-bean.com
> https://www.red-bean.com/mailman/listinfo/svnbook-dev




More information about the svnbook-dev mailing list