O'Reilly logo

Effective XML: 50 Specific Ways to Improve Your XML by Elliotte Rusty Harold

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Natures

While a human may be able to read the explanatory text in order to figure out which links point to schemas and which links point to stylesheets, software needs somewhat more formal hints to ensure that a validator doesn't try to validate a document against a stylesheet or that a browser doesn't try to format a document as described by a DTD. To this end, the xlink:role attribute may contain a URL that indicates the nature of the resource likely to be found at the other end of the simple link. For example, this rddl:resource element locates a W3C XML Schema Language schema:

<rddl:resource xlink:type="simple"
   xlink:href="http://developer.megabank.com/xml/mbsml.xsd"
   xlink:role="http://www.w3.org/2001/XMLSchema" />

This rddl:resource element ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required