[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Pass variables through URL


Subject: Re: [xsl] Pass variables through URL
From: Jen Jiang <zhenjiang14221@xxxxxxxxx>
Date: Tue, 19 Oct 2004 19:12:56 -0700 (PDT)

I tried this solution but the variables still didn't
get passed to the PHP. This PHP file should generate a
bar chart whose values are passed through the url in
the xslt file. But I got a chart without bars, which
means the variables were not passed. 

This confuses me because in xslt file I can print the
variable values but in PHP it's empty.




--- "Werner, Wolfgang" <mail@xxxxxxxxxxxxxxxxxxx>
wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Jen,
> 
> I removed all the imports from your file to test it
> and it worked:
> ~             <img
>
src="./php/chart_age.php?age1=30&amp;age2=10&amp;age3=30&amp;age4=10&amp;age5=20&amp;age6=0&amp;age7=0&amp;age8=0">
> 
> Perhaps you are changing the context accidentally
> somewhere.
> I'd try to change the line
> 	<xsl:for-each select="ROOT">
> to
> 	<xsl:for-each select="/ROOT">
> to find the root element regardless of your context.
> 
> Wolfgang
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Cygwin)
> Comment: Using GnuPG with Thunderbird -
> http://enigmail.mozdev.org
> 
>
iD8DBQFBdMeqqjaicDyx8o8RArTtAJ9ukGErhyvsLtbaMQyMrgiBQSCKxgCeIyPm
> lbQ7ecp6+ky3CeqN8yhWB4s=
> =UQiN
> -----END PGP SIGNATURE-----
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Current Thread
Keywords