<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE form-validation PUBLIC
          "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
          "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">

<form-validation>
     <formset>
        <form name="RegistroForm">
            <field
                property="nombre"
                depends="required">
                    <arg key="RegistroForm.nombre"/>
            </field>
            <field
                property="apellidos"
                depends="required">
                    <arg key="RegistroForm.apellidos"/>
            </field>
            <field
                property="usuario"
                depends="required">
                    <arg key="RegistroForm.usuario"/>
            </field>
            <field
                property="password"
                depends="required,minlength">
                    <arg0 key="RegistroForm.password"/>
                    <arg1 name="minlength" key="RegistroForm.password.min"/>
                    <var>
                        <var-name>minlength</var-name>
                        <var-value>4</var-value>
                    </var>
            </field>
            <field
                property="edad"
                depends="required, integer">
                    <arg0 key="RegistroForm.edad"/>
                    <arg1 key="RegistroForm.edad"/>
            </field>
            <field
                property="email"
                depends="required,email">
                    <arg0  key="RegistroForm.email"/>                          
            </field>
        </form>
        
        
    </formset>

   

</form-validation>
