[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Suppressing the TM symbol for <productname>?
I ran into this same problem
recently. The source of the problem is that in the 4.3 DocBook DTD,
productname has a default value of 'trade' for its 'class' attribute.
That means the DTD automatically inserts it. The DocBook Technical
Committee recently voted to remove that default value, so version 4.4 won't have
this problem.
You have to customize the template to fix
it. Copy the match="productname" template from html/inline.xsl to your
customization layer and change it to something like:
<xsl:template
match="productname">
<xsl:call-template name="inline.charseq"/> <xsl:if test="@class != 'trade' or (@class = 'trade' and @role='showmark')"> <xsl:call-template name="dingbat"> <xsl:with-param name="dingbat" select="@class"/> </xsl:call-template> </xsl:if> </xsl:template> This adds a second condition to the test
that triggers the insertion of the TM trademark but leaves
other symbols alone. For the one productname element you want to show
a TM, add a role="showmark" attribute.
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]