473,320 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

file.xml?lang=en

How i use query in xml or xslt?
Thanks
Jul 20 '05 #1
5 2050


Rafał wrote:
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.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #2
Martin Honnen wrote:


Rafał wrote:
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?
Jul 20 '05 #3
Rafał wrote:
Martin Honnen wrote:


Rafał wrote:
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

Jul 20 '05 #4


Rafał wrote:
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.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 20 '05 #5
Martin Honnen wrote:


Rafał wrote:
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.

Very Thanks
Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tristan Miller | last post by:
Greetings. I would like to produce a static multilingual website in XHTML. Is it possible to specify each web page in its own XML file, but have all of the translations encapsulated in that one...
10
by: mike | last post by:
regards: I use Jtidy (api) to translate a HTML file into a "XHTML file". But The "XHTML file" cannot be identified by nokia 6600. Do I miss something important? Or this is Jtidy's weakness or...
10
by: Frances Del Rio | last post by:
I'm doing a website in which in all html files I have an SSI directive, thus: <!--#include file="nav.html"--> but if I call same file from an html file in a sub-dir in webiste, thus: ...
1
by: Andy Britcliffe | last post by:
Hi I'm faced with the situation where I could have a single physical file that could contain multiplie XML documents e.g file.txt contains the following: <?xml version="1.0"...
1
by: elena.me | last post by:
Hola..estoy intentado abrir un fichero de excel en html, y desde mi equipo funciona bien...pero cuando subo el programa a servidor me abre una pantalla con codigo ascii. El codigo que tengo es:...
0
by: Robert Bevington | last post by:
Hi everyone, I've written some code that parses an XML file. The whole thing works correctly, but it's really slow. My example only has two elem_x elements. A normal XML file could theoretically...
1
by: John Wolff | last post by:
I’m trying to upload a file to a Web Service. I have to submit the file using a standard HTML form with the <input type=“file” /tag. Ultimately, we are submitting the file from a Flash 8...
3
NawazAhmed
by: NawazAhmed | last post by:
Hi, I was trying to insert new node and data into the xml file. Let say If I am inserting the data from page1 at line 4 and displaying the inserted data at line 5, its displaying it perfectly but...
6
Jacotheron
by: Jacotheron | last post by:
I need a PHP script that can upload music files (mp3). The script is for a home project I have started a while ago. I have a MySQL database of all the music that I have. Other computers on the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.