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

RE: Xsl:param from PHP to html

Subject: RE: Xsl:param from PHP to html
From: "Alan Hale" <alan.hale@xxxxxxxxxxx>
Date: Sat, 14 Apr 2007 13:01:11 +0100
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

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.