954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Open XSL File

Hi,

I have a problem, when I test my XSL file from Dreamweaver it opens and transforms the XML document into a temporal HTML file.

But if I create a Hyperlink in another web page that links to the file.xls it does not transforms the XML document it just shows the HTML code.

How can I actually link to the XSD file.

For instance, the Main page has a link to Catalog, Catalgo is a xsl file, which transform and XML document into an HTML file. The thing is that if I put catalog.xsl in the href attribute of the hyperlink it takes me to that page but it does not transforms the XML.

Thanks in advance.

MrCapuchino
Junior Poster in Training
98 posts since Jan 2011
Reputation Points: 10
Solved Threads: 0
 

Point the link to the XML file (not the XSL).
The top of the XML should look SIMILAR to the following (you need to provide the correct path to your file):

<?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="Catalog.xsl"?>


Also, at the top of theXSL file make sure you declare the xsl namespace:
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

hielo
Veteran Poster
1,124 posts since Dec 2007
Reputation Points: 116
Solved Threads: 244
 

Hi,

I solved the problem, it was the SCRIPT tag problem, I had to put a comment between the opening and closing tags.

Thanks

MrCapuchino
Junior Poster in Training
98 posts since Jan 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You