Subject: Re: [xsl] The identity transform and attributes From: "Colin Adams" <colinpauladams@xxxxxxxxxxxxxx> Date: Tue, 22 Jan 2008 07:31:47 +0000 |
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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] The identity transform an, Tony Graham | Thread | Re: [xsl] The identity transform an, Wendell Piez |
Re: [xsl] The identity transform an, David Carlisle | Date | [xsl] RE: how to sort a list of xpa, Philip Fearon |
Month |