compile-xml-schema.schemaModules.dcterms.xsd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of legislation-gov-uk Show documentation
Show all versions of legislation-gov-uk Show documentation
Java library for consuming the Legislation.gov.uk API
DCterms XML Schema
XML Schema for http://purl.org/dc/terms/ namespace
Created 2006-01-06
Created by
Tim Cole ([email protected])
Tom Habing ([email protected])
Jane Hunter ([email protected])
Pete Johnston ([email protected]),
Carl Lagoze ([email protected])
This schema declares XML elements for the DC elements and
DC element refinements from the http://purl.org/dc/terms/ namespace.
It reuses the complexType dc:SimpleLiteral, imported from the dc.xsd
schema, which permits simple element content, and makes the xml:lang
attribute available.
This complexType permits the derivation of other complexTypes
which would permit child elements.
DC elements are declared as substitutable for the abstract element dc:any, and
DC element refinements are defined as substitutable for the base elements
which they refine.
This means that the default type for all XML elements (i.e. all DC elements and
element refinements) is dc:SimpleLiteral.
Encoding schemes are defined as complexTypes which are restrictions
of the dc:SimpleLiteral complexType. These complexTypes restrict
values to an appropriates syntax or format using data typing,
regular expressions, or enumerated lists.
In order to specify one of these encodings an xsi:type attribute must
be used in the instance document.
Also, note that one shortcoming of this approach is that any type can be
applied to any of the elements or refinements. There is no convenient way
to restrict types to specific elements using this approach.
This group is included as a convenience for schema authors
who need to refer to all the DC elements and element refinements
in the http://purl.org/dc/elements/1.1/ and
http://purl.org/dc/terms namespaces.
N.B. Refinements available via substitution groups.
This is included as a convenience for schema authors who need to define a root
or container element for all of the DC elements and element refinements.