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

Re: zap some node

Subject: Re: zap some node
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 27 Sep 2006 15:11:37 +0100
re zap
 > but  i need  with the same xslt to zap some node such as this :
TipoEsenzione how to  to this :

Just add a template that does whatever you want to do for that element
  (which is nothing in this case)

  <xsl:template match="cup:TipoEsenzione"/>

Also you can do the same thing for attributes, 

No need to do this:

            <xsl:if test="@idCUP">

Just apply templates to teh attributes and have a template for attribute
that you need to treat differently:

<xsl:stylesheet version="1.0" 
    <xsl:strip-space elements="*"/>
    <xsl:output indent="yes"/>
    <xsl:template match="@*|*">
            <xsl:apply-templates select="@*|node()"/>

  <xsl:template match="cup:TipoEsenzione"/>
  <xsl:template match="@idCUP">
     <xsl:attribute name="idCup">
       <xsl:value-of select="@idCUP"/>


Current Thread


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.
First Name
Last Name
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.