Hi, when topic contains the following structure:
<steps> <stepsection/> <step/> <step/> ... </step>then HTML output starts numbering of steps at 2. Reason is that <stepsection> is also render as <li> and numbering starts there.
Fix is easy -- manualy set numbering to 1 on the <li> produced for the first strep:
<xsl:template match="*[contains(@class,' task/step ')]">
<li>
<xsl:call-template name="commonAttributes">
<xsl:with-param name="classPrefix"
select="if (@importance) then concat(@importance, '-') else ''"/>
</xsl:call-template>
<xsl:if test="preceding-sibling::*[1]/self::*[contains(@class,'
task/stepsection ')]">
<xsl:attribute name="value">1</xsl:attribute>
</xsl:if>
<xsl:call-template name="namedAnchor"/>
<xsl:apply-templates/>
</li>
</xsl:template>
However there is still problem if HTML is imported into system that
doesn't support CSS. Then numbering appears on <li> for stepsection as
well. But I don't think this is generic issue so I will fix only for
myself by producing table with explicit numbers for lists.
Thanks for ditac!
Have a nice day,
Jirka
--
------------------------------------------------------------------
Jirka Kosek e-mail: [email protected] http://xmlguru.cz
------------------------------------------------------------------
Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
Bringing you XML Prague conference http://xmlprague.cz
------------------------------------------------------------------
OpenPGP_signature
Description: OpenPGP digital signature
-- XMLmind DITA Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/ditac-support

