Solved

XML/XSLT

Posted on 2002-07-03
1
340 Views
Last Modified: 2013-11-18
I got php script that provide an XML and I want to have the possibility to append &xslfile=http://www.mydomain.com/mysxlfile.xsl

which would produce xhtml :)

They way I did it work only with IE since it only add the following lines:

     if (isset($xslfile))
     {
          print "<?xml-stylesheet type=\"text/xsl\" href=\"$xslfile\"?>\n\n";
     }

instead of actually transforming the XML into XHTML. so when user view the source, they see the XML, not html. The problem, is that this only works with IE since it is IE that do the transformation client side. I know there is a way to do the transformation server side, but I can't find it :(

Your help is appreciated!

0
Comment
Question by:kuist
1 Comment
 
LVL 2

Accepted Solution

by:
higijj earned 300 total points
ID: 7127533
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question