Thi add new action-declaration in a <actions> element. Everything goes well, if there already is an action with the same name the XSLT doesn't create another, but this code is inside a xsl:for-each where I get new actions names from another XML. If tehre is duplicated name in this 'list' the code duplicate the action name (the key).
Subject:Creating duplicated KEY Author:James Durning Date:27 Oct 2006 01:51 PM
Problem of uniqueness of new keys:
I suggest using a technique called Muenchian grouping: (http://www.jenitennison.com/xslt/grouping/muenchian.html) which allows you to get each of the unique values for the new action-declarations.
Would need to see your code to customize it, but it'd look someone like this:
<xsl:key name="newActions" match="newAction" use="@name"/>