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

conditional processing

Subject: conditional processing
From: "Kari M. Scott" <kmscott@xxxxxxxxxxxxxxxx>
Date: Fri, 17 Mar 2000 11:11:43 -0600 (CST)
find xsl if conditional processing
I'm using Cocoon.  In my XML file, I have the following query:
 <query connection="foo_connection" doc-element="STAFF" 
row-element="STAFFROW">
        select firstname, lastname, cat_name from staff_list, expert_list,
category where staff_id=staff_list.id AND category_id=category.id AND
category.id={@category}
 </query>

In my XSL file, I'd like to output a header once, then list all of the
results.  What I currently have generates the header for each row.  I'd
like to use <xsl:if>, but I can't find a condition that's different for
each row. I've generated count(), position(), and node() and they are the
same for every row.  The only item which is different is generate-id(),
but if I try to assign this to a variable, it simply gets re-assigned with
every row.  Is there a way to capture the row number?  Or, is there a way
I can capture only the first generate-id()? Any other suggestions?

Thanks,
-Kari

Kari M. Scott
Berbee
5520 Research Park Drive
Madison, WI  53711-5377
kmscott@xxxxxxxxxx
608.288.3000 ext. 1223
608.298.1223 direct dial
608.288.3037 fax

Berbee...putting the E in business


 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.