now what I want to do is to replace in the table SCENARIO_NUMBER_ROM_BT1_SC3 with SCENARIO_NUMBER_ROM_BT3_SC4 because they are identical. I need to do this for all the identical SCENARIOS.A problem witch occurs here is that we do not now how many SCENARIO_STEP there are in an SCENARIO node and to find identical SCENARIOS evrey SCENARIO_STEP from one SCENARIO must be identical(have the same attributes) with the SCENARIO_STEP from the other SCENARIO. Do you have an ideea how to do this?
Subject:xml problem Author:Alberto Massari Date:09 Aug 2007 03:07 PM
unfortunately the only solution I could think of involves xsl:key using a user-defined function to built a unique key from the child nodes, but that is possible only using XSLT 2.0, that Stylus 4.5 doesn't support.
If you want to try it with the current version of Stylus (or just using Saxon 8 standalone), here it is: