[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[henshin-user] Node Attribute Self Reference

Hi all,

I wanted to ask if it is possible to reference an attribute to itself within a node.

e.g.:

ÂÂÂ I have a rule where I search for a specific Node with an attribute and if this node is found I want to add 5 to that attribute
ÂÂÂ and I do not matter which value it had before.

ÂÂÂÂ ------------------------------------
ÂÂÂ | <<preserve>>ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ |
ÂÂÂ | :NodeWithAttributeÂÂÂÂÂÂÂÂÂ |
ÂÂÂÂ ------------------------------------
ÂÂÂ | attribute = attribute + 5 |
ÂÂÂÂ ------------------------------------

Is this somehow possible for example with the _javascript_ Engine?


Regards,
JÃrgen


-- 
Dipl.-Ing. JÃrgen Freund
Arbeitsgruppe Ãhnlichkeitsmechanik

Telefon: +49 (0)711 685 69530
E-Mail:  freund@xxxxxxxxxxxxxxxxxxxx

Postadresse:
UniversitÃt Stuttgart
Institut fÃr Statik und Dynamik der Luft- und Raumfahrtkonstruktionen
Pfaffenwaldring 27 - Zimmer 01.002
70569 Stuttgart