Making Friends with XSL

Sarah O'Keefe / News1 Comment

I have a pattern of learning things The Hard Way. That is, get a book, dive in, and just do it. Eventually, some order emerges from the chaos, and one day, it all starts to make sense. This approach has failed once or twice — my ill-fated attempts to learn Perl come to mind.

When I needed to learn XSL a few years back, I expected something like the Perl experience — a language that was unintuitive, annoying, and occasionally painful. To my surprise, I discovered that I actually like XSL!

The XSL language is build on templates. You define a processing template for each element in your XML source file. This means that you can build up your XSL transformation a little bit at a time. You can start with the easy search and replace stuff and move up to more challenging issues, such as building hyperlinks from cross-references, creating tables of contents, and sorting indexes.

In September, I will be teaching our first Transforming XML Content with XSL class. The class will build up just as I’ve described, starting with the easy stuff and moving up to rather complex transformation requirements. We will focus on things that need to be done for publications: paragraphs, inline elements, inline tables of contents, navigation, indexes, and attractive formatting.

I’m interested in feedback on the syllabus.

About the Author

Sarah O'Keefe

Twitter

Content strategy consultant and founder of Scriptorium Publishing. Bilingual English-German, voracious reader, water sports, knitting, and college basketball (go Blue Devils!). Aversions to raw tomatoes, eggplant, and checked baggage.

One Comment on “Making Friends with XSL”

  1. I think this is a good approach – starting with some basics to create a foundation of knowledge, then moving into the more difficult transformations. Also good that you’ve included a section on testing and troubleshooting. The class looks very useful!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.