E
Emanuele D'Arrigo
Hi there!
I just spent the past couple of hours digging into the messages
of comp.text.xml trying to find a way to pass a parameter from
an URL to a XSL stylesheet.
I.e. having the url http://www.test.com/bla.xml?foo=1
I'd like to be able to create a variable in the xls file
named foo, whose content is 1.
From what I gather, this is not possible via xml/xsl alone.
Either something on the server provides the variable
or scripts (ie. javascript) have to be embedded in the files
loaded by the browser to retrieve that piece of information
from the url and somehow store it dynamically in the xml file
so that the xsl stylesheet can pick it up.
Do I stand correct? Did I miss something? Is there really no
easy way i.e. like PHP does, with $bla=$_GET['foo']? If that's
the case, I guess there's a good reason for having excluded
this important functionality, but it kind of defies me.
Anybody that could shed some light on this?
Any help would be appreciated.
Best regards,
Manu
I just spent the past couple of hours digging into the messages
of comp.text.xml trying to find a way to pass a parameter from
an URL to a XSL stylesheet.
I.e. having the url http://www.test.com/bla.xml?foo=1
I'd like to be able to create a variable in the xls file
named foo, whose content is 1.
From what I gather, this is not possible via xml/xsl alone.
Either something on the server provides the variable
or scripts (ie. javascript) have to be embedded in the files
loaded by the browser to retrieve that piece of information
from the url and somehow store it dynamically in the xml file
so that the xsl stylesheet can pick it up.
Do I stand correct? Did I miss something? Is there really no
easy way i.e. like PHP does, with $bla=$_GET['foo']? If that's
the case, I guess there's a good reason for having excluded
this important functionality, but it kind of defies me.
Anybody that could shed some light on this?
Any help would be appreciated.
Best regards,
Manu