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

Removing/not traversing syntactic duplicates?

Subject: Removing/not traversing syntactic duplicates?
From: Joel Riedesel <jriedese@xxxxxxxxx>
Date: Thu, 24 Aug 2000 16:23:03 -0600
Removing/not traversing syntactic duplicates?
I've got some XML that I'm trying to process bits and pieces out of.

In one section I've got a node: X:

  <X>
   <XStuff>
     <Context>
       ...
     </Context>
     ...
   </XStuff>
   <XStuff>
     <Context>
       ...
     </Context>
     ...
   </XStuff>
  </X>

I've got a piece of XSL like this (from within a template that matches on X):

<xsl:apply-templates select="XStuff/Context[1]"/>

Now, the problem is that it's possible for some of those Context objects
in the different XStuff of X to be syntactically identical (and some
may not be).  I really only want to do the apply templates on non-duplicated
nodes of this set (syntactically speaking).

(Hope I was unambiguous here!)

(Basically, I'm looking at all my X's and finding out what Contexts they
reference - without duplicates.)

Can someone offer a suggestion for this?

Thanks,

Joel

-- 
Joel Riedesel
Jnana Technologies Corporation
mailto:jriedese@xxxxxxxxx


 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.