I am working on XML to XML transformations through XSLT.
I want to extract aprtial value from an element and assign that as attribute to new element.
Source XML:
<content>
<component>
<aaa>HI
<strong>[a_b_c]</strong>
: More Information Needed
<strong>[d_e_f]</strong>XXX
</aaa>
</component>
<content>
Target XML:
<ddd>hi<dv name='a_b_c'/>: More Information Needed <dv name='d_e_f'/> XXX
</ddd>
can any one suggest how to do it through XSLT.
Thank you in advance.
XSLT 1.0
or
XSLT 2.0
EDIT