OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] counting attributes

[ Lists Home | Date Index | Thread Index ]

Avinash Subramanya wrote:

>      How do I get a count of the number of attributes of an element?
> 
>      ex:
>      <Property prop1="val1" prop2="val2" />
> 
>      Count should give me 2.

count(Property/@*)

PS.I presume you are talking about XPath.
-- 
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS