cvs commit: jakarta-struts/conf/share validation_1_1.dtd validator-rules_1_1.dtd
rleland 2002/11/14 12:06:37 Modified:conf/share validation_1_1.dtd validator-rules_1_1.dtd Log: Deprecate and document the new dtd in commons-validator Revision ChangesPath 1.4 +8 -9 jakarta-struts/conf/share/validation_1_1.dtd Index: validation_1_1.dtd === RCS file: /home/cvs/jakarta-struts/conf/share/validation_1_1.dtd,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- validation_1_1.dtd11 Oct 2002 03:11:41 - 1.3 +++ validation_1_1.dtd14 Nov 2002 20:06:37 - 1.4 -1,13 +1,12 !-- -DTD for the Validation Configuration File, Version 1.1 - -To allow Struts to validate your validator.xml configuration files, -include the following DOCTYPE element at the beginning (after the -xml declaration): - +Deprecated ** deprecated ** deprecated ** deprecated ** deprecated ** deprecated + + Refer to the below DTD Instead: + !DOCTYPE form-validation PUBLIC - -//Apache Software Foundation//DTD Struts Validation Configuration 1.1//EN - http://jakarta.apache.org/struts/dtds/validation_1_1.dtd; + -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN + http://jakarta.apache.org/commons/dtds/validator_1_0.dtd; + $Id$ -- 1.5 +8 -9 jakarta-struts/conf/share/validator-rules_1_1.dtd Index: validator-rules_1_1.dtd === RCS file: /home/cvs/jakarta-struts/conf/share/validator-rules_1_1.dtd,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- validator-rules_1_1.dtd 11 Oct 2002 03:11:41 - 1.4 +++ validator-rules_1_1.dtd 14 Nov 2002 20:06:37 - 1.5 -1,13 +1,12 !-- -DTD for the Validator Rules Configuration File, Version 1.1 - -To allow Struts to validate your validator-rules.xml configuration -file, include the following DOCTYPE element at the beginning (after -the xml declaration): - +Deprecated ** deprecated ** deprecated ** deprecated ** deprecated ** deprecated + + Refer to the below DTD Instead: + !DOCTYPE form-validation PUBLIC - -//Apache Software Foundation//DTD Struts Validator Rules Configuration 1.1//EN - http://jakarta.apache.org/struts/dtds/validator-rules_1_1.dtd; + -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN + http://jakarta.apache.org/commons/dtds/validator_1_0.dtd; + $Id$ -- -- To unsubscribe, e-mail: mailto:struts-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-dev-help;jakarta.apache.org
Re: cvs commit: jakarta-struts/conf/share validation_1_1.dtd validator-rules_1_1.dtd
Perhaps that should be: DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED instead of the lower case. Just to enforce the point. People tend to overlook things alot. -james --- [EMAIL PROTECTED] wrote: rleland 2002/11/14 12:06:37 Modified:conf/share validation_1_1.dtd validator-rules_1_1.dtd Log: Deprecate and document the new dtd in commons-validator Revision ChangesPath 1.4 +8 -9 jakarta-struts/conf/share/validation_1_1.dtd Index: validation_1_1.dtd === RCS file: /home/cvs/jakarta-struts/conf/share/validation_1_1.dtd,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- validation_1_1.dtd 11 Oct 2002 03:11:41 - 1.3 +++ validation_1_1.dtd 14 Nov 2002 20:06:37 - 1.4 @@ -1,13 +1,12 @@ !-- -DTD for the Validation Configuration File, Version 1.1 - -To allow Struts to validate your validator.xml configuration files, -include the following DOCTYPE element at the beginning (after the -xml declaration): - +Deprecated ** deprecated ** deprecated ** deprecated ** deprecated ** deprecated + + Refer to the below DTD Instead: + !DOCTYPE form-validation PUBLIC - -//Apache Software Foundation//DTD Struts Validation Configuration 1.1//EN - http://jakarta.apache.org/struts/dtds/validation_1_1.dtd; + -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN + http://jakarta.apache.org/commons/dtds/validator_1_0.dtd; + $Id$ -- 1.5 +8 -9 jakarta-struts/conf/share/validator-rules_1_1.dtd Index: validator-rules_1_1.dtd === RCS file: /home/cvs/jakarta-struts/conf/share/validator-rules_1_1.dtd,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- validator-rules_1_1.dtd 11 Oct 2002 03:11:41 - 1.4 +++ validator-rules_1_1.dtd 14 Nov 2002 20:06:37 - 1.5 @@ -1,13 +1,12 @@ !-- -DTD for the Validator Rules Configuration File, Version 1.1 - -To allow Struts to validate your validator-rules.xml configuration -file, include the following DOCTYPE element at the beginning (after -the xml declaration): - +Deprecated ** deprecated ** deprecated ** deprecated ** deprecated ** deprecated + + Refer to the below DTD Instead: + !DOCTYPE form-validation PUBLIC - -//Apache Software Foundation//DTD Struts Validator Rules Configuration 1.1//EN - http://jakarta.apache.org/struts/dtds/validator-rules_1_1.dtd; + -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN + http://jakarta.apache.org/commons/dtds/validator_1_0.dtd; + $Id$ -- -- To unsubscribe, e-mail: mailto:struts-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-dev-help;jakarta.apache.org __ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your 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
cvs commit: jakarta-struts/conf/share validation_1_1.dtd validator-rules_1_1.dtd
rleland 2002/11/14 12:33:13 Modified:conf/share validation_1_1.dtd validator-rules_1_1.dtd Log: Take James Holmes Suggestion of DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED To indicate to use the commons-validator DTD One, or Two steps further. Revision ChangesPath 1.5 +32 -3 jakarta-struts/conf/share/validation_1_1.dtd Index: validation_1_1.dtd === RCS file: /home/cvs/jakarta-struts/conf/share/validation_1_1.dtd,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- validation_1_1.dtd14 Nov 2002 20:06:37 - 1.4 +++ validation_1_1.dtd14 Nov 2002 20:33:13 - 1.5 -1,5 +1,6 !-- -Deprecated ** deprecated ** deprecated ** deprecated ** deprecated ** deprecated +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED Refer to the below DTD Instead: -13,7 +14,9 !-- - The form-validation element is the root of the configuration file +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED +The form-validation element is the root of the configuration file hierarchy, and contains nested elements for all of the other configuration settings. -- -21,12 +24,16 !-- +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED Global constants may be defined for use of other elements. -- !ELEMENT global (constant*) !-- +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED The constant element defines a static value that can be used as replacement parameters within field elements. The constant-name and constant-value elements define the constant's reference id and -38,6 +45,8 !-- +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED The formset element defines a set of forms for a locale. Formsets for specific locales can override only those fields that change. The localization is properly scoped, so that a formset can override just the -49,6 +58,8 !-- +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED The form element defines a set of fields to be validated. The name corresponds to the identifer the application assigns to the form. In the case of the Struts framework, this is the attribute property from -60,6 +71,8 !-- +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED The field element defines the properties to be validated. In a web application, a field would also correspond to a control on a HTML form. To validate the properties, the validator works through -97,6 +110,8 !-- +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED The msg element defines a custom message key to use when one of the validators for this field fails. Each validator has a default message property that is used when a corresonding field msg is not specified. -119,6 +134,8 !-- +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED The arg0 element defines the first replacement value to use with the message template for this validator or this field. The arg0 element accepts up to three attributes. -139,6 +156,8 !-- +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED The arg1 element defines the second replacement value to use with the message template for this validator or this field. The arg1 element accepts up to three attributes. -159,6 +178,8 !-- +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED +DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED The arg2 element defines the third replacement value to use with the message template for this validator or this field. The arg2 element accepts up to three
Re: cvs commit: jakarta-struts/conf/share validation_1_1.dtd validator-rules_1_1.dtd
Cool...I just thought it would help save us some time on the mailing lists. -james --- Robert Leland [EMAIL PROTECTED] wrote: James Holmes wrote: Perhaps that should be: DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED instead of the lower case. Just to enforce the point. People tend to overlook things alot. Ok. I just used a sledge hammer on every comment :-D! -- To unsubscribe, e-mail: mailto:struts-dev-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-dev-help;jakarta.apache.org __ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your 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
cvs commit: jakarta-struts/conf/share validation_1_1.dtd validator-rules_1_1.dtd
craigmcc2002/07/10 10:32:58 Added: conf/share validation_1_1.dtd validator-rules_1_1.dtd Log: Initial checkin of DTDs for the two validator configuration files. They are not yet referenced by the validator-rules.xml file, or the validation.xml file of the example app -- want to make sure they are correct first. They also need to be propogated to the Struts website (which will happen automatically the next time someone uploads the struts-documentation webapp to the site. Now if someone would take the time to fill in the documentation inside the file, the way it is for struts-config_1_1.dtd, that would be great ... Revision ChangesPath 1.1 jakarta-struts/conf/share/validation_1_1.dtd Index: validation_1_1.dtd === ?xml version=1.0 encoding=ISO-8859-1? !-- DTD for the Validation Configuration File, Version 1.1 To allow Struts to validate your validator.xml configuration files, include the following DOCTYPE element at the beginning (after the xml declaration): !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Struts Validation Configuration 1.1//EN http://jakarta.apache.org/struts/dtds/validation_1_1.dtd; $Id: validation_1_1.dtd,v 1.1 2002/07/10 17:32:58 craigmcc Exp $ -- !ELEMENT form-validation (global*, formset+) !ELEMENT global (constant*) !ELEMENT constant (constant-name, constant-value) !ELEMENT constant-name (#PCDATA) !ELEMENT constant-value (#PCDATA) !ELEMENT formset (constant*, form+) !ATTLIST formset language CDATA #IMPLIED country CDATA #IMPLIED !ELEMENT form(field+ ) !ATTLIST formname CDATA #REQUIRED !ELEMENT field (msg?, arg0?, arg1?, arg2?, arg3?, var* ) !ATTLIST field property CDATA #REQUIRED depends CDATA #IMPLIED page CDATA #IMPLIED indexedListProperty CDATA #IMPLIED !ELEMENT msg EMPTY !ATTLIST msg name CDATA #IMPLIED key CDATA #IMPLIED resource CDATA #IMPLIED !ELEMENT arg0EMPTY !ATTLIST arg0name CDATA #IMPLIED key CDATA #IMPLIED resource CDATA #IMPLIED !ELEMENT arg1EMPTY !ATTLIST arg1name CDATA #IMPLIED key CDATA #IMPLIED resource CDATA #IMPLIED !ELEMENT arg2EMPTY !ATTLIST arg2name CDATA #IMPLIED key CDATA #IMPLIED resource CDATA #IMPLIED !ELEMENT arg3EMPTY !ATTLIST arg3name CDATA #IMPLIED key CDATA #IMPLIED resource CDATA #IMPLIED !ELEMENT var (var-name, var-value) !ELEMENT var-name (#PCDATA) !ELEMENT var-value (#PCDATA) !-- eof -- 1.1 jakarta-struts/conf/share/validator-rules_1_1.dtd Index: validator-rules_1_1.dtd === ?xml version=1.0 encoding=ISO-8859-1? !-- DTD for the Validator Rules Configuration File, Version 1.1 To allow Struts to validate your validator-rules.xml configuration file, include the following DOCTYPE element at the beginning (after the xml declaration): !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Struts Validator Rules Configuration 1.1//EN http://jakarta.apache.org/struts/dtds/validator-rules_1_1.dtd; $Id: validator-rules_1_1.dtd,v 1.1 2002/07/10 17:32:58 craigmcc Exp $ -- !ELEMENT form-validation (global+) !ELEMENT global (validator+) !ELEMENT validator (javascript?) !ATTLIST validator name CDATA #REQUIRED classname CDATA #REQUIRED method CDATA #REQUIRED methodParams CDATA #REQUIRED msgCDATA #REQUIRED dependsCDATA #IMPLIED jsFunctionName CDATA #IMPLIED !ELEMENT javascript (#PCDATA) !-- -- !ELEMENT constant (constant-name, constant-value) !ELEMENT constant-name (#PCDATA) !ELEMENT constant-value (#PCDATA) !ELEMENT formset (constant*, form+) !ATTLIST formset language CDATA #IMPLIED country CDATA #IMPLIED !ELEMENT form(field+ ) !ATTLIST formname CDATA #REQUIRED !ELEMENT field (msg?, arg0?, arg1?, arg2?, arg3?, var* ) !ATTLIST field property CDATA #REQUIRED depends CDATA #IMPLIED page