[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

jumping out of a loop revisited

Subject: jumping out of a loop revisited
From: "Tanzila Mohammad" <tmohammad@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 18 Apr 2001 12:21:57 +0100
 jumping out of a loop revisited
I am a bit confused. The problem is that I don't know the position of the
References and LinksForGenus children (may vary) for which different
processing will apply:

Grasslands is the parent.

I have 3 potential templates:

1. Is there a way I can say select all children except where child name is
LinksForTheGenus and References in the top for-each statement:
 <xsl:for-each select="Grasslands/*[position()&gt;3 and 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>

2.   <xsl:template match= "Grasslands/LinksForTheGenus/Link">
    <h3><a NAME="Label0045"></a><font color="#00007F"><i>Links for the
genus:</i></font></h3>
      <ul>
     <xsl:for-each select="Grasslands/LinksForTheGenus/Link">
      <li><font color="#008000"> <xsl:value-of
select="Address"/>;&#xA;<xsl:value-of select="Name"/> </font></li>
      </xsl:for-each>
      </ul>
     </xsl:template>

3.     <xsl:template match="Grasslands/References/Ref">
     <font color="#008000"> <xsl:value-of select="Name"/>&#xA; <xsl:value-of
select="Year"/>;&#xA;</font>
      </xsl:for-each>
      </xsl:template>


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.