xs:anyURI
The xs:anyURI
type indicates a Uniform Resource Identifier. This
includes not only Uniform Resource Locators (URLs), but also
Uniform Resource Names (URNs). Both relative and absolute URLs are
allowed. Legal xs:anyURI
values
include the following:
http://www.cafeaulait.org/
http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]/
http://www.w3.org/TR/xmlschema-2/#anyURI
#xpointer(/book/chapter%5B20%5D/sect1%5B2%5D)
gopher://spinaltap.micro.umn.edu/00/Weather/
mailto:elharo@metalab.unc.edu
chapters/ch03.html
http://ibiblio.org/nywc/compositions.phtml?category=Concertos
More specifically, elements of this type must be composed exclusively of the ASCII letters A-Z and a-z and digits 0-9, as well as the ASCII punctuation marks -, _, ., !, ~, *, `, (, and ). In addition, the ASCII punctuation marks ;, /, ?, :, @, &, =, +, $, %, [, ], and , may be used for their intended purposes in URLs; e.g., the forward slash can be used as the path separator but not as part of a filename. All other characters must be escaped by encoding each byte of their UTF-8 representation as a percent sign followed by the hexadecimal value of the character. Although there are other restrictions on what does and does not make a legal URI, in practice, the only conditions that schema processors check are the limitations on the characters that may appear.
Constraining facets that apply to xs:anyURI
are length
, minLength
, maxLength
, pattern
, enumeration
, and whiteSpace
.