Move dom0 declaration into cached block
Refactor adding namespace and insertion point flags to parser