XML technologies / XML Schema / Data type reference / xs:ENTITY

(Excerpt from “XML Schema” by Eric van der Vlist)

Reference to an unparsed entity

Derived from: xs:NCName

Primitive type: xs:string

Known subtypes: xs:ENTITIES

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

Definition

<xs:simpleType name="ENTITY" id="ENTITY">
    <xs:restriction base="xs:NCName"/>
</xs:simpleType>

Description

xs:ENTITY is an entity reference, an unqualified name (xs:NCName) declared as an unparsed entity in an internal or external DTD.

Restrictions

Unparsed entities were defined in XML 1.0 as a way to include non-XML content in XML documents. Most applications, however, prefer links similar to those in (X)HTML for embedding images or multimedia objects.

W3C XML Schema provides no alternative way to declare unparsed entities; a DTD is required.

   

 

 

 

back to top