|
|
NOTATION Declaration
NOTATIONS are used to identify the format of unparsed entities (non-XML data), elements with a notation attribute, or specific processing instructions.
<!NOTATION name SYSTEM "URI">
|
<!NOTATION name PUBLIC "public_ID">
|
<!NOTATION name PUBLIC "public_ID" "URI">
|
where:
- URI: In practice, this is a URL where the external notation can be found.
- public_ID: This may be used by an XML processor to generate an alternate URI where the external notation can be found. If it cannot be found at this URI, the XML processor must use the normal URI.
| Unparsed Entity Example: |
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE img [
<!ELEMENT img EMPTY>
<!ATTLIST img src ENTITY #REQUIRED>
<!ENTITY logo SYSTEM
"http://www.xmlwriter.net/logo.gif" NDATA gif>
<!NOTATION gif PUBLIC "gif viewer">
]>
<img src="logo"/>
|
| Notation Attribute Example: |
<?xml version="1.0"?>
<!DOCTYPE code [
<!ELEMENT code (#PCDATA)>
<!NOTATION vrml PUBLIC "VRML 1.0">
<!ATTLIST code lang NOTATION (vrml) #REQUIRED>
]>
<code lang="vrml">Some VRML instructions</code>
|
|
|
|
|