[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] embedded php in xslt
Subject: Re: [xsl] embedded php in xslt From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 4 Nov 2003 11:11:20 GMT |
> Thanks but I am producing html, so therefore I need to use well your application is wrong to want a ? at the end then. in the reference syntax for SGML (and hence HTML) it is clear that a trailing ? is part of teh character data of teh PI, not part of the markup syntax. If placing a ? at the end of each PI is tiresome you could make yourself a named template that called xsl:processing-instruction and added the ?, although teh syntax for passing a parameter to a template being what it is, this will probably end up being more verbose than typing that ? :-) <xsl:template name="php"> <xsl:param name="x"/> <xsl:processing-instruction name="php"> <xsl:value-of select="$x"/>?</xsl:template> <xsl:call-template name="php"> <xsl:with-param name="x">stuff</xsl;with-param> </xsl:call-template> David -- http://www.dcarlisle.demon.co.uk/matthew ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] embedded php in xslt, Michael Olszynski | Thread | RE: [xsl] embedded php in xslt, Michael Kay |
Re: [xsl] Interpretaion of grouping, David Carlisle | Date | [xsl] Setting doctype-system attrib, Graham Hannington |
Month |