Re: [docbook-apps] Suppressing the TM symbol for <productname>?

From
Bob Stayton <>
Date
2004-07-29T05:13:18+00:00
ID
00a601c4752a$b3d01010$1b5af93f@toshiro
Thread
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.

 

 

Bob Stayton
Sagehill Enterprises
DocBook Consulting


 

 

  
----- Original Message ----- 

  
From: 
  Immell, Tara 

  
To: '' 
  

  
Sent: Wednesday, July 28, 2004 1:49 
  PM

  
Subject: [docbook-apps] Suppressing the 
  TM symbol for <productname>?

  

  
Hi,

  
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?

  
Thanks,

  
Tara

  
DocBook XML DTD V4.2

  
docbook-xsl-1.65.1

  
saxon6_5_3