I’ll need another of these 46-hour days to review them, though…
W3C has issued the XML 1.1 recommendation, received with…mixed feelings by the XML community.
Elliotte Rusty Harold thinks everybody should stay with XML 1.0, unless you’re developing a system exclusively for a local Amharic-language newspaper in Addis Abeba where everybody including the IT staff speaks Amharic (his words).
My goddaughter does, or rather did speak Amharic, as she’s not using it much today. Anyway I don’t think we’ll be doing such a project soon. So I guess I’ll follow the above advice ;-)
XSLScript looks much cooler than plain XSLT to write, but it doesn’t seem to be widely used.
Here’s a discussion among famous people about an abbreviated syntax for XSLT.
Linus has some opinions as well.
Antonio asks for more advice on
xsl-list. The replies roughly range from “ignore Linus” to “maybe people have been using the XML hammer for too many nails”, with an interesting sidetrack on “to swear or not to swear”.
Oleg Dulin adds a few thoughts on his weblog.
After writing lots of XSLT lately, I must agree.
I like XSLT as a transformation language. XPath in particular brings a lot of power to template matches and document tree queries. But the XML-based syntax is a pain, even more when you have to write some string manipulation or similar glue code.
Current dream this side of my screen would be to write Python code inside XSLT templates. I’m sure dingoes have dreams too…
Tim Bray clarifies this somewhat confusing issue: XML elements can have no namespace, but there’s no “blank” namespace.
Hmm..I don’t like counting lines of code. Maybe even more in XSLT than in java code, I’m always focused on readability, even if it means slightly longer code or a few more classes or templates.
Also, I like to keep usage of xsl:choice and xsl:if to the bare minimum in XSLT – using multiple templates for different cases is often clearer.
So, here’s my version of the same thing – I know Steven’s version is most probably a quick hack, but if Tom needs to be “converted” to XSLT, better show him the cleanest possible thing. This version can certainly be improved too, any takers?