[xsl] first element of type x in a group

Subject: [xsl] first element of type x in a group
From: "Ben Skelton" <ben_skelton@xxxxxxxxxxxxx>
Date: Tue, 21 Aug 2001 12:54:16 -0700

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@xxxxxxxxxxxxx

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


Current Thread