Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 3rd, 2010, 09:45 AM
Authorized User
 
Join Date: Nov 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default XSLT 1.0 vs XSLT 2.0

Hi,
This might be a very dumb question but I will ask it anyway. A colleague of mine who is a very good programmer told me "XSLT 2.0 specification is a dead end specification and that it is a better idea to stick to version 1.0".

What are your opinion about this? Is this total baloney or is there something true about this? Could some of you let me know what you think about this?

I am using Xalan XSLT 1.0 successfully, but I see some features in XSLT 2.0 which could be very nice to have. Is it worth to switch?

Thanks for your comments.
 
Old November 3rd, 2010, 09:49 AM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

If you use the Java version of Xalan then you can easily switch to XSLT 2.0 by using Saxon 9 (http://saxon.sourceforge.net/).
I don't know why your colleague claims XSLT 2.0 is a dead end, it has several implementations and work is one the way for XSLT 3.0.
The only dead end seem to be browsers which all only implement/support XSLT 1.0. But as a Xalan user you do not seem to do client-side/browser/side XSLT anyway.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
 
Old November 3rd, 2010, 09:51 AM
Authorized User
 
Join Date: Nov 2010
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is correct. I use Java, everything I do with XSLT is happening on the Server Side. Thanks
 
Old November 3rd, 2010, 10:02 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Total baloney is an understatement but censorship prohibits my real thoughts. There are excellent XSLT 2.0 processors and the stage is set for version 2.1 and beyond. Only if you stick with Microsoft's home grown libraries are you prevented from using anything more than version 1.0.
__________________
Joe
http://joe.fawcett.name/
 
Old November 3rd, 2010, 10:28 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

XSLT 2.0 doubles what you can do with the language and doubles the speed of doing it. The only reason to stick with XSLT 1.0 (and it's a genuine reason for some people) is if you can't get hold of an XSLT 2.0 processor for your chosen environment - e.g. within the browser.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Another question about generating XSLT with XSLT danblick XSLT 2 July 16th, 2009 08:40 PM
General XSLT Questions in the XSLT Forum jminatel BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 0 March 31st, 2008 07:50 PM
Can XSLT read DTD/schema and Generate XSLT.. ROCXY XSLT 1 November 6th, 2006 09:39 AM
dynamic xslt -> xslt creation namespace problem jkmyoung XSLT 2 July 15th, 2006 12:42 AM
xslt with an xslt outputfile alleycat XSLT 4 February 20th, 2006 09:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.