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

Stylus Studio API Documentation

Java API reference materials providing detailed information about Stylus Studio and other industry leading XML processing components.

XML Schema Mapping

Stylus Studio includes a visual XML Schema-to-XML Schema mapping tool that allows you to easily implement sophisticated XML data mappings involving multiple data sources and customized data processing using either XSLT or XQuery code.

HTML Tidy

HTML Tidy is a program for turning HTML into something that can be parsed as XML, unlocking their data for use in XSLT and XQuery programs. Learn how to use HTML Tidy in Stylus Studio now.

XQuery Functions - User Defined Functions in XQuery

Dr. Michael Kay's tutorial entitled: 'Defining your own Functions in XQuery' explains how to write powerful User Defined Functions in XQuery.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member