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

Re: Eliminating duplicate nodes

Subject: Re: Eliminating duplicate nodes
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Sun, 13 Oct 2002 01:00:23 +0200
xml duplicate nodes
Hi Mac,

you must tell us, how you define "duplicate nodes". In your XML the following snippet is obviously duplicate:

>       <panel id="selection">
>         <label id="selection">Select the template type:</label>
>         <button id="download">Download New Templates</button>
>         <label id="detail"></label>
>       </panel>

But what is when one of the text nodes is different or the button has another id, but the rest is the same? Tell us the rules for identity.

Another question is what you are doing with <xsl:call-template/>. This often breaks normal XML tree processing.

Did you have already a look at http://www.jenitennison.com/xslt/grouping/muenchian.xml? Can you post a bit of your non-working code?

Regards,

Joerg

Mac Martine wrote:

Hi- I am trying creating an HTML page from XML/XSL. I want to eliminate duplicate nodes, and it seems like there are 2 ways to do this: using variables, and using keys. But I haven't gotten either to work yet. Could someone recommend which method would be better, and maybe help get me started on the right path?

Below is a little snippet of my xml:
I use <call-template> when I hit nodes of a certain name

Thanks-
 Mac

<desktop>
	  <label id="titleBar"></label>
      <panel id="selection">
        <label id="selection">Select the template type:</label>
        <button id="download">Download New Templates</button>
        <label id="detail"></label>
      </panel>
      <panel id="style">
        <label id="style">Choose your Slideshow style:</label>
        <label id="preview"></label>
      </panel>

	 <label id="titleBar"></label>
      <panel id="selection">
        <label id="selection">Select the template type:</label>
        <button id="download">Download New Templates</button>
        <label id="detail"></label>
      </panel>
      <panel id="style">
        <label id="style">Choose your Slideshow style:</label>
        <label id="preview"></label>
      </panel>
</desktop>


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.