At 09:35 AM 10/22/2002, you wrote:
James T.,

I took a look at the DTD you specify below and it is
for the *-rules.xml files, but doesn't seem to support
validation.xml.  Are you planning to add that DTD to
Commons Validator as well?

Currently Struts has two Validator DTDs:

validation_1_1.dtd
valitator-rules_1_1.dtd

I would prefer that we add these both to Commons and
get the naming scheme consistent now.
There is absolutely no reason to maintain two seperate DTDs, and the
validation and validation-rules split is something that Struts introduced, and
for which I can find no good reason.

The validation DTD and validator-rules DTD are same, except that validation
doesn't allow you to put a validator definition at the top.  There is (IMHO)
absolutely no reason you'd ever need to enforce such a distinction (the base
Commons Validator doesn't), and it's silly to maintain two different DTDs that
are identical except for the abscence of one element in one DTD.

If someone can make a compelling case for the need to maintain the two
differing DTDs, I'll add the second DTD into Validator.  Otherwise, people
should just use the Validator "validation" DTD, which is the same as the
Struts "validator-rules" DTD.

James


Here's what I propose they be in Commons:

validator_1_0.dtd  used as

<!DOCTYPE form-validation PUBLIC
     "-//Apache Software Foundation//DTD Commons
Validator Configuration 1.0//EN"

"http://jakarta.apache.org/commons/dtds/validator_1_0.dtd";>

validator-rules_1_0.dtd  used as

<!DOCTYPE form-validation PUBLIC
     "-//Apache Software Foundation//DTD Commons
Validator Rules Configuration 1.0//EN"

"http://jakarta.apache.org/commons/dtds/validator-rules_1_0.dtd";>


This means that the file you currently have in Commons
would need to be renamed to validator-rules_1_0.dtd
and then you'd need to add the main validator_1_0.dtd
file in.

I can take care of updating the Struts side if you can
tackle the Commons side.

-james h.


--- James Holmes <[EMAIL PROTECTED]> wrote:
> I can take care of that.  And by the way we share
> the
> same name :)  Not John.
>
> -james
>
>
> --- James Turner <[EMAIL PROTECTED]> wrote:
> > I noticed that John just went in and added a
> DOCTYPE
> > line to all the DTDs
> > for the Struts Validator rulesets.
> >
> > I've been talking to Senor Cooper about this
> issue.
> > We've put a copy of
> > the validator DTD into the Validator release (and
> > the URL:
> >
>
http://jakarta.apache.org/commons/dtds/validator_1_0.dtd)
> >
> > I'd suggest that we remove the DTD from Struts and
> > repoint the DOCTYPEs at
> > the Validator verson)
> >
> > James


__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/


--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@;jakarta.apache.org>

Reply via email to