Forum OpenACS Development: Re: Docbook

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.