OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[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"/>
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.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
----- Original Message -----
Sent: Wednesday, July 28, 2004 1:49 PM
Subject: [docbook-apps] Suppressing the TM symbol for <productname>?


I have used <productname>My Application</productname> throughout my XML where each chunked .htm page is in a <section>.


Right now, there is a TM symbol on every occurrence of My Application. Does anyone know if it's possible to suppress the TM except for the first occurrence within every section?



DocBook XML DTD V4.2



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]