This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

select distinct


I have an xml file

<document>
 <title>Title</title>
 <section name="summary">
  <title>Executive Summary</title>
  <para>Some text goes here</para>
 </section>
 <section>
  <title>Detail</title>
  <para>Some more text goes here <ref name="a1" />.  some more text</para>
 </section>
 <section>
  <para>More text <ref name="a2" /> <ref name="a1" /></para>
 </section>
</document>

I would like to get all the unique <ref /> elements. 

<ref name="a1" />
<ref name="a2" />

I am not sure what my xsl should look like to accomplish this.

Thanks
Noel


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]