Link to home
Start Free TrialLog in
Avatar of Mahesh Sawarkar
Mahesh Sawarkar

asked on

Need Help for Creating XSLT 2.0 for generating desired

XML Input :
<Study_Topic>
	<Topics>
		<PollutionName>
		  <K p="New1">AIR Pollution</K>
		  <K p="New2">WATER Pollution</K>
		</PollutionName>
		<Para_Ref L="Pollution">6.6</Para_Ref>
		<Para_Ref L="Pollution">22</Para_Ref>
		<PollutionName>
		  <K p="New3">Marine pollution</K>
		  <K p="New4">Soil pollution</K>
		  <K>Noise pollution</K>
		</PollutionName>
		<Para_Ref L="Pollution">22</Para_Ref>
		<Para_Ref L="Pollution">24</Para_Ref>
		<PollutionName>
		  <K p="New5">Biological contamination</K>
		  <K p="New6">Light Pollution</K>
		  <K>Power Pollution</K>
		</PollutionName>
		<Para_Ref L="Pollution">22</Para_Ref>
		<PollutionName>
		  <K p="New7">Environmental Pollution</K>
		  <K p="New8">Land Pollution</K>
		  <K>chemical Pollution</K>
		</PollutionName>
		<Para_Ref L="Pollution">6.6</Para_Ref>
		<Para_Ref L="Pollution">22</Para_Ref>
		<Para_Ref L="Pollution">24</Para_Ref>
		<PollutionName>
		  <K>World Pollution</K>
		</PollutionName>
		<Para_Ref L="Pollution">38</Para_Ref>
	</Topics>
</Study_Topic>

Open in new window


Desired Output:
<field TopicName>
       <div class="PollutionName">
			<p> AIR Pollution : WATER Pollution <PageNo>Page No.(6.6, 22) </PageNo></p>
			<p>Marine pollution : Soil pollution : Noise pollution <PageNo>Page No.(22, 24)</PageNo></p>
			<p>Biological contamination : Light Pollution : Power Pollution <PageNo>Page No.(22)</PageNo></p>
			<p>Environmental Pollution : Land Pollution : Chemical Pollution <PageNo>Page No.(6.6, 22, 24)</PageNo></p>
			<p>World Pollution<PageNo>Page No.(38)</PageNo></p>
	   </div>
</field>

Open in new window


Could anyone help us out with XSLT 2.0 Code for generating the xml output?

Any help is appreciated. Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Gertone (Geert Bormans)
Gertone (Geert Bormans)
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mahesh Sawarkar
Mahesh Sawarkar

ASKER

Thank You Geert Bormans.