Community
Participate
Working Groups
Tab completion not working for DTD files. I have dita files like <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"> <topic id="version"> <title>Version information</title> </topic> and try to get completion based on dtd to work. It worked in eclispe 2019 very well with the same setup. I have added all DTDs in the XML catalog, but they seem to loose initial slash after closing / reopening the XML catalog prefs window. I get after re-opening: Entry element: Public Location: usr/local/oxygen-xml/oxygen21.0/frameworks/dita/DITA-OT3.x/plugins/org.oasis-open.dita.v1_3/dtd/technicalContent/dtd/topic.dtd URI: file:///usr/local/oxygen-xml/oxygen21.0/frameworks/dita/DITA-OT3.x/plugins/org.oasis-open.dita.v1_3/dtd/technicalContent/dtd/topic.dtd Key type: Public ID Key: -//OASIS//DTD DITA Topic//EN where "Location" does not start with a "/". When opening the associated entry, i get "The specified source cant be loaded" in red. When i fix it with adding a "/" at the front, hit "Ok", and "Aplly and Close", restart eclipse, the slash went away. Dunno if this is the cause for the DTD completion not working in my document, but i dont get any other clues....
Hmm... Still no (zero) reaction after about 2 weeks.... Is edclipse dead if no one looks at bug reports?
It's not uncommon during the final weeks of a release. The only change about the catalog preference page has been to its own layout, though, not how any of its values are saved or loaded back in.
Ok, the error in the XML catalog dialog is already present in older eclipse: Version: 2019-03 (4.11.0) Build id: 20190314-1200 but in the older version tab completions run perfectly for DTD files. So the reason must be somewhere else....
(In reply to Hauke Wintjen from comment #3) > but in the older version tab completions run perfectly for DTD files. What are "tab completions"?
Sorry for a bit unclear here. With tab completions i meant: If you have a XML file in eclipse, and have the correct DTD (or XSD) associated, you hit <CTRL>-<Space> on an "<ele" text and it completes to "<element>". It should actually be called "ctrl-space-completion" but since i am used to linux shells, that word occupied that concept with me.... Sorr for the confusion.
Exactly which options and steps did you take to add these files to the catalog, and with what kind of entry?
Any hints on this now? Without content assist in XML based on DTD / XSD Eclipse is DEAD for me for XML editing.....
Like I asked, can you detail the exact steps and UI options you used when adding it to the catalog so I can reproduce it correctly?
Created attachment 285090 [details] Adding DTD catalog Adding DTD catalog
See screenshot and also https://www.eclipse.org/webtools/community/tutorials/XMLCatalog/XMLCatalogTutorial.html
Still broken in Eclipse release 2021-03. Completion based on DTD grammar still not working. Still trying via adding the DTDs for DITA 1.3 to eclipse...
Works with Eclipse 2021-12.