file.xml?lang=en

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rafa³

    file.xml?lang=en

    How i use query in xml or xslt?
    Thanks
  • Martin Honnen

    #2
    Re: file.xml?lang=e n



    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

    Comment

    • Rafa³

      #3
      Re: file.xml?lang=e n

      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?

      Comment

      • Rafa³

        #4
        Re: file.xml?lang=e n

        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]

        Comment

        • Martin Honnen

          #5
          Re: file.xml?lang=e n



          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

          Comment

          • Rafa³

            #6
            Re: file.xml?lang=e n

            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

            Working...