Name

xs:anyURI

Facets

xs:enumeration, xs:length, xs:maxLength, xs:minLength, xs:pattern, xs:whiteSpace

The xs:anyURI type is meant to hold the URIs (including URLs) normally contained by the XLink (and also the HTML) href attribute. Its use isn’t limited to this, however, and developers may apply it to any situation in which using URIs is appropriate.

While the xs:anyURI type is designed to store URIs, it doesn’t do any special, URI-specific processing to them. xs:anyURI doesn’t include any mechanisms for making relative URIs absolute or for escaping or unescaping characters as required by RFC 2396 or 2732 when using URIs. Schema processors don’t check to find out if anything is present at the target of the URI. All of this functionality, if needed, must be provided by the application after schema processing is complete.

Sample acceptable values: http://example.com/, #example, mailto:, urn:oid:1.3.6.1.4.1.6320, /my/monkey/index.htm?species=Capuchin

Get XML Pocket Reference, 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.