This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
conditional processing
- To: xsl-list at mulberrytech dot com
- Subject: conditional processing
- From: "Kari M. Scott" <kmscott at pandora dot binc dot net>
- Date: Fri, 17 Mar 2000 11:11:43 -0600 (CST)
- Reply-To: xsl-list at mulberrytech dot com
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@berbee.com
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