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 <[EMAIL PROTECTED]> 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
> > [email protected]
> > http://lists.macosforge.org/mailman/listinfo/macports-users
>
> --
> Boey Maun Suang (Boey is my surname)
> Email: boeyms at macports dot org
>
>
>
>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>

<article lang="en">
<articleinfo>
    <title>The Article Title</title>
    <date>Dec 2003</date>
    <author>
        <firstname>Author's</firstname>
        <surname>Name</surname>
        <affiliation><address><email>[EMAIL PROTECTED]</email></address></affiliation>
    </author>
    <authorinitials>AN</authorinitials>

<revhistory><revision><revnumber>1.0</revnumber><date>Dec 2003</date><authorinitials>AN</authorinitials></revision></revhistory>

</articleinfo>
<simpara>This is the optional preamble (an untitled section body). Useful for
writing simple sectionless documents consisting only of a preamble.</simpara>

<abstract>
<simpara>The optional abstract (one or more paragraphs) goes here.</simpara>

<simpara>This document is an AsciiDoc article skeleton containing briefly
annotated element placeholders plus a couple of example index entries
and footnotes. The preface, appendix, bibliography, glossary and index
section titles are significant (<emphasis>specialsections</emphasis>).</simpara>

</abstract>
<section>
<title>The First Section</title>
<simpara>Article sections start at level 1 and can be nested up to four levels
deep.
<footnote><simpara>An example footnote.</simpara></footnote>
<indexterm>
  <primary>Example index entry</primary>
</indexterm></simpara>

<simpara>And now for something completely different: <indexterm>
  <primary>monkeys</primary>
</indexterm>
monkeys, lions and
tigers (Bengal and Siberian) using the alternative syntax index
entries.
<indexterm>
  <primary>Big cats</primary><secondary>Lions</secondary>
</indexterm>
<indexterm>
  <primary>Lions</primary>
</indexterm>
<indexterm>
  <primary>Big cats</primary><secondary>Tigers</secondary><tertiary>Bengal Tiger</tertiary>
</indexterm>
<indexterm>
  <primary>Tigers</primary><secondary>Bengal Tiger</secondary>
</indexterm>
<indexterm>
  <primary>Bengal Tiger</primary>
</indexterm>
<indexterm>
  <primary>Big cats</primary><secondary>Tigers</secondary><tertiary>Siberian Tiger</tertiary>
</indexterm>
<indexterm>
  <primary>Tigers</primary><secondary>Siberian Tiger</secondary>
</indexterm>
<indexterm>
  <primary>Siberian Tiger</primary>
</indexterm>
Note that multi-entry terms generate separate index entries.</simpara>

<simpara>Here are a couple of image examples: an <inlinemediaobject>
  <imageobject>
  <imagedata fileref="images/smallnew.png"/>
  </imageobject>
  <textobject><phrase>images/smallnew.png</phrase></textobject>
</inlinemediaobject>
example inline image followed by an example block image:</simpara>

<figure><title>Tiger block image</title>
<mediaobject>
  <imageobject>
  <imagedata fileref="images/tiger.png"/>
  </imageobject>
  <textobject><phrase>Tiger image</phrase></textobject>
</mediaobject>
</figure>
<simpara>Followed by an example table:</simpara>

<table pgwide="0"
frame="topbot"
rowsep="0" colsep="0"
>
<title>An example table</title>
<tgroup cols="2">
<colspec colwidth="97pt" align="left"/>
<colspec colwidth="146pt" align="left"/>
<thead>
  <row>
    <entry>
    Option
    </entry>
    <entry>
    Description
    </entry>
  </row>
</thead>
<tbody>
  <row>
    <entry>
    -a <emphasis>USER GROUP</emphasis>
    </entry>
    <entry>
    Add <emphasis>USER</emphasis> to <emphasis>GROUP</emphasis>.
    </entry>
  </row>
  <row>
    <entry>
    -R <emphasis>GROUP</emphasis>
    </entry>
    <entry>
    Disables access to <emphasis>GROUP</emphasis>.
    </entry>
  </row>
</tbody>
</tgroup>
</table>
<section id="X1">
<title>Sub-section with Anchor</title>
<simpara>Sub-section at level 2.</simpara>

<section>
<title>A Nested Sub-section</title>
<simpara>Sub-section at level 3.</simpara>

<section>
<title>Yet another nested Sub-section</title>
<simpara>Sub-section at level 4.</simpara>

<simpara>This is the maximum sub-section depth supported by the distributed
AsciiDoc configuration.
<footnote><simpara>A second example footnote.</simpara></footnote></simpara>

</section>
</section>
</section>
</section>
<section>
<title>The Second Section</title>
<simpara>Article sections are at level 1 and can contain sub-sections nested up
to four deep.</simpara>

<simpara>An example link to anchor at start of the <link linkend="X1">first sub-section</link>.
<indexterm>
  <primary>Second example index entry</primary>
</indexterm></simpara>

<simpara>An example link to a bibliography entry <xref linkend="taoup"/>.</simpara>

</section>
<appendix>
<title>Example Appendix</title>
<simpara>AsciiDoc article appendices are just just article sections with
<emphasis>specialsection</emphasis> titles.</simpara>

<section>
<title>Appendix Sub-section</title>
<simpara>Appendix sub-section at level 2.</simpara>

</section>
</appendix>
<bibliography>
<title>Bibliography</title>
<simpara>The bibliography list is an example of an AsciiDoc SimpleList, the
AsciiDoc source list items are bulleted with a <literal>+</literal> character.</simpara>

<bibliomixed>
<bibliomisc>
<anchor id="taoup" xreflabel="[taoup]"/>[taoup] Eric Steven Raymond. <emphasis>The Art of Unix
  Programming</emphasis>. Addison-Wesley. ISBN 0-13-142901-9.
</bibliomisc>
</bibliomixed>
<bibliomixed>
<bibliomisc>
<anchor id="walsh-muellner" xreflabel="[walsh-muellner]"/>[walsh-muellner] Norman Walsh &amp; Leonard Muellner.
  <emphasis>DocBook - The Definitive Guide</emphasis>. O'Reilly &amp; Associates. 1999.
  ISBN 1-56592-580-7.
</bibliomisc>
</bibliomixed>
</bibliography>
<glossary>
<title>Glossary</title>
<simpara>Glossaries are optional. Glossaries entries are an example of AsciiDoc
VariableList entries, the AsciiDoc source entry terms are terminated
by the ":-" characters.</simpara>

<glossentry>
<glossterm>
A glossary term
</glossterm>
<glossdef>
<simpara>
        The corresponding (indented) definition.
</simpara>
</glossdef>
</glossentry>
<glossentry>
<glossterm>
A second glossary term
</glossterm>
<glossdef>
<simpara>
        The corresponding (indented) definition.
</simpara>
</glossdef>
</glossentry>
</glossary>
<index>
<title>Index</title>
</index>
</article>
_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to