This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
first element of type x in a group
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] first element of type x in a group
- From: "Ben Skelton" <ben_skelton at habaneros dot com>
- Date: Tue, 21 Aug 2001 12:54:16 -0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
I was wondering if anyone would know how to express the following...
<page>
<command></command>
<info></info>
<field>
<x></x>
<y></y>
</field>
<field>
<x></x>
<y></y>
</field>
</page>
When I am in x i want to figure out if I am in the first <field>. Unfortunately
I can't use <xsl:if test="position() > 1"> while in <x> as the first field
element is actually at position 4. An easy one I know, but I haven't been able
to wrap my head around it. Any help would be greatly appreciated.
Thanks,
_Ben
---------------------------------
Ben M. Skelton
Habanero
604.709.6201 ext. 107
bskelton@habaneros.com
Visit us on the web at our new website: http://www.habaneros.com
and check out our latest client success stories and career opportunities.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list