Salve ragazzi ho questo file xml:
<?xml version="1.0" encoding="UTF-8"?>
<flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schem...ebflow-2.0.xsd">
<start-state id="show">
<view-state xmlns="" id="Casa_Editrice">
<transition on="relazione1" to="Other_MultipleTopic" />
</view-state>
<view-state xmlns="" id="Casa_Editrice">
<transition on="Produce" to="Libro" />
</view-state>
<view-state xmlns="" id="Libro">
<transition on="Edito_da" to="Casa_Editrice" />
</view-state>
<view-state xmlns="" id="Other_MultipleTopic">
<transition on="relazione2" to="Casa_Editrice" />
</view-state>
</start-state>
<end-state id="end" />
</flow>
questo lo devo trasformare tramite un xsl in un'altro file xml che raggruppi tutti gli element node figli di un element node con attributo duplicato,cioè:
<?xml version="1.0" encoding="UTF-8"?>
<flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schem...ebflow-2.0.xsd">
<start-state id="show">
<view-state xmlns="" id="Casa_Editrice">
<transition on="relazione1" to="Other_MultipleTopic" />
<transition on="Produce" to="Libro" />
</view-state>
<view-state xmlns="" id="Libro">
<transition on="Edito_da" to="Casa_Editrice" />
</view-state>
<view-state xmlns="" id="Other_MultipleTopic">
<transition on="relazione2" to="Casa_Editrice" />
</view-state>
</start-state>
<end-state id="end" />
</flow>
Come si può fare questo? Grazie

Rispondi quotando