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

Re: embedded php in xslt

Subject: Re: embedded php in xslt
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 4 Nov 2003 11:11:20 GMT
php xsl

> 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

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.