OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: DOCBOOK-APPS: XSL customization layer question


I'm lost. I need to add a customization layer for use with Martijn van
Beers's db2man.xsl that aligns additional command synopses in line
something like they do in the conversion to html. I'm using Norm Walsh's
docbook-xsl-1.49 with the latest db2man.

To clarify, I have a man page with a multi-level synopsis that looks
something like this (this is a simplified version):

    command [-a | --alpha] [-b | --beta]
    command -c | --charlie
    command -d | --delta
    command --help

If I process the xml using xsltproc and Norm's xslt, I get what I expect.
If I use db2man, it comes out something like this:

command [-a | --alpha] [-b | --beta] command -c | --charlie command
-d | --delta command --help

I figured I needed a template call in the synop.xsl file, but I can't
figure exactly what it should say. I foolishly tried

<xsl:template match="cmdsynopsis">
   <xsl:if test="position()>1"><xsl:value-of select
="$cmdsynopsis.hanging.indent"/></xsl:if>
   <xsl-apply-templates/>
</xsl:template>

Naturally, this just put in the string equivalent of
cmdsynopsis.hanging.indent from the common/common.xsl file, which is 4pi.

So how do I tell it to put in a carriage return and indent?


Dennis Grace

Information Developer
IBM Linux Technology & Solutions Center
(512) 838-3937  T/L 678-3937  cell: (512)-296-7830
dgrace@us.ibm.com

This sentence no verb.




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC