Forum Moderators: open
I have a webpage that searches a database which sends a reply back as an XML document. The XML Document is then saved as a variable ($page). This part I have no control of.
I would like to display the XML data using an XSL but don't understand how to tell the XML document about the XSL.
Any ideas gratefully received.
Brett
<?xml version="1.0"?>
<?xml-stylesheet href="mystylesheet.xsl" type="text/xsl"?>
The href attribute points to where you have your XSL stylesheet stored. You also have the option of using a cascading stylesheet instead.
<?xml version="1.0"?>
<?xml-stylesheet href="mystylesheet.css" type="text/css"?>