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


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]