次の方法で共有


Guid 単純型

GUID 値でオブジェクトを識別するときに使う値の型を定義します。

<xs:simpleType name="Guid">
    <xs:restriction
        base="string"
    >
        <xs:pattern
            value="[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
         />
    </xs:restriction>
</xs:simpleType>

パターン

Guid 単純型によって定義されるパターンを次に示します。

[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}

文字列は、一意の 128 ビットの GUID 値です。たとえば、5b2fc63a-8af4-44cb-960c-aefdced908d6 のようになります。