[Aeditor-talk] Re: docbook problem

Simon Strandgaard neoneye at adslhome.dk
Tue Jan 27 15:14:49 EST 2004


On Mon, 2004-01-26 at 23:40, Pierre wrote:
> Simon Strandgaard wrote:
> > On Mon, 2004-01-26 at 19:57, Pierre wrote:
> > 
> >>Simon Strandgaard wrote:
> >>
> >>>On Sun, 2004-01-25 at 23:54, Pierre wrote:
> >>>
> >>>
> >>>>Hi,
> >>>>
> >>>>I'm wrting you about your dobbook page : http://aeditor.rubyforge.org/mini_docbook.html
> >>>>
> >>>>I try to make it as you tell, but I got the "Failed to load external entity "xhtml_onechunk"" problem.
> >>>>My variable seems ok :
> >>>>
> >>>>$ env | grep XML_CATALOG_FILES
> >>>>XML_CATALOG_FILES=catalog.xml:/usr/local/share/sgml/docbook/catalog.xml:/usr/local/share/xml/docbook/4.2/catalog.xml:/etc/xml/catalog
> >>>
> >>>
> >>>yes its ok.
> >>>
> >>>
> >>>
> >>>
> >>>>and the catalog is valid xml...
> >>>>
> >>>>Any help would be great !
> >>>
> >>>
> >>>Ok, I need to know a little more about your setup.
> >>>
> >>>Can you attach these 3 files: Makefile, catalog.xml, main.xml.
> >>
> >>Done.
> >>
> >>
> >>>Also if you can copy/paste the commandline output when you invoke
> >>>'make'.
> >>
> >># gmake
> >>xsltproc \
> >>--output index.html \
> >>xhtml_onechunk \
> >>main.xml
> >>warning: failed to load external entity "xhtml_onechunk"
> >>cannot parse xhtml_onechunk
> >>gmake: *** [onechunk] Error 4
> >>
> > 
> > 
> > I guess its a version problem. 
> > In your 'main.xml' file you require the version 4.2.
> > But in your 'catalog.xml' you refer to version 4.3.
> > 
> > 
> > You can try 2 things:
> > 
> > A)  let 'main.xml' require "http://www.docbook.org/xml/4.3CR3/"
> > 
> > B)  download the version 4.2 and install it in your homedir.
> 
> I try A). I have attached you my new main.xml file.
> (Btw it couldn't be bad to have the 4.2 too, but I don't know if it's 
> possible).
> 
> But I got always the same error :
> 
> # gmake
> xsltproc \
> --output index.html \
> xhtml_onechunk \
> main.xml
> warning: failed to load external entity "xhtml_onechunk"
> cannot parse xhtml_onechunk
> gmake: *** [onechunk] Error 4
> 
> 

The reason could also be that the DTD and the stylesheet is
incompatible?    maybe dtd is 4.3, but stylesheet may be some other
version.

I have no clue why (A) doesn't work. I have not yet tried the 4.3
preview... don't know if there is any obstacles.

Try (B) download both files I mention in the tutorial, to see if it
makes a difference.

http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip
http://prdownloads.sourceforge.net/docbook/docbook-xsl-1.61.3.tar.gz?download


--
Simon Strandgaard



More information about the Aeditor-talk mailing list