|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-11-08 14:13 UTC] tony2001@php.net
[2006-11-16 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 18:00:01 2025 UTC |
Description: ------------ call to xslt_process() transforms non-breaking space incorrectly. Reproduce code: --------------- $xslt = xslt_create(); $xmlFile = "/../data/pictures.xml"; $xslFile = "picturePage.xsl"; xslt_set_encoding($xslt, 'UTF-8'); $parameters = array ( 'linkKey' => $_GET['page'] ); $transformed = xslt_process($xslt, $xmlFile, $xslFile, NULL ,NULL, $parameters); if ($transformed) { echo $transformed; } else { echo "Error Transforming pictures.xml by applying picturePage.xslt into employee.html"; echo "<BR>Error description " . xslt_error($xslt); echo "<BR>Error code " . xslt_errno($xslt); } xslt_free($xslt); <---------> XSL: <xsl:template match="picture" mode="link"> <xsl:element name="a"> <xsl:attribute name="class">RegLink</xsl:attribute> <xsl:attribute name="href">picture.html?picture=<xsl:value-of select="../@path"/>/<xsl:value-of select="@file"/></xsl:attribute> <xsl:apply-templates select="." mode="thumb"/> </xsl:element>  </xsl:template> Expected result: ---------------- formatted transformation with non-breaking space between images. Actual result: -------------- transformation with "?" instead of non-breaking space.