first element of type x in a 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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format