|
|
Re: How to call a rule from an other rule [message #1033801 is a reply to message #1033792] |
Thu, 04 April 2013 17:00 |
samar sousou Messages: 63 Registered: March 2013 |
Member |
|
|
thank you for the response but I do like this but it generate an empty XMI
<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
and this is my code:
rule G extends g1{
from
i : XML!Element
( i.name='P' and i.getStringAttrValue('type')='aa')
to
om: S!G (
a1 <- i.getStringAttrValue('a1'),
a2<- i.getStringAttrValue('a2')
)
}
abstract rule g1{
from
i:XML!Element
(i.name='AT' and i.getStringAttrValue('name')='F')
to
o:S!G(
f<- i.getStringDataValue()
)
}
[Updated on: Thu, 04 April 2013 17:16] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03896 seconds