#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Location
    Miami
    Posts
    2
    Rep Power
    0

    Question 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
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2001
    Posts
    7
    Rep Power
    0
    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
  4. #3
  5. No Profile Picture
    Python Prophet
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    Amersfoort, The Netherlands
    Posts
    45
    Rep Power
    14
    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

IMN logo majestic logo threadwatch logo seochat tools logo