[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

removing duplicate nodes

Subject: removing duplicate nodes
From: "B. Tommie Usdin" <btusdin@xxxxxxxxxxxxxxxx>
Date: Wed, 18 Jul 2001 18:49:45 -0400
duplicate cyst
>From: "Uslu, Cihan Y (MED)" <Cihan.Uslu@xxxxxxxxxx>
>To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Subject: HELP:removing duplicate nodes
>Date: Wed, 18 Jul 2001 11:21:39 -0500



>Hi;
>I have a XML document as following:
>--------------------------------
><glossary>
>	<glossterm>
>		<TERM>Cyst</TERM>
>		<DEFN TargetUser="FE">fluid- filled (echo-free) with
>well-defined walls and posterior acoustic enhancement</DEFN>
>	</glossterm>
>	<glossterm>
>		<TERM>Cyst</TERM>
>		<DEFN TargetUser="FE">fluid- filled (echo-free) with
>well-defined walls and posterior acoustic enhancement</DEFN>
>	</glossterm>
>           <glossterm Language="English" Revision="1.0"
>ProprietaryClass="A" CourseNum="US506" OriginatingGroup="LS"
>Owner="Ultrasound Training">
>		<TERM>Anechoic</TERM>
>		<DEFN TargetUser="FE">refers to a structure that
>transmits ultrasound without
>						reflecting sound back to
>its source.</DEFN>
>	</glossterm>
>	<glossterm Language="English" Revision="1.0"
>ProprietaryClass="A" CourseNum="US506" OriginatingGroup="LS"
>Owner="Ultrasound Training">
>		<TERM>Echolucent</TERM>
>		<DEFN TargetUser="FE">no echoes</DEFN>
>	</glossterm>
>            <glossterm>
>		<TERM>Cyst</TERM>
>		<DEFN TargetUser="FE">fluid- filled (echo-free) with
>well-defined walls and posterior acoustic enhancement</DEFN>
>	</glossterm>
>
>	<glossterm Language="English" Revision="1.0"
>ProprietaryClass="A" CourseNum="US506" OriginatingGroup="LS"
>Owner="Ultrasound Training">
>		<TERM>Heterogenous</TERM>
>		<DEFN TargetUser="FE">different textures</DEFN>
>	</glossterm>
>         ......
>...
>
></glossary>
>
>----------------------------------------
>
>I want my output to be;
>---------------------------------------------
>Cyst: fluid- filled (echo-free) with well-defined walls and posterior
>acoustic enhancement
>Anechoic: refers to a structure that transmits ultrasound without
>reflecting sound back to its source
>Echolucent: no echoes
>Heterogenous: different textures
>-----------------------------------------------
>
>With my XSL scipt I get everything, including duplicate node with their
>text nodes included. If there is a duplicate node and the text node is
>same I dont want it in my output (if the text node is different then, I
>want it to be shown) How can I do that?
>Thank you for the help.
>
>Cihan


-- 
======================================================================
B. Tommie Usdin                        mailto:btusdin@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com  
17 West Jefferson Street                           Phone: 301/315-9631
Suite 207                                    Direct Line: 301/315-9634
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML              
======================================================================

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.