RE: [xsl] counting specific nodes

Subject: RE: [xsl] counting specific nodes
From: David.Pawson@xxxxxxxxxxx
Date: Wed, 15 Oct 2003 15:39:43 +0100

> -----Original Message-----
> From: J.Pietschmann [mailto:j3322ptm@xxxxxxxx]
> Sent: 15 October 2003 14:57
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] counting specific nodes
> james walker wrote:
> > given the xml
> > <vs>
> > <ve pos="1"></ve>
> > <ve pos="1.1"></ve>
> [snip]
> >
> > and given that i am starting on a node with pos=1 (or 2 or 
> 3....), how 
> > do i count the nodes which have position with 3 dots only (e.g. 
> > pos= 

Mike showed this a week or two back.
Change the . to a '' using translate, then count the difference in string
If its three its valid.
  then count the total of these 'valid' nodes?

Somewhat different usage, same principles I think?



NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged. If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system. 

RNIB endeavours to ensure that emails and any attachments generated by 
its staff are free from viruses or other contaminants. However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments. 

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent 
those of RNIB. 

RNIB Registered Charity Number: 226227 


 XSL-List info and archive:

Current Thread