xsl-list
[Top] [All Lists]

Re: [xsl] The identity transform and attributes

2008-01-22 00:32:21
On 21/01/2008, Tony Graham 
<Tony(_dot_)Graham(_at_)menteithconsulting(_dot_)com> wrote:
     <xsl:template
match="attribute::*|text()|comment()|processing-instruction()">

Why not 'child::text()', etc., here if it made it more understandable
above?


Very good point.

I think one of the reasons that XSLT has such a reputation for being
difficult, is the syntax.

Take node(), for instance. Apart from the issue of the parentheses,
which make it look like a function, it looks so much like it will
match any node.
Even after 8 years of on-and-off (mostly off) XSLT programming, I
still have to remind myself  that it only matches nodes on the child
axis.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--