Subject: RE: [xsl] Comparing nodes in axis From: António Mota <xptm@xxxxxxx> Date: Mon, 20 Dec 2004 17:06:11 +0000 |
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@xxxxxxxxxxxx>: > 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/ > > O SAPO ja esta livre de vmrus com a Panda Software, fique vocj tambim! Clique em: http://antivirus.sapo.pt
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Comparing nodes in axis, Michael Kay | Thread | RE: [xsl] Comparing nodes in axis, Michael Kay |
RE: [xsl] if result-document filena, Joe Fawcett | Date | Re: [xsl] if result-document filena, davidpbrown |
Month |