xsl-list
[Top] [All Lists]

Re: [xsl] Unique attribute values

2008-01-10 09:40:09
Sean Tiley wrote:
Hi there,
I have the following structure in an XML file

<root>
 <file name="c:\test.java">
  <error line="4" message="Message1" severity="2"/>
  <error line="67" message="Message2" severity="4"/>
 </file>
  <file name="c:\code.java">
  <error line="2" message="Message1" severity="2"/>
  <error line="54" message="Message2" severity="4"/>
  <error line="122" message="Message1" severity="2"/>
  <error line="124" message="Message2" severity="4"/>
 </file>
</root>

What I want to do is the following.
I want a list of the unique values for the message attribute
I then want to output attribute value and the number of times it
appears in the file.

Do you want to use XSLT 1.0 or 2.0?

--

        Martin Honnen
        http://JavaScript.FAQTs.com/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>