Re: XML editing in Bitflux 0.9.2

Christian Stocker <[email protected]> Fri, 20 Feb 2004 11:51:42 +0100
Newsgroups gmane.editors.bitflux.devel
Message-ID <[email protected]>
Hi Peter

did you try one of the examples? If yes, which one?  I'm currently 
trying to fix them ;)

chregu

On 2/20/04 11:34 AM, Peter Bowman wrote:
> Hi Christian,
> 
> After a bit of investigation, I have some more info for you...
> 
> It wasn't the buttons as such that were causing the error, but the options
> in the middle of the context sensitive menu, which are generated from the
> Relaxng.
> 
> The error is caused by the final statement:
> 
>   debug("isValid?" + _node.xmlNode.isNodeValid());
> 
> in bxe_toggleTextClass() in bxe_Functions.js.
> 
> The whole of the rest of the function executes correctly. It works if I
> comment out this statement. The dialogue box that this debug statement pops
> up says:
> 
> "bold(http://www.w3.org/1999/xhtml) is not allowed as a child of para()"
> 
> But the "bold" tag isn't in the xhtml namespace. <bold> within <para> in the
> initial xml document validates ok, so I think my Relaxng and xml are ok.
> 
> Thanks,
> Pete.
> 
> 
>>-----Original Message-----
>>From: Christian Stocker [mailto:[email protected]] 
>>Sent: 20 February 2004 08:27
>>To: Peter Bowman
>>Cc: [email protected]
>>Subject: Re: [bx-editor-dev] XML editing in Bitflux 0.9.2
>>
>>
>>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
> 
> 
> 

-- 
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