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