Forum OpenACS Development: Docbook
[lars@cph01 /web/openacs-4/packages/acs-core-docs/www/xml/engineering-standards]$ xsltproc -o foo.xml /usr/share/sgml/docbook/docbook-xsl/html/html.xsl docbook-primer.xml docbook-primer.xml:16: error: Entity 'version' not defined(I was trying to parse the docbook-primer.xml document, just for fun).
Overview of OpenACS &version; Documentation^ unable to parse docbook-primer.xml
I'm guessing that the problem is with the XSL Stylesheets that I got from http://sourceforge.net/projects/docbook/, package docbook-xsl, just like the documentation suggests.
I untar'd them like this:
# cd /usr/share/sgml/docbook # tar zxf /root/docbook-xsl-1.53.0.tar.gz # ln -s docbook-xsl-1.53.0/ docbook-xslso they're available as /usr/share/sgml/docbook/docbook-xsl.
I'm on Red Hat 7.2, btw.
Is this supposed to work? Am I missing some files or something? Roberto, please help :)
The &version; thing was something I added in the toplevel index.xml, so that we could easily change the version that is displayed in all generated pages.
Your stylesheets should work, but they won't generate the HTML with the Alex logo and stuff. If you want that, you have to use our openacs.xsl that is in packages/acs-core-docs/www/xml.
I'm having trouble updating my CVS checkout right now, but I know Vinod added a Makefile that you can just do "make html" or something like that.
A little symlinking underneath /usr/share/sgml/docbook, and that works now. Except I get this error:
Writing developers-overview.html for sect1(developers-overview) Writing packages.html for sect1(packages) Writing objects.html for sect1(objects) Error xpath.c:8056: Undefined namespace prefix Error xpath.c:6062: Invalid operand make: *** [all] Error 139Any clue?
[root@cph01 docbook]# xsltproc -V Using libxml 20402, libxslt 10001 and libexslt 200 xsltproc was compiled against libxml 20401, libxslt 10001 and libexslt 200 libxslt 10001 was compiled against libxml 20401 libexslt 200 was compiled against libxml 20401
[root@cph01 docbook]# rpm -qf /usr/bin/xsltproc libxslt-1.0.1-3It's the one that came preinstalled with my RH7.2 box.
rbm@zippy:~$ apt-cache show xsltproc
Maintainer: NicolÃ¡s Lichtmaier <firstname.lastname@example.org>
<p>Not sure if it's related to the version though.
rbm@zippy:~$ xsltproc -V Using libxml 20423, libxslt 10018 and libexslt 709 xsltproc was compiled against libxml 20422, libxslt 10018 and libexslt 709 libxslt 10018 was compiled against libxml 20422 libexslt 709 was compiled against libxml 20422
# rpm -qa|grep libxml2
# rpm -qa|grep libxml
# rpm -qa|grep libxslt
# xsltproc -V
Using libxml 20424, libxslt 10020 and libexslt 711
xsltproc was compiled against libxml 20424, libxslt 10020 and libexslt 711
libxslt 10020 was compiled against libxml 20424
libexslt 711 was compiled against libxml 20424
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.
<para>This is a <emphasis>test</emphasis> article.</para>
Still same grief?
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"?">"
This is a test article.
So here everything seems to go fine, but the with the make command, it still doesn't work
# A very simple Makefile to generate the HTML docs
cp -u *.png ..
cd .. ; $(XSLTPROC) $(XSL) xml/index.xml
other than suggesting to reinstall libxml -- to ensure that all libs are correct, etc. i can't really suggest more, i am afraid...