Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xsl and xslt

 
Shoba Ramachandran
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • 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
 
Shashank Tanksali
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic