Share via


Schema Extension of Enhanced Presence Categories

Schema extensions for existing enhanced presence categories are made by the schema designer. Using such extensions, the schema designer can update a given category schema from one version to the next.

Schema extensions add additional child elements to existing category. The added elements are in the same namespace of the given category. This type of extension is enclosed by a delimiter element and an end element. Multiple delimiter elements can occur and each of the elements marks the beginning of an extension introduced in a particular version.

As an example, the following shows a state[@type='machineState'] category instance containing a schema extension that was introduced in Microsoft Office Communications Server 2007 R2.

<state xmlns="https://schemas.microsoft.com/2006/09/sip/state" 
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
       manual="false" 
       xsi:type="machineState">
   <availability>3500</availability>
   <endpointLocation>31/West Wing Redmond</endpointLocation>
   <delimiter xmlns="https://schemas.microsoft.com/2006/09/sip/commontypes"/>
   <timeZoneBias>480</timeZoneBias>
   <timeZoneName>Pacific Standard Time</timeZoneName>
   <timeZoneAbbreviation>Pacific Standard Time</timeZoneAbbreviation>
   <device>computer</device>
   <end xmlns="https://schemas.microsoft.com/2006/09/sip/commontypes"/>
</state>

In the previous example, the schema extension adds state/timeZoneBias, state/timeZoneName, state/timeZoneAbbreviation and state/device elements. The added elements are from the same namespace as the parent element. The extension is not rendered by Lync prior to Microsoft Office Communicator 2007 R2.