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]

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@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of manisha
Sent: Wednesday, January 17, 2001 7:21 AM
To: 'XSL-List@lists.mulberrytech.com'
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


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