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:

CSS Stylesheet

'http://www.isi.edu/in-notes/iana/assignments/media-types/text/css'

DTD

'http://www.isi.edu/in-notes/iana/assignments/media-types/application/xml-dtd'

Eine Mailbox

'http://www.rddl.org/natures#mailbox'

Generic HTML

'http://www.isi.edu/in-notes/iana/assignments/media-types/text/html'

HTML 4.0

'http://www.w3.org/TR/html4/'

HTML 4 Strict

'http://www.w3.org/TR/html4/strict'

HTML 4 Transitional

'http://www.w3.org/TR/html4/transitional'

HTML 4 Frameset

'http://www.w3.org/TR/html4/frameset'

XHTML

'http://www.w3.org/1999/xhtml'

XHTML 1.0 Strict

'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict'

XHTML 1.0 Transitional

'http://www.w3.org/TR/xhtml1/DTD/xhtml/1-transitional'

RDF-Schema

'http://www.w3.org/2000/01/rdf-schema#'

RELAX core grammar (Kerngrammatik)

'http://www.xml.gr.jp/xmlns/relaxCore'

RELAX NG (Namensraum-Grammatik)

'http://www.xml.gr.jp/xmlns/relaxNamespace'

Schematron-Schema

'http://www.ascc.net/xml/schematron'

OASIS Open Catalog

'http://www.rddl.org/natures#SOCAT'

W3C-XML Schema-Schema

'http://www.w3.org/2001/XMLSchema'

XML-Zeichendaten

'http://www.w3.org/TR/REC-xml.html#dt-chardata'

XML escaped text (geschützte XML-Sonderzeichen)

'http://www.w3.org/TR/REC-xml.html#dt-escape'

XML ungeparstes Entity

'http://www.w3.org/TR/REC-xml.html#dt-unparsed'

Ein RFC der IETF

'http://www.ietf.org/rfc/rfc2026.txt'

ISO-Standard

'http://www.iso.ch/'

Python-Software

'http://www.rddl.org/natures/software#python'

Java-Software

'http://www.rddl.org/natures/software#java'

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.

  

 

 

 

back to top