xsl-list
[Top] [All Lists]

Fw: omitting empty elements when copying using <xsl:copy-of

2003-06-19 09:47:50
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



<Prev in Thread] Current Thread [Next in Thread>