| 
 
Subject: Re: [xsl] How to strip off all empty elements from a XML doc? From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Wed, 07 Oct 2009 15:41:52 +0200  | 
Just another question:
Assume a XML doc contains (sub)elements with no content like
<myelem22></myelem22> or <myelem22/>
How can I strip off/delete recursively ALL these empty elements from the XML element tree (but keep all others)?
  <xsl:template match="@* | node()">
    <xsl:copy>
      <xsl:apply-templates select="@* | node()"/>
    </xsl:copy>
  </xsl:template>Martin Honnen http://msmvps.com/blogs/martin_honnen/
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] How to strip off all empt, G. Ken Holman | Thread | Re: [xsl] How to strip off all empt, David Carlisle | 
| Re: [xsl] How to strip off all empt, G. Ken Holman | Date | Re: [xsl] How to strip off all empt, David Carlisle | 
| Month |