Annotation of Amaya/amaya/HTML.S, revision 1.51
1.1 cvs 1: { I. Vatton November 1994 }
2: STRUCTURE HTML;
3:
4: DEFPRES HTMLP;
1.44 cvs 5:
1.1 cvs 6: ATTR
1.24 cvs 7: ID = TEXT;
1.1 cvs 8: Class = text;
9: PseudoClass = text;
10: Style\240 = TEXT;
11: Invalid_attribute = TEXT;
12: Ghost_restruct = TEXT;
13:
14: CONST
15: C_Empty = ' ';
16: C_Foot = ' ';
17: C_Head = ' ';
1.9 cvs 18: C_BR = '\212';
1.1 cvs 19:
20: STRUCT
1.22 cvs 21: HTML (ATTR SectionNumbering = Yes_; ShowAreas = Yes_) =
1.17 cvs 22: BEGIN
1.1 cvs 23: HEAD;
24: BODY;
25: END + (Invalid_element, Comment\240);
26:
27: BODY (ATTR background_ = Text; BackgroundColor = Text; TextColor = Text;
28: LinkColor = Text; VisitedLinkColor = Text; ActiveLinkColor = Text)
29: = LIST OF (Element);
30:
1.11 cvs 31: Invalid_element (ATTR Error_type = UnknownTag, BadPosition) = TEXT;
1.1 cvs 32: Comment\240 = LIST OF (Comment_line = TEXT);
33:
34: HEAD = AGGREGATE
35: Document_URL = TEXT;
36: TITLE = TEXT;
37: ? ISINDEX (ATTR Prompt = TEXT) = CONSTANT C_Empty;
38: ? BASE;
39: ? Styles (ATTR Notation = TEXT) = LIST OF (StyleRule);
40: ? Scripts = LIST OF (SCRIPT = TEXT);
41: ? Metas = LIST OF (META);
42: ? Links = LIST OF (LINK);
43: END;
44: META (ATTR http_equiv = Text; !meta_name = Text; !meta_content = Text)
45: = CONSTANT C_Empty;
1.43 cvs 46: LINK (ATTR HREF_ = Text;
47: #ifdef COUGAR
48: Link_type = TEXT;
49: #endif
50: REL = Text; REV = Text; Title = Text)
1.1 cvs 51: = CONSTANT C_Empty;
52:
53: StyleRule (ATTR Selector = TEXT) = TEXT;
54:
55: BASE (ATTR !HREF_) = CONSTANT C_Empty;
56:
57: Element = CASE OF
58: Paragraph;
1.20 cvs 59: Pseudo_paragraph;
1.1 cvs 60: Heading;
61: List_;
62: Horizontal_Rule;
63: Block_Quote = LIST OF (Element);
64: Preformatted;
65: Address = LIST OF (AddressContent);
66: Division;
67: Center;
68: Applet;
69: #ifdef COUGAR
70: Object;
71: #endif
1.31 cvs 72: #ifdef MATHML
1.45 cvs 73: MathDisp (ATTR mode = display, inline_math) = MathML;
1.31 cvs 74: #endif
1.1 cvs 75: Form;
76: Table;
77: PICTURE;
78: MAP;
79: ISINDEX;
80: END;
81:
82: Horizontal_Rule (ATTR Align = left_, center_, right_;
83: NoShade = NoShade_; Size_ = Integer;
84: Width__ = Text; IntWidthPercent = Integer;
85: IntWidthPxl = Integer) =
86: CONSTANT C_Empty;
87:
88: AddressContent = CASE OF
89: Basic_Elem;
90: Paragraph;
1.20 cvs 91: Pseudo_paragraph;
1.1 cvs 92: END;
93:
94: Basic_Set = LIST OF (Basic_Elem);
95:
96: Heading = CASE OF
97: H1 (ATTR Align) = Basic_Set;
98: H2 (ATTR Align) = Basic_Set;
99: H3 (ATTR Align) = Basic_Set;
100: H4 (ATTR Align) = Basic_Set;
101: H5 (ATTR Align) = Basic_Set;
102: H6 (ATTR Align) = Basic_Set;
103: END;
104:
105: Paragraph (ATTR Align) = Basic_Set;
1.20 cvs 106: Pseudo_paragraph = Basic_Set;
1.44 cvs 107: Preformatted (ATTR Width__; IntWidthPercent; IntWidthPxl)
108: = Basic_Set
1.16 cvs 109: - (PICTURE, Big_text, Small_text, Subscript, Superscript, Font_);
1.1 cvs 110:
1.15 cvs 111: Anchor (ATTR HREF_; NAME = Text; REL; REV; Title;
1.33 cvs 112: InternalLink = Reference(Any); ExternalLink = Yes_)
1.1 cvs 113: = Basic_Set;
114:
115: Basic_Elem = CASE OF
116: TEXT;
117: PICTURE (ATTR Alignment = Top_, Middle_, Bottom_, Left_, Right_;
1.44 cvs 118: Height_ = Integer; Width__; IntWidthPercent; IntWidthPxl;
119: hspace = Integer; vspace = Integer; Img_border = Integer;
1.1 cvs 120: ISMAP = Yes_; USEMAP = Text; SRC = Text; ALT = Text);
121: Anchor;
122: Font;
123: Phrase;
124: Font_;
125: BaseFont;
126: Applet;
127: #ifdef COUGAR
128: Object;
1.31 cvs 129: #endif
130: #ifdef MATHML
1.45 cvs 131: Math (ATTR mode) = MathML;
1.1 cvs 132: #endif
133: SCRIPT;
134: MAP;
1.12 cvs 135: BR (ATTR Clear = Left_, Right_, All_, None) = CONSTANT C_BR;
1.24 cvs 136: Span = Basic_Set;
1.1 cvs 137: END;
138:
139: BaseFont (ATTR BaseFontSize = Integer) = CONSTANT C_Empty;
140:
141: Font = CASE OF
142: Italic_text = Basic_Set;
143: Bold_text = Basic_Set;
144: Teletype_text = Basic_Set;
1.11 cvs 145: Underlined_text = Basic_Set;
1.1 cvs 146: Struck_text = Basic_Set;
147: Big_text = Basic_Set;
148: Small_text = Basic_Set;
149: Subscript = Basic_Set;
150: Superscript = Basic_Set;
151: END;
152:
153: Phrase = CASE OF
154: Emphasis = Basic_Set;
155: Strong = Basic_Set;
156: Def = Basic_Set;
157: Code = Basic_Set;
158: Sample = Basic_Set;
159: Keyboard = Basic_Set;
160: Variable = Basic_Set;
161: Cite = Basic_Set;
162: END;
163:
164: Font_ (ATTR Font_size = Text; IntSizeIncr = Integer; IntSizeDecr = Integer;
165: IntSizeRel = Integer; color = Text) = Basic_Set;
166:
167: Applet (ATTR codebase = TEXT; !code = TEXT; applet_name = TEXT;
1.44 cvs 168: alt = TEXT; Alignment; Height_; Width__; IntWidthPercent;
169: IntWidthPxl; hspace; vspace) =
1.1 cvs 170: LIST OF (Applet_Content = CASE OF
171: Parameter;
172: Basic_Set;
173: END);
174: Parameter (ATTR Param_name = TEXT; Param_value = TEXT) = CONSTANT C_Empty;
175:
176: #ifdef COUGAR
177: Object (ATTR classid = TEXT; codebase; data = TEXT; Object_type = TEXT;
1.44 cvs 178: codetype = TEXT; Alignment; !Height_; !Width__; IntWidthPercent;
179: IntWidthPxl; hspace; vspace;
1.30 cvs 180: Img_border; USEMAP; ALT) =
1.10 cvs 181: BEGIN
1.13 cvs 182: PICTURE;
1.10 cvs 183: Object_Content = LIST OF (CASE OF Element; Parameter; END);
1.44 cvs 184: END with Height_ ?= 400, Width__ ?= '400', IntWidthPxl ?= 400;
1.1 cvs 185: #endif
186:
187: Block = CASE OF
188: Paragraph;
1.20 cvs 189: Pseudo_paragraph;
1.1 cvs 190: List_;
191: Block_Quote;
192: Preformatted;
193: Division;
194: Center = LIST OF (Element);
195: Form;
196: END;
197:
198: Division (ATTR Align) = LIST OF (Element);
199:
200: List_ = CASE OF
201: Unnumbered_List (ATTR BulletStyle = disc, circle, square;
202: COMPACT = Yes_) =
203: LIST OF (List_Item);
204: Numbered_List (ATTR NumberStyle = Arabic_, LowerAlpha, UpperAlpha,
205: LowerRoman, UpperRoman; Start = Integer; COMPACT) =
206: LIST OF (List_Item) with Start ?= 1;
207: Directory (ATTR COMPACT) =
208: LIST OF (List_Item);
209: Menu (ATTR COMPACT) =
210: LIST OF (List_Item);
211: Definition_List = LIST OF (Definition_Item);
212: END;
213:
214: List_Item (ATTR ItemStyle = disc, circle, square, Arabic_, LowerAlpha,
215: UpperAlpha, LowerRoman, UpperRoman;
216: IntItemStyle = disc, circle, square, Arabic_, LowerAlpha,
217: UpperAlpha, LowerRoman, UpperRoman;
218: ItemValue = Integer) =
219: LIST OF (Block);
220:
221: Definition_Item (ATTR COMPACT) = BEGIN
222: Term_List = LIST OF (Term = Basic_Set);
1.6 cvs 223: ? Definition = LIST OF (Block);
1.1 cvs 224: END;
225:
226: Form (ATTR !Script_URL = Text; METHOD = Get_, Post_; ENCTYPE = Text) =
227: LIST OF (Form_Element) + (Input) with METHOD ?= Get_;
228:
229: Form_Element = CASE OF
230: Paragraph;
1.20 cvs 231: Pseudo_paragraph;
1.1 cvs 232: Toggle_Menu;
233: Radio_Menu;
234: Option_Menu;
235: Text_Input_Line;
236: Command_Line;
237: Text_Area (ATTR !NAME; Rows = Integer; Columns = Integer;
1.12 cvs 238: Default_Value = Text) =
1.1 cvs 239: Text_With_Frame with Rows ?= 4, Columns ?= 20;
240: Heading;
241: List_;
242: Horizontal_Rule;
243: Block_Quote;
244: Preformatted;
245: Division;
246: Center;
247: ISINDEX;
248: END;
249:
1.7 cvs 250: Option_Menu (ATTR !NAME; Multiple = Yes_; MenuSize = Integer) =
1.1 cvs 251: LIST OF (Option) - (Input);
1.12 cvs 252: Option (ATTR Selected = Yes_; DefaultSelected = Yes_; !Value_ = Text) =
1.1 cvs 253: TEXT;
254:
1.40 cvs 255: Toggle_Menu = LIST OF (Toggle_Item)
256: - (Text_Input_Line, Command_Line, Toggle_Menu, Radio_Menu);
1.1 cvs 257: Toggle_Item = BEGIN
1.39 cvs 258: Basic_Set;
1.1 cvs 259: Checkbox_Input (ATTR !NAME;
260: Checked = Yes_, No_; DefaultChecked = Yes_, No_;
1.12 cvs 261: Value_) =
1.1 cvs 262: CONSTANT C_Empty with Checked ?= No_;
1.39 cvs 263: Basic_Set;
1.1 cvs 264: END;
265:
1.40 cvs 266: Radio_Menu (ATTR !NAME) = LIST OF (Radio_Item)
267: - (Text_Input_Line, Command_Line, Toggle_Menu, Radio_Menu);
1.1 cvs 268: Radio_Item = BEGIN
1.39 cvs 269: Basic_Set;
1.12 cvs 270: Radio_Input (ATTR !NAME; Checked; DefaultChecked; !Value_) =
1.1 cvs 271: CONSTANT C_Empty with Checked ?= No_, NAME ?= 'radio';
1.39 cvs 272: Basic_Set;
1.1 cvs 273: END;
274:
275: Text_Input_Line = BEGIN
1.39 cvs 276: Basic_Set;
1.12 cvs 277: Text_Input (ATTR !NAME; Area_Size = Integer; MaxLength = Integer; Value_) =
1.1 cvs 278: Text_With_Frame with Area_Size ?= 20;
1.39 cvs 279: Basic_Set;
280: END - (Text_Input_Line, Command_Line, Toggle_Menu, Radio_Menu);
1.1 cvs 281:
282: Command_Line = BEGIN
1.12 cvs 283: Reset_Input (ATTR NAME; Value_) = BEGIN
1.1 cvs 284: Frame;
1.12 cvs 285: END with NAME ?= 'Reset', Value_ ?= 'Reset';
1.1 cvs 286: Space = CONSTANT C_Empty;
1.12 cvs 287: Submit_Input (ATTR NAME; Value_) = BEGIN
1.1 cvs 288: Frame;
1.12 cvs 289: END with Value_ ?= 'Submit';
1.39 cvs 290: END - (Text_Input_Line, Command_Line, Toggle_Menu, Radio_Menu);
1.1 cvs 291:
292: Input = CASE OF
293: Checkbox_Input;
294: Radio_Input;
295: Text_Input;
1.12 cvs 296: Hidden_Input (ATTR !NAME; Value_) = CONSTANT C_Empty;
1.1 cvs 297: Password_Input (ATTR !NAME; Area_Size; MaxLength) = Text_With_Frame;
298: File_Input (ATTR !NAME) = CONSTANT C_Empty;
299: Reset_Input;
300: Submit_Input;
1.40 cvs 301: Option_Menu;
302: Text_Area;
1.8 cvs 303: END;
1.1 cvs 304:
305: Text_With_Frame = BEGIN
306: Inserted_Text = TEXT;
307: Frame = CONSTANT C_Empty;
308: END;
309:
310: Table (ATTR Border = Integer;
1.34 cvs 311: Align;
1.44 cvs 312: Width__; IntWidthPxl; IntWidthPercent;
1.1 cvs 313: cellspacing = Integer; cellpadding = Integer) =
314: BEGIN
1.48 cvs 315: CAPTION (ATTR Position = Position_top, Position_bottom) = Basic_Set;
1.1 cvs 316: Table_head = LIST OF (Column_head);
317: ? thead = LIST OF (Table_row);
318: Table_body = LIST OF (tbody = LIST OF (Table_row));
319: ? tfoot = LIST OF (Table_row);
320: Table_foot = CONSTANT C_Foot;
1.49 cvs 321: END;
1.44 cvs 322: Column_head (ATTR IntWidthPercent; IntWidthPxl) =
323: CONSTANT C_Head;
1.1 cvs 324: Table_row (ATTR Row_align = Row_left, Row_center, Row_right;
325: Row_valign = Row_top, Row_middle, Row_bottom, Row_baseline) =
326: LIST OF (Table_cell);
327: Table_cell = CASE OF
328: Data_cell(ATTR Ref_column = REFERENCE(Column_head);
329: ColExt = REFERENCE(Column_head);
330: RowExt = REFERENCE(Table_row);
1.44 cvs 331: colspan_ = INTEGER;
332: rowspan_ = INTEGER;
1.1 cvs 333: Cell_align = Cell_left, Cell_center, Cell_right;
1.11 cvs 334: Cell_valign = Cell_top, Cell_middle, Cell_bottom;
1.44 cvs 335: Width__; IntWidthPxl; IntWidthPercent;
1.1 cvs 336: Cell_height = Integer;
1.27 cvs 337: No_wrap = no_wrap) = LIST OF (Element);
1.44 cvs 338: Heading_cell(ATTR Ref_column; ColExt; RowExt; colspan_; rowspan_;
339: Cell_align; Cell_valign; Width__; IntWidthPxl; IntWidthPercent;
340: Cell_height; No_wrap) =
1.1 cvs 341: LIST OF (Element);
342: END;
343:
344: MAP (ATTR NAME; Ref_IMG = REFERENCE(Any)) = LIST OF (AREA);
345: AREA (ATTR shape = rectangle, circle, polygon, default_;
346: coords = Text; HREF_; nohref = Yes_; ALT;
1.44 cvs 347: x_coord = Integer; y_coord = Integer; IntWidthPxl;
1.1 cvs 348: height\240 = Integer; AreaRef_IMG = REFERENCE(Any)) = GRAPHICS
1.44 cvs 349: with x_coord ?= 0, y_coord ?= 0, IntWidthPxl ?= 25, height\240 ?= 10;
1.1 cvs 350:
351: EXCEPT
1.25 cvs 352: HTML: NoMove, NoResize;
1.1 cvs 353: BODY: NoCut;
354: HEAD: NoCut;
355: TITLE: NoCut;
356: Document_URL: Hidden, NoSpellCheck;
357: C_Empty: Hidden, NoSelect;
1.9 cvs 358: C_BR: NoSelect;
1.1 cvs 359: Scripts: Hidden, NoSelect;
360: Metas: Hidden, NoSelect;
361: Links: Hidden, NoSelect;
362: Frame: Hidden;
363: Inserted_Text: Hidden, NoSelect;
364: Basic_Set: Hidden, NoSelect;
365: Term_List: Hidden, NoSelect;
366: Definition_Item: Hidden;
367: Comment_line: Hidden;
368: GRAPHICS: NoMove, NoResize;
1.41 cvs 369: TEXT: NoMove, NoResize;
1.26 cvs 370: PICTURE: MoveResize;
1.1 cvs 371: Invalid_element: NoCreate;
1.20 cvs 372: Pseudo_paragraph: ParagraphBreak, Hidden;
1.1 cvs 373: Paragraph: ParagraphBreak;
374: H1: ParagraphBreak;
375: H2: ParagraphBreak;
376: H3: ParagraphBreak;
377: H4: ParagraphBreak;
378: H5: ParagraphBreak;
379: H6: ParagraphBreak;
380: Address: ParagraphBreak;
381: Term: ParagraphBreak;
382: MAP: IsDraw;
383: AREA: MoveResize;
1.19 cvs 384: Preformatted: ReturnCreateNL;
1.1 cvs 385:
1.24 cvs 386: #ifndef COUGAR
387: Langue: Invisible;
388: #endif
1.29 cvs 389: ExternalLink: Invisible;
1.15 cvs 390: InternalLink: Invisible;
1.44 cvs 391: IntWidthPercent:NewPercentWidth, Invisible;
392: IntWidthPxl: NewWidth, Invisible;
1.1 cvs 393: SRC: Invisible;
394: IntItemStyle: Invisible;
395: IntSizeIncr: Invisible;
396: IntSizeDecr: Invisible;
397: IntSizeRel: Invisible;
398: x_coord: Invisible, NewHPos;
399: y_coord: Invisible, NewVPos;
400: height\240: Invisible, NewHeight;
401: Ref_IMG: Invisible;
402: AreaRef_IMG: Invisible;
403: Invalid_attribute: Invisible;
404: PseudoClass: Invisible;
405: Default_Value: Invisible;
406: DefaultSelected: Invisible;
407: DefaultChecked: Invisible;
1.17 cvs 408: SectionNumbering:Invisible;
1.22 cvs 409: ShowAreas: Invisible;
1.50 cvs 410: shape: Invisible;
1.44 cvs 411: Data_cell: IsCell, NoMove, NoResize;
412: Heading_cell: IsCell, NoMove, NoResize;
413: Table: IsTable, PageBreak;
414: Column_head: IsColHead, NoCut, Hidden, NoSelect;
1.51 ! cvs 415: Table_head: NoCut, Hidden, NoSelect;
1.1 cvs 416: C_Head: Hidden, NoSelect;
1.25 cvs 417: Table_foot: NoCut, Hidden, PageBreakRepBefore;
1.1 cvs 418: C_Foot: Hidden, NoSelect;
1.38 cvs 419: Table_body: PageBreakAllowed, Hidden;
1.44 cvs 420: Table_row: IsRow, PageBreakPlace;
1.1 cvs 421: ColExt: Invisible;
1.2 cvs 422: RowExt: Invisible;
1.44 cvs 423: Ref_column: ColRef, Invisible;
424: colspan_: ColSpan;
425: rowspan_: RowSpan;
1.10 cvs 426: #ifdef COUGAR
1.25 cvs 427: Object_Content: Hidden, NoCreate, NoCut, NoSelect;
1.10 cvs 428: #endif
1.1 cvs 429: Ghost_restruct: Invisible;
430: END
Webmaster