XSLT Processing w/ Embedded PHP Strips Trailing '?'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If I run an xslt processor on some xml w/ PHP in it, the closing '?' gets removed:

<tr>
<td>Username:</td>

<?php if ($set != 0 && ($set & 0x01) == 0) {
        echo "<td bgcolor=\"#ff0000\">";
    } else {    
        echo "<td>";
    }
    echo "</td><input type=\"username\" name=\"username\" value=\"" . $username . "\"/>";
>

Would anyone happen to know why this is happening?

I'm using xmlproc from libxslt-1.1.11.

Thanks,
Mike

original XML input:

<tr><td>Username:</td>

<?php
        if ($set != 0 && ($set & 0x01) == 0) {
                echo "<td bgcolor=\"#ff0000\">";
        } else {
                echo "<td>";
        }
        echo "</td><input type=\"username\" name=\"username\" value=\"" . $username . "\"/>";
?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux