?
=?ISO-8859-2?Q?Rafa=B3?=
How i use query in xml or xslt?
Thanks
Thanks
Rafa³ said:How i use query in xml or xslt?
Thanks, and in browser?Martin said:Rafa³ said:How i use query in xml or xslt?
Where, on the server? Then as with other server side stuff you need to
make sure that server side processing is used so usually you need to use
a URL to some server side scripting page e.g.
whatever.php?lang=en&xml=file.xml
or
whatever.asp?lang=en&xml=file.xml
Then your server-side page reads out the query string e.g.
$_GET['lang']
in PHP or
Request.QueryString("lang")
in ASP, to find the lang parameteter. The server-side page then needs to
process the XML and pass in the lang for instance as a parameter to the
stylesheet.
Rafa³ said:Thanks, and in the browser?, without the server-side pageMartin said:Rafa³ said:How i use query in xml or xslt?
Where, on the server? Then as with other server side stuff you need to
make sure that server side processing is used so usually you need to
use a URL to some server side scripting page e.g.
whatever.php?lang=en&xml=file.xml
or
whatever.asp?lang=en&xml=file.xml
Then your server-side page reads out the query string e.g.
$_GET['lang']
in PHP or
Request.QueryString("lang")
in ASP, to find the lang parameteter. The server-side page then needs
to process the XML and pass in the lang for instance as a parameter
to the stylesheet.
Rafa³ said:and in browser?
Very ThanksMartin said:Some browsers (Mozilla, latest Opera) allow you to use script in XML
pages with the XHTML script element e.g.
<script xmlns="http://www.w3.org/1999/xhtml"
type="text/javascript"
src="file.js" />
that way you could embed script in your XML, read out
window.location.search
and parse that for parameters.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.