This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Removing/not traversing syntactic duplicates?
- To: xsl-list at mulberrytech dot com
- Subject: Removing/not traversing syntactic duplicates?
- From: Joel Riedesel <jriedese at jnana dot com>
- Date: Thu, 24 Aug 2000 16:23:03 -0600
- Organization: Jnana Technologies Corporation
- References: <000001c00e14$c4b0a6a0$79e52ac2@rivcom.com>
- Reply-To: xsl-list at mulberrytech dot com
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