Adding attributes to elements
A different approach
-
A separate place
Unlike W3C XML Schema, which considers attributes part of the core type, RELAX treats attributes as additional annotation. This makes declaring them a lot easier.
-
No default value
RELAX doesn't modify document information. It only allows you to specify which attributes may or must appear, and the type.
-
Extensible types
You can use W3C XML Schema built-in data types to identify and extend types for elements and attributes, providing tighter control (and equivalent control) over data types from XML 1.0 DTDs.
-
Attribute pools
As with elements, you can create reusable sets of attributes and apply them to multiple uses.
Previous Page <
TOC
> Next Page