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

Use a custom label for other-type notes

Specify a custom label for use with note elements whose type attribute is set to other.

The type attribute on the note element has a large set of pre-defined values you can choose from, each which has a default label. If you need a note type that’s not in the list, set the value of type to other and the value of othertype to the label you want. That works fine if you want the label to be the same as the value of othertype. But what if you want the label to be different?

Our template specification calls for a custom note label: "Best Practice." Here’s how to set that up.

  1. Open commons.xsl and find the template that begins with the following:
    <xsl:template match="*" mode="placeNoteContent">
    This template ...

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