Annotation of Amaya/amaya/HTML.S, revision 1.237
1.236 vatton 1: { . Vatton Nonember 1994-2002 }
1.68 cvs 2:
1.1 cvs 3: STRUCTURE HTML;
4:
5: DEFPRES HTMLP;
1.44 cvs 6:
1.1 cvs 7: ATTR
1.59 cvs 8: { coreattrs }
1.63 cvs 9: ID = Text; { id }
10: Class = Text; { class }
11: PseudoClass = Text;
12: Style\240 = Text; { style }
13: Title = Text; { title }
1.237 ! carcone 14: { i18n }
1.137 quint 15: dir = ltr_, rtl_; { dir }
1.237 ! carcone 16: { RDFa }
! 17: about = Text; { about }
! 18: property = Text; { property }
! 19: resource = Text; { resource }
! 20: datatype = Text; { datatype }
! 21: instanceof = Text; { instanceof }
1.59 cvs 22: { events }
1.63 cvs 23: onclick = Text; { onclick }
24: ondblclick = Text; { ondblclick }
25: onmousedown = Text; { onmousedown }
26: onmouseup = Text; { onmouseup }
27: onmouseover = Text; { onmouseover }
28: onmousemove = Text; { onmousemove }
29: onmouseout = Text; { onmouseout }
30: onkeypress = Text; { onkeypress }
31: onkeydown = Text; { onkeydown }
32: onkeyup = Text; { onkeyup }
1.59 cvs 33:
1.63 cvs 34: Invalid_attribute = Text;
1.127 cvs 35: Unknown_attribute = Text;
1.63 cvs 36: Ghost_restruct = Text;
1.114 cvs 37: Highlight = Yes_; { to show the HTML element corresponding to the
38: current selection in the source view }
1.100 cvs 39: IntEntity = Yes_; { do not translate & into & in output file }
40: EntityName = Text; { the content of the element is the name of an entity }
1.206 vatton 41: xmlid = Text; { xml:id }
1.110 cvs 42: xml_space = xml_space_default, xml_space_preserve; { xml:space }
1.167 gully 43: NoImages = Yes_;
44: NoObjects = Yes_;
1.1 cvs 45:
46: CONST
1.59 cvs 47:
1.1 cvs 48: C_Empty = ' ';
49: C_Head = ' ';
1.64 cvs 50: C_BR = '\12';
1.1 cvs 51:
52: STRUCT
1.59 cvs 53:
1.63 cvs 54: HTML { HTML }
1.191 vatton 55: (ATTR ShowAreas = Yes_;
1.143 cvs 56: PrintURL = Yes_; PI = Text;
1.101 cvs 57: Namespaces = Text; RealLang = Yes_; Charset = Text) =
1.226 vatton 58: BEGIN
59: HEAD;
60: ? BODY; { only one of BODY, document type }
1.72 cvs 61: ? FRAMESET;
1.227 vatton 62: END + (Invalid_element, ASP_element, Unknown_namespace, XHTML_Unknown_namespace, Comment\240, XMLPI, CDATA);
1.226 vatton 63:
1.189 quint 64: DOCTYPE = LIST OF (DOCTYPE_line = TEXT);
1.227 vatton 65:
1.163 vatton 66: Invalid_element = TEXT;
1.227 vatton 67: ASP_element = LIST OF (ASP_line = TEXT);
1.127 cvs 68: Unknown_namespace = TEXT;
69:
1.164 cvs 70: XHTML_Unknown_namespace = TEXT;
71:
1.186 vatton 72: Comment\240 = LIST OF (Comment_line = TEXT) - (Comment\240);
1.1 cvs 73:
1.161 cvs 74: XMLPI (ATTR is_css = Text) = LIST OF (PI_line = TEXT);
1.226 vatton 75:
1.140 cvs 76: CDATA = LIST OF (CDATA_line = TEXT);
1.136 cvs 77:
1.226 vatton 78: HEAD { HEAD }
1.63 cvs 79: (ATTR profile = Text) =
1.226 vatton 80: AGGREGATE
81: Document_URL = TEXT - (STYLE_, SCRIPT_, META, LINK);
82: TITLE = TEXT - (STYLE_, SCRIPT_, META, LINK); { TITLE }
83: ? ISINDEX (ATTR Prompt = Text) = CONSTANT C_Empty; { ISINDEX }
84: { prompt }
85: ? BASE; { BASE }
86: END + (Object, STYLE_, SCRIPT_, META, LINK);
1.63 cvs 87:
1.226 vatton 88: STYLE_ { STYLE }
1.197 quint 89: (ATTR !Notation = Text; media = Text) =
1.226 vatton 90: { type media }
91: TEXT - (STYLE_, SCRIPT_, META, LINK);
1.64 cvs 92:
1.226 vatton 93: SCRIPT_ { SCRIPT }
1.197 quint 94: (ATTR charset = Text; !content_type = Text;
1.226 vatton 95: { charset type }
96: script_language = Text; script_src = Text;
97: { language src }
98: defer = Yes_; event = Text; for_ = Text) =
99: { defer event for }
100: TEXT - (STYLE_, SCRIPT_, META, LINK) with content_type ?= 'text/javascript';
1.59 cvs 101:
1.226 vatton 102: META { META }
1.63 cvs 103: (ATTR http_equiv = Text;
1.226 vatton 104: { http-equiv }
105: meta_name = Text; !meta_content = Text;
1.197 quint 106: { name content }
1.226 vatton 107: scheme = Text) =
108: { scheme }
109: CONSTANT C_Empty;
1.1 cvs 110:
1.226 vatton 111: LINK { LINK }
1.63 cvs 112: (ATTR charset; HREF_ = Text; hreflang = Text;
1.226 vatton 113: { charset href hreflang }
114: Link_type = Text; REL = Text; REV = Text;
115: { type rel rev }
116: media; target_ = Text) =
117: { media target }
118: CONSTANT C_Empty;
1.63 cvs 119:
1.226 vatton 120: BASE { BASE }
1.63 cvs 121: (ATTR !HREF_; target_) =
1.226 vatton 122: { href target }
123: CONSTANT C_Empty;
1.1 cvs 124:
1.226 vatton 125: IMG { IMG }
126: (ATTR !SRC = Text; !ALT = Text; longdesc = Text;
127: { src alt longdesc }
128: Height_ = Text; Width__ = Text;
129: { height width }
130: IntWidthPercent = Integer; IntWidthPxl = Integer;
131: IntHeightPercent = Integer; IntHeightPxl = Integer;
132: USEMAP = Text; ISAMAP = Yes_;
133: { usemap ismap }
134: Alignment = Top_, Middle_, Bottom_, Left_, Right_;
135: { align top middle bottom left right }
136: Img_border = Integer;
137: { border }
138: hspace = Integer; vspace = Integer) =
139: { hspace vspace }
1.221 vatton 140: BEGIN
1.226 vatton 141: PICTURE (ATTR SRC);
1.221 vatton 142: END;
143:
1.226 vatton 144: BODY { BODY }
1.189 quint 145: (ATTR onload = Text; onunload = Text;
1.226 vatton 146: { onload onunload }
147: background_ = Text; BackgroundColor = Text;
148: { background bgcolor }
149: TextColor = Text; LinkColor = Text;
1.189 quint 150: { text link }
1.226 vatton 151: VisitedLinkColor = Text; ActiveLinkColor = Text) =
1.189 quint 152: { vlink alink }
1.228 vatton 153: LIST OF (Element);
1.189 quint 154:
1.226 vatton 155: Element = CASE OF { block }
156: Paragraph; { P }
157: Pseudo_paragraph;
158: Heading; { heading }
159: List_; { list + DL }
160: Preformatted; { PRE preformatted }
161: Division; { DIV }
162: Center; { CENTER }
163: SCRIPT_; { SCRIPT }
164: NOSCRIPT = LIST OF (Element) - (SCRIPT_); { NOSCRIPT }
165: Block_Quote; { BLOCKQUOTE }
166: Form; { FORM }
167: ISINDEX; { ISINDEX }
168: Horizontal_Rule; { HR }
169: Table_; { TABLE }
170: FIELDSET; { FIELDSET }
171: Address; { ADDRESS }
172: IMG; { IMG }
1.229 vatton 173: INS;
174: DEL;
1.226 vatton 175: Object; { OBJECT }
176: Applet; { APPLET }
177: MathML; { MATH }
1.228 vatton 178: SVG; { SVG }
179: XLink; { Annotations }
1.226 vatton 180: External_Object { IMG type=svg}
181: (ATTR SRC;
182: { src }
183: Height_; Width__;
184: { height width }
185: IntWidthPercent; IntWidthPxl;
186: IntHeightPercent; IntHeightPxl;
187: USEMAP; ISAMAP;
188: { usemap ismap }
189: NAME = Text;
190: { name }
191: Alignment;
192: { align top middle bottom left right }
193: Img_border;
194: { border }
195: hspace; vspace) =
196: { hspace vspace }
197: BEGIN
198: External_Object_Content;
199: END;
200: Embed_ { EMBED }
201: (ATTR SRC;
202: Alignment;
203: { align top bottom left right }
204: Height_; Width__;
205: { height width }
206: EmbedHidden = Yes_, No_;
207: { hidden yes no }
208: EmbedName = Text;
209: { name }
210: hspace; vspace;
211: { hspace vspace }
212: Embed_type = Text;
213: { type }
214: pluginspage = Text;
215: pluginurl = Text;
216: ) =
217: BEGIN
218: Embed_Content;
219: END;
1.228 vatton 220: Template; { XTiger }
1.226 vatton 221: END;
222:
223: HTMLfragment = LIST OF (Element);
224: External_Object_Content = NATURE;
225: Embed_Content = NATURE;
1.52 cvs 226:
1.226 vatton 227: Block_Quote { BLOCKQUOTE }
1.63 cvs 228: (ATTR cite = Text;
1.226 vatton 229: { cite }
230: InternalLink = Reference(Any); ExternalLink = Yes_) =
231: LIST OF (Element);
1.63 cvs 232:
1.226 vatton 233: Horizontal_Rule { HR }
1.63 cvs 234: (ATTR Align = left_, center_, right_;
1.226 vatton 235: { align left center right }
236: NoShade = NoShade_; Size_ = Integer; Width__;
237: { noshade size width }
238: IntWidthPercent; IntWidthPxl) =
239: CONSTANT C_Empty;
1.63 cvs 240:
1.67 cvs 241: Basic_Set = LIST OF (Basic_Elem);
242:
1.179 quint 243: { Paragraph must be the first element defined as a Basic_Set, to make
244: sure that the editor will create a Paragraph when the user wants to
245: create a Basic_Elem }
1.226 vatton 246: Paragraph { P }
1.63 cvs 247: (ATTR TextAlign = left_, center_, right_, justify_) =
1.226 vatton 248: { align left center right justify }
249: Basic_Set;
1.63 cvs 250:
1.179 quint 251: Address = Basic_Set;
252:
1.59 cvs 253: Pseudo_paragraph = Basic_Set;
254:
1.226 vatton 255: Heading = CASE OF { heading }
256: H1 (ATTR TextAlign) = Basic_Set; { H1 }
257: { align }
258: H2 (ATTR TextAlign) = Basic_Set; { H2 }
259: H3 (ATTR TextAlign) = Basic_Set; { H3 }
260: H4 (ATTR TextAlign) = Basic_Set; { H4 }
261: H5 (ATTR TextAlign) = Basic_Set; { H5 }
262: H6 (ATTR TextAlign) = Basic_Set; { H6 }
263: END;
1.1 cvs 264:
1.226 vatton 265: Preformatted { PRE }
1.63 cvs 266: (ATTR Width__; IntWidthPercent; IntWidthPxl) =
1.226 vatton 267: { width }
268: Basic_Set
269: - (IMG, Object, Applet,
270: Big_text, Small_text, Subscript, Superscript,
271: Font_, BaseFont, External_Object);
1.59 cvs 272:
1.226 vatton 273: Anchor { A }
1.94 cvs 274: (ATTR charset; Link_type; NAME;
1.226 vatton 275: { charset type name }
276: HREF_; hreflang; target_;
277: { href hreflang target}
278: REL; REV; accesskey = Text;
279: { rel rev accesskey }
280: shape = rectangle, circle, polygon, default_;
281: { shape rect cirecle poly default }
282: coords = Text; tabindex = Integer;
283: { coords tabindex }
284: onfocus = Text; onblur = Text;
285: { onfocus onblur }
286: InternalLink; ExternalLink;
287: { InternalLink ExternalLink }) =
288: Basic_Set;
1.1 cvs 289:
1.226 vatton 290: Basic_Elem = CASE OF { special }
1.1 cvs 291: TEXT;
1.226 vatton 292: Font; { fontstyle }
293: Phrase; { phrase }
294: Form_Element; { formctrl }
295: Anchor; { A }
296: IMG; { IMG }
297: Applet; { APPLET }
298: Font_; { FONT }
299: BaseFont; { BASEFONT }
300: BR; { BR }
301: SCRIPT_; { SCRIPT }
302: Quotation; { Q }
303: Subscript = Basic_Set; { SUB }
304: Superscript = Basic_Set; { SUP }
305: Span = Basic_Set; { SPAN }
1.228 vatton 306: map; MAP; { MAP }
1.226 vatton 307: BDO (ATTR !dir) = Basic_Set; { BDO }
308: Object; { OBJECT }
309: Embed_; { EMBED }
310: IFRAME; { IFRAME }
311: ruby; { ruby }
312: MathML; { MATH }
313: XLink; { Annotations }
1.228 vatton 314: Template; { XTiger }
1.226 vatton 315: External_Object; { External Object }
316: END;
1.59 cvs 317:
1.226 vatton 318: BaseFont { BASEFONT }
1.197 quint 319: (ATTR !BaseFontSize = Integer; BaseFontColor = Text;
1.226 vatton 320: { size color }
321: BaseFontFace = Text) =
1.63 cvs 322: { face }
1.226 vatton 323: CONSTANT C_Empty;
1.63 cvs 324:
1.226 vatton 325: BR { BR }
1.159 quint 326: (ATTR Clear_ = Left_, Right_, All_, None_) =
1.226 vatton 327: { clear left right all none }
328: CONSTANT C_BR;
1.63 cvs 329:
1.226 vatton 330: Quotation { Q }
1.63 cvs 331: (ATTR cite; InternalLink; ExternalLink) =
1.226 vatton 332: { cite }
333: Basic_Set;
1.59 cvs 334:
1.226 vatton 335: Font = CASE OF { fontstyle }
336: Teletype_text = Basic_Set; { TT }
337: Italic_text = Basic_Set; { I }
338: Bold_text = Basic_Set; { B }
339: Underlined_text = Basic_Set; { U }
340: Struck_text = Basic_Set; { S or STRIKE }
341: Big_text = Basic_Set; { BIG }
342: Small_text = Basic_Set; { SMALL }
343: END;
344:
345: Phrase = CASE OF { phrase }
346: Emphasis = Basic_Set; { EM }
347: Strong = Basic_Set; { STRONG }
348: Def = Basic_Set; { DFN }
349: Code = Basic_Set; { CODE }
350: Sample = Basic_Set; { SAMP }
351: Keyboard = Basic_Set; { KBD }
352: Variable_ = Basic_Set; { VAR }
353: Cite = Basic_Set; { CITE }
354: ABBR = Basic_Set; { ABBR }
355: ACRONYM = Basic_Set; { ACRONYM }
1.228 vatton 356: ins; { INS }
357: del; { DEL }
1.226 vatton 358: END;
1.59 cvs 359:
1.226 vatton 360: Font_ { FONT }
1.63 cvs 361: (ATTR Font_size = Text; color = Text; face = Text;
1.226 vatton 362: { size color face }
363: IntSizeIncr = Integer; IntSizeDecr = Integer;
364: IntSizeRel = Integer) =
365: Basic_Set;
1.63 cvs 366:
1.226 vatton 367: Applet { APPLET }
1.63 cvs 368: (ATTR codebase = Text; archive = Text; code = Text;
1.226 vatton 369: { codebase archive code }
370: object = Text; alt = Text; applet_name = Text;
371: { object alt name }
372: !Width__; IntWidthPercent; IntWidthPxl;
373: { width }
1.197 quint 374: !Height_; IntHeightPercent; IntHeightPxl;
1.226 vatton 375: { height }
376: Alignment; hspace; vspace) =
377: { align hspace vspace }
378: LIST OF (Applet_Content = CASE OF
379: Parameter; { PARAM }
380: Basic_Set;
381: END);
382: Parameter { PARAM }
1.197 quint 383: (ATTR !Param_name = Text; Param_value = Text;
1.226 vatton 384: { name value }
385: valuetype = data_, ref, object_;
386: { valuetype data ref object }
387: Param_type = Text) =
388: { type }
389: CONSTANT C_Empty;
1.59 cvs 390:
1.226 vatton 391: Object { OBJECT }
1.145 quint 392: (ATTR declare = declare_; classid = Text; codebase;
1.226 vatton 393: { declare classid codebase }
394: data = Text; Object_type = Text;
395: { data type }
396: codetype = Text; archive; standby = Text;
1.63 cvs 397: { codetype archive standby }
1.226 vatton 398: Height_; Width__;
399: IntWidthPercent; IntWidthPxl;
1.129 vatton 400: IntHeightPercent; IntHeightPxl;
1.226 vatton 401: { height width }
402: USEMAP; NAME; tabindex; Alignment; Img_border;
403: { usemap name tabindex align border }
404: hspace; vspace) =
1.63 cvs 405: { hspace vspace }
1.226 vatton 406: BEGIN
407: PICTURE;
408: Object_Content = LIST OF (ElemOrParam = CASE OF
409: Element; Parameter; END); { PARAM }
410: END;
1.61 cvs 411:
1.226 vatton 412: INS { INS }
1.72 cvs 413: (ATTR cite; datetime = Text; InternalLink; ExternalLink) =
1.226 vatton 414: { cite datetime }
1.229 vatton 415: LIST OF (Element);
1.228 vatton 416:
417: DEL { DEL }
418: (ATTR cite; datetime; InternalLink; ExternalLink) =
419: { cite datetime }
1.229 vatton 420: LIST OF (Element);
1.228 vatton 421:
422: ins { INS }
423: (ATTR cite; datetime; InternalLink; ExternalLink) =
424: { cite datetime }
1.226 vatton 425: Basic_Set;
1.63 cvs 426:
1.228 vatton 427: del { DEL }
1.72 cvs 428: (ATTR cite; datetime; InternalLink; ExternalLink) =
1.226 vatton 429: { cite datetime }
430: Basic_Set;
1.1 cvs 431:
1.224 vatton 432: Block = CASE OF {Block}
1.226 vatton 433: Paragraph;
434: Pseudo_paragraph;
435: Heading;
436: List_;
437: Preformatted;
438: Division;
439: Center;
440: Block_Quote;
441: Form;
442: Horizontal_Rule;
443: Table_;
444: Address;
445: IMG;
446: Object;
447: Applet;
448: MathML;
1.228 vatton 449: SVG;
450: XLink;
1.226 vatton 451: External_Object;
452: Embed_;
1.228 vatton 453: INS;
454: DEL;
1.226 vatton 455: END;
1.1 cvs 456:
1.226 vatton 457: Division { DIV }
1.63 cvs 458: (ATTR TextAlign) =
1.226 vatton 459: { align }
460: LIST OF (Element);
1.63 cvs 461:
1.226 vatton 462: Center = { CENTER }
463: LIST OF (Element);
1.1 cvs 464:
1.226 vatton 465: List_ = CASE OF { list }
466: Unnumbered_List; { UL }
467: Numbered_List; { OL }
468: Directory; { DIR }
469: Menu; { MENU }
470: Definition_List; { DL }
471: END;
1.63 cvs 472:
1.226 vatton 473: Unnumbered_List { UL }
1.193 quint 474: (ATTR BulletStyle = disc_, circle_, square_;
1.226 vatton 475: { type disc circle square }
476: COMPACT = Yes_) =
477: { compact }
478: LIST OF (List_Item);
1.63 cvs 479:
1.226 vatton 480: Numbered_List { OL }
1.63 cvs 481: (ATTR NumberStyle = Arabic_, LowerAlpha, UpperAlpha,
1.226 vatton 482: { type 1 a A }
483: LowerRoman_, UpperRoman_;
484: { i I }
485: Start = Integer; COMPACT) =
486: { start compact }
487: LIST OF (List_Item);
1.63 cvs 488:
1.226 vatton 489: Directory { DIR }
1.63 cvs 490: (ATTR COMPACT) =
1.226 vatton 491: { compact }
492: LIST OF (List_Item);
1.63 cvs 493:
1.226 vatton 494: Menu { MENU }
1.63 cvs 495: (ATTR COMPACT) =
1.226 vatton 496: { compact }
497: LIST OF (List_Item);
1.63 cvs 498:
1.226 vatton 499: List_Item { LI }
1.193 quint 500: (ATTR ItemStyle = disc_, circle_, square_, Arabic_,
1.226 vatton 501: { type disc circle square 1 }
502: LowerAlpha, UpperAlpha, LowerRoman_, UpperRoman_;
503: { a A i I }
504: ItemValue = Integer) =
505: { value }
506: LIST OF (Block);
1.1 cvs 507:
1.226 vatton 508: Definition_List { DL }
1.189 quint 509: (ATTR COMPACT) =
1.226 vatton 510: { compact }
511: LIST OF (Definition_Item);
1.189 quint 512:
1.59 cvs 513: Definition_Item = BEGIN
1.226 vatton 514: Term_List = LIST OF (Term = Basic_Set); { DT }
515: ? Definitions = LIST OF (Definition = LIST OF (Block)); { DD }
516: END;
1.1 cvs 517:
1.226 vatton 518: Form { FORM }
1.63 cvs 519: (ATTR !Script_URL = Text; METHOD = Get_, Post_;
1.226 vatton 520: { action method }
521: ENCTYPE = Text; onsubmit = Text; onreset = Text;
522: { enctype onsubmit onreset }
523: target_; accept_charset = Text) =
524: { target accept-charset }
525: LIST OF (Element) + (Input) - (Form);
1.1 cvs 526:
527: Form_Element = CASE OF
1.226 vatton 528: Input; { INPUT }
529: Option_Menu; { SELECT }
530: Text_Area; { TEXTAREA }
531: LABEL; { LABEL }
532: BUTTON_; { BUTTON }
533: END;
1.1 cvs 534:
1.226 vatton 535: Option_Menu { SELECT }
1.202 quint 536: (ATTR NAME; MenuSize = Integer; Multiple = Yes_;
1.226 vatton 537: { name size multiple }
538: disabled = Yes_; tabindex; onfocus; onblur;
539: { disabled tabindex onfocus onblur}
540: onchange = Text) =
541: { onchange }
542: LIST OF (Option_item = CASE OF Option; OptGroup; END) - (Input);
1.63 cvs 543:
1.226 vatton 544: Option { OPTION }
1.182 quint 545: (ATTR Selected = Yes_; DefaultSelected = Yes_; ShowMe = Yes_;
1.226 vatton 546: { selected }
547: disabled; label = Text; Value_ = Text) =
1.202 quint 548: { disabled label value }
1.226 vatton 549: TEXT;
1.76 cvs 550:
1.226 vatton 551: OptGroup { OPTGROUP }
1.78 cvs 552: (ATTR disabled; !label) =
1.226 vatton 553: { disabled label }
554: LIST OF (Option);
1.1 cvs 555:
1.226 vatton 556: Text_Area { TEXTAREA }
1.197 quint 557: (ATTR NAME; !Rows = Integer; !Columns = Integer;
1.226 vatton 558: { name rows cols }
559: disabled; readonly = Yes_; tabindex; accesskey;
560: { disabled readonly tabindex accesskey }
561: onfocus; onblur; onselect = Text; onchange;
562: { onfocus onblur onselect onchange }
563: Default_Value = Text) =
564: Input_Text - (Input) {with Rows ?= 4, Columns ?= 20};
565:
566: FIELDSET = { FIELDSET }
567: BEGIN
568: LEGEND;
1.230 quint 569: Fieldset_Content = LIST OF (Element);
1.226 vatton 570: END;
1.79 cvs 571:
1.226 vatton 572: LEGEND { LEGEND }
1.79 cvs 573: (ATTR accesskey; LAlign = Top_, Bottom_, Left_, Right_) =
1.226 vatton 574: { accesskey align top bottom left right }
575: Basic_Set;
1.79 cvs 576:
1.226 vatton 577: Input = CASE OF { formctrl }
578: Text_Input { INPUT / TEXT }
579: (ATTR type = Text;
580: NAME; Value_; disabled; readonly;
581: { type name value disabled readonly }
582: Area_Size = Integer; MaxLength = Integer;
583: { size maxlength }
584: IntAreaSize = Integer;
585: tabindex; accesskey;
586: { tabindex accesskey }
587: onfocus; onblur; onselect; onchange;
588: { onfocus onblur onselect onchange }
589: Default_Value) =
590: Input_Text - (Input) with type = 'text';
591:
592: Password_Input { INPUT / PASSWORD }
593: (ATTR type; NAME; Value_; disabled; readonly; ALT;
594: { type name value disabled readonly alt}
595: Area_Size; IntAreaSize; MaxLength;
596: { size maxlength }
597: tabindex; accesskey;
598: { tabindex accesskey }
599: onfocus; onblur; onselect; onchange;
600: { onfocus onblur onselect onchange }
601: Default_Value) =
602: Input_Text - (Input) with type = 'password';
603:
604: File_Input { INPUT / FILE }
605: (ATTR type; NAME; Value_; disabled; readonly; ALT;
606: { type name value disabled readonly alt }
607: Area_Size; IntAreaSize; MaxLength;
608: { size maxlength }
609: tabindex; accesskey;
610: { tabindex accesskey }
611: onfocus; onblur; accept = Text;
612: { onfocus onblur }
613: Default_Value) =
614: Input_Text - (Input) with type = 'file';
615:
616: Checkbox_Input { INPUT / CHECKBOX }
617: (ATTR type; NAME; Value_; Checked = Yes_, No_; ALT;
618: { type name value checked alt }
619: disabled; readonly;
620: { disabled readonly }
621: tabindex; accesskey; onfocus; onblur;
622: { tabindex accesskey onfocus onblur }
623: DefaultChecked = Yes_, No_) =
624: CONSTANT C_Empty with Checked ?= No_, type = 'checkbox';
625:
626: Image_Input { INPUT / IMAGE }
627: (ATTR type; NAME; Value_; !SRC; ALT;
628: { type name value src alt }
629: Area_Size; IntWidthPxl;
630: { size }
631: USEMAP; ISAMAP;
632: { usemap ismap }
633: disabled; readonly; tabindex; accesskey;
634: { disabled readonly tabindex accesskey }
635: onfocus; onblur;) =
636: { onfocus onblur }
637: BEGIN
638: PICTURE;
639: END with NAME ?= 'radio', type = 'image';
640:
641: Radio_Input { INPUT / RADIO }
642: (ATTR type; NAME; Value_; Checked; ALT;
643: { type name value checked disabled alt }
644: disabled; readonly; tabindex; accesskey;
645: { disabled readonly tabindex accesskey }
646: onfocus; onblur;
647: { onfocus onblur }
648: DefaultChecked) =
649: CONSTANT C_Empty with Checked ?= No_, NAME ?= 'radio', type = 'radio';
650:
651: Submit_Input { INPUT / SUBMIT }
652: (ATTR type; NAME; Value_; disabled; readonly; ALT;
653: { type name value disabled; readonly alt }
654: tabindex; accesskey;
655: { tabindex accesskey }
656: onfocus; onblur) =
657: { onfocus onblur }
1.212 vatton 658: BEGIN
1.226 vatton 659: CONSTANT C_Empty;
1.222 vatton 660: END with Value_ ?= 'Submit', type = 'submit';
1.212 vatton 661:
1.226 vatton 662: Reset_Input { INPUT / RESET }
663: (ATTR type; NAME; Value_; disabled; readonly; ALT;
664: { type name value disabled readonly alt }
665: tabindex; accesskey;
666: { tabindex accesskey }
667: onfocus; onblur) =
668: { onfocus onblur }
669: BEGIN
670: CONSTANT C_Empty;
671: END - (Input) with NAME ?= 'Reset', Value_ ?= 'Reset', type = 'reset';
672:
673: Button_Input { INPUT / BUTTON }
674: (ATTR type; NAME; Value_; disabled; readonly; ALT;
675: { type name value disabled readonly alt }
676: tabindex; accesskey;
677: { tabindex accesskey }
678: onfocus; onblur) =
679: { onfocus onblur }
680: BEGIN
681: CONSTANT C_Empty;
682: END with type = 'button';
683:
684: Hidden_Input { INPUT / HIDDEN }
685: (ATTR type; NAME; Value_; disabled; ALT;
686: { type name value disabled alt }
687: tabindex; accesskey;
688: { tabindex accesskey }
689: onfocus; onblur) =
690: { onfocus onblur }
691: CONSTANT C_Empty with type = 'hidden';
692:
693: BUTTON_ { BUTTON }
694: (ATTR NAME; Value_;
695: { name value }
696: Button_type = button, submit, reset;
697: { button submit reset }
698: disabled; tabindex; accesskey;
699: { disabled tabindex accesskey }
700: onfocus; onblur) =
701: { onfocus onblur }
702: Basic_Set - (Anchor, Input, Form, FIELDSET, IFRAME);
703: LABEL { LABEL }
704: (ATTR Associated_control = TEXT;
705: { for }
706: accesskey; onfocus; onblur) =
707: { accesskey onfocus onblur }
708: Basic_Set;
709:
710: Option_Menu; { SELECT }
711: Text_Area; { TEXTAREA }
712: END;
1.1 cvs 713:
1.177 quint 714: Input_Text = BEGIN
1.226 vatton 715: Inserted_Text = TEXT;
716: END;
1.1 cvs 717:
1.226 vatton 718: Table_ { TABLE }
1.63 cvs 719: (ATTR summary = Text; Width__; Border = Integer;
1.226 vatton 720: { summary width border }
721: frame = void, above, below, hsides, lhs, rhs,
722: { frame void above below hsides lhs rhs }
723: vsides, box, border;
724: { vsides box border }
725: rules_ = none_, groups, rows, cols, all;
726: { rules none groups rows cols all }
727: cellspacing = Integer; cellpadding = Integer;
728: { cellspacing cellpadding }
729: Align; BackgroundColor;
730: { align bgcolor }
731: datapagesize = Text; IntWidthPxl; IntWidthPercent) =
732: { datapagesize }
733: BEGIN
734: ? CAPTION; { CAPTION }
1.115 cvs 735: ? Cols = LIST OF (Col_elem = CASE OF
1.226 vatton 736: COL; { COL }
737: COLGROUP; { COLGROUP }
738: END);
739: Table_head = LIST OF (Column_head);
740: ? thead; { THEAD }
741: Table_body = LIST OF (tbody);
742: ? tfoot; { TFOOT }
743: END;
1.63 cvs 744:
1.226 vatton 745: CAPTION { CAPTION }
1.63 cvs 746: (ATTR Position = Position_top, Position_bottom,
1.226 vatton 747: { align top bottom }
748: Position_left, Position_right) =
749: { left right }
750: Basic_Set;
1.63 cvs 751:
1.226 vatton 752: COLGROUP { COLGROUP }
1.189 quint 753: (ATTR Cell_align = Cell_left, Cell_center, Cell_right,
1.226 vatton 754: { align left center right }
755: Cell_justify, Cell_char;
756: { justify char }
757: Cell_valign = Cell_top, Cell_middle, Cell_bottom, Cell_baseline;
758: { valign top middle bottom baseline }
759: Width__; span_ = Integer)
760: { width span }
761: = LIST OF (COL);
1.189 quint 762:
1.226 vatton 763: COL { COL }
1.189 quint 764: (ATTR Cell_align; Cell_valign; Width__; span_)
1.226 vatton 765: { align valign width span }
766: = CONSTANT C_Empty;
1.189 quint 767:
1.235 quint 768: ColColgroup = CASE OF { alias for reference Ref_ColColgroup }
769: COL;
770: COLGROUP;
771: END;
772:
773: Column_head (ATTR IntWidthPercent; IntWidthPxl;
774: IntWidthRelative = Integer;
775: { IntWidthForced indicates that IntWidthPercent,
776: IntWidthPxl or IntWidthRelative comes from a
777: COL or COLGROUP element }
778: IntWidthForced = IntWidthForced_;
779: Ref_ColColgroup = REFERENCE(ColColgroup)) =
1.226 vatton 780: CONSTANT C_Head;
1.63 cvs 781:
1.226 vatton 782: thead { THEAD }
1.189 quint 783: (ATTR Cell_align; char = Text; charoff = Text;
1.226 vatton 784: Row_valign = Row_top, Row_middle, Row_bottom, Row_baseline) =
785: { valign top middle bottom baseline }
786: LIST OF (Table_row);
1.63 cvs 787:
1.226 vatton 788: tbody { TBODY }
1.63 cvs 789: (ATTR Cell_align; char; charoff; Row_valign) =
1.226 vatton 790: LIST OF (Table_row);
1.63 cvs 791:
1.226 vatton 792: tfoot { TFOOT }
1.63 cvs 793: (ATTR Cell_align; char; charoff; Row_valign) =
1.226 vatton 794: LIST OF (Table_row);
1.63 cvs 795:
1.226 vatton 796: Table_row { TR }
1.189 quint 797: (ATTR Cell_align; char; charoff; Row_valign;
1.226 vatton 798: { align char charoff valign }
799: BackgroundColor; IntHeightPxl) =
800: { bgcolor Special attribute to control row span }
801: LIST OF (Table_cell);
1.189 quint 802:
1.1 cvs 803: Table_cell = CASE OF
1.226 vatton 804: Data_cell; { TD }
805: Heading_cell; { TH }
806: END;
1.63 cvs 807:
1.226 vatton 808: Data_cell { TD }
1.63 cvs 809: (ATTR Ref_column = REFERENCE(Column_head);
810: ColExt = REFERENCE(Column_head);
811: RowExt = REFERENCE(Table_row);
1.226 vatton 812: abbr = Text; axis = Text; headers = Text; scope = Text;
813: { abbr axis headers scope }
1.63 cvs 814: rowspan_ = INTEGER; colspan_ = INTEGER;
1.226 vatton 815: { rowspan colspan }
1.189 quint 816: Cell_align; char; charoff; Cell_valign;
1.226 vatton 817: { align char charoff valign }
1.63 cvs 818: No_wrap = no_wrap; BackgroundColor;
1.226 vatton 819: { nowrap bgcolor }
820: Width__; IntWidthPxl; IntWidthPercent;
821: Height_; IntHeightPercent; IntHeightPxl;) =
822: { width height }
823: LIST OF (Element);
1.63 cvs 824:
1.226 vatton 825: Heading_cell { TH }
1.63 cvs 826: (ATTR Ref_column; ColExt; RowExt;
1.226 vatton 827: abbr; axis; headers; scope;
828: { abbr axis headers scope }
829: rowspan_; colspan_;
830: { rowspan colspan }
831: Cell_align; char; charoff; Cell_valign;
832: { align char charoff valign }
833: No_wrap; BackgroundColor;
834: { nowrap bgcolor }
835: Width__; IntWidthPxl; IntWidthPercent;
836: Height_; IntHeightPercent; IntHeightPxl) =
837: { width height }
838: LIST OF (Element);
1.63 cvs 839:
1.226 vatton 840: MAP { MAP }
1.215 vatton 841: (ATTR NAME; Ref_IMG = REFERENCE(Any)) =
1.226 vatton 842: { name linked to an image}
843: LIST OF (ElemOrArea = CASE OF Element; AREA; END);
1.125 vatton 844:
1.226 vatton 845: map { MAP }
1.215 vatton 846: (ATTR NAME) =
1.226 vatton 847: { name }
848: LIST OF (Element);
1.63 cvs 849:
1.226 vatton 850: AREA { AREA }
1.197 quint 851: (ATTR shape; coords; HREF_; target_; nohref = Yes_; !ALT;
1.226 vatton 852: { shape coords href target nohref alt }
853: tabindex; accesskey; onfocus; onblur;
854: { tabindex accesskey onfocus onblur }
855: x_coord = Integer; y_coord = Integer; IntWidthPxl;
1.130 vatton 856: IntHeightPxl; AreaRef_IMG = REFERENCE(Any)) =
1.226 vatton 857: GRAPHICS with x_coord ?= 0, y_coord ?= 0,
858: IntWidthPxl ?= 25, IntHeightPxl ?= 10;
1.1 cvs 859:
1.226 vatton 860: FRAMESET { FRAMESET }
1.72 cvs 861: (ATTR RowHeight = Text; ColWidth = Text;
1.226 vatton 862: { rows cols }
863: onload; onunload) =
864: { onload onunload }
865: AGGREGATE
866: Frames = LIST [1 .. *] OF (FrameElem = CASE OF
867: FRAME;
868: FRAMESET;
869: END - (NOFRAMES));
1.228 vatton 870: ? NOFRAMES = BODY; { NOFRAMES }
1.226 vatton 871: END;
1.59 cvs 872:
1.226 vatton 873: FRAME { FRAME }
1.188 quint 874: (ATTR longdesc; NAME; FrameSrc = Text;
1.226 vatton 875: { longdesc name src }
876: frameborder = Border1, Border0;
877: { frameborder 1 0 }
878: marginwidth = Integer; marginheight = Integer;
879: { marginwidth marginheight }
880: no_resize = Yes_; scrolling = Yes_, No_, auto_) =
881: { noresize scrolling yes no auto }
882: CONSTANT C_Empty;
1.59 cvs 883:
1.226 vatton 884: IFRAME { IFRAME }
1.188 quint 885: (ATTR longdesc; NAME; FrameSrc; frameborder;
1.226 vatton 886: { longdesc name src frameborder }
887: marginwidth; marginheight; scrolling;
888: { marginwidth marginheight scrolling }
889: Alignment; Width__; Height_) =
890: { align width height }
891: BEGIN
892: Iframe_Src_Content= NATURE;
893: Iframe_Content = LIST OF (Element); { flow }
894: END;
1.59 cvs 895:
1.121 cvs 896: ruby = { ruby }
897: CASE OF
1.226 vatton 898: simple_ruby;
899: complex_ruby;
900: END;
1.121 cvs 901:
1.124 cvs 902: simple_ruby = { ruby }
1.226 vatton 903: BEGIN
904: rb = Basic_Set - (simple_ruby, complex_ruby);
905: RtOrRtWithPar = CASE OF
906: rt (ATTR rbspan = Integer) =
907: Basic_Set - (simple_ruby, complex_ruby);
908: RtWithPar = BEGIN
909: rp = TEXT;
910: rt;
911: rp;
912: END;
913: END;
914: END;
1.121 cvs 915:
1.124 cvs 916: complex_ruby = { ruby }
1.226 vatton 917: BEGIN
918: rbc = LIST OF (rb);
919: rtc1 = LIST OF (rt);
1.121 cvs 920: ? rtc2 = LIST OF (rt);
1.226 vatton 921: END;
922:
1.72 cvs 923: { AnyLink is an alias for all elements with an attribute
924: of type URI. Only elements to be shown in the Links view
925: are taken into account }
926: AnyLink = CASE OF
1.226 vatton 927: Anchor; { HREF_ }
928: Block_Quote; { cite }
929: Quotation; { cite }
1.228 vatton 930: ins; { cite }
931: del; { cite }
1.226 vatton 932: END;
1.72 cvs 933:
1.1 cvs 934: EXCEPT
1.226 vatton 935: HTML: NoMove, NoResize;
936: BODY: NoCut, CssBackground, NoMove, NoResize,
937: SetWindowBackground, NoBreakByReturn;
938: HEAD: NoCut;
939: TITLE: NoCut, NoSpellCheck;
940: Document_URL: Hidden, NoSpellCheck, NoCut;
941: C_Empty: Hidden, NoSpellCheck, NoSelect;
942: C_BR: SelectParent;
943: Frames: Hidden;
944: FRAMESET: NoCreate; { prevent a Return at the end of the
945: document from creating a FRAMESET }
946: Inserted_Text: Hidden, NoCut, NoSpellCheck, CheckAllChars;
947: Basic_Set: Hidden;
948: Definition_Item:Hidden;
949: Term_List: Hidden, CanCut;
950: Definitions: Hidden;
951: XMLPI: ReturnCreateNL, NoSpellCheck, NoReplicate, NotAnElementNode;
952: Comment\240: ReturnCreateNL, NoSpellCheck, NoReplicate, NotAnElementNode;
953: Comment_line: Hidden, MarkupPreserve;
1.227 vatton 954: ASP_element: ReturnCreateNL, NoSpellCheck, NoReplicate, NotAnElementNode;
955: ASP_line: Hidden, MarkupPreserve;
1.226 vatton 956: PI_line: Hidden, MarkupPreserve;
957: DOCTYPE: NoCut, NoSpellCheck, NotAnElementNode;
958: DOCTYPE_line: Hidden, NoCut;
959: CDATA_line: Hidden, MarkupPreserve;
960: GRAPHICS: NoMove, NoResize, SelectParent;
961: TEXT: NoMove, NoResize;
962: PICTURE: MoveResize;
963: Invalid_element:NoCreate;
964: Unknown_namespace:NoCreate;
965: XHTML_Unknown_namespace:NoCreate;
966: BR: IsBreak;
967: Pseudo_paragraph: ParagraphBreak, Hidden;
968: Basic_Elem: Hidden;
969: Paragraph: ParagraphBreak;
970: H1: ParagraphBreak;
971: H2: ParagraphBreak;
972: H3: ParagraphBreak;
973: H4: ParagraphBreak;
974: H5: ParagraphBreak;
975: H6: ParagraphBreak;
976: Address: ParagraphBreak;
977: Term: ParagraphBreak;
1.233 quint 978: List_Item: ListItemBreak;
979: Definition: ListItemBreak;
1.226 vatton 980: MAP: IsDraw, IsMap, NoReplicate;
981: IMG: IsImg, NoReplicate;
982: AREA: MoveResize, ClickableSurface, HighlightChildren;
983: Anchor: ClickableSurface;
1.234 vatton 984: Horizontal_Rule: ClickableSurface;
1.226 vatton 985: Form: NoReplicate;
986: Image_Input: IsImg, NoReplicate;
987: Password_Input: Shadow, NoReplicate;
988: Text_Input: NoReplicate;
989: File_Input: NoReplicate;
990: Checkbox_Input: NoReplicate;
991: Radio_Input: NoReplicate;
992: Submit_Input: NoReplicate;
993: Reset_Input: NoReplicate;
994: Hidden_Input: NoReplicate;
995: Button_Input: NoReplicate;
996: BUTTON_: NoReplicate;
997: Preformatted: ReturnCreateNL, NoReplicate;
998: STYLE_: ReturnCreateNL, NoSpellCheck, NoReplicate;
999: SCRIPT_: ReturnCreateNL, NoReplicate;
1000: Text_Area: ReturnCreateNL, NoReplicate;
1001: HTMLfragment: NoMove, NoResize, Hidden, NoBreakByReturn;
1.232 vatton 1002: Division: NoMove, NoResize, NoBreakByReturn;
1.228 vatton 1003: INS: NoReplicate;
1004: DEL: NoReplicate;
1005: ins: NoReplicate;
1006: del: NoReplicate;
1.226 vatton 1007: ExternalLink: Invisible;
1008: InternalLink: Invisible;
1009: IntWidthPercent:NewPercentWidth, Invisible;
1010: IntWidthPxl: NewWidth, Invisible;
1.235 quint 1011: IntWidthRelative:NewWidth, Invisible;
1012: IntWidthForced: Invisible;
1.226 vatton 1013: IntHeightPercent:Invisible;
1014: IntHeightPxl: NewHeight, Invisible;
1015: IntAreaSize: Invisible;
1016: IntSizeIncr: Invisible;
1017: IntSizeDecr: Invisible;
1018: IntSizeRel: Invisible;
1019: x_coord: Invisible, NewHPos;
1020: y_coord: Invisible, NewVPos;
1021: Ref_IMG: Invisible;
1022: AreaRef_IMG: Invisible;
1023: Invalid_attribute: Invisible;
1024: Unknown_attribute: Invisible;
1025: Highlight: Invisible;
1026: PseudoClass: Invisible, CssPseudoClass;
1027: Default_Value: Invisible;
1028: DefaultSelected:Invisible;
1029: ShowMe: Invisible;
1030: DefaultChecked: Invisible;
1031: ShowAreas: Invisible;
1032: PrintURL: Invisible;
1033: NoImages: Invisible;
1034: NoObjects: Invisible;
1035: Namespaces: Invisible;
1036: RealLang: Invisible;
1037: Charset: Invisible;
1038: PI: Invisible;
1039: shape: Invisible;
1040: Data_cell: IsCell, NoMove, NoResize, NoBreakByReturn;
1041: Heading_cell: IsCell, NoMove, NoResize, NoBreakByReturn;
1042: Table_cell: IsCell, NoMove, NoResize, NoBreakByReturn;
1043: Table_: IsTable, PageBreak, NoReplicate, NoBreakByReturn;
1044: CAPTION: IsCaption;
1045: Column_head: IsColHead, NoCut, Hidden, NoBreakByReturn;
1046: Table_head: NoCut, Hidden, NoSelect, NoBreakByReturn;
1047: C_Head: Hidden, NoSelect;
1048: Cols: Hidden, NoSelect, NoCreate;
1049: Table_body: PageBreakAllowed, Hidden, NoBreakByReturn;
1050: thead: NoBreakByReturn;
1051: tbody: NoBreakByReturn;
1052: tfoot: NoBreakByReturn;
1053: Table_row: IsRow, PageBreakPlace, NoBreakByReturn;
1054: rbc: Hidden;
1055: rtc1: Hidden;
1056: rtc2: Hidden;
1057: ColExt: Invisible;
1058: RowExt: Invisible;
1059: Ref_column: ColRef, Invisible;
1060: colspan_: ColSpan;
1061: rowspan_: RowSpan;
1062: Ghost_restruct: Invisible;
1063: IntEntity: Invisible;
1064: EntityName: Invisible;
1065: onclick: EventAttr;
1066: ondblclick: EventAttr;
1067: onmousedown: EventAttr;
1068: onmouseup: EventAttr;
1069: onmouseover: EventAttr;
1070: onmousemove: EventAttr;
1071: onmouseout: EventAttr;
1072: onkeypress: EventAttr;
1073: onkeydown: EventAttr;
1074: onkeyup: EventAttr;
1075: onload: EventAttr;
1076: onunload: EventAttr;
1077: onfocus: EventAttr;
1078: onblur: EventAttr;
1079: onsubmit: EventAttr;
1080: onreset: EventAttr;
1081: onchange: EventAttr;
1082: onselect: EventAttr;
1083: ID : CssId; {Default id attribute}
1084: Class: CssClass, DuplicateAttr;
1.231 quint 1085: External_Object: Hidden;
1.236 vatton 1086: External_Object_Content: Hidden, NoSpellCheck, NewRoot;
1.226 vatton 1087: Embed_: NoBreakByReturn, NoReplicate, NoSpellCheck;
1.236 vatton 1088: Embed_Content: Hidden, NoSelect, NewRoot;
1.226 vatton 1089: Object: NoBreakByReturn, NoReplicate, IsImg;
1090: Object_Content: Hidden, NoSelect, NoCreate, NoCut, NoBreakByReturn;
1091: Applet: NoBreakByReturn, NoReplicate;
1092: Applet_Content: Hidden, NoSelect, NoCreate, NoCut, NoBreakByReturn;
1093: IFRAME: NoBreakByReturn, NoReplicate, NoSpellCheck;
1094: Iframe_Content: Hidden, NoSelect, NoCut, NoBreakByReturn;
1.236 vatton 1095: Iframe_Src_Content: Hidden, NoCut, NoSelect, NewRoot;
1.230 quint 1096: Fieldset_Content: Hidden, NoSelect, NoCut, NoBreakByReturn;
1.226 vatton 1097: is_css: Invisible;
1098: Start: StartCounter;
1099: ItemValue: SetCounter;
1100: xml_space: SpacePreserve;
1.1 cvs 1101: END
Webmaster