[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Suppressing the TM symbol for <productname>?
Tara, Another thing you might consider is using different markup for the first occurence of My Application in each section. You could use <productname> (or even <trademark) for the first one, then use <application> for subsequent ones. That wouldn't require any stylesheet modifications. Bob Stayton <bobs@sagehill.net> writes: > 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 > bobs@sagehill.net > > > ----- Original Message ----- > From: Immell, Tara > To: 'docbook-apps@lists.oasis-open.org' > 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]