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