| | |
| | * a **Map**; |
| | -* a **Where** clause; and |
| | -* namespace definitions. |
| | +* a **Where** clause; |
| | +* namespace definitions; and |
| | +* module definitions. |
| | |
| | ## Map |
 |
| | person > html:person, |
| | person.id > people:id( people, http://www.people.com ), |
| | + |
| | +## Module |
| | + |
| | +Modules are defined using the *module* keyword. For example: |
| | + |
| | +``` |
| | +module people, |
| | +root > people, # "root" keyword starts the document |
| | +person > person, # maps a node to table context |
| | +.*, # .* globs all columns |
| | +``` |
| | + |
| | +This allows the module to be reused at any time using the *import* keyword: |
| | + |
| | +``` |
| | +import people, |
| | +``` |
| | |
| | # Usage |