Xml文件
<form name="form_login" method="post">
<properties>
<id>my-form</id>
<class>big</class>
</properties>
<element type="text" name="username" label="Username: ">
<properties>
<class>big-input</class>
</properties>
<validation>
<notEmpty>
<message key="empty">Username cannot be empty</message>
</notEmpty>
</validation>
</element>
<element type="password" name="password" label="Password: ">
<validation>
<notEmpty />
</validation>
</element>
<element type="select" name='select[a]'>
<properties>
<multiple />
</properties>
</element>
<element type="submit" name="submit">
<properties>
<value>Login</value>
</properties>
</element>
</form>
Xslt转化文件:http://paste.ideaslabs.com/show/zGranEYQSh
我还在学习XSLT,所以我想问一下是否有更简单的方法来完成这个转换。如何减少XSLT代码的数量?或者它必须是那样的?