Subject:Replace a nodeset with another similar nodeset Author:Martin Wild Date:10 Nov 2008 05:44 AM
Hi,
I am fairly new to XSL. I have been given some XML and I need to make the xml hierarchical. Logically this seems fairly simple as to make it hierarchical is just a case of matching ids, but I have tried numerous methods to get the structure I need to no avail. I am now putting my ineptitude down to my inexperience.
This is just a snippet as the xml i need to convert carries on, but the above should give an indcation of what i require.
I need the node 'A' id 29 under the success node, below 'I' to be replaced by the 'A' node, the sibling of 'I'. This occurs throughout the document.
I am thinking this needs to be recursive but I am not entirely sure how to achieve this.