Output is now fully valid.
* Lotsa refactoring next.
* One possible issue with wml2:interpolationType.