File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Product and Other Certifications and the fly likes xsl and xslt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Product and Other Certifications
Bookmark "xsl and xslt" Watch "xsl and xslt" New topic
Author

xsl and xslt

Shoba Ramachandran
Ranch Hand

Joined: Mar 29, 2001
Posts: 68
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

Joined: Feb 21, 2001
Posts: 122
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


<b><br /><a href="http://mailto:tanksali@hotmail.com" target="_blank" rel="nofollow">Shashank Tanksali</a><br /><i><br />SCJP2,SCJD2,SCWCD<br />IBM Certified Developer - XML and Related Technologies<br />PMI Certified Project Management Professional<br /></i><br /></b>
Shoba Ramachandran
Ranch Hand

Joined: Mar 29, 2001
Posts: 68
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

Joined: Apr 05, 2000
Posts: 1449
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 ]

The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xsl and xslt