One benefit I’ve experienced is that you have tighter, centralized control over the markup generated for the UI when developing under an XML language for UI pages.
If you get 5 people coding forms in html, you’ll get 5 variations on the markup. Using XML instead, you can have tight control over what is and isn’t allowed.
<ui:form method="POST">
<ui:field name="street1" />
<ui:field name="street2" />
<ui:field name="phone" />
<ui:hidden_field name="id" />
</ui:form>
XSLT can be used to create the html you’d like:
- automatically surround fields with fieldset element
- automatically create submit buttons without having to declare them.