Subject: Re: [xsl] xsl:for or xsl:repeat From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 24 May 2006 16:22:15 -0400 |
On 5/24/06, Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> wrote:At 01:21 PM 5/24/2006, I wrote: >This is all true, but there are times when <xsl:for-each >select="//node(position() <= $number)"/> is just so far within >the safety zone that a purist solution seems, well, limiting in its >own way (since then we end up having to document the recursion, etc.).
Okay, I admit that it has sometimes been said one must really document the position test as an artificial constraint on a count of iterations, as it really is so bizarre....
Just a quick, somewhat stupid question that probably won't come up in any real practicality. What if there is the need to iterate more than there are nodes in the document? My brain is a little scattered at the moment, but am I correct in that this solution limits by the number of nodes in the document. Granted, it would be rare case for this to happen. Just curious.
<signers> <signed/> <signed/> </signed>
<signers> <signed>Geo Washington, Esq</signed> <signed>Dr B Franklin</signed> </signers>
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: [xsl] xsl:for or xsl:repeat, Jon Gorman | Thread | Re: [xsl] xsl:for or xsl:repeat, David Carlisle |
Re: [xsl] xsl:for or xsl:repeat, Wendell Piez | Date | Re: [xsl] xsl:for or xsl:repeat, David Carlisle |
Month |