[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How can I do the xsl file

Subject: RE: How can I do the xsl file
From: Rene de Vries <RdVries@xxxxxxxxxxx>
Date: Thu, 12 Jul 2001 10:43:19 +0200
xsl
And as usual several solutions for one problem:

	<xsl:template match="ITEM">
		<xsl:if test="AT/@ID='22'">
			<xsl:copy>
				<xsl:copy-of select="AT[@ID='22']"/>
			</xsl:copy>
		</xsl:if>
	</xsl:template>

Greetings Rene
   { @   @ }
        ^
      \__/

"You don't need eyes to see, you need vision!"

-----Oorspronkelijk bericht-----
Van:	laurence_zhang [SMTP:laurence_zhang@xxxxxxxx]
Verzonden:	donderdag 12 juli 2001 10:05
Aan:	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Onderwerp:	 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.

______________________________________

===================================================================
?AAEAa.N?c?OOEIa (http://mail.sina.com.cn)
??OAEO>u?I?AI.Io?AIA??IiIi???a?iE?E?EO>u?? (http://dailynews.sina.com.cn/c/272235.html)
??OAEO>u?I?A?????AIAA?Ii?A?A?iEO>u?o???? (http://dailynews.sina.com.cn/c/266499.html)

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



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.