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]

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@jnana.com


 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]