Re: two columns
Christian Stocker <[email protected]> Thu, 27 May 2004 09:01:23 +0200
| Newsgroups | gmane.editors.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Trapo
On 27.5.2004 1:33 Uhr, Giampaolo/Trapo wrote:
> hi people,
>
> i would like to have a xhtml with two columns let's say column1 and
> colum2. Inside both i need xhtml editing, so my xhtml should look as
> [..]
> <body>
> <col1>
> xhtml stuff
> </col1>
> <col2>
> xhtml stuff
> </col2>
> </body
It's actually easier than I assumed yesterday ;)
If for example your <body> is the root in your xml document, then the
rng looks something like this:
<include href="xhtml.rng">
<define name="body">
<element name="body">
<element name="col1">
<ref name="Block.model"/>
</element>
<element name="col2">
<ref name="Block.model"/>
</element>
</define>
</include>
The define in the include element will overwrite the defines made in
xhtml.rng (or included files)
With the "Block.model" ref, you only can have Block elements as direct
children of col1 and col2. If you also want inline elements there (like
b), you'd have to had the Inline.model as well.
For actually editing those elements, you have to define them with a
bxe_xpath attribute. I don't know where exactly in lenya they are defined.
Hope that helps
chregu
> what i would like to do is to reuse the xhtml grammar proposed with bxe,
> however i was not able to tell that
> 1) col1,col2 are a children of body and
> 2) col1 and col2 can have free xhtml code inside.
>
> Probably i can solve 1st using another tag, but what about problem 2?
>
> giampaolo
>
--
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | [email protected] | gnupg-keyid 0x5CE1DECB
--
bx-editor-users mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users