Bug in attribute completion with RelaxNG
Posted: Tue Mar 15, 2005 1:38 am
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.)
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.)