Community
Participate
Working Groups
The outline for docbook documents shows only a very little subset of the documents elements. Only elements that are assumed to have an 'title' are shown. I think most users (including me) expect a XML editor to show the complete outline, that also would make document navigation much easier. The filter is in line 96 of DocBookOutlineProvider: if (titledElements.contains(child.getLocalName())) { children.add(child); } Everything works just fine if the if-statement is removed. Only comments are not shown then, but this would be an other issue.
I would prefer to show only "structural" elements, i.e. elements that are used to structure the document (down to paragraphs). I think having all inline elements in the outline makes it confusing for documents with a lot of textual content (what esp. DocBook documents are). What do you thing about this?
Ok, inline elements isn't a must have in the outline (though i would prefer an option to display them anyway. I don't really like the seperate OutlineProvider in the DocBook package, it somehow breaks the universal approach. Maybe a universal Outline provider that uses the CSS to decide what to display would be a better solution.
The universal outline provider sounds like a good idea. There is already one (org.eclipse.vex.ui.internal.outline.DefaultOutlineProvider) which should be enhanced. There are a couple of other features that should be supported: - custom and i18n-able names for the XML elements of a given DTD or schema - DND support for structural elements - ...
The Docbook specific OutlineProvider is now replaced with a new default outline provider. The new default includes an option to show/hide inline elements ans introduces a new CSS property '_vex-outline-content' to select the text content displayed in the outline.
In the outline tree I propose to use two different icons instead of the single element icon: an icon for block elements and another for inline elements. The inline element icon could be used for the toolbar to show/hide tree nodes of inline elements.
Created attachment 235454 [details] Proposed icon set for the Vex Outline View
https://git.eclipse.org/r/#/c/16424/