Attributes on references

AbdelAli ED-DBALI (ali@dcc.ufmg.br)
Fri, 12 Dec 1997 15:59:32 -0200

Hi,

Can somebody answer me this question please?
I have a structured element X which is a reference to another element Y.
X has a local attribute A. I want to make a nice presentation which
replaces normal reference presentation '[*]' by the value of the
attribute A.

In the structure scheme, I have this rule:
X (ATTR A = TEXT) = REFERENCE(Y);

In the presentation scheme, I have these following rules:
BOXES
...
BOX_A:
BEGIN
Content : (Text '[' A Text ']');
...
END;

RULES
...
Y:
BEGIN
IF Referred
BEGIN
CreateFirst(BOX_A);
END;
...
END;
X:
BEGIN
Copy(BOX_A);
...
END;

Of course this is wrong. I don't get any thing into the reference
presentation. Note that a same Y element may be reffered by diffrent
elements of type X (if I don't have this condition, the solution is to
attach the attribute to the element Y. and then, these rules may give
the good result).

Many thanks and hear from you soon. Ali

eddbali@lifo.univ-orleans.fr