[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] Procedure Step Numbering
This is the template you should override. Below, I've changed <xsl:when test="count(../step) = 1"> to <xsl:when test="count(../step) = 1 and 0 = 1"> to prevent the test from ever evaluating as true. This one is from fo/lists.xsl; you'll have to make a similar change in <xsl:template match="procedure"> from html/lists.xsl (look for <xsl:when test="count(step) = 1">). David <xsl:template match="procedure/step|substeps/step"> <xsl:variable name="id"> <xsl:call-template name="object.id"/> </xsl:variable> <fo:list-item xsl:use-attribute-sets="list.item.spacing"> <fo:list-item-label end-indent="label-end()"> <fo:block id="{$id}"> <!-- dwc: fix for one step procedures. Use a bullet if there's no step 2 --> <xsl:choose> <xsl:when test="count(../step) = 1 and 0 = 1"> <!--^^^^^^^^^--> <xsl:text>•</xsl:text> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="." mode="number"> <xsl:with-param name="recursive" select="0"/> </xsl:apply-templates>. </xsl:otherwise> </xsl:choose> </fo:block> </fo:list-item-label> <fo:list-item-body start-indent="body-start()"> <fo:block> <xsl:apply-templates/> </fo:block> </fo:list-item-body> </fo:list-item> </xsl:template> > -----Original Message----- > From: Jared Hales [mailto:jhales@commnav.com] > Sent: Tuesday, June 15, 2004 1:59 PM > To: docbook-apps@lists.oasis-open.org > Subject: [docbook-apps] Procedure Step Numbering > > > I don't think I successfully sent this last time, if it is a > duplicate, > accept my apologies, I'm new to the list :) > > I've noticed with the docbook xsl stylesheets when I create a > procedure, > if there is only one step, the step is created as a bulleted list. > However, if there are numerous steps, each step is created as > a numbered > item in an ordered list. I'd like to override this behavior > so that no > matter what, steps are rendered as numbered lists. I've done > some small > customizations to the xsl stylesheets (via a customization > layer), but > I'm having trouble with this one. How can I customize the xsl > stylehseets to do this? > > -Jared Hales >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]