RSS
 

Archive for February, 2010

Creating an XML vocabulary for the UI

27 Feb

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:

<ul>
	<li>automatically surround fields with fieldset element</li>
	<li>automatically create submit buttons without having to declare them.</li>
</ul>
VN:F [1.9.3_1094]
Rating: 5.5/10 (4 votes cast)
VN:F [1.9.3_1094]
Rating: +1 (from 1 vote)
Retweet
 
Comments Off

Posted in UI Design