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

first element of type x in a group

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

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

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.