RE: (dsssl) Count and Display <week><question> tags. How?

Subject: RE: (dsssl) Count and Display <week><question> tags. How?
From: "N. Lundblad, Peter" <pni@xxxxxxxxx>
Date: Mon, 17 Sep 2001 17:43:33 +0200
> -----Original Message-----
> From: Jeremy Cowgar [mailto:jcowgar@xxxxxxxxx]
> To: DSSSList@xxxxxxxxxxxxxxxxxxxxxx
> Subject: (dsssl) Count and Display <week><question> tags. How?

> Here's what I have done:
> 
> <week>
> <question>How old are you?
> <answer>26</answer>
> </question>
> 
> <question>What color hair do you have?
> <answer>Brown</answer>
> </question>
> </week>
> 
> What I want to come out of DSSSL is:
> 
> Week 1
> [1] How old are you?
> 26
> 
> [2] What color hair do you have?
> Brown
> 
> Week 2
> ...etc...
> 
Did you check out the child-number procedure of SDQL (section 10.2.4.2 of
the DSSSL spec). Or:
(child-number (current-node))
gives you the child number of the current node. The child number of an
element is the number of the current element among the siblings with the
same gi (tag name).

Hope this helps,
//Peter

 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist

Current Thread