xsl-list
[Top] [All Lists]

Re: i18n problem while displaying using stylesheet

2004-06-25 01:27:58
Hmm.. you probably need to provide a simple stylesheet that
demonstrates your problem.

Here is a sample I made up that works as I would expect, but I don't
know what your requirement is. The Japanese characters are output as
character references, but your browser should display them correctly.
(or what I suppose is correctly since I don't read Japanese...)

<?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  <xsl:output method="html" encoding="UTF-8" indent="yes"/>

  <xsl:template match="/x">    
  <html><body>
    <xsl:apply-templates/>
    </body></html>
  </xsl:template>

  <xsl:template match="country">
    <b><xsl:value-of select="@name"/></b><br/>
  </xsl:template>

</xsl:stylesheet>
On Fri, 25 Jun 2004 00:53:31 -0700 (PDT), Ranjan K. Baisak
<ranjanbaisak(_at_)yahoo(_dot_)com> wrote:

Hello List,
         My xml contains following elements with
japanese characters.
<country
name="&#20837;&#21147;&#26989;&#21209;&#24037;&#25968;&#12398;&#21066;&#38500;"
nameindex="1" />
<country
name="&#20837;&#21147;&#26989;&#24037;&#25968;&#12398;&#21066;&#38500;"
nameindex="2" />
I need to display japanese charachers as it is. My
stylesheet displays acsii characters not japanese
characters when it converts xml to html. Any
suggestion regarding what are steps I need to take
care to to show the content of "name" attribute as it
is in html format.

regards,
Ranjan

__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--




<Prev in Thread] Current Thread [Next in Thread>