XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] element census tool?


> 2. Copy the following expression (and a variation for attribute names) 
> into the XPath 2.0 editor and then press 'save' to add it to the saved 
> expression list:
>        distinct-values(for $n in //* return local-name($n))
>

The variable here seems ugly: why not

distinct-values(//*/local-name())

Or if you want distinct paths

distinct-values(//*/string-join(ancestor-or-self::*/local-name(),'/'))

Michael Kay


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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

Copyright 1993-2007 XML.org. This site is hosted by OASIS