[Table of Contents] [docx version]

Error! No text of specified style in document.

cxn (Connection)

This element defines a connection between two points. A connection defines a relationship between two points in a diagram.

[Example: Consider the following example of a cxn in DiagramML:

<cxnLst>

   <cxn modelId="7" srcId="0" destId="1" srcOrd="0" destOrd="0"/>

   <cxn modelId="8" srcId="0" destId="2" srcOrd="1" destOrd="0"/>

   <cxn modelId="9" srcId="0" destId="3" srcOrd="2" destOrd="0"/>

   <cxn modelId="10" srcId="0" destId="4" srcOrd="3" destOrd="0"/>

   <cxn modelId="11" srcId="0" destId="5" srcOrd="4" destOrd="0"/>

   <cxn modelId="12" srcId="0" destId="6" srcOrd="5" destOrd="0"/>

</cxnLst>

In this example we see 6 cxn elements defined within a cxnLst element (§5.9.3.3). In this example, a relationship is being defined between point 0 and every other point in the diagram. end example]

Parent Elements

cxnLst5.9.3.3)

 

Child Elements

Subclause

extLst (Extension List)

§5.9.2.13

 

Attributes

Description

destId (Destination Identifier)

The model identifier of the destination point for a connection.

 

[Example: Consider the following example cxn within DiagramML:

 

<cxn modelId="10" srcId="0" destId="4" srcOrd="3" destOrd="0"/>

 

In this example we see the destination identifier referencing a point who's model identifier is 4. end example]

 

The possible values for this attribute are defined by the ST_ModelId simple type (§5.9.7.42).

destOrd (Destination Position)

The relative position of the destination point among it's siblings.

 

[Example: Consider the following example cxn within DiagramML:

 

<cxn modelId="10" srcId="0" destId="4" srcOrd="3" destOrd="0"/>

 

In this example we see the destination position is 0. This means that it is ranked first among its siblings if there are sibling points present. end example]

 

The possible values for this attribute are defined by the XML Schema unsignedInt datatype.

modelId (Model Identifier)

The unique identifier associated with this cxn.

 

[Example: Consider the following example cxn within DiagramML:

 

<cxn modelId="10" srcId="0" destId="4" srcOrd="3" destOrd="0"/>

 

In this example we see the model identifier is 10. end example]

 

The possible values for this attribute are defined by the ST_ModelId simple type (§5.9.7.42).

parTransId (Parent Transition Identifier)

The model identifier of the point representing the parent transition. An example of a parent transition can be thought of as the shape connecting two points, such as an arrow in the diagram.

 

The unique identifier associated with this cxn.

 

[Example: Consider the following example cxn within DiagramML:

 

<cxn modelId="10" srcId="0" destId="4" srcOrd="3" destOrd="0" parTransId="9" sibTransId="5"/>

   

In this example we see the parent transition identifier is referencing a point who's model identifier is 9. end example]

 

The possible values for this attribute are defined by the ST_ModelId simple type (§5.9.7.42).

presId (Presentation Identifier)

The unique identifier of the layout associated to the cxn (only the active presentation (layout) is saved so all the presId's in the file should be the same).

 

[Example: Consider the following example cxn within DiagramML:

 

<cxn modelId="10" type="presParOf" srcId="0" destId="4" srcOrd="3" destOrd="0" presId="urn:sampleLayouts/layout1"/>

 

In this example we see the presentation identifier is urn:sampleLayouts/layout1. end example]

 

The possible values for this attribute are defined by the XML Schema string datatype.

sibTransId (Sibling Transition Identifier)

The model identifier of the point representing the sibling transition. An example of a sibling transition can be thought of as the shape connecting two points, such as an arrow in the diagram.

 

[Example: Consider the following example cxn within DiagramML:

 

<cxn modelId="10" srcId="0" destId="4" srcOrd="3" destOrd="0" parTransId="9" sibTransId="5"/>

   

In this example we see the sibling transition identifier is referencing a point who's model identifier is 5. end example]

 

The possible values for this attribute are defined by the ST_ModelId simple type (§5.9.7.42).

srcId (Source Identifier)

The model identifier of the source point for a connection.

 

[Example: Consider the following example cxn within DiagramML:

 

<cxn modelId="10" srcId="0" destId="4" srcOrd="3" destOrd="0"/>

 

In this example we see the souce identifier referencing a point who's model identifier is 0. end example]

 

The possible values for this attribute are defined by the ST_ModelId simple type (§5.9.7.42).

srcOrd (Source Position)

The relative position of the source point among it's siblings.

 

[Example: Consider the following example cxn within DiagramML:

 

<cxn modelId="10" srcId="0" destId="4" srcOrd="3" destOrd="0"/>

 

In this example we see the source position is 3. This means that it is ranked third among its siblings. end example]

 

The possible values for this attribute are defined by the XML Schema unsignedInt datatype.

type (Point Type)

The type of point, which will correspond to a connection in this case.

 

[Example: Consider the following example cxn within DiagramML:

 

<cxn modelId="10" type="presParOf" srcId="0" destId="4" srcOrd="3" destOrd="0" presId="urn:sampleLayouts/layout1"/>

 

In this example we see the point type is defined as presParOf. end example]

 

The possible values for this attribute are defined by the ST_CxnType simple type (§5.9.7.23).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_Cxn">

   <sequence>

   <element name="extLst" type="a:CT_OfficeArtExtensionList" minOccurs="0" maxOccurs="1"/>

   </sequence>

   <attribute name="modelId" type="ST_ModelId" use="required"/>

   <attribute name="type" type="ST_CxnType" use="optional" default="parOf"/>

   <attribute name="srcId" type="ST_ModelId" use="required"/>

   <attribute name="destId" type="ST_ModelId" use="required"/>

   <attribute name="srcOrd" type="xsd:unsignedInt" use="required"/>

   <attribute name="destOrd" type="xsd:unsignedInt" use="required"/>

   <attribute name="parTransId" type="ST_ModelId" use="optional" default="0"/>

   <attribute name="sibTransId" type="ST_ModelId" use="optional" default="0"/>

   <attribute name="presId" type="xsd:string" use="optional" default=""/>

</complexType>