[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: i18n problem while displaying using stylesheet

Subject: Re: i18n problem while displaying using stylesheet
From: Josh Canfield <joshcanfield@xxxxxxxxx>
Date: Fri, 25 Jun 2004 01:27:58 -0700
xsl i18n
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@xxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxx>
> --+--
> 
>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.