Re: [xsl] Is it legal to do <xsl:copy-of select="element/@attribute"/>?

Subject: Re: [xsl] Is it legal to do <xsl:copy-of select="element/@attribute"/>?
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Wed, 09 Feb 2011 09:43:40 +0000
I guess that the wise people who authored the spec didn't want to be
redundant

The XSLT 1.0 specification is often admired for its brevity, but it does leave many things unsaid. The 2.0 specs are often considered long-winded in comparison, but they do tend to cover the ground more comprehensively. In 2.0 you will find the rules here:


http://www.w3.org/TR/xslt20/#constructing-complex-content

In particular rule 9.

One of the changes in the 2.0 spec is that it tries hard to avoid temporal language, for example any suggestion that if you have two xsl:attribute instructions then they are executed in a particular order.

Michael Kay
Saxonica

Current Thread