Also, in this example, the HTML tags outnumber the XSL tags, so it's less noisy to prefix the XSL tags instead of the HTML tags.
However, mei2ly.xl currently does not contain a single element outside the XSL namespace. We could therefore make http://www.w3.org/1999/XSL/Transform the default namespace and remove all the xsl: prefixes. This would e.g. turn this code:
As we don't produce any XML markup this could be done. But while coding I prefer having the prefixes. For a release: this would reduce the file size and sound worthwhile.
The
xsl:
prefix is especially useful when creating XML that isn't supposed to be prefixed, e.g. in a situation like:Also, in this example, the HTML tags outnumber the XSL tags, so it's less noisy to prefix the XSL tags instead of the HTML tags.
However, mei2ly.xl currently does not contain a single element outside the XSL namespace. We could therefore make
http://www.w3.org/1999/XSL/Transform
the default namespace and remove all thexsl:
prefixes. This would e.g. turn this code:into the IMO much more readable
Less brain capacity is required to remove noise. Both variants are actually equivalent.