tags:

views:

152

answers:

10

Hey all

Know a bit of XML but am struggling to get my head around XSL - just wondering if anybody knows of any good resources to get me up to par quickly. Websites or books etc.

Thanks in advance.

+2  A: 

There is always w3c

http://www.w3.org/standards/xml/

and I have always found this useful

http://www.w3schools.com/

kuroutadori
The above implies that w3schools is affiliated with W3C.
Jon Hanna
Ahh good point.
kuroutadori
+2  A: 

This book has great examples of using XSLT for many purposes and I've found it quite useful.

XSLT Cookbook

An easier starting point might be this book:

XSLT

I haven't actually read the second, and am not sure it gives more info than can be gotten the tutorials at http://w3schools.com, which are certainly worth looking at as others have suggested.

Don Roby
+1  A: 

Start with w3schools, they are good for beginners.

Stop looking at w3schools once you're a bit more comfortable, they aren't terribly reliable. They can steer you in the right direction at first, but can steer you wrong when you need an accurate reference on more obscure behaviour.

Jon Hanna
+2  A: 

Indespensable (even for the intermediate XSLT programmer) is Dave Pawson's XSLT FAQ:

http://www.dpawson.co.uk/xsl/sect2/sect21.html

It's kind of a best of from the XSLT mailing list with lots of questions every XSLT newbie will most likely encounter.

Boldewyn
+4  A: 

T U T O R I A L S:

  Some tutorials by Norman Walsh:

  1. On XSLT 1.0
  2. On XSLT 2.0/XPath 2.0

  Link to More tutorials


B O O K S

The classic books of Michael Kay on XSLT 1.0:

      XSLT: Programmer's Reference (Programmer to Programmer)

alt text

and on XSLT 2.0 / XPath 2.0

      XSLT 2.0 Programmer's Reference (Programmer to Programmer)

alt text

and

      XSLT 2.0 and XPath 2.0 Programmer's Reference (Programmer to Programmer) :

alt text



The books by Jeni Tennison:

      Beginning XSLT

alt text

      Beginning XSLT 2.0: From Novice to Professional

alt text

      XSLT and XPath On The Edge, Unlimited Edition

alt text



And Sal Mangano's book:

      XSLT Cookbook, Second Edition

alt text


Blogs:

  1. Michael Kay
  2. David Carlisle
  3. Jeni Tennison
  4. Dimitre Novatchev

S I T E S

  1. xsl-list archives
  2. Dave Pawson's XSLT-FAQ
  3. FXSL -- the Functional Programming Library for XSLT
Dimitre Novatchev
which of the books would you suggest as the best to start on?
Uncle
@Dan: Jeni Tennison's "Beginning ... " books target specifically beginners and there isn't a better teacher that her. If you plan to use XSLT 2.0 start immediately with XSLT 2.0 books.
Dimitre Novatchev
+1: Michael Kay's and Jeni Tennison's blogs are definitely good. Not familiar with their books, but they're bound to be also.
Don Roby
+1  A: 

Two good tutorials:

XSLT - http://www.zvon.org/comp/r/tut-XSLT_1.html#

XPath - http://www.zvon.org/comp/r/tut-XPath_1.html

Jorge
+1  A: 

At the risk of getting flamed for it, I'm going to suggest to just read the XSLT 1.0 spec. Note that in general I am not a a huge fan of the W3C specs, and typically I would not recommend anyone a W3C spec as a starting point, but I want to make an exception for XSLT: http://www.w3.org/TR/xslt

Having said that, if this is your first taste of XSLT, then here are some suggestion on the what to try first:

  • xsl:template with simple XPath selectors (match="foo", match="/foo", match="//foo", match="foo[@bar]")
  • xsl:value-of with similar simple XPath selectors
  • xsl:apply-templates
  • xsl:for-each
  • xsl:if
  • xsl:choose
  • xsl:text
  • named templates with xsl:template
  • xsl:template and xsl:apply-templates with mode
  • xsl:key
  • xsl:output variations

Once you got the hang of that, you will find that XSLT might not have given you everything you needed. In that case, you might want to check EXSLT (standard XSLT extensions supported by many implementations at http://exslt.org/. Also check http://www.jenitennison.com/, since it has a lot of useful information on how to achieve more complicated things. (Like grouping. Notoriously complicated in XSLT 1.0.)

And if that doesn't work out, you can always create your own extension elements or functions. With Xalan, it's not all that hard.

Wilfred Springer
+2  A: 

I found "Inside XSLT" by Steven Holzner helpful.

alt text

miti737
+1  A: 

Helpful Online tutorial

http://www.xmlfiles.com/xsl

Rajib