Re: XML_Transformer, showing PHP-Code
| From: | Stig S. Bakken | Date: | Sat, 18 Jan 2003 19:30:09 +0000 |
| Subject: | Re: XML_Transformer, showing PHP-Code | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-12584@lists.php.net to get a copy of this message | ||
On Tue, 2003-01-14 at 22:42, Tobias Schlitt wrote:
> Hi y'all!
>
> First i'd like to point out, that i tried XSLT for about 2
> weeks and got no acceptable result from that. After that i
> tried now the XML_Transformer for about 1 day and the result is
> much more than acceptable. It's really great. Thanks to
> Sebastian and Kristian. Pretty good work.
>
> Okay, but this is not the only reason for writing (indeed it
> would be one *g*). I tried outputing some PHP-Code wich i would
> like to add as examples to the files i create. E.g. i'd like to
> write something like:
>
> <code>
> <?php echo "foo"; ?>
> </code>
>
> and the result should be like:
>
> <?php echo "foo"; ?>
>
> But this did not work in any way. I tried replacing the "<" and
> ">" with "<" and ">". I even tried to write only
> "?php"
> and "?" instead of "<?php" and "?>" and replacing that with
>
> "<?php" and "?>". But this doesn't work either.
>
> Can somebody tell me, how to solve this?
>
> Thanks a lot to you all!
<code>
<![CDATA[<?php echo "foo"; ?>]]>
</code>
- Stig