[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

zap some node

Subject: zap some node
From: Davide Antoni <davide.antoni@xxxxxxxxxxx>
Date: Wed, 27 Sep 2006 16:01:23 +0200
taranto cup 2006
Hi to all.
i have this input :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<cup:RISPOSTA_INFORMAZIONI_ASSISTITO DataOra="200609251535" idCUP="2" xmlns="http://regione.campania.it/schemas/cup" xmlns:cup="http://regione.campania.it/schemas/cup">
<cup:ASSISTITO>
<cup:CodFiscale>TRNCMN78S24F839Y</cup:CodFiscale>
<cup:Nome>CARMINE</cup:Nome>
<cup:Cognome>TARANTO</cup:Cognome>
<cup:Sesso>M</cup:Sesso>
<cup:DataNascita>19781124</cup:DataNascita>
<cup:TipoEsenzione>3</cup:TipoEsenzione>
<cup:Indirizzo>VIA</cup:Indirizzo>
<cup:Domicilio>NAPOLI</cup:Domicilio>
<cup:Citta>NAPOLI</cup:Citta>
<cup:Provincia>NA</cup:Provincia>
</cup:ASSISTITO>
</cup:RISPOSTA_INFORMAZIONI_ASSISTITO>
</soapenv:Body>
</soapenv:Envelope>



And i apply this xslt for change a name of an'attribute, but i need with the same xslt to zap some node such as this : TipoEsenzione how to to this :
xslt:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:cup="http://regione.campania.it/schemas/cup">
<xsl:strip-space elements="*"/>
<xsl:output indent="yes"/>
<xsl:template match="*">
<xsl:copy>
<xsl:copy-of select="@*[name()!='idCUP']"/>
<xsl:if test="@idCUP">
<xsl:attribute name="idCup">
<xsl:value-of select="@idCUP">
</xsl:value-of>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>




</xsl:stylesheet>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.