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:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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".
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