I want to end my tag when a particular child tag comes using xslt



So my xml contents as follows:


Original XML:



<p id="ACB1234" trackparabreak="true">
<t>
<apple>Some texts</apple>
<p trackparabreak="true">
<t> Some texts </t>
</p>
<orange>Some Texts</orange>
</t>
</p>


Desired Output:



<p id="ACB1234" trackparabreak="true">
<t>
<apple>Some texts</apple>
</t>
</p>
<p trackparabreak="true">
<t> Some texts </t>
</p>
<p>
<t>
<orange> Some Texts </orange>
<t>
<p>


How can we get the desired output using xslt-1.0 ?


No comments:

Post a Comment