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]

Re: [docbook-apps] trademark tag not rendered correctly in javahelp


It doesn't matter in my tests.  When I use <trademark>, I still get &#8284;
in the HTML output from Saxon when using your stylesheet.   I don't get it.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Paul Taylor" <paul_t100@fastmail.fm>
To: "Bob Stayton" <bobs@sagehill.net>; <docbook-apps@lists.oasis-open.org>
Sent: Monday, October 18, 2004 12:00 PM
Subject: Re: [docbook-apps] trademark tag not rendered correctly in javahelp


> Hang on,
> Im creating javahelp from docbook so there is no &trade; in the source
> file only <trademark> which ends up as trade;
> Bob Stayton wrote:
>
> >Hi Paul,
> >I'm not quite clear on what is going wrong.  I copied your stylesheet
below
> >and ran it with Saxon 6.5.3, and the &trade; in my source file was
converted
> >to &#8482; in the output HTML. When you say it didn't work, are you
saying
> >you got &trade; in your HTML output?
> >
> >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: Monday, October 18, 2004 5:01 AM
> >Subject: Re: [docbook-apps] trademark tag not rendered correctly in
javahelp
> >
> >
> >
> >
> >>Ok I tried to this by creating a file javahelpdriver which references
> >>javahelp (this is the way Ive pased paramters before and it doesnt
> >>require me to alter the docbook stuff directly) but it didnt work ,
> >>however Im probably calling it wrong.
> >>
> >><xsl:stylesheet version="1.0"
> >>xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> >>xmlns:saxon="http://icl.com/saxon";
> >>extension-element-prefixes="saxon">
> >>
> >><xsl:import href="./javahelp.xsl"/>
> >>
> >><xsl:output method="html"
> >>encoding="UTF-8"
> >>indent="no"
> >>saxon:character-representation="native;decimal"/>
> >></xsl:stylesheet>
> >>
> >>Paul Taylor wrote:
> >>
> >>
> >>
> >>>Just seen this, saxon is outputting &trade; which doesnt work. I
> >>>havent yet tried getting it to output the &#8482 but Ill try tommorrow.
> >>>
> >>>Bob Stayton wrote:
> >>>
> >>>
> >>>
> >>>>So Saxon outputs &#8482; instead of &trade;, and &#8482; is supposed
> >>>>to work
> >>>>in Javahelp 2 compiler. But Paul is using Saxon, and that character
> >>>>isn't
> >>>>working for him. Is something else going on? Paul, does your HTML file
> >>>>contain &#8482; or something else?
> >>>>
> >>>>Bob Stayton
> >>>>Sagehill Enterprises
> >>>>DocBook Consulting
> >>>>bobs@sagehill.net
> >>>>
> >>>>
> >>>>----- Original Message ----- From: "Mauritz Jeanson"
> >>>><mj@johanneberg.com>
> >>>>To: "'Bob Stayton'" <bobs@sagehill.net>
> >>>>Cc: <docbook-apps@lists.oasis-open.org>; <paul_t100@fastmail.fm>
> >>>>Sent: Saturday, October 16, 2004 11:33 PM
> >>>>Subject: RE: [docbook-apps] trademark tag not rendered correctly in
> >>>>javahelp
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>>-----Original Message-----
> >>>>>>From: Bob Stayton
> >>>>>>
> >>>>>>Yes, the default behavior of Saxon is to output the named
> >>>>>>character entity
> >>>>>>like &trade;. But at least Saxon can be customized to output
> >>>>>>the numerical
> >>>>>>entity. See:
> >>>>>>
>
>>>>>>http://www.sagehill.net/docbookxsl/OutputEncoding.html#SaxonCharacter
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>Yes, but Saxon only produces HTML entity references for characters
> >>>>>within
> >>>>>the ISO-8859-1 range. The trade mark sign is not in that range. So
> >>>>>Saxon
> >>>>>never outputs &trade;, only &#x2122; or &#8482;.
> >>>>>
> >>>>>/MJ
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >>
> >
> >
> >
> >
> >
>
>
>



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]