[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: zap some node s and change attribute
Please try the following stylesheet:
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" indent="yes" /> <xsl:template match="node() | @*"> <xsl:copy> <xsl:apply-templates select="node() | @*" /> </xsl:copy> </xsl:template> <xsl:template match="*[local-name() = 'RICHIESTA_INFORMAZIONI_ASSISTITO']"> <RICHIESTA_INFORMAZIONI_ASSISTITO xmlns="http://regione.campania.it/schemas/cup"> <xsl:copy-of select="@*[not(local-name() = 'idCup')]" /> <xsl:attribute name="idCUP"><xsl:value-of select="@idCup" /></xsl:attribute> <ASSISTITO> <CodFiscale><xsl:value-of select="*[local-name() = 'ASSISTITO']/*[local-name() = 'CodFiscale']" /></CodFiscale> </ASSISTITO> </RICHIESTA_INFORMAZIONI_ASSISTITO> </xsl:template> </xsl:stylesheet> I think above is probably the best way to solve this problem. But I would be happy to see any better code. On 10/17/06, Davide Antoni <davide.antoni@xxxxxxxxxxx> wrote: HI to all -- Regards, Mukul Gandhi
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|