| 1 |
<!-- ....................................................................... --> |
| 2 |
<!-- XML Events Qname Module ............................................ --> |
| 3 |
<!-- file: xml-events-qname-2.mod |
| 4 |
|
| 5 |
This is XML Events - the Events Module for XML, |
| 6 |
a definition of access to the DOM events model. |
| 7 |
|
| 8 |
Copyright 2000-2007 W3C (MIT, ERCIM, Keio), All Rights Reserved. |
| 9 |
|
| 10 |
This DTD module is identified by the PUBLIC and SYSTEM identifiers: |
| 11 |
|
| 12 |
PUBLIC "-//W3C//ENTITIES XML Events Qnames 2.0//EN" |
| 13 |
SYSTEM "http://www.w3.org/MarkUp/DTD/xml-events-qname-2.mod" |
| 14 |
|
| 15 |
Revisions: |
| 16 |
(none) |
| 17 |
....................................................................... --> |
| 18 |
|
| 19 |
<!-- XML Events Qname (Qualified Name) Module |
| 20 |
|
| 21 |
This module is contained in two parts, labeled Section 'A' and 'B': |
| 22 |
|
| 23 |
Section A declares parameter entities to support namespace- |
| 24 |
qualified names, namespace declarations, and name prefixing |
| 25 |
for XML Events and extensions. |
| 26 |
|
| 27 |
Section B declares parameter entities used to provide |
| 28 |
namespace-qualified names for all XML Events element types: |
| 29 |
|
| 30 |
%listener.qname; the xmlns-qualified name for <listener> |
| 31 |
... |
| 32 |
|
| 33 |
XML Events extensions would create a module similar to this one. |
| 34 |
Included in the XML distribution is a template module |
| 35 |
('template-qname-2.mod') suitable for this purpose. |
| 36 |
--> |
| 37 |
|
| 38 |
<!-- Section A: XML Events XML Namespace Framework :::::::::::::::::::: --> |
| 39 |
|
| 40 |
<!-- 1. Declare a %XML-EVENTS.prefixed; conditional section keyword, used |
| 41 |
to activate namespace prefixing. The default value should |
| 42 |
inherit '%NS.prefixed;' from the DTD driver, so that unless |
| 43 |
overridden, the default behavior follows the overall DTD |
| 44 |
prefixing scheme. |
| 45 |
--> |
| 46 |
<!ENTITY % NS.prefixed "IGNORE" > |
| 47 |
<!ENTITY % XML-EVENTS.prefixed "%NS.prefixed;" > |
| 48 |
|
| 49 |
<!-- 2. Declare a parameter entity (eg., %XML-EVENTS.xmlns;) containing |
| 50 |
the URI reference used to identify the XML Events namespace |
| 51 |
--> |
| 52 |
<!ENTITY % XML-EVENTS.xmlns "http://www.w3.org/2001/xml-events" > |
| 53 |
|
| 54 |
<!-- 3. Declare parameter entities (eg., %XML.prefix;) containing |
| 55 |
the default namespace prefix string(s) to use when prefixing |
| 56 |
is enabled. This may be overridden in the DTD driver or the |
| 57 |
internal subset of an document instance. If no default prefix |
| 58 |
is desired, this may be declared as an empty string. |
| 59 |
|
| 60 |
NOTE: As specified in [XMLNAMES], the namespace prefix serves |
| 61 |
as a proxy for the URI reference, and is not in itself significant. |
| 62 |
--> |
| 63 |
<!ENTITY % XML-EVENTS.prefix "" > |
| 64 |
|
| 65 |
<!-- 4. Declare parameter entities (eg., %XML-EVENTS.pfx;) containing the |
| 66 |
colonized prefix(es) (eg., '%XML-EVENTS.prefix;:') used when |
| 67 |
prefixing is active, an empty string when it is not. |
| 68 |
--> |
| 69 |
<![%XML-EVENTS.prefixed;[ |
| 70 |
<!ENTITY % XML-EVENTS.pfx "%XML-EVENTS.prefix;:" > |
| 71 |
]]> |
| 72 |
<!ENTITY % XML-EVENTS.pfx "" > |
| 73 |
|
| 74 |
<!-- declare qualified name extensions here ............ --> |
| 75 |
<!ENTITY % xml-events-qname-extra.mod "" > |
| 76 |
%xml-events-qname-extra.mod; |
| 77 |
|
| 78 |
<!-- 5. The parameter entity %XML-EVENTS.xmlns.extra.attrib; may be |
| 79 |
redeclared to contain any non-XML Events namespace declaration |
| 80 |
attributes for namespaces embedded in XML. The default |
| 81 |
is an empty string. XLink should be included here if used |
| 82 |
in the DTD. |
| 83 |
--> |
| 84 |
<!ENTITY % XML-EVENTS.xmlns.extra.attrib "" > |
| 85 |
|
| 86 |
|
| 87 |
<!-- Section B: XML Qualified Names ::::::::::::::::::::::::::::: --> |
| 88 |
|
| 89 |
<!-- 6. This section declares parameter entities used to provide |
| 90 |
namespace-qualified names for all XML Events element types. |
| 91 |
--> |
| 92 |
|
| 93 |
<!ENTITY % xml-events.listener.qname "%XML-EVENTS.pfx;listener" > |
| 94 |
|
| 95 |
|
| 96 |
<!ENTITY % xml-handlers.action.qname "%XML-EVENTS.pfx;action" > |
| 97 |
<!ENTITY % xml-script.script.qname "%XML-EVENTS.pfx;script" > |
| 98 |
<!ENTITY % xml-handlers.dispatchEvent.qname "%XML-EVENTS.pfx;dispatchEvent" > |
| 99 |
<!ENTITY % xml-handlers.addEventListener.qname "%XML-EVENTS.pfx;addEventListener" > |
| 100 |
<!ENTITY % xml-handlers.removeEventListener.qname "%XML-EVENTS.pfx;removeEventListener" > |
| 101 |
<!ENTITY % xml-handlers.stopPropagation.qname "%XML-EVENTS.pfx;stopPropagation" > |
| 102 |
<!ENTITY % xml-handlers.preventDefault.qname "%XML-EVENTS.pfx;preventDefault" > |
| 103 |
|
| 104 |
|
| 105 |
<!-- The following defines a PE for use in the attribute sets of elements in |
| 106 |
other namespaces that want to incorporate the XML Event attributes. Note |
| 107 |
that in this case the XML-EVENTS.pfx should always be defined. --> |
| 108 |
|
| 109 |
<!ENTITY % xml-events.attrs.qname |
| 110 |
"%XML-EVENTS.pfx;event NMTOKEN #IMPLIED |
| 111 |
%XML-EVENTS.pfx;observer IDREF #IMPLIED |
| 112 |
%XML-EVENTS.pfx;target IDREF #IMPLIED |
| 113 |
%XML-EVENTS.pfx;handler %URI.datatype; #IMPLIED |
| 114 |
%XML-EVENTS.pfx;phase (capture|default) #IMPLIED |
| 115 |
%XML-EVENTS.pfx;propagate (stop|continue) #IMPLIED |
| 116 |
%XML-EVENTS.pfx;defaultAction (cancel|perform) #IMPLIED |
| 117 |
%XML-EVENTS.pfx;condition CDATA #IMPLIED" |
| 118 |
> |
| 119 |
|
| 120 |
<!-- end of xml-events-qname-2.mod --> |