"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!
Tworks:
<!-- ... error-checking and -complaining... -->
<wt:param name="missingParamNames">
<wt:for-each select="
if ($do = ('change', 'remove')) then
$fileName
else if ($do = 'add') then
($fileName, $title, $type, $smellsLike)
else
()
">
<!-- ================== Yay! ==================== -->
<wt:variable name="position" select="wf:position()"/>
<wt:sequence select="
if (. = '') then
$necessaryParamNames[$position]
else
()
"/>
</wt:for-each>
</wt:param>
Care2 make the world greener!
Stop the Forest Service from killing more wolves, bears, cougars, and other
animals in the wild:
http://go.care2.com/99055
http://www.Care2.com Free e-mail. 100MB storage. Helps nonprofits.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--