Philip Nye wrote: > Hussein Shafie wrote: > ... > >> We'll add an item to the Users Wish List >> (http://www.xmlmind.com/xmleditor/wish_list.html) but not >> >> --- >> collapsed: yes | no | preserve; >> --- >> >> In fact, >> >> --- >> collapsed: yes | no >> --- >> >> should mean: initial collapsed state after you apply the CSS style sheet >> as a whole (e.g. open document or pick a CSS from the View menu). >> >> In *all* other cases, XXE should preserve the collapsed state of a view. > > Better still! thank you. > > It would also apply presumably when creating new elements.
Yes. The view of a newly created element will have the collapsed state specified by its "collapsed" CSS property, if any. > A collapse/expand whole document command would (for me) avoid having to > implement the css option at all. We already have that command: it is called "toggleCollapsed". See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/toggleCollapsed.html It even has bindings if you install the (very useful--cannot use XXE without it) add-on called "A sample customize.xxe". Example: when I open a large document, typically a reference manual, I first type "Esc 1" to view its outline. > Rarticularly when you implement the > dynamic templates element on the user wish list! which would allow > specification of collapsed state in the template rather than the css. No. After evaluation, a dynamic document or element template is just a tree of XML nodes, just like their static counterparts. This tree of XML nodes may be displayed using all sorts of views, some of which may not support CSS or the concept of collapse/expand.

