Syntax


next up previous
Next: Instances
Up: An overview of Web-O-Matic and WOM
Previous: Applications and directory structure

Syntax

Syntactically, WOM is a superset of HTML. WOM commands start with an left pointed bracket followed by a name, and may take a sequence of arguments before terminating with a right pointed bracket. The standard way to pass arguments is by keyword rather than position, but the WOM compiler allows some commonly used arguments to be passed also by position:

<TextField t>
<TextField id=t value="" size=10>
<Menu TaxRates options=[0,5,10,15,20,22 to 40 by 2]>
<Menu VATChange options=["Scrap it!":0, "Double it!":2]>
<Attribute a>

Some commands act as brackets, and must be terminated by a closing bracket, in the same way as HTML commands like FORM and BLOCKQUOTE. These include WOMForm and OnSubmit.



Jocelyn Ireson-Paine
Sat Oct 12 23:35:52 BST 1996