[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE:
Hi, In xsl when you are doing <xsl:for-each select="row"> //first stroe value of ROLE_ID in a variable then check that variable's value against whatevr comes from for-each loop,if they are same don't do <xsl:value-of select="ROLE_ID"/> //you can put xsl:choose and xsl:when clause i hope its clear. bye.. -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of manisha Sent: Wednesday, January 17, 2001 7:21 AM To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx' Subject: I want to supress the repetion of the attribute of a node(role_id) i.e I want the o/p like this: Role_Id Role_Name R01 1.Software engg. ----- 2.Project Leader.(* I dont want R01 to be repeated) R02 -------- R03 --------- I am converting the following XML file through XSLT. <rowset> <row> <ROLE_ID value="R01"/> <ROLE_NAME value="Software Engg"/> </row> <row> <ROLE_ID value="R01"/> <ROLE_NAME value="Project Leader"/> </row> <row> <ROLE_ID value="R02"/> <ROLE_NAME value="Project Manager"/> </row> <row> <ROLE_ID value="R03"/> <ROLE_NAME value="Project Co-ordinator"/> </row> </rowset> Manisha. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|