O'Reilly logo

DITA for Print by Leigh W. White

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Format task section labels and text

Change the appearance of the automatic labels and text within task sections.

  1. Open task-elements.xsl and find this template:
    <xsl:template match="*[contains(@class, ' task/prereq ')]">
        <fo:block xsl:use-attribute-sets="prereq">
            <xsl:call-template name="commonattributes"/>
            <xsl:apply-templates select="." mode="dita2xslfo:task-heading">
               <xsl:with-param name="use-label">
                   <xsl:call-template name="insertVariable">
                       <xsl:with-param name="theVariableID" select="'Task Prereq'"/>
                   </xsl:call-template>
                </xsl:with-param>
            </xsl:apply-templates>
            <fo:block xsl:use-attribute-sets="prereq__content">
                <xsl:apply-templates/>
            </fo:block>
        </fo:block>
    </xsl:template>

    This is the template that processes the prereq element.

    Note: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required