Subject: RE: [xsl] producing php with xslt From: "Michael Fitzgerald" <mike@xxxxxxxxxx> Date: Mon, 23 Jul 2001 14:25:29 -0700 |
Matt, Try: C:\Temp>cat php.xml <?xml version="1.0"?> <php-echo>Hello world!</php-echo> C:\Temp>cat php.xsl <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="php-echo"> <xsl:processing-instruction name="php">echo '<xsl:value-of select="text()"/>'</xsl:processing-instr uction> </xsl:template> </xsl:transform> C:\Temp>saxon php.xml php.xsl <?xml version="1.0" encoding="utf-8"?><?php echo 'Hello world!'?> C:\Temp> -Mike -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of flourish Sent: Monday, July 23, 2001 1:39 PM 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] producing php with xslt, flourish | Thread | Re: [xsl] producing php with xslt, James Melton |
RE: [xsl] producing php with xslt, Clapham, Paul | Date | Re: [xsl] producing php with xslt, Matthew Smith |
Month |