[ http://issues.apache.org/jira/browse/XALANJ-1904?page=comments#action_12312959 ]
Brian Minchau commented on XALANJ-1904: --------------------------------------- Helion, I think this might be a duplicate of issue XALANJ-2087. You've attached Test.java, but you've cut/paste the two files that it uses, test.xml and test.xsl and I'm a little worried about a further cut/paste from this issue into my own test.xsl. Something might get corrupted along the way. Please attach test.xsl so we can try to verify that the patch in 2087 fixes your problem, or verify it yourself. Thanks. > Pb Transformation symbols ISO-8859-1 in XSLTC > --------------------------------------------- > > Key: XALANJ-1904 > URL: http://issues.apache.org/jira/browse/XALANJ-1904 > Project: XalanJ2 > Type: Bug > Components: XSLTC > Versions: 2.6 > Environment: Operating System: Windows NT/2K > Platform: PC > Reporter: helion > Assignee: Xalan Developers Mailing List > Attachments: Test.java > > Xalan 2.6 transforms some symbols (like é or è) generated in script tag > when i > use XSLTC. > In a test's project in java, i transform a file text.xml with text.xsl and > generate test.html. > The files test.xml and test.xsl are described here: > -------------------------------------------------------------------------------- > ------ > File test.xml : > <?xml version="1.0" encoding="ISO-8859-1"?> > <page></page> > -------------------------------------------------------------------------------- > ------ > File test.xsl : > <?xml version="1.0" encoding="ISO-8859-1"?> > <xsl:stylesheet version="1.1" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > <xsl:output method="html" version="1.0" indent="yes" encoding="ISO-8859-1" > media-type="text/html"/> > <xsl:strip-space elements="*"/> > <xsl:template match="/"> > <html> > <head> > <script language="Javascript1.3"> > // on génère une ligne de commentaire javascript > </script> > </head> > <body> > on génère du texte > </body> > </html> > </xsl:template> > <xsl:template match="text()"/> > </xsl:stylesheet> > -------------------------------------------------------------------------------- > ------ > when i use Xalan in XSLT (interpreted), the file text.html is correct. The > accents é a è aren't modified in script tag > <html> > <head> > <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> > <script language="Javascript1.3"> > // on génère une ligne de commentaire javascript > </script> > </head> > <body> > on génère du texte > </body> > </html> > -------------------------------------------------------------------------------- > ------ > But when i use Xalan in XSLTC (compiled), the file text.html isn't correct. > The > accents é a è are modified in entity codes. > <html> > <head> > <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> > <script language="Javascript1.3"> > // on génère une ligne de commentaire javascript > </script> > </head> > <body> > on génère du texte > </body> > </html> > -------------------------------------------------------------------------------- > ------ > How can i do to generate correct code in script tag ? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
