This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
deleting nodes that does not have attribute
- To: <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] deleting nodes that does not have attribute
- From: "Mohammed Rahman" <mrahman at planlinx dot com>
- Date: Thu, 9 Aug 2001 11:41:48 -0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
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