You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "helion (JIRA)" <xa...@xml.apache.org> on 2005/09/05 14:34:33 UTC
[jira] Commented: (XALANJ-1904) Pb Transformation symbols ISO-8859-1 in XSLTC
[ http://issues.apache.org/jira/browse/XALANJ-1904?page=comments#action_12322660 ]
helion commented on XALANJ-1904:
--------------------------------
I confirm to you that this bug is fixed in Xalan-Java version 2.7.0
> 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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org