21.4.2.9 constrLst

This element is simply a list of constraints.

[Example: Consider the following example of a constraint list which contains some example constraints which are being defined and applied to layout nodes in the layout definition:

<constrLst>
  <constr type="w" for="ch" forName="node1" refType="w" refForName=""/>
  <constr type="h" for="ch" forName="node1" refType="w" refFor="ch"
refForName="node1" op="equ" fact="0.6"/>
  <constr type="w" for="ch" forName="transition1" refType="w" refFor="ch"
refForName="node1" op="equ" fact="0.1"/>
  <constr type="primFontSz" for="ch" forName="node1" refForName="" op="equ"
val="100"/>
</constrLst>

In this example we can see constraints being defined for the width and height along with the primary font size for a layout node referenced by node1. The width for a transition is also specified. end example]

[Note: The W3C XML Schema definition of this element’s content model (CT_Constraints) is located in A.5.3. end note]

Last updated on