[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Comparing nodes in axis
> 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|