>> Unfortunately, element-name() appears to have no value in
>> this context.

> OK. We'll fix this.

Thanks!

>> Is there any way to specify
>> the attribute value for a newly inserted element in the css?
>
> No. For now, adding an attribute by picking an attribute name from a
> list is a 2-step process:
> [1] Choose the attribute name from a list.
> [2] Replace "???" by an actual value.

> There is a way to do what you want: specify a command-button
> displaying a menu of putAttribute commands. putAttribute allows
> you to specify both the attribute name and the attribute value. See
>
http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s05s27.html

That is helpful.  It does lead to another question - is there any way
that I can specify multiple commands for a CSS button?  It seems like I
need to define a macro in the configuration that would combine the
insert and putAttribute, and then make that macro the command for the
button.  Is it possible to associate a macro with a button?  (This also
requires local config to be set up, whereas an ability to directly
specify a sequence of commands for a CSS button would be a more
self-contained solution).

>> Finally, is there any way to specify the initial state of a
collapser?

> Not in the collapser() pseudo-function itself. Use CSS property:
> collapsed:yes;.

Yes, that's exactly what I wanted; I don't know how I missed that in the
docs (I recognized other parts of it, so I must have read it).

>> Or to collapse/expand all elements?

> In the CSS no. Interactively, yes: right click on the arrow of a
> collapser and it will display an ``Expand All/Collapse All'' menu,
> just like in the tree view.

That's perfectly sufficient, thanks again for all your answers.

@alex


Reply via email to