[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|