xsl-list
[Top] [All Lists]

RE: Comparing nodes in axis

2004-12-20 10:06:11
Altought i have allready structures like this, some-axis[true], i can?t quite
comprehend it.

In this case, how such statement should be translated to plain english?

"Give me the ancestors that are menus of the current node if the current node is
the same as the menu node at absolute position $pos"?

What i can't comprehend is the use of true/false. Suppose i have a expression
that has no term of comparation to the current node. How such a construct is
feasible?


Quoting Michael Kay <mike(_at_)saxonica(_dot_)com>:

Or you could do

xsl:variable name="P" select="(//menu)[$pos]"
xsl:if test="ancestor::menu[count(.|$P)=1]"

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
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>
--~--







O SAPO já está livre de vírus com a Panda Software, fique você também!
Clique em: http://antivirus.sapo.pt

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>