Page 1 of 1

Folding in Author mode

Posted: Thu Jun 18, 2009 1:45 pm
by honyk
Hello Everyone,

at present there is folding available only for several elements. It would be nice to have possibility to collapse every element. In XMetal for this purpose there is usefull area of each starting tag, where user can click to collapse/expand element content. Do you plan something similar?

Jan

Re: Folding in Author mode

Posted: Thu Jun 18, 2009 3:07 pm
by sorin_ristache
Hello,

We implemented two CSS extension properties: foldable and not-foldable-child. Only the elements with the property foldable:true are folded in Author mode.


Regards,
Sorin

Re: Folding in Author mode

Posted: Thu Jun 18, 2009 5:24 pm
by honyk
Thanks for reply, I've overlooked such possibility. But suggested tag enhancement would be maybe more general and not requiring this technical background, what can be problem for common document writers.

Jan

Re: Folding in Author mode

Posted: Thu Jun 18, 2009 5:51 pm
by sorin_ristache
No, the document authors that edit the content of XML documents in Author mode do not have to know about CSS stylesheets and CSS extension functions. Only the one developer that sets up the CSS in a custom document type for the many document authors needs to specify the foldable elements only once in the CSS stylesheet. If a predefined document type is used and you want to customize the set of foldable tags just customize the CSS stylesheet of the predefined document type.

The Oxygen implementation of folding is also general. With only one CSS rule (one line in the CSS stylesheet) all the tags can be set as foldable in Author mode. You don't have to specify each tag name as foldable. The CSS specification does not provide such a feature so we introduced a CSS extension.


Regards,
Sorin