My business requirement is to transform below input XML into transformed XML.
Input XML is as below
<root>
<name>football</name>
<pageTitle>League</pageTitle>
<pageMetaDescription>Inter City League</pageMetaDescription>
</root>
Output Xml that is expected after the XSLT based transformation is
<root>
<Array>
<name>name</name>
<text>football</text>
<format>plainText</format>
</Array>
<Array>
<name>pageTitle</name>
<text>League</text>
<format>plainText</format>
</Array>
<Array>
<name>pageMetaDescription</name>
<text>Inter City League</text>
<format>plainText</format>
</Array>
</root>
In-order to Perform such tranformation I am not able to write XSLT.
Can anyone let me know how to write such XSLT for such requirement.