Page 1 of 1

Bug in attribute completion with RelaxNG

Posted: Tue Mar 15, 2005 1:38 am
by dsewell
I've just discovered a bug with atttribute completion when editing a document against a particular Relax NG schema (XML syntax, but it's the same with the compact syntax version):

http://lister.ei.virginia.edu/~drs2n/Te ... ingEra.rng

There is one element, <time>, whose @type attribute is defined as a list of permitted values ('am', 'pm', 'military', 'descriptive'). But when editing a file using this schema, for any element that takes a @type attribute, the attribute completion box shows those four possible values, even for cases where the @type attribute is defined as "<text/>". Try <div> or <q> for example.

This affects completion only--validating the file still works properly against the schema.

(The above schema is basically a TEI schema, from the working P5 revision.)

Posted: Tue Mar 15, 2005 12:43 pm
by george
Hi David,

Thanks, we already reproduced this in a test case and we are looking for possible solutions.

Best Regards,
George

Posted: Wed Mar 16, 2005 1:54 pm
by george
Hi David,

We fixed the problem, thanks again for letting us know about it. The fix will be available in the next release.

Best Regards,
George

Thanks

Posted: Wed Mar 16, 2005 5:03 pm
by dsewell
Thanks as always for the quick attention to bug reports,

David