xsl-list
[Top] [All Lists]

Re: Pass variables through URL

2004-10-19 19:12:56
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(_at_)wolfgang-werner(_dot_)net>
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-----


--+------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--




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