Given the XML snippet:
<transactions>
<tran id="1">
<E8>
<datestamp>2012-05-17T15:16:57Z</datestamp>
</E8>
</tran>
</transactions>
How do I transform the element <E8> into <event type="E8"> using XSLT?
Edit: Expected output:
<transactions>
<tran id="1">
<event type="E8">
<datestamp>2012-05-17T15:16:57Z</datestamp>
</event>
</tran>
</transactions>