Title: HIGH/LOW key-generator name does not pass validation

Hi there,

I want to use the HIGH/LOW key generator with Castor and turn the validation on. The version of Castor I am using is 0.9.4.

There are two problems with the current mapping schema or DTD when validation is on :
- In the class element, the attribute key-generator is defined as NMTOKEN in the DTD, but "HIGH/LOW" is not a NMTOKEN (with validation on, I get the following error : Parsing Error : Attribute value "HIGH/LOW" of type NMTOKEN must be a name token). Ok, this can be corrected using an alias, but then the next problem appears.

- In the key-generator element, the name attribute is defined as ID in the DTD, as xsd:ID in the schema, and here again, "HIGH/LOW" is not a valid ID (with validation on, I get the following error : Parsing Error : Attribute value "HIGH/LOW" of type ID must be a name)

I have opened a new bug (#1086) for this. In my opinion, the best option is to rename HIGH/LOW to something else, HIGH-LOW for example, which is correct according to the DTD and schema.

By the way, wouldn't it be a good idea to run test cases with validation turned on?

Thanks for everything,

David


__________________________________________________________________________
· This email and any files transmitted with it are CONFIDENTIAL and intended
solely for the use of the individual or entity to which they are addressed.

· Any unauthorized copying, disclosure, or distribution of the material within
this email is strictly forbidden.

· Any views or opinions presented within this e-mail are solely those of the
author and do not necessarily represent those of Odyssey Asset Management
Systems SA unless otherwise specifically stated.

· An electronic message is not binding on its sender.  Any message referring to
a binding engagement must be confirmed in writing and duly signed.

· If you have received this email in error, please notify the sender immediately
and delete the original.

Reply via email to