Artefact:Template/org/ooem/templates/ooem-1.0-xmi-2.1

Code
              <xsl:template match="ooem:Class"> <xsl:param name="prefix"></xsl:param> <xsl:variable name="name" select="ooem:Name"/> <packagedElement xmi:type="uml:Class" xmi:id="{$prefix}_c_{$name}" name="{$name}"> <xsl:apply-templates select="*"> <xsl:with-param name="prefix"><xsl:value-of select="concat($prefix,'_c_',$name)"/></xsl:with-param> </xsl:apply-templates> <xsl:apply-templates select="ooem:Operation"> <xsl:with-param name="prefix"><xsl:value-of select="concat($prefix,'_c_',$name)"/></xsl:with-param> </xsl:apply-templates> </packagedElement> </xsl:template> <xsl:template match="ooem:Attribute"> <xsl:param name="prefix"></xsl:param> <xsl:variable name="name" select="@Name"/> <ownedAttribute xmi:id="{$prefix}_a_{$name}" name="{$name}" aggregation="composite"/> </xsl:template> <xsl:template match="ooem:Operation"> <xsl:param name="prefix"></xsl:param> <xsl:variable name="name" select="@Name"/> <ownedAttribute xmi:id="{$prefix}_o_{$name}" name="{$name}" aggregation="composite"/> </xsl:template> <xsl:template match="*"> </xsl:template> </xsl:stylesheet>