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

RE: Matching node by its position

Subject: RE: Matching node by its position
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 16 Jul 2002 09:11:55 +0100
matching node
> 
> I want to match and select only the second student node. 
> 
> I tried something like this
> 
> <xsl:template match="student[1]">
> <xsl:template match="student[position()=1]">
> 
> Both of them did not work. IE5.x is showing a blank page with 
> some error at the status area of the browser.
> 
Both these are correct, though they will match the first student, not
the second. If they didn't work, then there is an error somewhere else
in your stylesheet.

Running stylesheets in IE5 is not a good way of debugging them: error
messages tend to be extremely cryptic and to disappear down black holes.
Try downloading Saxon, if only to get more sensible messages.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 



 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.