November 26th, 2001, 03:37 PM
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?
November 28th, 2001, 07:44 PM
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
November 29th, 2001, 09:17 AM
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.
Some people, when confronted with a problem, think “I know, I'll use regular expressions.” Now they have two problems. - Jamie Zawinski, in comp.lang.emacs