ID:               16993
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Bogus
 Bug Type:         Sablotron XSL
 Operating System: Windows 2000
 PHP Version:      4.2.0
 New Comment:

To better explain, here is an example source:

<?
$xml = <<< END
<?xml version="1.0" encoding="ISO-8859-2"?>
<ROOT>
<IMPORTANT>Very important � � � </IMPORTANT>
</ROOT>
END;

$xsl = <<<END
<?xml version="1.0" encoding="ISO-8859-2"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">
<xsl:output method="html"/>
<xsl:template match="ROOT">
  <B><xsl:value-of select="IMPORTANT"/></B>
</xsl:template>
</xsl:stylesheet>
END;

$arguments = array('/_xml' => $xml,'/_xsl' => $xsl);
$xh = xslt_create();
$result = xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL,
$arguments);
echo $result;
?>

And, I think, the good result is: <B>Very important � � �</B>
But I always get: <B>Very important ö ü é</B>


Previous Comments:
------------------------------------------------------------------------

[2002-05-03 10:00:40] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".


------------------------------------------------------------------------

[2002-05-03 09:47:53] [EMAIL PROTECTED]

Possible bug in xslt_process()

If in the source xml code are characters with ascii code greater than
127, for example some national characters (�, �, ...), they will not be
displayed correctly in the result after the transformation. Instead the
character I get two strange characters. For a specified source
character (>127) I always get specified characters. Of course, in the
xml tag I use the correct encoding attribute, for example ISO-8859-2.

Thanks.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=16993&edit=1

Reply via email to