On 21/01/2008, Tony Graham <Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx> 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.
|