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]
Other format: [Raw text]

[no subject]


I need to select the first occurance of values in attributes of elements and show them in different color.
i.e. for the following example lets say first occurance of "Mr.White", "Mr.Green", "Mr.Yellow", "Mr.Red" should be shown as red color and repeating ocuurances of these values should be shown as black color.

<MainBody>

	<Department>
		<SmallDepartment>
			<Content ContentText="Mr.White">
			</Content>
			<Content ContentText="Mr.Green">
			</Content>
			<Content ContentText="Mr.White">
			</Content>
			<Content ContentText="Mr.Yellow">
			</Content>
		</SmallDepartment>
	</Department>

	<Department>
		<SmallDepartment>
			<Content ContentText="Mr.Red">
			</Content>
			<Content ContentText="Mr.Red">
			</Content>
			<Content ContentText="Mr.White">
			</Content>
			<Content ContentText="Mr.White">
			</Content>
		</SmallDepartment>
	</Department>

	<Department>
		<SmallDepartment>
			<Content ContentText="Mr.Yellow">
			</Content>
			<Content ContentText="Mr.Red">
			</Content>
			<Content ContentText="Mr.White">
			</Content>
			<Content ContentText="Mr.White">
			</Content>
			<Content ContentText="Mr.White">
			</Content>
			<Content ContentText="Mr.White">
			</Content>
		</SmallDepartment>
	</Department>

</MainBody>

I thank you in advance for your input.

Biray

__________________________________________________________
Get your FREE personalized e-mail at http://www.canada.com

 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]