[xsl] Wikipedia on XSLT

Subject: [xsl] Wikipedia on XSLT
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Fri, 7 Aug 2009 11:17:00 +0100
There's a push on xml-dev at the moment to sort out the XML page on
Wikipedia which is going well apparently, so maybe we should have a
look at the XSLT page :)

There doesn't appear to be much in the way of XSLT 2.0 on there -
should that have its own page?  And Saxon doesn't get mentioned apart
from in the title of an article and in the link to Kernow...  which
can't be right!

Also the top "See Also" link points to an "XSLT elements" page:


which is pretty poor in general, but contains this example:

<xsl:template match="//input">
<xsl:variable name="type" select="@type"/>
<xsl:variable name="name" select="@name"/>
<xsl:if test="$type='text' or $type='password' or $type='radio' or
		<xsl:when test="$type='radio'">
                    <xsl:if test="not(preceding-sibling::input[@type='radio'])">
                        <select name="{@name}">
                        <xsl:for-each select="../input[@name=$name]">
                                <option value="{@value}">

...and that's loaded with faults.

If nothing else I think we should remove that link, and ensure XSLT
2.0 gets mentioned right at the top, with an obvious link to Saxon
(and other 2.0 processors)... and then add examples for the most
common use cases - copying all but 1 element, grouping etc  (and the
many others that I cant think of now)

Anyone available/interested to do this?

Andrew Welch
Kernow: http://kernowforsaxon.sf.net/

Current Thread