|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: embedded php in xslt
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








