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]

How can I do the xsl file


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


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