[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Matt, try Paul's idea. The way you had it, the XSLT processor would attempt to process the <?php as a processing intsruction, but if you use <xsl:processing-instruction name=php /> then the the XSLT processor will output "<?php?>" (or maybe "<?php>"...I'm not exactly sure) into your result document.
Either way, it's worth a try.
-Kevin
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] producing php with xslt
Subject: Re: [xsl] producing php with xslt From: "Kevin Nardi" <kevnardi@xxxxxxxxxxx> Date: Mon, 23 Jul 2001 15:19:07 -0700 |
Matt, try Paul's idea. The way you had it, the XSLT processor would attempt to process the <?php as a processing intsruction, but if you use <xsl:processing-instruction name=php /> then the the XSLT processor will output "<?php?>" (or maybe "<?php>"...I'm not exactly sure) into your result document.
Either way, it's worth a try.
-Kevin
From: "Matthew Smith" <msmith@xxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: Re: [xsl] producing php with xslt Date: Mon, 23 Jul 2001 17:40:33 -0400
That's the problem. It's not an xml processing instruction. It's a PHP
tag. XSLT is trying to use it as some kindof processing instruction, but it
shouldn't. I want it to output that literally into the result xml, which is
html and php.
----- Original Message ----- From: "Clapham, Paul" <pclapham@xxxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Monday, July 23, 2001 5:18 PM Subject: RE: [xsl] producing php with xslt
> 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@xxxxxxxx]
> Sent: July 23, 2001 13:39
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] producing php with xslt, Wendell Piez | Thread | [xsl] Re:Re: Problems still with el, Yang |
Re: [xsl] producing php with xslt, David Carlisle | Date | RE: [xsl] producing php with xslt, Michael Fitzgerald |
Month |