Description of Attribute Properties in DTDs

Table 50 shows the properties that an attribute can have. It also provides the possible values, and a description for each property.

Property
Allowable Values
Description
Type
Attribute
All attribute nodes have this type.
Name
String
Identifier for the particular attribute.
Restrictions
Fixed
The attribute is required and it must always have the value specified by the Default property. You must always explicitly specify this attribute.
 
Implied
The attribute is optional. There is no default value.
 
Optional
The attribute is optional. If you do not specify it, the XML parser uses the value of the Default property.
 
Required
The element must always explicitly specify this attribute and assign a value to it.
Content Type
CDATA
The attribute value can contain any valid character data. It is a text string.
 
Entity
The attribute value is the name of an entity defined in the DTD.
 
Entities
The attribute value is a space-separated list of entities that are defined in the DTD.
 
Enumerated
The attribute value is one of a set of specified values. When the value of the Content Type property is Enumerated, the attribute has an additional property: Allowed Values. Specify the allowed values in a space-separated list.
 
ID
The attribute value is a unique name within the DTD.
 
IDREF
The attribute value is an ID that is defined in the DTD.
 
IDREFs
The attribute value is a space-separated list of IDs that are defined in the DTD.
 
NMToken
The attribute value is a valid XML name that is composed of letters, numbers, hyphens, underscores, and colons.
 
NMTokens
The attribute value is a space-separated list of name tokens.
 
Notation
The name of a notation specified in the DTD. The notation describes a non-XML data format, such as those used for image files. When the value of the Content Type property is Notation, the attribute has an additional property: Allowed Values. Specify the allowed values in a space-separated list.
Table 50. Attribute Property Descriptions

XML Schema Validator, DTD Validator

Stylus Studio lets you validate XML documents using integrated XML Schema or DTD validators. Use the Stylus Studio built-in validator, or any number of supported XML parsers and XML validators like MSXML SAX and DOM, Xerces, .NET, and more!

Learn XQuery in 10 Minutes, by Dr. Michael Kay - An XQuery Tutorial

Learn XQuery in 10 Minutes By Dr. Michael Kay is for all those people who really want to know what XQuery is, but don't have the time to find out. It's the fastest XQuery tutorial on the planet - read it now!

XML Schema-Aware Queries and Stylesheets

Learn how to simplify XSLT and XQuery applications using Schema Aware XSLT and XQuery processing technologies.

An Introduction To XML Schema Development

An Introduction to XML schema development in Stylus Studio covers some of the highlights of our XML Schema Editor, powerful tools for editing, validating, converting and generating XML schema. Watch the video online today!

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member