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