22:
1394:
269:
it forces authors to mix the content of the document with the specifications of the scripting and event handling, rather than allowing them to separate them.
1400:
1190:
289:, which are usually associated with HTML documents, XML events are designed to be independent of specific devices. XML Events are used extensively in
198:(DOM) Level 2 event interfaces. The result is to provide a declarative, interoperable way of associating behaviors with XML-based documents such as
695:
1424:
705:
1195:
1252:
715:
1388:
986:
529:
556:
1036:
1274:
1062:
700:
678:
86:
978:
1119:
968:
58:
789:
105:
1231:
725:
65:
1109:
876:
683:
43:
1078:
142:
document. These events are typically caused by users interacting with the web page using a device, such as a
254:
Stay <a href="http://www.example.org" onclick="window.alert('Hello!'); return false;">here</a>!
242:
name, such that the value of the attribute is the action for that event at that element. For example, (with
72:
1200:
1083:
648:
186:
The XML Events standard is defined to provide XML-based languages with the ability to uniformly integrate
522:
39:
996:
54:
1174:
658:
616:
569:
538:
730:
584:
294:
235:
221:. It gives authors freedom in organizing their code and allows separation of document content from
135:
1114:
1011:
1006:
621:
599:
32:
1124:
918:
515:
211:
720:
673:
611:
195:
804:
643:
501:
8:
1349:
1341:
841:
668:
626:
79:
1365:
1357:
1280:
1150:
735:
273:
222:
1333:
1221:
1216:
777:
496:
263:
147:
305:
The following is an example of how XML events are used in the XForms specification:
163:
851:
119:
507:
1129:
1016:
604:
187:
123:
1088:
1046:
831:
594:
238:
versions bind events to presentation elements by encoding the event name in an
214:
191:
167:
1418:
928:
856:
846:
772:
579:
228:
218:
1429:
151:
1325:
1257:
1226:
963:
814:
784:
767:
564:
143:
1310:
794:
757:
688:
438:
433:
428:
286:
243:
175:
239:
948:
886:
21:
898:
866:
826:
762:
574:
468:
300:
492:
1285:
1041:
891:
653:
266:, so that adding new event types requires changes to the language
174:
document. XML Events provides a static, syntactic binding to the
297:
specification, as of July 2006, which is still a working draft.
1315:
1236:
1104:
1026:
908:
861:
799:
752:
663:
443:
290:
1031:
1001:
991:
953:
903:
881:
871:
809:
747:
742:
636:
448:
199:
1021:
923:
710:
631:
231:
1145:
958:
913:
821:
589:
411:
event occurs on the data element with an id attribute of
171:
139:
131:
537:
46:. Unsourced material may be challenged and removed.
280:
419:(for example, a JavaScript element) is executed.
170:) that gets associated with a data element in an
1416:
301:Example of XML Events using a listener in XForms
523:
322:"http://www.w3.org/2001/xml-events"
178:interface, allowing the event to be handled.
217:, and is technology-neutral with regard to
205:
162:An XML Event is the representation of some
530:
516:
328:"http://www.w3.org/2002/xforms"
106:Learn how and when to remove this message
316:"http://www.w3.org/1999/xhtml"
1389:International World Wide Web Conference
471:. World Wide Web Consortium. 2003-10-14
1417:
469:"XML Events: An Events Syntax for XML"
511:
497:W3C Recommendation on 14 October 2003
1063:Web Content Accessibility Guidelines
377:</xf:label></xf:trigger>
157:
44:adding citations to reliable sources
15:
1425:World Wide Web Consortium standards
13:
392:"application/ecmascript"
262:it hard-wires the events into the
14:
1441:
486:
272:it restricts authors to a single
258:This design has three drawbacks:
20:
1286:Multimodal Interaction Activity
1246:Community & business groups
502:W3C XML Events for HTML Authors
281:Relationship to other standards
31:needs additional citations for
461:
1:
454:
181:
1084:Web Accessibility Initiative
493:W3C XML Events Specification
7:
1369:(browser/editor, 1996โ2012)
422:
10:
1446:
407:In this example, when the
293:and in version 1.2 of the
1381:
1324:
1306:
1299:
1267:
1245:
1209:
1183:
1175:World Wide Web Foundation
1170:
1163:
1138:
1097:
1079:Markup Validation Service
1071:
1055:
977:
941:
659:Linked Data Notifications
555:
546:
539:World Wide Web Consortium
397:alert("test");
307:
206:Advantages of XML Events
343:"DOMActivate"
212:separation of concerns
166:occurrence (such as a
134:standard for handling
196:Document Object Model
373:><xf:label>
370:"myButton"
349:"myButton"
40:improve this article
1395:Steering Committee
1275:Device Description
1253:Web Advertising BG
274:scripting language
210:XML Events uses a
168:mouse button click
1412:
1411:
1377:
1376:
1295:
1294:
1159:
1158:
355:"#doit"
158:Formal definition
148:personal computer
138:that occur in an
116:
115:
108:
90:
1437:
1401:First conference
1370:
1362:
1354:
1346:
1338:
1304:
1303:
1168:
1167:
1151:XHTML+MathML+SVG
570:Activity Streams
553:
552:
532:
525:
518:
509:
508:
480:
479:
477:
476:
465:
418:
414:
410:
403:
400:
396:
393:
390:
387:
386:"doit"
384:
381:
378:
374:
371:
368:
365:
362:
359:
356:
353:
350:
347:
344:
341:
338:
335:
332:
329:
326:
323:
320:
317:
314:
311:
255:
120:computer science
111:
104:
100:
97:
91:
89:
48:
24:
16:
1445:
1444:
1440:
1439:
1438:
1436:
1435:
1434:
1415:
1414:
1413:
1408:
1373:
1368:
1360:
1352:
1344:
1336:
1320:
1291:
1263:
1241:
1205:
1179:
1155:
1134:
1093:
1067:
1051:
1017:SMIL Timesheets
973:
937:
842:Information Set
627:Geolocation API
557:Recommendations
548:
542:
536:
489:
484:
483:
474:
472:
467:
466:
462:
457:
425:
416:
412:
408:
405:
404:
401:
399:</script>
398:
394:
391:
388:
385:
382:
379:
376:
372:
369:
366:
363:
360:
357:
354:
351:
348:
345:
342:
339:
337:<ev:listener
336:
333:
330:
327:
324:
321:
318:
315:
312:
309:
303:
283:
253:
208:
190:and associated
188:event listeners
184:
160:
124:web development
112:
101:
95:
92:
49:
47:
37:
25:
12:
11:
5:
1443:
1433:
1432:
1427:
1410:
1409:
1407:
1406:
1405:
1404:
1403:("WWW1", 1994)
1398:
1385:
1383:
1379:
1378:
1375:
1374:
1372:
1371:
1363:
1355:
1347:
1339:
1330:
1328:
1322:
1321:
1319:
1318:
1313:
1307:
1301:
1297:
1296:
1293:
1292:
1290:
1289:
1283:
1278:
1271:
1269:
1265:
1264:
1262:
1261:
1255:
1249:
1247:
1243:
1242:
1240:
1239:
1234:
1229:
1224:
1219:
1213:
1211:
1210:Working groups
1207:
1206:
1204:
1203:
1198:
1193:
1187:
1185:
1184:Elected groups
1181:
1180:
1178:
1177:
1171:
1165:
1161:
1160:
1157:
1156:
1154:
1153:
1148:
1142:
1140:
1136:
1135:
1133:
1132:
1127:
1122:
1117:
1112:
1107:
1101:
1099:
1095:
1094:
1092:
1091:
1089:Web Components
1086:
1081:
1075:
1073:
1069:
1068:
1066:
1065:
1059:
1057:
1053:
1052:
1050:
1049:
1047:XMLHttpRequest
1044:
1039:
1034:
1029:
1024:
1019:
1014:
1009:
1004:
999:
994:
989:
983:
981:
979:Working drafts
975:
974:
972:
971:
966:
961:
956:
951:
945:
943:
939:
938:
936:
935:
934:
933:
932:
931:
921:
916:
911:
906:
901:
896:
895:
894:
889:
879:
874:
869:
864:
859:
854:
849:
844:
839:
834:
829:
819:
818:
817:
807:
802:
797:
792:
787:
782:
781:
780:
770:
765:
760:
755:
750:
745:
740:
739:
738:
736:Filter Effects
728:
723:
718:
713:
708:
703:
698:
693:
692:
691:
681:
676:
671:
666:
661:
656:
651:
646:
641:
640:
639:
629:
624:
619:
614:
609:
608:
607:
602:
597:
587:
582:
577:
572:
567:
561:
559:
550:
544:
543:
535:
534:
527:
520:
512:
506:
505:
499:
488:
487:External links
485:
482:
481:
459:
458:
456:
453:
452:
451:
446:
441:
436:
431:
424:
421:
415:, the handler
364:<xf:trigger
308:
302:
299:
282:
279:
278:
277:
270:
267:
215:design pattern
207:
204:
192:event handlers
183:
180:
159:
156:
114:
113:
28:
26:
19:
9:
6:
4:
3:
2:
1442:
1431:
1428:
1426:
1423:
1422:
1420:
1402:
1399:
1396:
1393:
1392:
1390:
1387:
1386:
1384:
1380:
1367:
1364:
1359:
1356:
1351:
1348:
1343:
1340:
1335:
1332:
1331:
1329:
1327:
1323:
1317:
1314:
1312:
1309:
1308:
1305:
1302:
1298:
1287:
1284:
1282:
1279:
1276:
1273:
1272:
1270:
1268:Closed groups
1266:
1259:
1256:
1254:
1251:
1250:
1248:
1244:
1238:
1235:
1233:
1230:
1228:
1225:
1223:
1220:
1218:
1215:
1214:
1212:
1208:
1202:
1199:
1197:
1194:
1192:
1189:
1188:
1186:
1182:
1176:
1173:
1172:
1169:
1166:
1164:Organizations
1162:
1152:
1149:
1147:
1144:
1143:
1141:
1137:
1131:
1128:
1126:
1123:
1121:
1118:
1116:
1113:
1111:
1108:
1106:
1103:
1102:
1100:
1096:
1090:
1087:
1085:
1082:
1080:
1077:
1076:
1074:
1070:
1064:
1061:
1060:
1058:
1054:
1048:
1045:
1043:
1040:
1038:
1035:
1033:
1030:
1028:
1025:
1023:
1020:
1018:
1015:
1013:
1010:
1008:
1005:
1003:
1000:
998:
995:
993:
990:
988:
985:
984:
982:
980:
976:
970:
967:
965:
962:
960:
957:
955:
952:
950:
947:
946:
944:
940:
930:
927:
926:
925:
922:
920:
917:
915:
912:
910:
907:
905:
902:
900:
897:
893:
890:
888:
885:
884:
883:
880:
878:
875:
873:
870:
868:
865:
863:
860:
858:
855:
853:
850:
848:
845:
843:
840:
838:
835:
833:
830:
828:
825:
824:
823:
820:
816:
813:
812:
811:
808:
806:
803:
801:
798:
796:
793:
791:
788:
786:
783:
779:
776:
775:
774:
771:
769:
766:
764:
761:
759:
756:
754:
751:
749:
746:
744:
741:
737:
734:
733:
732:
729:
727:
724:
722:
719:
717:
714:
712:
709:
707:
704:
702:
699:
697:
694:
690:
687:
686:
685:
682:
680:
677:
675:
672:
670:
667:
665:
662:
660:
657:
655:
652:
650:
647:
645:
642:
638:
635:
634:
633:
630:
628:
625:
623:
620:
618:
615:
613:
610:
606:
603:
601:
598:
596:
593:
592:
591:
588:
586:
583:
581:
580:Canonical XML
578:
576:
573:
571:
568:
566:
563:
562:
560:
558:
554:
551:
545:
540:
533:
528:
526:
521:
519:
514:
513:
510:
503:
500:
498:
494:
491:
490:
470:
464:
460:
450:
447:
445:
442:
440:
437:
435:
432:
430:
427:
426:
420:
402:</html>
361:</head>
306:
298:
296:
292:
288:
276:per document.
275:
271:
268:
265:
261:
260:
259:
256:
251:
249:
245:
241:
237:
233:
230:
226:
224:
220:
216:
213:
203:
201:
197:
193:
189:
179:
177:
173:
169:
165:
155:
153:
149:
145:
141:
137:
133:
129:
125:
121:
110:
107:
99:
96:November 2008
88:
85:
81:
78:
74:
71:
67:
64:
60:
57: โ
56:
52:
51:Find sources:
45:
41:
35:
34:
29:This article
27:
23:
18:
17:
836:
547:Products and
473:. Retrieved
463:
406:
334:<head>
304:
284:
257:
252:
250:attribute):
247:
227:
209:
185:
164:asynchronous
161:
152:mobile phone
127:
117:
102:
93:
83:
76:
69:
62:
55:"XML Events"
50:
38:Please help
33:verification
30:
1382:Conferences
1258:WebAssembly
1227:WebAssembly
1130:WebPlatform
785:Web storage
768:WebAssembly
565:ActivityPub
409:DOMActivate
144:web browser
1419:Categories
1311:CERN httpd
1098:Deprecated
1072:Initiative
1056:Guidelines
964:XHTML+SMIL
832:Encryption
795:Webmention
758:Timed text
595:Animations
475:2008-11-19
455:References
439:DOM Events
434:JavaScript
429:ECMAScript
380:<script
287:DOM Events
244:JavaScript
234:and early
182:Motivation
176:DOM Events
128:XML Events
66:newspapers
1361:(1994โ97)
1353:(1994โ97)
1345:(1993โ98)
1334:Line Mode
1139:Obsoleted
949:IndieAuth
857:Signature
847:Namespace
644:IndexedDB
622:EmotionML
549:standards
346:observer=
325:xmlns:xf=
319:xmlns:ev=
240:attribute
223:scripting
1326:Browsers
1300:Software
1232:WebAuthn
929:elements
899:XPointer
867:XInclude
763:VoiceXML
669:Micropub
504:tutorial
423:See also
413:myButton
352:handler=
310:<html
264:language
219:handlers
1397:(IW3C2)
1391:(IW3C)
1337:(1990โ)
1042:XFrames
654:JSON-LD
600:Flexbox
383:xml:id=
367:xml:id=
285:Unlike
248:onclick
80:scholar
1316:Libwww
1277:(DDWG)
1237:WHATWG
1105:C-HTML
1027:WebGPU
919:XSL-FO
909:XQuery
862:XForms
852:Schema
837:Events
800:WebSub
753:SPARQL
689:Schema
664:MathML
495:was a
444:XForms
340:event=
313:xmlns=
291:XForms
229:Legacy
136:events
82:
75:
68:
61:
53:
1366:Amaya
1350:Agora
1342:Arena
1288:(MMI)
1196:Board
1032:WebXR
1002:InkML
992:CURIE
987:CCXML
954:XAdES
942:Notes
904:XProc
882:XPath
872:XLink
815:+RDFa
810:XHTML
748:SHACL
743:SCXML
637:HTML5
541:(W3C)
449:XHTML
389:type=
375:Doit!
358:/>
200:XHTML
194:with
146:on a
130:is a
87:JSTOR
73:books
1358:Argo
1281:HTML
1120:PGML
1115:JSSS
1110:HDML
1037:XFDL
1022:sXBL
924:XSLT
827:Base
805:WOFF
790:WSDL
726:SSML
716:SRGS
711:SOAP
706:SMIL
701:SKOS
696:SISR
632:HTML
605:Grid
575:ARIA
417:doit
395:>
331:>
232:HTML
122:and
59:news
1430:XML
1222:SVG
1217:CSS
1201:TAG
1146:P3P
1125:VML
1012:RIF
1007:MSE
997:EME
969:XUP
959:XBL
914:XSL
892:3.x
887:2.0
877:XOP
822:XML
773:WoT
731:SVG
721:SRI
684:RDF
679:PLS
674:OWL
649:ITS
617:EXI
612:DOM
590:CSS
585:CDF
295:SVG
246:โs
236:SVG
172:XML
150:or
140:XML
132:W3C
118:In
42:by
1421::
1260:CG
1191:AB
778:TD
225:.
202:.
154:.
126:,
531:e
524:t
517:v
478:.
109:)
103:(
98:)
94:(
84:ยท
77:ยท
70:ยท
63:ยท
36:.
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.