[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Using URL Variable in XSL (with PHP)
Leisha Cook wrote:
I am not sure of the magic that PHP can perform for you, but shouldn't you be setting the parameter before starting the process? You declare a parameter but never set it. Perhaps it should be done like this in PHP: $proc->setParameter("id", $_GET['id']); [...] <xsl:if test="faculty/person[@id] = $id"> [...] This should be [@id = $id], as Trish pointed out. The difference being, "a person (with an attribute 'id') with a content that matches the value of $id" (your code) and "a person which has an 'id' attribute with a value that matches the value of the 'id' parameter". Hth, Cheers, -- Abel Braaksma -- http://www.nuntia.com
|
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
|