Subject: RE: [xsl] Comparing nodes in axis From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Fri, 17 Dec 2004 21:00:03 -0000 |
> However, in my second example, > > ancestor::menu = (//menu)[$pos] > > i can not do > > (count(ancestor::menu|(//menu)[$pos])=1) > > but if my understanding of the union operator is correct, i can make > > (count(ancestor::menu|(//menu)[$pos])=(count(ancestor::menu)) > > Right? Yes. 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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Comparing nodes in axis, António Mota | Thread | RE: [xsl] Comparing nodes in axis, António Mota |
Re: [xsl] Comparing nodes in axis, Geert Josten | Date | RE: [xsl] Saxon Serializing and COn, Michael Kay |
Month |