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

Re: Re: Unexpected ('a', 'b')[fn:position()] result

Subject: Re: Re: Unexpected ('a', 'b')[fn:position()] result
From: "Rachel D. Basse" <honestrosewater@xxxxxxxxx>
Date: Wed, 7 Mar 2007 02:34:00 -0500
Re: Re:  Unexpected ('a'
>The function position() (you don't need to put "fn:" in front of it) >returns the position of the context node. The context changes within >the XPath expression to each node it is evaluating.

Haha, right, the context item changes when evaluating the sequence. Super. :P Thanks! 


<!-- ...setting some params for error checking and complaining. -->
<wt:param name="missingParamNames">
 <wt:for-each select="
  if ($do = ('change', 'remove')) then
  else if ($do = 'add') then
    ($fileName, $title, $type, $smellsLike)
  <!-- ================== Yay! ==================== -->
  <wt:variable name="position" select="wf:position()"/>
  <wt:sequence select="
   if (. = '') then

Stop the Forest Service from killing more wolves, bears, cougars, and other animals in the wild:

http://www.Care2.com  Free e-mail. 100MB storage.  Helps nonprofits. 

Current Thread


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.
First Name
Last Name
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.