Subject: Re: [xsl] number of child nodes in xml and their names From: Florent Georges <lists@xxxxxxxxxxxx> Date: Wed, 21 Nov 2007 20:13:55 +0100 (CET) |
"Nistala, Anu" wrote: > Is there a way to find out the number of nodes Yes. The way depends on your definition of "node." You can use: $parent/count(node()) If you want to count child elements instead, use: $parent/count(*) > and the corresponding names of all the child nodes under > a specified parent? If I understand correctly, you want all the dinstinct names of the child element of an element? Try: dinstinct-values(*/name(.)) Regards, --drkm _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] number of child nodes in xml , Nistala, Anu | Thread | Re: [xsl] Iterating recursivly on a, Andrew Welch |
[xsl] number of child nodes in xml , Nistala, Anu | Date | [xsl] creating nested structure usi, Andreas Peter |
Month |