Difference between revisions of "XML Attribute"

123 bytes removed ,  14:59, 31 March 2010
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 "contents" of the operator:
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:


  &lt;!-- Good --&gt;
  &lt;!-- Good --&gt;
Line 17: Line 17:
  </image>
  </image>
   
   
The '''src''' trait can refer to any ''menu'' element by it's name, or can use one of the "relative" sources:
The '''src''' trait can refer to any [[Object Element]] by it's name, or can use one of the "relative" sources:
*'''Me()''' - refers to the object element whose property the operator element is modifying.
*'''Me()''' - the object whose property the operator is modifying.
*'''Parent()''' - refers to the parent of Me(), the object element of which Me() is a child.
*'''Parent()''' - the parent of Me(), that is the element of which Me() is a child.
*'''Sibling(''SiblingName'')''' - refers to one of the siblings of Me() - that is, the object 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 trait.
*'''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'')''' - refers to one of the object elements that are children of Me().  Again, the name must be specified.
*'''Child(''ChildName'')''' - a child object of Me().  Again, the name must be specified.


The '''trait''' trait can refer to any ''property'' of the source element.  The current value of this property is used as the "contents", or second operand, of the operator.
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]]
Anonymous user