Specify a style sheet to be applied to an XML file from the URL

Discussion in 'XML' started by sid, Feb 25, 2005.

  1. sid

    sid Guest

    Is it possible to Specify a style sheet to be applied to an XML file
    from the URL. So that I can call the XML file from one location and
    have one transformation and also call it from another location and have
    a totally different location ?

    I want to do all of this and not change the XML file.

    Thanks

    Sid.
     
    sid, Feb 25, 2005
    #1
    1. Advertising

  2. sid wrote:

    > Is it possible to Specify a style sheet to be applied to an XML file
    > from the URL. So that I can call the XML file from one location and
    > have one transformation and also call it from another location and have
    > a totally different location ?
    >
    > I want to do all of this and not change the XML file.


    If you have server-side scripting (PHP, JSP, ASP etc) then you can
    certainly write one that takes two URLs as the arguments in the query
    string e.g.
    transform.jsp?xml=whatever.xml&xsl=whatever.xsl
    and then runs the transformation as needed.


    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Feb 26, 2005
    #2
    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. Rob Nicholson
    Replies:
    3
    Views:
    752
    Rob Nicholson
    May 28, 2005
  2. Kevin
    Replies:
    0
    Views:
    508
    Kevin
    Jul 31, 2003
  3. RC
    Replies:
    0
    Views:
    373
  4. Replies:
    0
    Views:
    521
  5. =?Utf-8?B?QW1pdA==?=

    Style Sheet not getting applied to content page

    =?Utf-8?B?QW1pdA==?=, Dec 10, 2006, in forum: ASP .Net
    Replies:
    8
    Views:
    507
    =?Utf-8?B?QW1pdA==?=
    Dec 11, 2006
Loading...

Share This Page