Hi,
I am looking to transform a input xml given below
<profile name="default">
<color id="forecolor" value="blue"></color>
<color id="backcolor" value="white"></color>
<color id="bordercolor" value="black"></color>
</profile>
<profile name="error" parent="default">
<color id="forecolor" value="red"></color>
</profile>
<profile name="criticalerror" parent="error">
<color id="bordercolor" value="red"></color>
</profile>
to be transformed like below:
<profile name="default">
<color id="forecolor" value="blue"></color>
<color id="backcolor" value="white"></color>
<color id="bordercolor" value="black"></color>
</profile>
<profile name="error">
<!--Below node is getting inherited from parent="default"-->
<color id="backcolor" value="white"></color>
<color id="bordercolor" value="black"></color>
<!--Below node is overriden by this profile-->
<color id="forecolor" value="red"></color>
</profile>
<profile name="criticalerror">
<!--Below node is getting inherited from it's parent's parent="default"-->
<color id="backcolor" value="white"></color>
<!--Below node is overriden by its parent profile-->
<color id="forecolor" value="red"></color>
<color id="bordercolor" value="Red"></color>
</profile>
I am new to xslt world.. already spent hours on this.. please help me to get through this.