Behaviour difference when outputing Shift_JIS

Subject: Behaviour difference when outputing Shift_JIS
From: "Jarno Elovirta" <jarno@xxxxxxxxxxxxxx>
Date: Thu, 2 Nov 2000 17:20:41 -0400 (EST)
Hip hei!

I'm outputing Shift-JIS encoded documents from my XSTL engine and trying use
Unicode characters in the Private Use and CJK Compatibility Ideographs
areas, more precisely U+F89F - U+F9AF. See example processing below:

[c:\temp]type test.xsl
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"

<xsl:output method="html"
            doctype-public="-//W3C//DTD Compact HTML 1.0 Draft//EN" />

<xsl:template match="/">
      <title />


[c:\temp]msxml test.xsl test.xsl
<!DOCTYPE html PUBLIC "-//W3C//DTD Compact HTML 1.0 Draft//EN"><html>
<META http-equiv="Content-Type" content="text/html; charset=Shift_JIS">

[c:\temp]xalan_dist -in test.xsl -xsl test.xsl -q
<!DOCTYPE HTML PUBLIC "-//W3C//DTD Compact HTML 1.0 Draft//EN">

So, as you can see, when i use MSXML3, the characters i mentioned before
come out as character entity references, but when i use Xalan (or Oracle's
processor), they come out as question marks (when viewed with a Japanese
text editor or other Shift-JIS enabled programs). Which one is correct

Jarno - Happy Happy Joy Joy Division

 XSL-List info and archive:

Current Thread