Piotr Jachowicz | 19 May 22:58
Picon
Gravatar

Document build problem - I/O error : Failed to load external entity

Hello,

I'm new in boost.book and quickbook. Follwing an instruction I've
installed iconv, zlib, libxml2, libxslt, boostbook xml, docbook xsl,
generated quickbook.exe and updad my user-config.jam:

using xsltproc : "c:/pj/qbook/bin/xsltproc.exe" ;

using boostbook
    : "c:/pj/qbook/docbook-xsl"
    : "c:/pj/qbook/docbook-xml"
    ;

 using quickbook
    : "c:/pj/qbook/bin/quickbook.exe"
    ;

Attempt to compile simple quickbook fails because lots of "failed to
load external entity" errors:

C:\pj\tmp\qbook>bjam --v2 --toolset=msvc html
...found 13 targets...
...updating 4 targets...
common.mkdir bin\msvc-9.0express\debug\threading-multi
quickbook.quickbook-to-boostbook
bin\msvc-9.0express\debug\threading-multi\test.xml
Generating Output File: bin\msvc-9.0express\debug\threading-multi\test.xml
xslt-xsltproc bin\msvc-9.0express\debug\threading-multi\test.docbook
xslt-xsltproc-dir html\standalone_HTML.manifest
warning: failed to load external entity
"http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"
compilation error: file
file:///c:/boost_1_39_0/tools/boostbook/xsl/html.xsl line 16 element
import
xsl:import : unable to load
http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
warning: failed to load external entity
"http://docbook.sourceforge.net/release/xsl/current/html/math.xsl"
compilation error: file
file:///c:/boost_1_39_0/tools/boostbook/xsl/html.xsl line 18 element
import
xsl:import : unable to load
http://docbook.sourceforge.net/release/xsl/current/html/math.xsl
warning: failed to load external entity
"http://docbook.sourceforge.net/release/xsl/current/html/chunk-common.xsl"
compilation error: file
file:///c:/boost_1_39_0/tools/boostbook/xsl/chunk-common.xsl line 15
element import
xsl:import : unable to load
http://docbook.sourceforge.net/release/xsl/current/html/chunk-common.xsl
warning: failed to load external entity
"http://docbook.sourceforge.net/release/xsl/current/lib/lib.xsl"
compilation error: file
file:///c:/boost_1_39_0/tools/boostbook/xsl/relative-href.xsl line 12
element import
xsl:import : unable to load
http://docbook.sourceforge.net/release/xsl/current/lib/lib.xsl
warning: failed to load external entity
"http://docbook.sourceforge.net/release/xsl/current/html/formal.xsl"
compilation error: file
file:///c:/boost_1_39_0/tools/boostbook/xsl/docbook-layout.xsl line 16
element import
xsl:import : unable to load
http://docbook.sourceforge.net/release/xsl/current/html/formal.xsl
warning: failed to load external entity
"http://docbook.sourceforge.net/release/xsl/current/lib/lib.xsl"
compilation error: file
file:///c:/boost_1_39_0/tools/boostbook/xsl/relative-href.xsl line 12
element import
xsl:import : unable to load
http://docbook.sourceforge.net/release/xsl/current/lib/lib.xsl
warning: failed to load external entity
"http://docbook.sourceforge.net/release/xsl/current/html/admon.xsl"
compilation error: file
file:///c:/boost_1_39_0/tools/boostbook/xsl/admon.xsl line 12 element
import
xsl:import : unable to load
http://docbook.sourceforge.net/release/xsl/current/html/admon.xsl
warning: failed to load external entity
"http://docbook.sourceforge.net/release/xsl/current/lib/lib.xsl"
compilation error: file
file:///c:/boost_1_39_0/tools/boostbook/xsl/relative-href.xsl line 12
element import
xsl:import : unable to load
http://docbook.sourceforge.net/release/xsl/current/lib/lib.xsl
warning: failed to load external entity
"http://docbook.sourceforge.net/release/xsl/current/html/xref.xsl"
compilation error: file
file:///c:/boost_1_39_0/tools/boostbook/xsl/xref.xsl line 16 element
import
xsl:import : unable to load
http://docbook.sourceforge.net/release/xsl/current/html/xref.xsl
warning: failed to load external entity
"http://docbook.sourceforge.net/release/xsl/current/lib/lib.xsl"
compilation error: file
file:///c:/boost_1_39_0/tools/boostbook/xsl/relative-href.xsl line 12
element import
xsl:import : unable to load
http://docbook.sourceforge.net/release/xsl/current/lib/lib.xsl
warning: failed to load external entity
"http://docbook.sourceforge.net/release/xsl/current/html/callout.xsl"
compilation error: file
file:///c:/boost_1_39_0/tools/boostbook/xsl/callout.xsl line 13
element import
xsl:import : unable to load
http://docbook.sourceforge.net/release/xsl/current/html/callout.xsl
warning: failed to load external entity
"http://docbook.sourceforge.net/release/xsl/current/lib/lib.xsl"
compilation error: file
file:///c:/boost_1_39_0/tools/boostbook/xsl/relative-href.xsl line 12
element import
xsl:import : unable to load
http://docbook.sourceforge.net/release/xsl/current/lib/lib.xsl

    set XML_CATALOG_FILES=bin/boostbook_catalog.xml
 "c:/pj/qbook/bin/xsltproc.exe" --stringparam manifest
"standalone_HTML.manifest" --xinclude -o "html/" "c:\boost_1_39_0\tool
s\boostbook\xsl\html.xsl"
"bin\msvc-9.0express\debug\threading-multi\test.docbook"

...failed xslt-xsltproc-dir html\standalone_HTML.manifest...
...removing html\standalone_HTML.manifest
...failed updating 1 target...
...updated 3 targets...

Command that causes an error is:

set XML_CATALOG_FILES=bin/boostbook_catalog.xml

when I invoke xsltproc command manually, *without set
XML_CATALOG_FILES=bin/boostbook_catalog.xml*, there are no erros:

C:\pj\tmp\qbook>"c:/pj/qbook/bin/xsltproc.exe"  --stringparam manifest
"standalone_HTML.manifest" --xinclude -o "html/" "c:\b
oost_1_39_0\tools\boostbook\xsl\html.xsl"
"bin\msvc-9.0express\debug\threading-multi\test.docbook"
Writing standalone_HTML.manifest

C:\pj\tmp\qbook>

What should I setup to create html doc by bjam invocation?

--

-- 
Piotr Jachowicz

Gmane