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] trademark tag not rendered correctly in javahelp


Ive tried it and it works, thanks alot.
(BTW there was a SUN Java bug originally raised in 1999 but then closed 
not fixed
          http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4233437
and there is an outstanding request for enhancement to fully support 
html 4.0
          http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4296022
which is in the top 25 rfes. but isnt wasnt done for java 1.5 so it 
might be worth sticking this fix into the docbook
stylesheets).

Bob Stayton wrote:

>Here is a workaround that you can put into a customization layer for
>javahelp.xsl until Sun fixes the Javahelp compiler (hopefully someone has
>reported this bug to them):
>
><xsl:template match="trademark">
>  <xsl:call-template name="inline.charseq"/>
>  <xsl:choose>
>    <xsl:when test="@class = 'copyright'
>                    or @class = 'registered'">
>      <xsl:call-template name="dingbat">
>        <xsl:with-param name="dingbat" select="@class"/>
>      </xsl:call-template>
>    </xsl:when>
>    <xsl:when test="@class = 'service'">
>      <sup>SM</sup>
>    </xsl:when>
>    <xsl:otherwise>
>      <sup>TM</sup>
>    </xsl:otherwise>
>  </xsl:choose>
></xsl:template>
>
>
>Bob Stayton
>Sagehill Enterprises
>DocBook Consulting
>bobs@sagehill.net
>
>
>----- Original Message ----- 
>From: "Paul Taylor" <paul_t100@fastmail.fm>
>To: <docbook-apps@lists.oasis-open.org>
>Sent: Friday, October 15, 2004 6:32 AM
>Subject: Re: [docbook-apps] trademark tag not rendered correctly in javahelp
>
>
>  
>
>>Ok to clarify
>>
>>So I start with <trademark>Windows</trademark>
>>and end up with <span class="trademark">Windows</span>&trade;
>>which doesnt render in javaHelp
>>
>>Pablo you are suggesting that I ran a shell script or something to
>>replace the output
>>&trade
>>with
>><sup>TM</sup>
>>
>>I can do this but it would better if the javahelp.xsl was changed to
>>generate this in the first place.
>>
>>cheers Paul
>>
>>Paolo Vercesi wrote:
>>
>>    
>>
>>>Hi all,
>>>
>>>JavaHelp 2.0 has several problems in rendering HTML code.
>>>You must replace &trade;  with something like <sup>TM</sup>.
>>>Other characters having problems in JavaHelp are: &ldquo; and &rdquo;.
>>>
>>>Best regards,
>>>Paolo
>>>
>>>----- Original Message ----- From: "Bob Stayton" <bobs@sagehill.net>
>>>To: <paul_t100@fastmail.fm>; <docbook-apps@lists.oasis-open.org>
>>>Sent: Friday, October 15, 2004 2:59 AM
>>>Subject: Re: [docbook-apps] trademark tag not rendered correctly in
>>>javahelp
>>>
>>>
>>>      
>>>
>>>>As far as I can tell, the XSL is behaving correctly.  When I use the
>>>>javahelp/javahelp.xsl stylesheet, my &trade; character entity is
>>>>converted
>>>>to a &#8482; character in the Javahelp HTML output. That is the decimal
>>>>Unicode for the trademark symbol.  Perhaps this is a problem with the
>>>>Javahelp compiler?  Do other special characters have problems too?
>>>>
>>>>Bob Stayton
>>>>Sagehill Enterprises
>>>>DocBook Consulting
>>>>bobs@sagehill.net
>>>>
>>>>
>>>>----- Original Message ----- From: "Paul Taylor"
>>>>        
>>>>
><paul_t100@fastmail.fm>
>  
>
>>>>To: <docbook-apps@lists.oasis-open.org>
>>>>Sent: Tuesday, October 12, 2004 4:55 AM
>>>>Subject: [docbook-apps] trademark tag not rendered correctly in
>>>>        
>>>>
>javahelp
>  
>
>>>>        
>>>>
>>>>>use of the trademark tag renders ok in html but not Javahelp, how
>>>>>          
>>>>>
>could
>  
>
>>>>>I get round this
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>
>>>>
>>>>        
>>>>
>>>      
>>>
>>
>>    
>>
>
>
>
>  
>



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