Поделиться через


Rsid Class

Single Session Revision Save ID.When the object is serialized out as xml, its qualified name is w:rsid.

Inheritance Hierarchy

System.Object
  DocumentFormat.OpenXml.OpenXmlElement
    DocumentFormat.OpenXml.OpenXmlLeafElement
      DocumentFormat.OpenXml.Wordprocessing.LongHexNumberType
        DocumentFormat.OpenXml.Wordprocessing.Rsid

Namespace:  DocumentFormat.OpenXml.Wordprocessing
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

Syntax

'Declaration
Public Class Rsid _
    Inherits LongHexNumberType
'Usage
Dim instance As Rsid
public class Rsid : LongHexNumberType

Remarks

[ISO/IEC 29500-1 1st Edition]

17.7.2.15 rsid (Revision Identifier for Style Definition)

This element specifies a unique four digit number which shall be used to determine the editing session in which this style definition was last modified. This value shall follow this following constraint: All document elements which specify the same rsid* values shall correspond to changes made during the same editing session. An editing session is defined as the period of editing which takes place between any two subsequent save actions. [Note: This setting does not imply any behavior for the style, only that the style was last modified during one particular editing session. This information can be interpreted by an application in any manner desired. end note]

If this element is omitted, then no revision identifier shall be associated with the parent style definition.

[Example: Consider a style with a primary name of PrimaryStyleExample that is defined as follows:

<w:style … w:styleId="PStyle">
<w:name w:val="PrimaryStyleExample"/>
<w:rsid w:val="3E412D01"/>
…
</w:style>

The rsid element specifies that this style definition was last edited in the editing session corresponding to the value 3E412D01. end example]

Parent Elements

style (§17.7.4.17)

Attributes

Description

val (Long Hexadecimal Number Value)

Specifies a number value specified as a four digit hexadecimal number), whose contents of this decimal number are interpreted based on the context of the parent XML element.

[Example: Consider the following value for an attribute of simple type ST_LongHexNumber: 00BE2C6C.

This value is permitted, as it contains four hexadecimal digits, each an encoding of an octet of the actual decimal number value. It can therefore be interpreted as desired in the context of the parent XML element, end example]

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

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

[ISO/IEC 29500-1 1st Edition]

17.15.1.70 rsid (Single Session Revision Save ID)

This element specifies the revision save ID that was associated with a single editing session for a document. An editing session is a span of time that begins and ends with any event that produces an editable file, such as a save or an e-mail send, and contains no such event. When revision save IDs are added to a document, they shall follow these rules:

  • Every editing session shall be assigned a revision save ID that is larger than all earlier ones in the same file

  • Revision save IDs should be randomly generated based on the current time (to minimize the chance that two disparate editing sessions starting with the same immediate predecessor are assigned the same revision save ID)

  • Changes to document content in an editing session shall be stamped with the current revision save ID using the appropriate rsid* attributes

  • An identical rsid value between two documents with the same rsidRoot (§17.15.1.71) shall indicate the same editing sessions

[Note: A revision save ID should be treated as unique within the context of all documents with the same rsidRoot value. Although in practice it is possible for two independent sessions to result in the same value, this outcome is extremely rare as the values are based on the current time. However, the meaning of two revision save IDs is not defined for documents with a different rsidRoot. Applications can use this information as desired. end note]

[Example: Consider the following fragments from two WordprocessingML documents' document settings:

Document 1

Document 2

<w:rsids>
  <w:rsidRoot w:val="00464813"/>
  <w:rsid w:val="00455AAB" />
  <w:rsid w:val="00464813" />
  <w:rsid w:val="00996E03" />
</w:rsids>
<w:rsids>
  <w:rsidRoot w:val="00464813"/>
  <w:rsid w:val="00455AAB" />
  <w:rsid w:val="00464813" />
  <w:rsid w:val="00473403" />
  <w:rsid w:val="0048414E" />
</w:rsids>

The rsid elements are identical for the first three editing sessions for both documents, indicating that these documents, although they are now separate, originated from the same document. The documents were then separated and the first was saved once afterwards; and the second, twice. end example]

Parent Elements

rsids (§17.15.1.72)

Attributes

Description

val (Long Hexadecimal Number Value)

Specifies a number value specified as a four digit hexadecimal number), whose contents of this decimal number are interpreted based on the context of the parent XML element.

[Example: Consider the following value for an attribute of simple type ST_LongHexNumber: 00BE2C6C.

This value is permitted, as it contains four hexadecimal digits, each an encoding of an octet of the actual decimal number value. It can therefore be interpreted as desired in the context of the parent XML element, end example]

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

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

© ISO/IEC29500: 2008.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Rsid Members

DocumentFormat.OpenXml.Wordprocessing Namespace