W4F Mappings
W4F offers
- a default mapping to Java base types for homogenous NSLs
- a programmatic way to define custom mapping via Java classes
- declarative specifications for specific target structures
-
XML mapping
- An XML mapping expresses how to create XML elements out of NSLs.
- An XML mapping is described via declarative rules called templates (much more concise to write than DTDs)
- Templates are nested structures composed of leaves, lists and records.
- The structure of XML templates is similar to extraction rules.
- From a template, it is straightforward* to infer a DTD.