This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Starting loop at another node


Richard,

I added the code at the start i.e:

 <xsl:for-each select="Whatever[position()&gt;3]"> as opposed to
<xsl:for-each select="Whatever">
        <xsl:for-each select="*[text()]">
          <h3><font color="#00007f"><i><xsl:value-of
select="name()"/></i></font></h3>
           <p><font color="#008000"><xsl:value-of select="."/></font></p>
           </xsl:for-each>
          </xsl:for-each>

But it appears not to be entering the loop at all now - any suggestions.


-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Robert Seber
Sent: 17 April 2001 17:02
To: XSL-List@lists.mulberrytech.com
Subject: RE: [xsl] Starting loop at another node


Sorry, I meant:

<xsl:for-each select="Whatever[position()&gt;3]">

will select the nodes you require.  This is simpler than using xsl:when

> > -----Original Message-----
> > From: Tanzila Mohammad [mailto:tmohammad@entier-solutions.com]
> > Sent: Tuesday, April 17, 2001 4:34 PM
> > To: XSL-List@lists.mulberrytech.com
> > Subject: [xsl] Starting loop at another node
> >
> >
> > I am trying to start the loop at node 4 (child 4) of the
> > 'whatever' parent:
> > <Whatever> <child1>
> >            <child2>
> >            <child3>
> >            <child4>
> >            <child5>
> >            <child6>
> >                ....
> > </Whatever>
> >
> > I am using the following
> >
> >  <xsl:for-each select="Whatever">
> >            <xsl:choose>
> >            <xsl:when test="position()&gt;3"> <!-- Here is the
> > problem -->
> >          <xsl:for-each select="*[text()]"> <!--start of process-->
> >           <h3><font color="#00007f"><i><xsl:value-of
> > select="name()"/></i></font></h3>
> >            <p><font color="#008000"><xsl:value-of
> > select="."/></font></p>
> >            </xsl:for-each> <!--end of process-->
> >                 </xsl:when>
> >          </xsl:choose>
> >          </xsl:for-each>
> >
> > At the moment the display is not doing as I wish.
> >
> > Thanks.
> >
> > Tanz
> >
> >
> >
> >
> >  XSL-List info and archive:
> http://www.mulberrytech.com/xsl/xsl-list
> >
>

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]