Notation (W3C DOM Core object)
<!NOTATION logo SYSTEM "image/gif">
example above shows a notation with the name logo, that
refers to a system resource with the mime-type
image/gif. This notation can then be used as part of an
entity declaration, to refer to an external GIF image:
<!ENTITY sitepoint SYSTEM "http://www.sitepoint.com/images/new/logo.gif" NDATA logo>
var notations = document.doctype.notations;
then retrieve individual items from that collection using the
Notation interface inherits from
Node, and represents a notation declared in the DTD.
Notations are typically used to declare the format of an unparsed entity;
they can also be used for formal declaration of processing instruction
targets. The content of an unparsed entity does not have to be text, it
can be other kinds of data, such as an image.
Notation nodes are read-only, and are not part
of the DOM tree, hence they have no parent and cannot have children.
Internet Explorer in XML and Opera
in XHTML mode or XML1 provide data for the
notations collection; in
Firefox, Safari 1.3 and 2 in XHTML
mode or XML and Safari 3 the
null; in other environments the
doctype itself is
DocumentType for details).
Internet Explorer in XML doesn't support
associative array syntax for retrieving members by name (eg.
notations['sitepoint']); it only supports reference by
notations) or using the
getNamedItem method of
In this Section
1 On XHTML pages served as
There are no comments yet.