Subject: Re: [xsl] Selecting the first node set From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 15 Aug 2006 10:36:59 -0400 |
Wendell Piez wrote:
> > (//Value)[1]
> I've started teaching /descendant::Value[1] as a more intuitive and > transparent solution to this little (but consequential) conundrum.
> It's also reassuring to newcomers who want a simple thing to be > simple
What you gain somewhere, you loose it elsewhere. For example in the simple "definition" of "//" (something like "it is identical to descendant::").
I think that to know the language, you have to know such subtleties. But of course, at the biginning, using a less error-prone alternative is best. And I think the abbreviate syntax is more intuitive and readable to the non-used eye.
Cheers, Wendell
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Selecting the first node , Florent Georges | Thread | Re: [xsl] Selecting the first node , Wendell Piez |
RE: [xsl] Selecting the first node , Wendell Piez | Date | Re: [xsl] Only first rows (after th, Wendell Piez |
Month |