Re: XML editing in Bitflux 0.9.2

Christian Stocker <[email protected]> Fri, 20 Feb 2004 09:26:45 +0100
Newsgroups gmane.editors.bitflux.devel
Message-ID <[email protected]>
Hi

On 2/19/04 1:23 AM, Peter Bowman wrote:
> Hi,
> 
> I've been watching the progress on Bitflux for nearly a year now, and have
> spent the last couple of months developing a CMS (version control, workflow,
> etc. - there have been reasons for doing this myself...) and almost my last
> step is to plug in an editor.
> 
> I've downloaded v.0.9.2 and have been playing about with it - it's nice!
> 
> However this version doesn't seem to support XML editing, but rather only
> XHTML. 

No. If it would only support XHTML, we'd missed the point somehow ;) On 
the other hand, it has a lot of XHTML stuff in it, because the 
university of zurich (which uses the editor) uses some subset of XHTML 
for parts of their doctype.. But this is not hardcoded in anyway. Give 
it another relxang file and it almost forgets anything about XHTML ;)

> Is that right or have I missed something? There's a note in
> bxeLoader.js by bxe_load_xml that says "for now, only support XHTML".

The loading (start) document has to be (X)HTML. the comment is 
missleading, I deleted it ;)

> Is
> this something that will be in the 1.0 release? 

0.9.2 is almost 1.0.0, there won't be many changes. I know, I didn't 
announce a lot lately to make this clear, I will very soon. The main 
problem is, that the examples are  not really working right now and I 
have to fix them.

> It seems like it works well
> already bar a few minor points. The Relaxng validation seems less useful if
> only XHTML is supported.

If only XHTML, we wouldn't need relaxng at all ;)
> 
> For example, if I have a <para> tag containing text and try to embed a
> <bold> tag in the text, I get an error saying that the <bold> tag of xhtml
> namespace is not allowed as a child of <para> in my namespace (although the
> relaxng is ok). Presumably the xhtml namespace is hardcoded somewhere?

in the buttons. yes. because we don't know from the relaxng file, what 
is bold or italic. But it's only hardcoded in config.xml and not in the 
code itself. see 
http://cvsdemo.bitfluxeditor.org/examples/inline/config.xml and
http://cvsdemo.bitfluxeditor.org/examples/uni/config.xml for an example. 
the <buttons> section ;)
> 
> Thanks for your hard work.

Hope that helps

chregu

> Pete Bowman.
> 
> 

-- 
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-dev mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev