Re: [xsl] need help on trasformation

Subject: Re: [xsl] need help on trasformation
From: Davide Antoni <davide.antoni@xxxxxxxxxxx>
Date: Wed, 18 Oct 2006 09:43:02 +0200
Many Thanks Abel Braaksma
I go.

Abel Braaksma ha scritto:
How does your current xslt looks like and what is the problem with it? How is your current output different from the required output?

Lookup the thread with the caption "[xsl] Rename Some Node ans attribute" (by Davide Antoni, date 16 oct 2006). It contains the answer to the below question. In the replies are several options to deal with this (like: changing the namespace, making new nodes, renaming existing nodes/attributes to new ones etc).

-- Abel Braaksma


Davide Antoni wrote:

i have this input:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";>
<env:Body>
<cup:RISPOSTA_ELENCO_PRESTAZIONI xmlns:cup="http://regione.campania.it/schemas/cup";>
<cup:PRESTAZIONE>
<cup:CodMinisteriale>VISON</cup:CodMinisteriale>
<cup:CodInterno>2702</cup:CodInterno>
<cup:Denominazione>VISITA ONCOLOGICA</cup:Denominazione>
<cup:Branca>ONC</cup:Branca>
</cup:PRESTAZIONE>
</cup:RISPOSTA_ELENCO_PRESTAZIONI>
</env:Body>
</env:Envelope>


And i need this output:

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/";>
<env:Body>
<RISPOSTA_PRESTAZIONI_EROGABILI xmlns="http://services.standardcup.esel.it";>


        <PRESTAZIONE>
           <PreparazioneUtente>VISON</PreparazioneUtente>
           <idPrestazione>2702</idPrestazione>
           <Denominazione>VISITA ONCOLOGICA</Denominazione>
           <AvvertenzeOperatore>ONC</AvvertenzeOperatore>
        </PRESTAZIONE>


</RISPOSTA_PRESTAZIONI_EROGABILI>


  </env:Body>
</env:Envelope>

Note: i have many of PRESTAZIONE.
Many Thanks To ALL.

Current Thread