file.xml?lang=en

  • Thread starter =?ISO-8859-2?Q?Rafa=B3?=
  • Start date
M

Martin Honnen

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.
 
?

=?ISO-8859-2?Q?Rafa=B3?=

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.
Thanks, and in browser?
 
?

=?ISO-8859-2?Q?Rafa=B3?=

Rafa³ said:
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.
Thanks, and in the browser?, without the server-side page
 
M

Martin Honnen

Rafa³ said:
and in browser?

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.
 
?

=?ISO-8859-2?Q?Rafa=B3?=

Martin 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.
Very Thanks
 

Ask a Question

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.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,539
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top