xsl:saint-augustine -- help me get to grips with XSLT
February 14, 2006 3:13 PM
Subscribe
xsl:saint-augustine -- help me get to grips with XSLT
I've been making this joke for a couple of years now. "Oh Lord, help me understand XSLT ... but not yet!".
But the time has come.
Part One: can someone help me find the best material online or in a book that made XSLT really fall into place for you? Particularly if you're a coder who was at first baffled by its syntax and kept trying to understand an XSL Template in terms of traditional programming concepts like "while" and "foreach" and "select * from foo where bar = baz". I figure that's the thing that's been holding me back. I'm trying to wrestle XSL into the stuff I already know and am comfortable with.
As an example, it drives me crazy that the code doesn't nest the way I expect it to. I want it to be like
while outerloop
while innerloop
while yetanotherloop
end
end
end
but XSLT does that "apply-templates" thing and you're roaming around the page looking for the next bit of code.
Part Two: when you imagine XSLT transformations happening in your mind's eye,
what does it look like? I'm a very visual person, and I've never really managed to get a vision which works for me of what's actually going on. I can "see" other programming languages working in my mind and it really helps. I'm hoping someone will post "XSLT is like using a ____ to do _____, you have to _____ or else you get _____" and I'll get an "Aha!" moment out of it.
posted by AmbroseChapel to computers & internet (15 comments total)
3 users marked this as a favorite
posted by jeb at 3:35 PM on February 14, 2006