Rafa³ wrote:
[color=blue]
> How i use query in xml or xslt?[/color]
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?la ng=en&xml=file. xml
or
whatever.asp?la ng=en&xml=file. xml
Then your server-side page reads out the query string e.g.
$_GET['lang']
in PHP or
Request.QuerySt ring("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 wrote:[color=blue]
>
>
> Rafa³ wrote:
>[color=green]
>> How i use query in xml or xslt?[/color]
>
>
> 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?la ng=en&xml=file. xml
> or
> whatever.asp?la ng=en&xml=file. xml
> Then your server-side page reads out the query string e.g.
> $_GET['lang']
> in PHP or
> Request.QuerySt ring("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.
>
>[/color]
Thanks, and in browser?
Rafa³ wrote:[color=blue]
> Martin Honnen wrote:
>[color=green]
>>
>>
>> Rafa³ wrote:
>>[color=darkred]
>>> How i use query in xml or xslt?[/color]
>>
>>
>>
>> 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?la ng=en&xml=file. xml
>> or
>> whatever.asp?la ng=en&xml=file. xml
>> Then your server-side page reads out the query string e.g.
>> $_GET['lang']
>> in PHP or
>> Request.QuerySt ring("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.
>>
>>[/color]
> Thanks, and in the browser?, without the server-side page[/color]
Rafa³ wrote:
[color=blue]
> and in browser?[/color]
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 wrote:[color=blue]
>
>
> Rafa³ wrote:
>[color=green]
>> and in browser?[/color]
>
>
> 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.
>[/color]
Very Thanks
Comment