I've got an ejb-jar.xml that doesn't have an 'id' attribute in the tag.
What would be the best way to fix this? Could XSLT be used for this?
<session>
<ejb-name>EJB1</ejb-name>
<local-home>x.E1LH</local-home>
<local>x.E1L</local>
<ejb-class>x.E1EJB</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
Should be rewritten as:
<session id="EJB1"> <!--ejb-name gets added as an "id" attribute -->
<ejb-name>EJB1</ejb-name>
<local-home>x.E1LH</local-home>
<local>x.E1L</local>
<ejb-class>x.E1EJB</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>