[GME-commit]
GMESRC/Tools/ModelMigrate/FrontEnd/res TAtom2Model.xsl,NONE,1.1
TModel2Atom.xsl,NONE,1.1 TParadigmGUIDChange.xsl,NONE,1.1
TParadigmNameChange.xsl,NONE,1.1
TParadigmVersionChange.xsl,NONE,1.1 TRemoveGlobalAttr.xsl,1.1,1.2
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Thu Feb 2 20:37:57 CST 2006
- Previous message: [GME-commit]
GMESRC/Tools/ModelMigrate/FrontEnd StereotypeCastDlg.cpp,NONE,1.1
StereotypeCastDlg.h,NONE,1.1 FileTransDlg.cpp,1.1,1.2
FileTransDlg.h,1.1,1.2 FrontEnd.rc,1.1,1.2 FrontEnd.vcproj,1.2,1.3
OptionsDlg.cpp,1.1,1.2 OptionsDlg.h,1.1,1.2 Rule.cpp,1.1,1.2
Rule.h,1.1,1.2 RuleEditorDlg.cpp,1.1,1.2 RuleEditorDlg.h,1.1,1.2
RuleListCtrl.cpp,1.1,1.2 RuleListCtrl.h,1.1,1.2 resource.h,1.1,1.2
- Next message: [GME-commit]
GMESRC/Tools/ModelMigrate/IDLComp IDLComp.vcproj,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /project/gme-repository/GMESRC/Tools/ModelMigrate/FrontEnd/res
In directory escher:/tmp/cvs-serv27414/FrontEnd/res
Modified Files:
TRemoveGlobalAttr.xsl
Added Files:
TAtom2Model.xsl TModel2Atom.xsl TParadigmGUIDChange.xsl
TParadigmNameChange.xsl TParadigmVersionChange.xsl
Log Message:
Enhancing with multiple script generation (1 script per rule).
Adding Model2Atom, Atom2Model, Paradigm attr change rules.
CVS User: Zoltan Molnar, ISIS (zolmol)
--- NEW FILE: TModel2Atom.xsl ---
<!-- =============================================================================== -->
<!-- This template rule will alter a kind's stereotype from Model to Atom -->
<!-- =============================================================================== -->
<xsl:template match="model[@kind='##|par1|##']">
<xsl:element name="atom"> <!-- element name is hardcoded -->
<xsl:for-each select="@*">
<xsl:choose>
<xsl:when test="name()='childrelidcntr'"/> <!-- omit this -->
<xsl:otherwise>
<xsl:copy/> <!-- other attributes are just copied-->
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<!-- we have to delete inner fcos in the model like: model|atom|reference|set|connection -->
<!-- so we apply further templates only for name, regnode, constraint, attribute -->
<xsl:apply-templates select="name"/>
<xsl:apply-templates select="regnode"/>
<xsl:apply-templates select="constraint"/>
<xsl:apply-templates select="attribute"/>
</xsl:element>
</xsl:template>
Index: TRemoveGlobalAttr.xsl
===================================================================
RCS file: /project/gme-repository/GMESRC/Tools/ModelMigrate/FrontEnd/res/TRemoveGlobalAttr.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TRemoveGlobalAttr.xsl 16 Nov 2005 16:01:17 -0000 1.1
--- TRemoveGlobalAttr.xsl 2 Feb 2006 20:37:55 -0000 1.2
***************
*** 3,5 ****
<!-- =============================================================================== -->
! <xsl:template match="attribute[@kind='##|par1|##'/>
--- 3,5 ----
<!-- =============================================================================== -->
! <xsl:template match="attribute[@kind='##|par1|##']"/>
--- NEW FILE: TParadigmVersionChange.xsl ---
<!-- =============================================================================== -->
<!-- This template rule will alter a project's paradigm version -->
<!-- =============================================================================== -->
<xsl:template match="project[@metaversion='##|par1|##']">
<xsl:element name="{name()}"> <!-- element name is not hardcoded -->
<xsl:for-each select="@*">
<xsl:choose>
<xsl:when test="name()='metaversion'"> <!-- treat its metaversion attribute specially -->
<xsl:attribute name="metaversion">##|par2|##</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:copy/> <!-- other attributes are just copied-->
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
--- NEW FILE: TParadigmNameChange.xsl ---
<!-- =============================================================================== -->
<!-- This template rule will alter a project's paradigm name -->
<!-- =============================================================================== -->
<xsl:template match="project[@metaname='##|par1|##']">
<xsl:element name="{name()}"> <!-- element name is not hardcoded -->
<xsl:for-each select="@*">
<xsl:choose>
<xsl:when test="name()='metaname'"> <!-- treat its metaname attribute specially -->
<xsl:attribute name="metaname">##|par2|##</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:copy/> <!-- other attributes are just copied-->
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
--- NEW FILE: TAtom2Model.xsl ---
<!-- =============================================================================== -->
<!-- This template rule will alter a kind's stereotype from Atom to Model -->
<!-- =============================================================================== -->
<xsl:template match="atom[@kind='##|par1|##']">
<xsl:element name="model"> <!-- element name is hardcoded -->
<xsl:for-each select="@*">
<xsl:copy/> <!-- attributes are just copied-->
</xsl:for-each>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
--- NEW FILE: TParadigmGUIDChange.xsl ---
<!-- =============================================================================== -->
<!-- This template rule will alter a project's paradigm GUID -->
<!-- =============================================================================== -->
<xsl:template match="project[@metaguid='##|par1|##']">
<xsl:element name="{name()}"> <!-- element name is not hardcoded -->
<xsl:for-each select="@*">
<xsl:choose>
<xsl:when test="name()='metaguid'"> <!-- treat its metaguid attribute specially -->
<xsl:attribute name="metaguid">##|par2|##</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:copy/> <!-- other attributes are just copied-->
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
- Previous message: [GME-commit]
GMESRC/Tools/ModelMigrate/FrontEnd StereotypeCastDlg.cpp,NONE,1.1
StereotypeCastDlg.h,NONE,1.1 FileTransDlg.cpp,1.1,1.2
FileTransDlg.h,1.1,1.2 FrontEnd.rc,1.1,1.2 FrontEnd.vcproj,1.2,1.3
OptionsDlg.cpp,1.1,1.2 OptionsDlg.h,1.1,1.2 Rule.cpp,1.1,1.2
Rule.h,1.1,1.2 RuleEditorDlg.cpp,1.1,1.2 RuleEditorDlg.h,1.1,1.2
RuleListCtrl.cpp,1.1,1.2 RuleListCtrl.h,1.1,1.2 resource.h,1.1,1.2
- Next message: [GME-commit]
GMESRC/Tools/ModelMigrate/IDLComp IDLComp.vcproj,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the GME-commit
mailing list