You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2004/02/26 17:45:07 UTC
DO NOT REPLY [Bug 27264] New: -
Setting 'datatype-normalization' true should also set 'validate' true
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27264>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27264
Setting 'datatype-normalization' true should also set 'validate' true
Summary: Setting 'datatype-normalization' true should also set
'validate' true
Product: Xerces2-J
Version: 2.6.2
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: DOM
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: nnissar@ca.ibm.com
DOM L3 Core spec states that setting 'datatype-normalization' parameter
(DOMConfiguration interface) to true will also set the 'validate' parameter to
true. Currently failing DOMTS L3 core test domconfigdatatypenormalization2.
Proposed patch to DOMConfigurationImpl.setParameter:
Line 522: else if (name.equals(Constants.DOM_DATATYPE_NORMALIZATION)) {
setFeature(NORMALIZE_DATA, state);
features = (short) (state ? features | DTNORMALIZATION :
features & ~DTNORMALIZATION);
+ if (state) {
+ features = (short) (features | VALIDATE);
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org