ID:               30218
 User updated by:  robert dot dahlin at jerntorget dot se
 Reported By:      robert dot dahlin at jerntorget dot se
 Status:           Open
 Bug Type:         XSLT related
 Operating System: Linux Slackware 2.6
 PHP Version:      5.0.1
 New Comment:

Version info from phpifo() just in case.

Zend Engine v2.0.1
Zend Extension Manager v1.0.2
---------------
xml
XML Support  active  
XML Namespace Support  active  
libxml2 Version  2.5.11  
---------------
xsl
XSL  enabled  
libxslt Version  1.0.33  
libxslt compiled against libxml Version  2.5.11  
EXSLT  enabled  
libexslt Version  1.0.33  
---------------


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

[2004-09-24 13:10:08] robert dot dahlin at jerntorget dot se

Description:
------------
xsltApplyOneTemplate is always shown if i have an   followed by
for example <xsl:if test="object"> in an xsl file.

xsltApplyOneTemplate: if was not compiled in (if can for example be
apply-template or some other method), i've found that the problem seems
to be an &nbsp; directly before the <xsl:if> or what ever "method" is
causing the problem.

One way to get thru the problem is to use span tags around &nbsp;  like
: <span>&nbsp;</span> but I don't think that it should be nessesary to
do that.


Reproduce code:
---------------
  <td>&nbsp;<xsl:apply-templates select="object"/></td>

Expected result:
----------------
<td>(the value of object in xml)</td>


Actual result:
--------------
Warning: xsltApplyOneTemplate: if was not compiled in
/www/include/xslttest.php on line 19
<td>(the value of object in xml)</td>



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


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

Reply via email to