xsl-list
[Top] [All Lists]

Re: Problem:Counting specific type of nodes lying in between two nodes in a tree

2005-02-07 10:03:32
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(_at_)pandora(_dot_)be> wrote:

Tempore 16:03:59, die 02/07/2005 AD, hinc in  
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Sanjukta
Mitra  
<sanmit27(_at_)yahoo(_dot_)com>:

  If the current node is ptr6 this should return 4
Hereâ??s the piece of code that is not working:

<xsl:param name="Cnt"


select="count(ancestor::decisiontree_answer[(_at_)answer='no'][ancestor::decisiontree_question[.=$stop_question]>
0])"/>

Hi,

Try this code:
<xsl:param name="Cnt"  

select="count(ancestor::decisiontree_answer[(_at_)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"


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





                
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page ? Try My Yahoo!
http://my.yahoo.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>
--~--



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