containment

Determining whether a node is contained within another node in XSLT

Is it possible to tell whether a node is contained within (or equal to) another node in XSLT? For example, consider this code snippet: <xsl:variable name="itemSection" select=".."/> <xsl:for-each select="key('enemyItems', @key)"> <xsl:variable name="enemyList" select="./attributes/@value"/> <xsl:variable name="enemyListSection"...

What is the difference in ECore between containment and reference?

When creating references between ECore entities there is the possibility to mark a reference as "containment". Can somebody explain me in easy words what's the difference between a plain reference and a containment? The definitions and explainations I found so far didn't do the trick for me. ...