Subject: RE: Re: producing php with xslt
From: "Michael Fitzgerald" <mike@xxxxxxxxxx>
Date: Wed, 25 Jul 2001 13:50:01 -0700
|
C:\Temp>cat php.xsl
<xsl:transform version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:template match="php-echo">
<xsl:processing-instruction name="php">echo '<xsl:value-of
select="text()"/>';</xsl:processing-inst
ruction>
</xsl:template>
</xsl:transform>
C:\Temp>saxon php.xml php.xsl
<?php echo 'Hello world!';?>
C:\Temp>
-Mike Fitzgerald
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of flourish
Sent: Wednesday, July 25, 2001 12:01 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Re: producing php with xslt
My output is still missing the second question mark. The following works:
<xsl:template match="php-echo">
<xsl:processing-instruction>
echo '<xsl:value-of select="text()"/>';
?</xsl:processing-instruction>
</xsl:template>
But why doesn't that second question mark appear automaticly?
> Try:
>
> <xsl:template match="php-echo">
> <xsl:processing-instruction>echo '<xsl:value-of
> select="text()"/>';</xsl:processing-instruction>
> </xsl:template>
>
> and see what happens. Note also that it's 'instruction' not
'instructions.'
>
> Good luck,
>
> -Mike Fitzgerald
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of flourish
> Sent: Wednesday, July 25, 2001 10:32 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: producing php with xslt
>
>
> Thanks everyone for the help, but I still seem to be having a problem.
> I modified the xslt to this:
> <xsl:template match="php-echo">
> <xsl:processing-instructions>
> echo '<xsl:value-of select="text()"/>';
> </xsl:processing-instructions>
> </xsl:template>
>
> But my output is:
> <?php
> echo 'Whatever the text in the php-echo node was.';
> >
>
> Where's my closing question mark?
>
> Thanks again, 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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE: Re: producing php with xslt, (continued)
- Michael Kay - Thu, 26 Jul 2001 05:53:25 -0400 (EDT)
- Jeni Tennison - Thu, 26 Jul 2001 11:15:14 -0400 (EDT)
- David Carlisle - Thu, 26 Jul 2001 03:53:35 -0400 (EDT)
- Michael Kay - Thu, 26 Jul 2001 05:36:53 -0400 (EDT)
- Michael Fitzgerald - Wed, 25 Jul 2001 16:54:00 -0400 (EDT) <=
- David Carlisle - Thu, 26 Jul 2001 03:44:38 -0400 (EDT)
- Michael Kay - Thu, 26 Jul 2001 05:06:07 -0400 (EDT)
- Clapham, Paul - Wed, 25 Jul 2001 15:40:36 -0400 (EDT)
|
|