Hello, I've been trying to use asciidoc and xmlto to compile some documentation. In documentation for the mercurial bundle, and using a simple example from the asciidoc tutorial page I get the following errors when I try the following: xmlto pdf article.xml ~/tmp I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl warning: failed to load external entity " http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl" cannot parse http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl Variable $SGML_CATALOG_FILES not set I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl warning: failed to load external entity " http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl" cannot parse http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl I have no sgml directory in /opt/local/share/ and I've tried setting SGML_CATALOG_FILES to various random locations suggested in the archives but no luck. I don't understand why it says it failed to load the external entities from docbook.sourceforge.net when I can curl them without a problem. Here's what I have installed: xmlto @0.0.18_2 (active) asciidoc @8.2.1_1 (active) docbook-xml @4.5_0 (active) docbook-xsl @1.72.0_0 (active) Thanks, -- Brad Miller Assistant Professor, Computer Science Luther College
Hi Brad, Your output says that it's looking for an SGML catalog file, and the docbook-xsl port only installs an XML catalog file; the former format is deprecated and not as easy to manipulate with standard tools. I'm not sure what's going on here; could you be able to attach a copy of the XML file that you're trying to PDF so that I can see if I can reproduce the problem? Kind regards, Maun Suang On 08/08/2007, at 01:50, Brad Miller wrote:
Hello,
I've been trying to use asciidoc and xmlto to compile some documentation.
In documentation for the mercurial bundle, and using a simple example from the asciidoc tutorial page I get the following errors when I try the following:
xmlto pdf article.xml ~/tmp I/O error : Attempt to load network entity http:// docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl warning: failed to load external entity "http:// docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl" cannot parse http://docbook.sourceforge.net/release/xsl/current/fo/ docbook.xsl Variable $SGML_CATALOG_FILES not set I/O error : Attempt to load network entity http:// docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl warning: failed to load external entity " http:// docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl" cannot parse http://docbook.sourceforge.net/release/xsl/current/fo/ docbook.xsl
I have no sgml directory in /opt/local/share/ and I've tried setting SGML_CATALOG_FILES to various random locations suggested in the archives but no luck.
I don't understand why it says it failed to load the external entities from docbook.sourceforge.net when I can curl them without a problem.
Here's what I have installed: xmlto @0.0.18_2 (active) asciidoc @8.2.1_1 (active) docbook-xml @4.5_0 (active) docbook-xsl @1.72.0_0 (active)
Thanks,
-- Brad Miller Assistant Professor, Computer Science Luther College _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
-- Boey Maun Suang (Boey is my surname) Email: boeyms at macports dot org
Here you go. This is just an example I picked up from a tutorial site. The same thing happens on all the documentation for mercurial. That is where I first ran into the problem was trying to build mercurial from source. This happens on two different installations of macports for me, so I think you'll be able to reproduce. Thanks, Brad -- Brad Miller Assistant Professor, Computer Science Luther College On 8/13/07, Boey Maun Suang <boeyms@macports.org> wrote:
Hi Brad,
Your output says that it's looking for an SGML catalog file, and the docbook-xsl port only installs an XML catalog file; the former format is deprecated and not as easy to manipulate with standard tools.
I'm not sure what's going on here; could you be able to attach a copy of the XML file that you're trying to PDF so that I can see if I can reproduce the problem?
Kind regards,
Maun Suang
On 08/08/2007, at 01:50, Brad Miller wrote:
Hello,
I've been trying to use asciidoc and xmlto to compile some documentation.
In documentation for the mercurial bundle, and using a simple example from the asciidoc tutorial page I get the following errors when I try the following:
xmlto pdf article.xml ~/tmp I/O error : Attempt to load network entity http:// docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl warning: failed to load external entity "http:// docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl" cannot parse http://docbook.sourceforge.net/release/xsl/current/fo/ docbook.xsl Variable $SGML_CATALOG_FILES not set I/O error : Attempt to load network entity http:// docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl warning: failed to load external entity " http:// docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl" cannot parse http://docbook.sourceforge.net/release/xsl/current/fo/ docbook.xsl
I have no sgml directory in /opt/local/share/ and I've tried setting SGML_CATALOG_FILES to various random locations suggested in the archives but no luck.
I don't understand why it says it failed to load the external entities from docbook.sourceforge.net when I can curl them without a problem.
Here's what I have installed: xmlto @0.0.18_2 (active) asciidoc @8.2.1_1 (active) docbook-xml @4.5_0 (active) docbook-xsl @1.72.0_0 (active)
Thanks,
-- Brad Miller Assistant Professor, Computer Science Luther College _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
-- Boey Maun Suang (Boey is my surname) Email: boeyms at macports dot org
Hi Brad, Sorry for the delay in replying; I caught a cold last week. I don't get the error that you got with xmlto; my run of "xmlto pdf article.xml" on the file you sent me borks with an xmltex error. What that does mean, however, is that I'm getting past the stage where you're getting your error. (For interested third-parties, the DocBook XML to PDF process goes like this: DocBook XML --[1]--> XSL-FO --[2]--> PDF where step [1] needs a program that can process the DocBook XSL-T stylesheets that define the transformation from DocBook XML to XSL- FO, and step [2] needs a program that can transform XSL-FO into a PDF. XSL-FO is an XML dialect that marks up how to lay out text and graphics in a language that caters for multiple page sizes and layouts.) Could you try running xmlto with the -vv flag (for very verbose output) and report what you see then? Also, it'd be great if you could tell me whether or not you installed the DocBook XSL stylesheets via the docbook-xsl port, and what the contents is of $ {prefix}/etc/xml/catalog . Finally, I notice that you said that the original format of the documentation was asciidoc. Though I'd still like to figure out the problem you're having with xmlto, you might be able to avoid it entirely by using asciidoc's a2x command on the original asciidoc- format document: "a2x -f pdf <article.txt>" should do the trick. Kind regards, Maun Suang -- Boey Maun Suang (Boey is my surname) Email: boeyms at macports dot org
participants (2)
-
Boey Maun Suang
-
Brad Miller