[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: producing php with xslt

Subject: RE: producing php with xslt
From: "Michael Fitzgerald" <mike@xxxxxxxxxx>
Date: Mon, 23 Jul 2001 15:34:25 -0700
xsl php tag
It's not a PI, but it looks like a PI. You can use
xsl:processing-instruction to produce the desired output, nonetheless.
Otherwise, you could use CDATA sections, which might be compared to goto
statements in C. The Kernighan and Ritchie description of goto is apt for
CDATA sections: "infinitely-abusable." [1]

-Mike

[1] Kernighan, Brian W. and Dennis M. Ritchie, /The C Programming Language/,
Prentice-Hall, 1978, p. 62.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Matthew Smith
Sent: Monday, July 23, 2001 2:41 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  producing php with xslt


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:  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:  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



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.