Uploaded image for project: 'XWork'
  1. XWork
  2. XW-1037

param value inconsistency between xwork-1.0.dtd and xwork-validator-1.0.dtd

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-beta1
    • 1.0-beta1
    • Validators
    • None
    • jre 1.4.1 on win2k

    Description

      In xwork.xml, parameter values are specified as text elements. In validation xml files, they are specified as text attributes. e.g.:

      xwork.xml:
      ...
      <param name="myParam">
      myValue
      </param>
      ...

      xwork-validation.xml:
      ...
      <param name="myParam" value="myValue"/>
      ...

      It'd be nice if they were consistent. I'm in favor of changing xwork-validator-1.0.dtd to have param values specified as text elements. That way, complicated expressions are more readable. Furthermore, if you create a new validator that uses a scripting language, you'll have more room to work with. I know you could just use a CDATA expression, but I think changing the dtd is cleaner.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bnahas Brian Nahas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: