Re: two columns
Christian Stocker <[email protected]> Thu, 27 May 2004 10:16:34 +0200
| Newsgroups | gmane.editors.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
On 27.5.2004 10:09 Uhr, Giampaolo wrote: > Thank you very much for your reply. > > >>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. > > do you mean that i need to have something like > > <element name="col1"> > <alternate> > <ref name="Block.model" /> > <ref name="Inline.model" /> > </alternate> > </element> ? there's no alternate. maybe you have luck with <interleave> chregu > > giampaolo > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. -- 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