This project is read-only.
1
Vote

Support starting number on numbered lists

description

For API topics, replace the "list[@type='number']" template in the transforms\main_sandcastle.xsl file in each of the three main presentation style file folders:
 
<xsl:template match="list[@type='number']">
<ol> <xsl:if test="@start"> <xsl:attribute name="start"><xsl:value-of select="@start"/></xsl:attribute> </xsl:if> <xsl:for-each select="item"> <li><xsl:apply-templates /></li> </xsl:for-each> </ol> </xsl:template>
 
For MAML topics, update the "ddue:list" template by replacing the "@class='ordered'" when section with the following in Presentation\Shared\transforms\utilities_dduexml.xsl:
 
<xsl:when test="@class='ordered'">
<ol> <xsl:if test="@start"> <xsl:attribute name="start"><xsl:value-of select="@start"/></xsl:attribute> </xsl:if> <xsl:apply-templates select="ddue:listItem" /> </ol> </xsl:when>

comments