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] | [Elist Home]

Subject: Re: DOCBOOK-APPS: Any suggestions on Java problems? (with Saxon)

Veillard-san wrote:

>   Well I have to compose with different users viewpoints and needs. That
> part is a bit confusing, the best would be to have a tunable parameter
> in xsl:output but that would be HTML specific.

I output in iso-2022-jp, and none of those entities work well.  My solution 
was to override their use like this:

  <xsl:template name="dingbat.characters">
    <!-- now that I'm using the real serializer, all that dingbat malarky -->
    <!-- isn't necessary anymore... -->
    <xsl:param name="dingbat">bullet</xsl:param>
      <xsl:when test="$dingbat='bullet'">o</xsl:when>
      <xsl:when test="$dingbat='copyright'">(C)</xsl:when>
      <xsl:when test="$dingbat='trademark'">(TM)</xsl:when>
      <xsl:when test="$dingbat='trade'">(TM)</xsl:when>
      <xsl:when test="$dingbat='registered'">(R)</xsl:when>
      <xsl:when test="$dingbat='service'">(SM)</xsl:when>
      <xsl:when test="$dingbat='nbsp'">&amp;nbsp;</xsl:when>
      <xsl:when test="$dingbat='ldquo'">"</xsl:when>
      <xsl:when test="$dingbat='rdquo'">"</xsl:when>
      <xsl:when test="$dingbat='lsquo'">`</xsl:when>
      <xsl:when test="$dingbat='rsquo'">'</xsl:when>
      <xsl:when test="$dingbat='em-dash'">-</xsl:when>
      <xsl:when test="$dingbat='mdash'">-</xsl:when>
      <xsl:when test="$dingbat='en-dash'">-</xsl:when>
      <xsl:when test="$dingbat='ndash'">-</xsl:when>

Even when the browser did understand some of the entities, the character 
encoding took presidence and caused most to escape to double byte characters. 
(This is a big problem on sites like the LA Times which seem to use M$ tools 
to write, outputting a lot of these entities but NOT specifying the encoding 
to tell my browser not to use Japanese as the default.)

Michael Westbay
Work: Beacon-IT http://www.beacon-it.co.jp/
Home:           http://www.seaple.icc.ne.jp/~westbay
Commentary:     http://www.japanesebaseball.com/forum/

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

Powered by eList eXpress LLC