• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

xsl and xslt

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What is the difference between .xsl file and .xslt file?
I know that xslt is the xsl language used for transformations. Xml file can be converted to another xml file or html file by writing transformation logic in xsl file. what is for .xslt file.
Thanks
Shoba
 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Those are just widely used conventions. The stylesheet file need not be named .xsl or .xslt
A XSLT processor like Xalan does not expect the stylesheet file to have any particular extension.
You could have a stylesheet in a file named stylesheet.abc and it work exactly the same as having a file named stylesheet.xsl or stylesheet.xslt
Hope this helps.
Shashank
 
Shoba Ramachandran
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Shashank, thanks for your reply.
But when open new file in xmlspy, it asks which file do you want to open....like .xsl or .xslt?
If I say .xsl file, it opens up a new window with this tags in default
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
</xsl:stylesheet>
If I say .xslt file, it opens up a new window with this tags in default
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl utput method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
</xsl:stylesheet>
Why is there difference it tags?
Thanks
Shoba
 
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks like xmlspy takes the xsl extension to mean that you may be dealing with Formatting Objects (FO) and Transforms while the xslt means just XSLT.
I would think the product documentation (hardcopy or online) would have this info.
[ May 02, 2002: Message edited by: John Wetherbie ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic