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

A FAQ question about non-Latin characters in XT output

Subject: A FAQ question about non-Latin characters in XT output
From: "Jarno Elovirta" <jarnose@xxxxxxxxxx>
Date: Tue, 12 Oct 1999 18:34:04 +0300
latin char
A definately FAQ question to which I didn't find an answer in the XSL FAQ
though: I have some non-Latin characters in my xml documents as character
references and I'd like to run the documents through xt and those character
references would still be there. example:

Source:

  <?xml version="1.0" encoding="ISO-8859-1"?>
  <character>
    &#x0069; &#x0047; &#x0049; &#x0107;
  </character>

Stylesheet:

  <?xml version="1.0" encoding="ISO-8859-1"?>
  <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:output method="html" indent="yes"/>

    <xsl:template match="/">
      <xsl:value-of select="character"/>
    </xsl:template>

  </xsl:stylesheet>

when I run it through the latest xt, I get:

  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  i G I &#263;

, but I when I try to output it as xml by changing the method to "xml", I
get:

  i G I Ä?

and I'd like to get the same as with html output without the doctype.
what... am I missing? just plain stupidity on my part?

Jarno - the idiot, it seems
BEGIN:VCARD
VERSION:2.1
N:Elovirta;Jarno
FN:Jarno Elovirta
ORG:Evitech;KNIXMAS Project
TITLE:Information Technology Engineer
TEL;WORK;VOICE:+358 9 511 9845
ADR;WORK:;;;;;;Finland
LABEL;WORK:Finland
EMAIL;PREF;INTERNET:jarnose@xxxxxxxxxx
REV:19990913T062920Z
END:VCARD
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.