dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: Using multiple XSL's with a single XML Document

  1. #1
    Join Date
    Mar 2009
    Posts
    3

    Question Using multiple XSL's with a single XML Document

    I have a single XML document. I have a stylesheet applied to it:

    <?xml-stylesheet type="text/xsl" href="home.xsl"?>

    I have stored all the information needed in the single XML document. In the style sheet home, I have two images. Is it possible to place a link or somthing similar to that on the images, so that once clicked on the style sheet used will change?
    I also appologise if there is a previous about this, but i couldn't find anything about it.

    Cheers
    Last edited by jabbatehhutt; 03-03-2009 at 11:46 AM.

  2. #2
    Do you have access to any server-side capabilites? (PHP, ASP, etc..)

  3. #3
    Join Date
    Mar 2009
    Posts
    3
    I have looked at that, is there an easier way? It needs to be accomplished within a certain amount of time, I'm being tested on it at Uni.

  4. #4
    Join Date
    May 2007
    Posts
    288
    Are you allowed to use javascript to execute the transformation? Eg see:
    http://www.w3schools.com/xsl/xsl_client.asp

    Modify the transformation function to take the xsl's filename.
    When the button is clicked, call the transformation function with a different xsl filename argument.

  5. #5
    Join Date
    Mar 2009
    Posts
    3
    Thanks very much, but we cannot use javascript. Is there any other way. If not, i'll just try to use multiple XML's with a single XSL per sheet.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles