XML technologies / XML / XML in a Nutshell / Resource Directory Description Language (RDDL) / Types (natures)
(Excerpt from "XML in a Nutshell" by Elliotte Rusty Harold & W. Scott Means)
The Type (English: nature) of a referenced resource states what the resource is. For example, a web page’s type might be HTML and an image’s type JPEG. The type is specified by a URL. This type URL is usually a namespace URL for an XML application, and otherwise a MIME media type URL. For example, the XSLT type is described by "http://www.w3.org/1999/XSL/Transform". The JPEG type is specified by "http://www.isi.edu/in-notes/iana/assignments/media-types/image/jpeg".
The RDDL specification distinguishes 24 different types, which can be used in xlink:role attributes. You may also define your own. However, use the standard types where possible so that automated software can understand your documents and find the required referenced resources. The following lists the standard types with their URLs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Many other types can be derived from these examples. For instance, a PNG image could be assigned the type "http://www.isi.edu/in-notes/iana/assignments/media-types/image/png", because PNG documents have the MIME media type image/png. Software written in Ruby could be assigned the type "http://www.rddl.org/natures/software#ruby". An RDF document can obtain the type "http://www.w3.org/1999/02/22-rdf-syntax-ns#" from its namespace, and so on.
Copyright © 2005 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from the book "XML in a Nutshell" is subject to the same conditions as the printed edition: the work and all its parts are protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de
back to top