Click to See Complete Forum and Search --> : attaching XSL file to XML file, not working?


planeboy747
04-01-2005, 03:37 PM
I've just completed the tutorial at:

http://www.w3schools.com/xsl/default.asp

I've saved the xml and xsl folder in the same folder and am now trying to attach the xsl file into the xml file locally so I can preview the xml before I publish. I'm using IE 6.0

Example:
<?xml-stylesheet type="text/xsl" href="C:\Documents\xml\casa_xsl.xsl"?>


However, it's not previewing. I'm getting XML page can not be displayed. Has anyone had problems with this before?


thanks

crh3675
04-01-2005, 06:06 PM
Try pulling from a relative url rather than a local one.
<?xml-stylesheet type="text/xsl" href="xml/casa_xsl.xsl"?>