As an example, I have a DTD file that defines 2 elements:
<!ELEMENT test (foo?, foo_bar?)>
<!ELEMENT foo (true? | false?)*>
<!ATTLIST foo
foo1 CDATA #IMPLIED
foo2 CDATA #REQUIRED
>
<!ELEMENT foo_bar (true? | false?)*>
<!ATTLIST foo_bar
bar1 CDATA #IMPLIED
bar2 CDATA #REQUIRED
>
now if I create an XML file to use this DTD file:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE test SYSTEM "test.dtd">
<test>
<foo foo1="1" foo2="2"/>
<foo_bar bar1="1" bar2="2"/>
</test>
I find that the auto-complete (ALT-. and ALT-) lists the foo definition instead of foo_bar. Is this a configuration issue with my setup? Or is it something else? Note that the document still validates correctly.