xsl-list
[Top] [All Lists]

Re: Grouping / unique list with just XPath

2005-11-16 23:35:33
Hi Alexander,


in $variable-two. This is a dynamic XML input, and hence I can't use
keys (bye, Muenchian), and I need it as a node-tree that will be
passed to a named template for processing. Any clues? At all possible?

What do you mean by it being a dynamic XML input, and that you cannot
use keys, then?

If the first variable is a nodeset, the second one can be generated -
without Munchean - as the usual way:
select="$variable/member[(_at_)ref-id!=preceding-sibling::member/@ref-id]"
This will catch the first ref-id of each value.

Regards,
Ragulf Pickaxe :-)

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--