Difference between revisions of "Operator Element"

No change in size ,  17:18, 8 April 2010
m
imported>JRoush
imported>JRoush
Line 9: Line 9:
   </x>
   </x>
  </image>
  </image>
However, Operators instead refer to ''other properties'' for the value of their second operand, or even properties of ''other Object elements''.  For example:
However, Operators can instead refer to ''other properties'' for the value of their second operand, or even properties of ''other Object elements''.  For example:
  <image name="example_image>
  <image name="example_image>
   <y> 5 </y>        &lt;!-- Move image 5 pixels to the right every frame --&gt;
   <y> 5 </y>        &lt;!-- Move image 5 pixels to the right every frame --&gt;
Line 18: Line 18:
Here ''src'' and ''trait'' are XML [[traits]] indicating the Object & Property, respectively, to get the value from.  '''Don't be confused:''' The XML trait called ''trait'' here actually refers to a ''Property Element'', not another XML trait.  It seems Bethesda used the word differently than the XML community at large.
Here ''src'' and ''trait'' are XML [[traits]] indicating the Object & Property, respectively, to get the value from.  '''Don't be confused:''' The XML trait called ''trait'' here actually refers to a ''Property Element'', not another XML trait.  It seems Bethesda used the word differently than the XML community at large.


A property element may contain more than one Operator, which are evaluated in order:
A property element may contain more than one Operator, evaluating them in order:
  <image>
  <image>
   <x>
   <x>
Anonymous user