Subject: RE: [xsl] Starting loop at another node From: Robert Seber <robert.seber@xxxxxxxxxxxxxxxxxx> Date: Tue, 17 Apr 2001 16:55:34 +0100 |
Simply say <xsl:for-each select="Whatever[4]"> This will make the fourth child the current node. > -----Original Message----- > From: Tanzila Mohammad [mailto:tmohammad@xxxxxxxxxxxxxxxxxxxx] > Sent: Tuesday, April 17, 2001 4:34 PM > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > 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()>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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Starting loop at another node, Tanzila Mohammad | Thread | RE: [xsl] Starting loop at another , Robert Seber |
[xsl] Starting loop at another node, Tanzila Mohammad | Date | RE: [xsl] Starting loop at another , Robert Seber |
Month |