[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Fw: omitting empty elements when copying using
Subject: [xsl] Fw: omitting empty elements when copying using <xsl:copy-of
From: "Venkat Gyambavantha" <vgyambav@xxxxxxxxx>
Date: Thu, 19 Jun 2003 09:47:50 -0700

Hi:

I saw a solution to the above in tha archives but couldn't get it to work.
Any help is appreciated.

I have the following xml:

<root>
  <A>
    <a1>a1</a1>
    <a2 />
   <a3>a3</a3>
</A>
<B>
  <b1 />
 <b2 />
</B>
<C>
 <c1>c1</c1>
</C>
</root>

Is there a way i can get the following output (omitting empty elements)
using xsl:copy-of

<root>
  <A>
    <a1>a1</a1>
   <a3>a3</a3>
 </A>
 <C>
 <c1>c1</c1>
</C>
</root>

Thanks
Venkat




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread