Subject: Re: AW: [xsl] simple conditional looping From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 16 Aug 2004 11:26:20 -0400 |
> maybe a silly question, but why exactly do you need the ()? something > like //* with a predicate [] should be enough or not?
A predicate in an axis step just filters that step.
//*[position() < 50]
is /descendent-or-self::node/child::*[position() < 50]
so it gives you all element nodes in the document that have fewer than 49 older siblings.
On the other hand
(//*)[position() < 50]
is (/descendent-or-self::node/child::*)[position() < 50]
which gives you the first 49 element nodes in the document.
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: AW: [xsl] simple conditional lo, David Carlisle | Thread | Re: AW: [xsl] simple conditional lo, Keyur K |
Re: [xsl] interdependant dropdown l, greyson . smith | Date | RE: [xsl] Passing parameter into xs, Andrew Welch |
Month |