This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: producing php with xslt
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] producing php with xslt
- From: "Clapham, Paul" <pclapham at core-mark dot com>
- Date: Mon, 23 Jul 2001 14:18:42 -0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
I don't know much about php, or why what you show there is problematic, but
isn't that an XML processing instruction you are trying to output? If so,
why not use this:
<xsl:processing-instruction name=php>echo '<xsl:value-of
select="text()"/>';</xsl:processing-instruction>
PC2
-----Original Message-----
From: flourish [mailto:msmith@dork.com]
Sent: July 23, 2001 13:39
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] producing php with xslt
I'm having problems producing php with xslt. I'll illustrate what I'm
trying to do with a simple example. I think it should be pretty self
explanatory. The <?php and ?> tags are php opening and closing tags.
********XML FRAGMENT*************
<php-echo>Hello world!</php-echo>
********XSLT FRAGMENT*************
<xsl:template match="php-echo">
<?php
echo '<xsl:value-of select="text()"/>';
?>
</xsl:template>
********PRODUCED PHP FRAGMENT*************
<?php
echo 'Hello world!';
?>
I think the problems I'm having are centered around the use of <? as the
opening php tag.
Thanks, Matt
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list