mach-ii.xml:
<mach-ii>
<includes>
<include file="./mach-ii_base.xml"/>
<include file="./mach-ii_myApp.xml"/ override="true">
</includes>
</mach-ii>
You would put all that default stuff in mach-ii_base.xml and then define
your application in mach-ii_myApp.xml. The base mach-ii.xml is just for
pulling things together. By using the override attribute, its saying to
Mach-II to override any namespace conflicts that have already been
loaded. So if mach-ii_base.xml has an event-handler named home, you can
have an event-handler named home in mach-II_myApp.xml that will override
the event handler in the base.xml. This is because includes are loaded
in the order they are defined, but applied after the file they are
defined in is parsed -- this is why you don't define anything in
mach-ii.xml.
HTH,
Peter