[xsl] How can I do the xsl file

Subject: [xsl] How can I do the xsl file
From: laurence_zhang <laurence_zhang@xxxxxxxx>
Date: Thu, 12 Jul 2001 15:55:52 +0800
Hi,

I want to do convert from :
<ITEM ID="12"  CAPTION="first">
		<AT ID="11" SET="5"/>
		<AT ID="22" SET="5"/>
		<VALUE>1</VALUE>
</ITEM>
<ITEM ID="13"  CAPTION="sec">
		<AT ID="22" SET="5"/>
</ITEM>
<ITEM ID="14"  CAPTION="thr">
		<VALUE>0</VALUE>
</ITEM>


to:


<ITEM ID="12"  CAPTION="first">
		<AT ID="22" SET="5"/>
		<VALUE>1</VALUE>
</ITEM>
<ITEM ID="13"  CAPTION="sec">
		<AT ID="22" SET="5"/>
</ITEM>

that means:
1.remove element ATTR which ID=11;
2.remove item that have no ATTR ID=22.

How can I do the xsl file ?
Thanks a lot.

______________________________________

===================================================================
ÐÂÀËÃâ·Ñµç×ÓÓÊÏä (http://mail.sina.com.cn)
¶©ÔÄÊÖ»ú¶ÌÐÅÍ·ÌõÐÂÎÅ£¬ÌìÌì½±¶à¿îʱÉÐÊÖ»ú£¡ (http://dailynews.sina.com.cn/c/272235.html)
¶©ÔÄÊÖ»ú¶ÌÐŶ¥¼¶ÐÂÎÅÿÌìµÃпîÊÖ»ú´ó½±£¡ (http://dailynews.sina.com.cn/c/266499.html)

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


Current Thread