XML technologies / XML / XML in a Nutshell / Resource Directory Description Language (RDDL) / Purpose

(Excerpt from "XML in a Nutshell" by Elliotte Rusty Harold & W. Scott Means)

The Purpose of a referenced resource indicates what it is used for. It distinguishes resources of the same type used for different purposes. DocBook uses, for example, different XSLTstylesheets to transform DocBook documents into HTML, XHTML, multiple HTML pages, and XSL-FO. These stylesheets are all referenced resources of the same type but used for different purposes. Unlike the type, the purpose is optional. You need not specify it if you do not need to distinguish resources of the same type, though you may do so.

Purposes are specified by URLs stored as values of the attribute xlink:arcrole on the element rddl:resource. The RDDL specification defines nearly 21 purpose URLs with varying levels of recognition, usually in the form "http://www.rddl.org/purposes#purpose". You may also define your own. However, use standard URLs for standard purposes so that automated software can understand your documents and find the required referenced resources. Known purposes include:

Validierung

'http://www.rddl.org/purposes#validation'

Validierung gegen ein Schema

'http://www.rddl.org/purposes#schema-validation'

DTD-Modul

'http://www.rddl.org/purposes#module'

Schema-Modul

'http://www.rddl.org/purposes#schema-module'

DTD-Notations- Modul

'http://www.rddl.org/purposes#notations'

DTD-Entities-Modul

'http://www.rddl.org/purposes#entities'

Software-Modul

'http://www.rddl.org/purposes#software-module'

Software-Paket

'http://www.rddl.org/purposes#software-package'

Software-Projekt

'http://www.rddl.org/purposes#software-project'

JAR

'http://www.rddl.org/purposes#JAR'

XSLT-Erweiterung

'http://www.rddl.org/purposes/software#xslt-extension'

Referenz

'http://www.rddl.org/purposes#reference'

Normative Referenz

'http://www.rddl.org/purposes#normative-reference'

Nicht-normative Referenz

'http://www.rddl.org/purposes#non-normative-reference'

Frühere Version

'http://www.rddl.org/purposes#prior-version'

Definition

'http://www.rddl.org/purposes#definition'

Icon

'http://www.rddl.org/purposes#icon'

Alternative

'http://www.rddl.org/purposes#alternate'

Canonicalization

'http://www.rddl.org/purposes#canonicalization'

RDDL-Verzeichnis

'http://www.rddl.org/purposes#directory'

RDDL Target

'http://www.rddl.org/purposes#target'

An XSLT stylesheet’s purpose is also often identified by the URI specifying the type of resource produced by the transformation. For example, a stylesheet transforming documents to XHTML-Strict might have the purpose "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict".

  

 

 

 

back to top