Forum OpenACS Development: Re: Docbook

Collapse
10: Re: Docbook (response to 1)
Posted by Luis Armando Arriola on

I'm using Redhat 7.3, when I try to use the "make" to convert the xml files, I get the following error:

cp -u *.png ..
cd .. ; /usr/bin/xsltproc ../../../acs-core-docs/www/xml/openacs.xsl xml/index.xml
Writing requirements-introduction.html for sect1(requirements-introduction)
Writing requirements-overview.html for sect1(requirements-overview)
Error xpath.c:8353: Undefined namespace prefix
xmlXPathCompiledEval: evaluation failed
make: *** [html] Error 139

* I already updated my libraries, this is the output I get:

[beethoven@beethoven xml]$ xsltproc -V
Using libxml 20603, libxslt 10031 and libexslt 721
xsltproc was compiled against libxml 20603, libxslt 10031 and libexslt 721
libxslt 10031 was compiled against libxml 20603
libexslt 721 was compiled against libxml 20603

Does anyone have a clue, of what could be wrong in here? Thanks.

Collapse
11: Re: Docbook (response to 10)
Posted by Andrei Popov on
Can you try and run xsltproc on your .xml doc directly, without make's help?  Or maybe even try to run it on a very simple .xml doc, something like:

<article>
<title>Test article</title>
<para>This is a <emphasis>test</emphasis> article.</para>
</article>

Still same grief?

Collapse
12: Re: Docbook (response to 11)
Posted by Luis Armando Arriola on

I run xsltproc with the single file "simple.xml" like this:

xsltproc -o outputfilename.xml /usr/share/sgml/docbook/docbook-xsl-1.64.1/html/html.xsl prueba.xml

After running xsltproc this is the what "outputfilename.xml" contains:

"<"?xml version="1.0"?">"
Test article
This is a test article.

So here everything seems to go fine, but the with the make command, it still doesn't work

Collapse
13: Re: Docbook (response to 12)
Posted by Andrei Popov on
Can you post the makefile?  It's possible that either your environment or targets are a bit scewed...
Collapse
14: Re: Docbook (response to 13)
Posted by Luis Armando Arriola on
Here are the contents of the Makefile:

# A very simple Makefile to generate the HTML docs

# Paths
XSLTPROC=/usr/bin/xsltproc
HTMLDOC=/usr/bin/htmldoc
XSL=../../../acs-core-docs/www/xml/openacs.xsl

all: html

prelim:
        cp -u *.png ..

html: prelim
        cd .. ; $(XSLTPROC) $(XSL) xml/index.xml

Collapse
15: Re: Docbook (response to 14)
Posted by Andrei Popov on
well, that does look innocent enough.  and what happens if you manually run xsltproc ../../../acs-core-docs/www/xml/openacs.xsl xml/index.xml?  same xpath error or not?

other than suggesting to reinstall libxml -- to ensure that all libs are correct, etc. i can't really suggest more, i am afraid...

Collapse
16: Re: Docbook (response to 15)
Posted by Luis Armando Arriola on
Thanks for your help.

I manually run xsltproc as you suggested and it went fine without the error.

I don't know what conflict had when called from the Makefile.