Steve Cheng | 5 Jul 19:23

Re: Help with info page generation

On 7/3/07, Orion Poplawski <orion <at> cora.nwra.com> wrote:
> I end up with the following in my .texi:
>
> INFO-DIR-SECTION Scientific Visualization
> START-INFO-DIR-ENTRY
> * The PLplot Plotting Library: (plplotdoc).   The PLplot Plotting Library
> END-INFO-DIR-ENTRY
>
> but I want:
>
> INFO-DIR-SECTION Scientific Visualization
> START-INFO-DIR-ENTRY
> * PLplot: (plplotdoc).   The PLplot Plotting Library
> END-INFO-DIR-ENTRY
>
> *without* changing the <title> tag.  Possible?

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>

(I haven't yet tested this myself, I'll try to do when I get back home
this weekend.)

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.
(Continue reading)

Orion Poplawski | 9 Jul 23:01
Favicon

Re: Help with info page generation

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">
(Continue reading)


Gmane