[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Xsl:param from PHP to html
Thanks David for this, and you are correct in your interpretation of what I was trying to do. But there is still a problem and I think it relates to my use of the header <html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version='1.0'> I don't think the parameter gets passed from PHP using this header. With <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html"/> The parameter DOES get passed. However, my HTML is not recognised. I know this is basic stuff, but could someone explain to me how to use the latter header and get the html tags recognised outside of a template? Many thanks Alan Hale > -----Original Message----- > > This is a FAQ, $SORTBY is a global parameter so it will have > the same value throught the run so > <xsl:sort select = "$SORTBY" > is sorting on an equal value, so no sort at all happens. > > XSL variables hold values not unevaluated expressions. > You probably meant to select an element with name equal to > teh string value of $SORTBY, which is > > <xsl:sort select = "*[name()=$SORTBY]" > > David > > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 269.4.0/760 - Release Date: 13/04/2007 20:04
|
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
|