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

Re: does position () work with old MS namespace

Subject: Re: does position () work with old MS namespace
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 1 Sep 2000 12:01:03 -0600 (MDT)
Re: does position () work with old MS namespace
> > Try using [1] instead of [position()=1] (just guessing)
> 
> Tried <xsl:if test="[1]">

Yeah that's not going to work. I should have clarified that you can only
use [1] when you're selecting nodes to process (as in apply-templates or
for-each), like /path/to/some/nodes[1] will be the node at position 1 from
among the set selected by /path/to/some/nodes.

If the position you want is relative to nodes that have already been
selected (the current node list, in the context)... then position() is
required. Perhaps MSXML has an alternative you can use. I'd check the docs
at msdn.microsoft.com.


 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.