Difference between revisions of "XML Attribute"
no edit summary
imported>Shademe (Reverted to the last edit made by JRoush) |
imported>JRoush |
||
Line 6: | Line 6: | ||
<rect name="PictureFrame"> </rect> | <rect name="PictureFrame"> </rect> | ||
The '''src''' and '''trait''' traits are always provided together (except for the special case of the [[Include Element]]). They are used only in empty Operator elements, to specify the | The '''src''' and '''trait''' traits are always provided together (except for the special case of the [[Include Element]]). They are used only in empty Operator elements, to specify the value used by the operator: | ||
<!-- Good --> | <!-- Good --> | ||
Line 17: | Line 17: | ||
</image> | </image> | ||
The '''src''' trait can refer to any | The '''src''' trait can refer to any [[Object Element]] by it's name, or can use one of the "relative" sources: | ||
*'''Me()''' - | *'''Me()''' - the object whose property the operator is modifying. | ||
*'''Parent()''' - | *'''Parent()''' - the parent of Me(), that is the element of which Me() is a child. | ||
*'''Sibling(''SiblingName'')''' - | *'''Sibling(''SiblingName'')''' - a the siblings of Me(), that is the elements that are also children of Parent(). The name of the sibling must be provided as an argument - this is why no two siblings should have the same name. | ||
*'''Child(''ChildName'')''' - | *'''Child(''ChildName'')''' - a child object of Me(). Again, the name must be specified. | ||
The '''trait''' trait can refer to any ''property'' of the source | The '''trait''' trait can refer to any ''property'' of the source object. The current value of this property is used as value (operand) of the operator. | ||
[[Category:Oblivion XML]] | [[Category:Oblivion XML]] |