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

How do I pick the first three elements and ignore the rest?

Subject: How do I pick the first three elements and ignore the rest?
From: "Nic Williams" <nwilliam@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 3 Feb 1999 11:41:45 -0000
what are the three elements
I would like to pick the first three LI elements contained within a
HEADLINES section. I can get the first using first-of-any(). How do I get
all three though.

My XML would look something like:

<HEADLINES>
	<UL>
	<LI>Man Lands on Mars</LI>
	<LI>Moon rock is edible</LI>
	<LI>Space dust cloggs AC unit<LI>
	<LI>Splash down in English Channel</LI>
	<LI>...</LI>
	<LI>...</LI>
	<LI>...</LI>
	<LI>...</LI>
	</UL>
</HEADLINES>

If there is a better place for me to be asking these fairly basic questions
then please point me there. Is there a good easy to read reference - the WD
is a little heavy going and lacking in good examples.

Cheers,

Nic.
________________________________________________________________________
Nicolas Williams                Internet: nwilliam@xxxxxxxxxxxxxxxxxxxxx
Internet Specialist                Phone: 44-(0)1223-325285 (direct)
Schlumberger Cambridge Research         : 44-(0)1223-315576
High Cross                           Fax: 44-(0)1223-311830
Madingley Road                    Mobile: 44-(0)410 726330
Cambridge                           http://www.cambridge.scr.slb.com
CB3 OEL                             http://www.slb.com

Microsoft Certified Systems Engineer (MCSE)
Microsoft Certified Professional + Internet (MCP + Internet)

'To err is human. To really mess something up takes a computer.'


 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.