| | 15 | <!-- for all field error messages. errors that yield no match and those that have no corresponding field are inserted using rules defined in "error_messages". errors that belong to more than one field (e.g. date validator) can be handled using "multi_field_error_messages" --> |
| | 16 | <parameter name="field_error_messages"> |
| | 17 | <!-- ${htmlnsPrefix} is either empty (for HTML) or something like "html:" for XHTML documents with xmlns="..." notation. Always use this, makes your code more bullet proof. XPath needs the namespaces when the document is namespaced --> |
| | 18 | <parameter name="parent::${htmlnsPrefix}dd"> |
| | 19 | <!-- can be any of "before", "after" or "child" (to insert as prev, next sibling or last child) --> |
| | 20 | <parameter name="location">after</parameter> |
| | 21 | <!-- a container groups all errors for one element --> |
| | 22 | <parameter name="container"><![CDATA[<dd>${errorMessages}</dd>]]></parameter> |
| | 23 | <parameter name="markup"><![CDATA[<p class="error">${errorMessage}</p>]]></parameter> |
| | 24 | </parameter> |
| | 25 | <!-- you could have more rules above, e.g. ${htmlnsPrefix}input[@type="checkbox"]... to have a rule that only applies to checkbox elements. first match is used. --> |
| | 26 | </parameter> |