/[volute]/trunk/projects/theory/snapdm/res/xmi2intermediate.xsl
ViewVC logotype

Diff of /trunk/projects/theory/snapdm/res/xmi2intermediate.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 384 by gerard.lemson, Tue May 6 15:06:48 2008 UTC revision 385 by gerard.lemson, Wed May 7 09:47:46 2008 UTC
# Line 166  Line 166 
166          <xsl:variable name="idref" select="//ownedMember/ownedAttribute[@xmi:type='uml:Property' and @association and @aggregation='composite' and @type = $xmiid]/../@xmi:id"/>          <xsl:variable name="idref" select="//ownedMember/ownedAttribute[@xmi:type='uml:Property' and @association and @aggregation='composite' and @type = $xmiid]/../@xmi:id"/>
167          <xsl:element name="container">          <xsl:element name="container">
168          <xsl:attribute name="name" select="key('classid',$idref)/@name"/>          <xsl:attribute name="name" select="key('classid',$idref)/@name"/>
169          <xsl:value-of select="$idref"/></xsl:element>          <xsl:attribute name="xmiidref" select="$idref"/></xsl:element>
170        </xsl:if>        </xsl:if>
171        <xsl:apply-templates select=".//*[@xmi:type='uml:Property' and not(@association)]" mode="attributes"/>        <xsl:apply-templates select=".//*[@xmi:type='uml:Property' and not(@association)]" mode="attributes"/>
172        <xsl:apply-templates select=".//*[@xmi:type='uml:Property' and @association and @aggregation='composite']" mode="collections"/>        <xsl:apply-templates select=".//*[@xmi:type='uml:Property' and @association and @aggregation='composite']" mode="collections"/>
# Line 229  Line 229 
229      <xsl:variable name="c" select="key('classid',@general)"/>      <xsl:variable name="c" select="key('classid',@general)"/>
230      <xsl:element name="extends">      <xsl:element name="extends">
231        <xsl:attribute name="name" select="$c/@name"/>        <xsl:attribute name="name" select="$c/@name"/>
232        <xsl:value-of select="@general"/>        <xsl:attribute name="xmiidref" select="@general"/>
233      </xsl:element>      </xsl:element>
234    </xsl:template>    </xsl:template>
235        
# Line 386  Line 386 
386      <xsl:variable name="c" select="key('classid',$id)"/>      <xsl:variable name="c" select="key('classid',$id)"/>
387      <xsl:element name="datatype">      <xsl:element name="datatype">
388        <xsl:attribute name="name" select="$c/@name"/>        <xsl:attribute name="name" select="$c/@name"/>
389        <xsl:value-of select="$id"/>        <xsl:attribute name="xmiidref" select="$id"/>
390      </xsl:element>      </xsl:element>
391    </xsl:template>    </xsl:template>
392        

Legend:
Removed from v.384  
changed lines
  Added in v.385

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26