PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3131

*** shadow/3131 Wed Aug 15 06:36:47 2001
--- shadow/3131.tmp.11131       Wed Aug 15 06:36:47 2001
***************
*** 0 ****
--- 1,78 ----
+ +============================================================================+
+ | xsl:output method=text implementation of international char encoding       |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3131                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.2.x                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Major                    OS/Version: Windows NT/2K           |
+ |     Priority: Other                     Component: Xalan                   |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                     |
+ |  Reported By: [EMAIL PROTECTED]                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ I have upgraded from Xalan 1.2.2 to 2.1.0 and started to encounter the 
+ following which differs in implementation.
+ 
+ The following code and data illustrate a simple test case.
+ 
+ Env Settings are:
+ JDK1.3.0 from Sun
+ NT4.0SP6a with regional setting to Turkish
+ 
+ Have tested with 2.2.D9 also.
+ 
+ //----- old method (1.2.2)
+ 
+ XSLTProcessor processor = XSLTProcessorFactory.getProcessor(new XercesLiaison
+ ());
+ StylesheetRoot ssroot = processor.processStylesheet(new XSLTInputSource(new 
+ FileInputStream("test.xsl")));
+ ssroot.process(processor,new XSLTInputSource(new FileInputStream
+ ("test.xml")),new XSLTResultTarget(System.out));
+ 
+ //----- new method (2.1.0)
+ 
+ TransformerFactory m_Factory = TransformerFactory.newInstance();
+ Templates template = m_Factory.newTemplates(new StreamSource(new FileInputStream
+ ("test.xsl")));
+ Transformer transformer = template.newTransformer();
+ transformer.transform(new StreamSource(new FileInputStream("test.xml")), new 
+ StreamResult(System.out));
+ 
+ //----- test.xsl
+ 
+ <?xml version="1.0" encoding="ISO-8859-9"?> 
+ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
+ 
+ <xsl:output method="text" encoding="ISO-8859-9"/>
+ 
+ <xsl:template match="/">
+ <html>
+ <head>
+ <meta HTTP-EQUIV="pragma" CONTENT="no-cache"/>
+ <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-9"/>
+ </head>
+ <body>
+ <xsl:apply-templates select="ROOT"/>
+ </body>
+ </html>
+ </xsl:template>
+ 
+ </xsl:stylesheet>
+ 
+ //----- test.xml (the char is a turkish I with a dot on top)
+ 
+ <?xml version="1.0" encoding="ISO-8859-9"?>
+ <ROOT>Hello - �i</ROOT>
+ 
+ //----- output
+ 
+ Hello - &#304;i
+ 
+ //------ expected output (the char is a turkish I with a dot on top)
+ 
+ Hello - &#304;i

Reply via email to