Description of Attribute Properties in DTDs

Table 62 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 62. Attribute Property Descriptions

XML Generator

Create sample XML instance documents from any XML Schema using the XML Generator. The generated XML document is always valid, well-formed XML!

XSL:FO Editor

The XSL-FO editor provides syntax help, code completion integrated PDF preview, and integration with industry-leading XSL-FO processors including RenderX XEP and Apache FOP. Simplify XSL FO development with Stylus Studio.

XPath Introduction - Using XPath Queries to Extract Data from XML Documents

The XPath introduction covers how to use XPath code completion, XPath syntax highlighting, support for XPath 2.0 functions and XML namespaces to simplify your next XPath application.

An Introduction to XQuery Development

An Introduction to XQuery demonstrates how easy it is to use Stylus Studio's many tools for editing, testing and deploying XQuery applications. Learn how to write your first XQuery application in just minutes by watching this online tutorial.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member