Re: Help with info page generation
Orion Poplawski <[email protected]> Mon, 09 Jul 2007 15:01:47 -0600
| Newsgroups | gmane.text.docbook.docbook2x.general |
|---|---|
| Message-ID | <[email protected]> |
Steve Cheng wrote:
>
> Yes, but it requires a little stylesheet customization.
> You can add this small template:
>
> <xsl:template match="book" mode="for-menu-title">
> <xsl:text>PLplot</xsl:text>
> </xsl:template>
>
Where *exactly* do I add this? Sorry, totally naive about this stuff.
I tried adding it to my xml imput but get:
/usr/bin/db2x_xsltproc -s texi -o
/export/home/orion/fedora/plplot/devel/plplot-5.7.3/fedora/doc/docbook/src/plplotdoc.txml
/export/home/orion/fedora/plplot/devel/plplot-5.7.3/fedora/doc/docbook/src/plplotdoc.xml-info
/export/home/orion/fedora/plplot/devel/plplot-5.7.3/fedora/doc/docbook/src/plplotdoc.xml-info:295:
namespace error : Namespace prefix xsl on template is not defined
<xsl:template match="book" mode="for-menu-title">
^
/export/home/orion/fedora/plplot/devel/plplot-5.7.3/fedora/doc/docbook/src/plplotdoc.xml-info:296:
namespace error : Namespace prefix xsl on text is not defined
<xsl:text>PLplot</xsl:text>
^
/export/home/orion/fedora/plplot/devel/plplot-5.7.3/fedora/doc/docbook/src/plplotdoc.xml-info:299:
parser error : Extra content at the end of the document
<book id="plplot-docbook" xreflabel="PLplot">
^
unable to parse
/export/home/orion/fedora/plplot/devel/plplot-5.7.3/fedora/doc/docbook/src/plplotdoc.xml-info
Do I need to modify the texi stylesheet directly? I this case I cannot
modify the installed version, I would need to make a copy and somehow
point db2x_xsltproc to that version.
>
> In all likelihood, I will also just make it the default, in the next
> version of docbook2X, to use the "abbreviated" titles for the
> directory entry.
Makes sense.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane [email protected]
Boulder, CO 80301 http://www.cora.nwra.com
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/