Attribute Types Supported in IE

Given the attributes that were used in Listing 19.12, the only data type that you needed was the enumeration type. There are several types that are supported, as summarized in Table 19.4.

Table 19.4. The Valid Types That Can Be Assigned to an Attribute
Data TypeXML EquivalentMeaning
idIDAttributevalue must be a unique identifier.
stringPCDATAOnlycharacter data can be used.
entityENTITYAttributevalue must refer to an entity.
entitiesENTITIESSame as entity, but allows for multiple values separated by whitespace.
idrefIDREFValue must be a reference to an id attribute.
idrefsIDREFSSame as idref, but allows for multiple values separated by whitespace.
nmtokenNMTOKENAttribute is a mixture of name token characters, which can ...

Get Sams Teach Yourself XML in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.