#30218 [Opn->Fbk]: xsltApplyOneTeplate warning c'se  

From: Date: Fri, 24 Sep 2004 12:24:38 +0000
Subject: #30218 [Opn->Fbk]: xsltApplyOneTeplate warning c'se  
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66633@lists.php.net to get a copy of this message
ID: 30218 Updated by: chregu@php.net Reported By: robert dot dahlin at jerntorget dot se -Status: Open +Status: Feedback Bug Type: XSLT related Operating System: Linux Slackware 2.6 PHP Version: 5.0.1 New Comment: Can you please provide a full XSLT and XML example and did you declare the &nbsp; entity? Previous Comments: ------------------------------------------------------------------------ [2004-09-24 13:13:45] robert dot dahlin at jerntorget dot se 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 --------------- ------------------------------------------------------------------------ [2004-09-24 13:10:08] robert dot dahlin at jerntorget dot se Description: ------------ xsltApplyOneTemplate is always shown if i have an &nbsp; 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

« previous php.bugs (#66633) next »