This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

deleting nodes that does not have attribute


Hi all,
I want to copy everything from the input xml except the nodes that does not
have any attibues.

Example:
<sid name="S02">
   <para name="P0.01">test 1</para>

   <para>
   </para>

   <para>abc</para>

   <para name="P0.02">test 2</para>

   <para>
   </para>

   <para>xyz</para>
</sid>

My out put should only have:
<sid name="S02">
   <para name="P0.01">test 1</para>
   <para name="P0.02">test 2</para>
</sid>

Please help!!

Regards,
Mohammed


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]