[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Problem:Counting specific type of nodes lying in

Subject: Re: Problem:Counting specific type of nodes lying in between two nodes in a tree
From: Sanjukta Mitra <sanmit27@xxxxxxxxx>
Date: Mon, 7 Feb 2005 09:03:32 -0800 (PST)
sanjukta mitra
Thanks a tonne Joris.With your help, the code is now
working.I'll take the cue on the element names too.
Regards
Sanjukta
--- Joris Gillis <roac@xxxxxxxxxx> wrote:

> Tempore 16:03:59, die 02/07/2005 AD, hinc in  
> xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Sanjukta
> Mitra  
> <sanmit27@xxxxxxxxx>:
> 
> >   If the current node is ptr6 this should return 4
> > Herebs the piece of code that is not working:
> >
> > <xsl:param name="Cnt"
> >
>
select="count(ancestor::decisiontree_answer[@answer='no'][ancestor::decisiontree_question[.=$stop_question]>
> > 0])"/>
> 
> Hi,
> 
> Try this code:
> <xsl:param name="Cnt"  
>
select="count(ancestor::decisiontree_answer[@answer='no'][ancestor::decisiontree_question=$stop_question])"/>
> 
> Btw, why are those element names so long? The root
> element is named  
> 'decisiontree', so why actually repeat that string
> over and over again?
> 
> 
> regards,
> -- 
> Joris Gillis
>
(http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
> "In the land of the blind, the one-eyed man is king"
> 
> 



		
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page  Try My Yahoo!
http://my.yahoo.com 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.