samples/demo.xmi
author Edouard Tisserant <edouard.tisserant@gmail.com>
Wed, 28 Apr 2021 23:40:51 +0200
changeset 78 0b05c2bce9e4
parent 0 76005e62091d
permissions -rw-r--r--
Fix expension of macros in pointers with default values.

For example :

in xsl decl widget_class(%name, *clsname="%nameWidget", match="widget[@type='%name']", mode="widget_class") alias template {
| class `text **clsname` extends Widget{
content;
| }
};

widget_class('Input');

gives now :

<xsl:template match="widget[@type='Input']" mode="widget_class">
<xsl:text>class </xsl:text>
<xsl:text>InputWidget</xsl:text>
<xsl:text> extends Widget{
</xsl:text>
<xsl:text>}
</xsl:text>
</xsl:template>

Without the fix, <xsl:text>InputWidget</xsl:text> would be <xsl:text>%nameWidget</xsl:text>
0
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     2
<xmi:XMI xmi:version="2.1" xmlns:uml="http://schema.omg.org/spec/UML/2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1">
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     3
	<xmi:Documentation exporter="Bouml" exporterVersion="1.7.2"/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     4
	<uml:Model xmi:type="uml:Model" xmi:id="themodel" name="demo">
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     5
		<packagedElement xmi:type="uml:Package" xmi:id="BOUML_0x81_22" name="Demo">
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     6
			<packagedElement xmi:type="uml:Class" name="Customer" xmi:id="BOUML_0x1f417_4" visibility="package" isAbstract="false" >
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     7
				<ownedAttribute xmi:type="uml:Property" name="id" xmi:id="BOUML_0x1f417_1" visibility="public">
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     8
					<type xmi:type="uml:PrimitiveType" href="http://schema.omg.org/spec/UML/2.1/uml.xml#String"/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
     9
				</ownedAttribute>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    10
				<ownedAttribute xmi:type="uml:Property" name="name" xmi:id="BOUML_0x1f497_1" visibility="private">
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    11
					<type xmi:type="uml:PrimitiveType" href="http://schema.omg.org/spec/UML/2.1/uml.xml#String"/>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    12
				</ownedAttribute>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    13
			</packagedElement>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    14
		</packagedElement>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    15
	</uml:Model>
76005e62091d initial commit
Volker Birk <vb@pep-project.org>
parents:
diff changeset
    16
</xmi:XMI>