Hussein Shafie wrote:
> Philip Nye wrote:
>> Hussein Shafie wrote:
>> ...
>> 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.

Thanks yet again - I had not managed to get toggleCollapsed to do quite
what I want. Now I see I can do so provided my root element is collapsible.

>> 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.

OK I follow this. As long as commands attached to the template are run
before the view is generated, any which affect the view will be meaningless.

Philip

Reply via email to