[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: does position () work with old MS namespace
The following worked for me: <xsl:when test="context()[index() = 0]"> <!-- it is first child --> Eileen Eileen Kinley Calian > -----Original Message----- > From: Eric Taylor [SMTP:Eric.Taylor@xxxxxxxxxxxx] > Sent: Thursday, August 31, 2000 9:04 AM > To: 'XSL-List@xxxxxxxxxxxxxxxx' > Subject: does position () work with old MS namespace > > when I added a construction like the following to my XSL, I got an > unspecified error from IE5... is position() one of those things that isn't > supported by the old MS namespace? Upgrading to MSXML3 isn't an option > right now--is there any other way to treat the first item differently from > the rest? Thanks. Eric > <xsl:choose> > <xsl:when test="position() = 1"> > <!-- processing for first item --> > </xsl:when> > <xsl:otherwise> > <!-- processing for subsequent --> > </xsl:otherwise> > </xsl:choose> > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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
|