Alexander Johannesen wrote:
> Thanks for the answer. I have indeed changed the schema to;
>
> <main>
> <section>
> ...content...
> </section>
> <section>
> ...content...
> </section>
> </main>
>
> <column>
> <section>
> ...content...
> </section>
> <section>
> ...content...
> </section>
> </column>
>
> so I guess I should be table ready, but I'm a bit unsure about how to
> do that. Any small clues? (Don't want to waste your time with
> trivialities ...)
Alas, no.
---
your-document-root {
display: table;
}
main,
column {
display: table-cell;
}
---
but where is the element with "display:table-row;"?
> Currently, I have one question; is there a simple plain button? In some of
> my templates I would like to create simple buttons inside sections to
> add elements to it, but I can only find radio-buttons, fields and the
> like, no simple buttons. The command-button seems only to give me
> workable icons, but it would really be good to have some buttons I can
> label and attach commands to. (I'm currently using command-buttons
> styled with borders, but this is a bit cumbersome)
There is no simple, plain, button, having the native look of buttons on
your platform. Why? Because we have found them to be too big and less
flexible than command-buttons. But apparently you do not agree with this.
> I've been reading the documentation a lot over the last few days, and
> in general they're good but a bit lacking in examples and explanatios.
You are right. We need to write more tutorials with useful examples
(writing process commands, styling an XML document as a form, etc).
> For example, if I use the insert-button(), I assume it looks through
> the DTD/schema and let's you add allowed elements, but when I use it
> it comes up unclickable, and I can't find any more info than the
> sparse section in the CSS manual. Any clues?
Yes. You probably need to use insert-after-button(). insert-button()
inserts an element at caret position and this is probably not what you
want to do.
If you really want to ``add'' elements (AKA smart insert), you need to
specify a command button with a hand-written menu of add commands (see
http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch06s02.html)
> Once again, I'm very impressed with the extensibility and power of
> XXE. Any plans for future additions of CSS 'position', floating boxes
> and so forth? Possibly a scripting engine and events, so that an
> 'onOver' event on a given element can pop up a toolbar, and so forth?
Sorry but the answer is no to all the questions. You describe an
advanced ``editable Web browser''. We have more modest goals for our
editor, which we consider to be *half a tool*. The other half being an
intelligent XML backend we really would like to develop.