This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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 (@ 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.
|
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |