Re: Edit XHTML Files?
Christian Stocker <[email protected]> Sat, 05 Jun 2004 18:23:26 +0200
| Newsgroups | gmane.editors.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Ulrich
On 5.6.2004 16:37 Uhr, Ulrich Fischer wrote:
>
> Hi Cregu,
>
> ouuuh thank you soooo much.
>
> On 04.06.2004 15:52 Christian Stocker wrote:
>
>> What you have to do basically is the following:
>
>
> [...]
>
>> then it should work. hopefully
>
>
>
> indeed - it works fine.
> Yes that's it...
>
Glad to hear that.
>
> So - after that I had to read:
> http://www.oasis-open.org/committees/relax-ng/tutorial.html
>
> and something to try.
>
> ------------------------------------------------
>
> Now my next question would be...
>
> In the uni-Example you define some editable areas:
>
> <define name="homepage">
> <element name="homepage">
> <ref name="html.attlist"/>
> <ref name="lenya.meta"/>
> <interleave>
> <ref name="unizh.identity"/>
> <ref name="unizh.slogan"/>
> <ref name="unizh.logo"/>
> <ref name="unizh.highlights"/>
> </interleave>
> <ref name="body"/>
> </element>
> </define>
> </grammar>
>
>
> I it possible to the same with div-Containers
> with a specific id, like
>
> <div id="content"> ... </div>
> <div id="rightColumn"> ... </div>
mmmh, hardly possible, it is somehow possible with relaxng, as you can
define, which values are allowed in an attribute, but BXEs attribute
validation isn't that advanced, so it would just let it through, no
matter which id value it has (didn't test it, although)
so, basically it would look like this
...
<element name="body">
<element name="div">
<attribute name="id">
<value type="string">content</value>
</attribute>
..more elements here ..
</element>
<element name="div">
<attribute name="id">
<value type="string">rightColumn</value>
</attribute>
..more elements here ..
</element>
</element>
But as I said, BXE doesn't care much about the id stuff here... so you
better use 2 different editable areas, one for content and one for
rightColumn with bxe_xpath="/body/div[@id='content']" for example. Then
the right thing should happen..
Hope that helps and one last plea.
Could you please answer to the mailinglist, as well. Others are maybe
also interested in the topic and may even have answers to your problems.
Thanks.
chregu
>
> ??
> I wonder how to catch that...
> Any posibilities?
>
>
> Thank you,
>
>
> Ulrich
--
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