[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: [dsml] Attribute type names in DSMLv2
The drafts up to this point declare the OID type to be either NumericOID or xsd:NMTOKEN. However, xsd:NMTOKEN allows characters and character sequences which are not allowed by LDAPv3. [LDAPv3] says: A specification may also assign one or more textual names for an attribute type. These names MUST begin with a letter, and only contain ASCII letters, digit characters and hyphens. They are case insensitive. (These ASCII characters are identical to ISO 10646 characters whose UTF-8 encoding is a single byte between 0x00 and 0x7F.) This implies something like: <xsd:simpleType name="OID"> <xsd:union memberTypes="NumericOID AttributeTypeName"/> </xsd:simpleType> <xsd:simpleType name="AttributeTypeName"> <xsd:restriction base="xsd:string"> <xsd:pattern value="[a-zA-Z]+([a-zA-Z0-9]|[-])*"/> </xsd:restriction> </xsd:simpleType> I'm not a regex wiz, so that might not be exactly right. Rob [LDAPv3] http://www.ietf.org/rfc/rfc2251.txt?number=2251
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC