|
Subject: Removing/not traversing syntactic duplicates? From: Joel Riedesel <jriedese@xxxxxxxxx> Date: Thu, 24 Aug 2000 16:23:03 -0600 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: XSLT design good practice, Antony Scott | Thread | RE: XSLT design good practice, Matthew Bentley |
| How to embed xsl:value-of into html, Joan Shu | Date | RE: PDF, Yao, Di |
| Month |