file.xml?lang=en

Discussion in 'XML' started by =?ISO-8859-2?Q?Rafa=B3?=, Mar 13, 2005.

  1. How i use query in xml or xslt?
    Thanks
     
    =?ISO-8859-2?Q?Rafa=B3?=, Mar 13, 2005
    #1
    1. Advertising

  2. 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/
     
    Martin Honnen, Mar 13, 2005
    #2
    1. Advertising

  3. 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?
     
    =?ISO-8859-2?Q?Rafa=B3?=, Mar 13, 2005
    #3
  4. 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
     
    =?ISO-8859-2?Q?Rafa=B3?=, Mar 13, 2005
    #4
  5. 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/
     
    Martin Honnen, Mar 13, 2005
    #5
  6. 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
     
    =?ISO-8859-2?Q?Rafa=B3?=, Mar 13, 2005
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Harald Kirsch
    Replies:
    4
    Views:
    2,839
    Harald Kirsch
    Aug 31, 2004
  2. Maneesh
    Replies:
    2
    Views:
    10,654
  3. JPractitioner
    Replies:
    13
    Views:
    20,163
    Roedy Green
    Feb 24, 2006
  4. Replies:
    1
    Views:
    2,152
    Irmen de Jong
    Jun 22, 2004
  5. Replies:
    0
    Views:
    4,583
Loading...

Share This Page