Helpful Information
 
 
Category: Programming Languages More
How to save a file as xsl?

I created an xsl sheet. The only thing that I'm having trouble with is saving it as such. Are you supposed to just save it with .xsl extension?

Anybody help.

Thnx

All you have to do is name the XSL file with the .xsl extension and reference it in the XML document with the below processing instruction:
<?xml-stylesheet type="text/xsl" href="filename.xsl" ?>

Be sure to put this at the top of the page before any tags. Best place is after the XML declaration but before your first tag

Yep, you're right, but you should refer to your XSL parser for info, because some want to have the XSL stylesheet specified on the command line, such as Sablotron for Win32.