Natures
The nature of a related resource says what the resource is. For example, the nature of a web page might be HTML, and the nature of an image might be JPEG. The nature is indicated by a URL. Normally, this nature URL is a namespace URL for XML applications and a MIME media type URL for everything else. For instance, the XSLT nature is written as http://www.w3.org/1999/XSL/Transform. The JPEG nature is written as http://www.isi.edu/in-notes/iana/assignments/media-types/image/jpeg.
The RDDL specification specifies 24 natures that can be used in
xlink:role
attributes. In addition, you are welcome to define your
own, but, when possible, you should use the standard natures so that
automated software can understand your documents and locate the
necessary related resources. These are the standard natures and 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 |
A mailbox | |
Generic HTML | http://www.isi.edu/in-notes/iana/assignments/media-types/text/html |
HTML 4.0 | |
HTML 4 Strict | |
HTML 4 Transitional | |
HTML 4 Frameset | |
XHTML | |
XHTML 1.0 Strict | |
XHTML 1.0 Transitional | |
RDF schema ... |
Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.