Discussion:
XML editing in Bitflux 0.9.2
Peter Bowman
2004-02-19 00:23:19 UTC
Permalink
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. 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". Is
this something that will be in the 1.0 release? It seems like it works well
already bar a few minor points. The Relaxng validation seems less useful if
only XHTML is supported.

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?

Thanks for your hard work.

Pete Bowman.
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Christian Stocker
2004-02-20 08:26:45 UTC
Permalink
Hi
Post by Peter Bowman
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 ;)
Post by Peter Bowman
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 ;)
Post by Peter Bowman
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.
Post by Peter Bowman
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 ;)
Post by Peter Bowman
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 ;)
Post by Peter Bowman
Thanks for your hard work.
Hope that helps

chregu
Post by Peter Bowman
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 | ***@bitflux.ch | gnupg-keyid 0x5CE1DECB
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Christian Stocker
2004-02-20 10:51:42 UTC
Permalink
Hi Peter

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

chregu
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.
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
"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-----
Sent: 20 February 2004 08:27
To: Peter Bowman
Subject: Re: [bx-editor-dev] XML editing in Bitflux 0.9.2
Hi
Post by Peter Bowman
Hi,
I've been watching the progress on Bitflux for nearly a
year now, and
Post by Peter Bowman
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
Post by Peter Bowman
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 ;)
Post by Peter Bowman
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 ;)
Post by Peter Bowman
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.
Post by Peter Bowman
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 ;)
Post by Peter Bowman
For example, if I have a <para> tag containing text and try
to embed a
Post by Peter Bowman
<bold> tag in the text, I get an error saying that the
<bold> tag of
Post by Peter Bowman
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 ;)
Post by Peter Bowman
Thanks for your hard work.
Hope that helps
chregu
Post by Peter Bowman
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 |
--
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 | ***@bitflux.ch | gnupg-keyid 0x5CE1DECB
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Christian Stocker
2004-02-20 11:09:34 UTC
Permalink
Hi Peter

Ok, I got the error, too... BXE assumes if no NS == XHTML NS, which is
plain wrong...

I'll fix it

chregu
Hi Christian,
No, I put together a really basic example of my own. I was aware that the
examples are a bit out of date.
<?xml version="1.0"?>
<page>
<content>
<para>
Here is some text
</para>
</content>
</page>
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="css/main.css"
media="screen"/>
<script src="/bx/bxeLoader.js" type="text/javascript"/>
</head>
<body onload="bxe_start('./config.xml')">
<div class="editblock" bxe_xpath="/page">
</div>
</body>
<?xml version="1.0" encoding="UTF-8"?>
<grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0">
<start>
<element name="page">
<element name="content">
<zeroOrMore>
<choice>
<element name="para">
<oneOrMore>
<choice>
<text/>
<element name="bold">
<text/>
</element>
</choice>
</oneOrMore>
</element>
</choice>
</zeroOrMore>
</element>
</element>
</start>
</grammar>
I then get the error when trying to set <bold> within a <para>.
Pete.
-----Original Message-----
Sent: 20 February 2004 10:52
Subject: Re: [bx-editor-dev] XML editing in Bitflux 0.9.2
Hi Peter
did you try one of the examples? If yes, which one? I'm currently
trying to fix them ;)
chregu
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.
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
"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-----
Sent: 20 February 2004 08:27
To: Peter Bowman
Subject: Re: [bx-editor-dev] XML editing in Bitflux 0.9.2
Hi
Post by Peter Bowman
Hi,
I've been watching the progress on Bitflux for nearly a
year now, and
Post by Peter Bowman
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
Post by Peter Bowman
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 ;)
Post by Peter Bowman
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 ;)
Post by Peter Bowman
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.
Post by Peter Bowman
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 ;)
Post by Peter Bowman
For example, if I have a <para> tag containing text and try
to embed a
Post by Peter Bowman
<bold> tag in the text, I get an error saying that the
<bold> tag of
Post by Peter Bowman
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 ;)
Post by Peter Bowman
Thanks for your hard work.
Hope that helps
chregu
Post by Peter Bowman
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 |
--
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 |
--
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 | ***@bitflux.ch | gnupg-keyid 0x5CE1DECB
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Michael Rolli
2004-02-20 11:29:12 UTC
Permalink
Hi Pete, hi chregu
Post by Christian Stocker
Ok, I got the error, too... BXE assumes if no NS == XHTML NS,
Hey, great for pointing out this issue. That's exactly the same that
I've struggled with for a long long time (hours). I always thought I was
wrong with my relax file (too stupid for relax?) and then found that
there must be "something" else complaining about "not allowed" stuff.
Well, hadn't had the time to dive deeper in the js-stuff.
Many thanks Pete for pointing out and to chregu for fixing it. ;-)

Cheers
Michael
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Christian Stocker
2004-02-20 11:43:16 UTC
Permalink
Hi guys

Just as a sidenode..

Before you're "wasting" hours on trying something, which might be a bug
in BXE, just ask here on the list.

I know the documentation is sparse and it's hard to get into it,
therefore I'm glad to hear any feedback and problems you have. It only
improves BXE and some day, we will have a proper documentation ;)

chregu
Post by Michael Rolli
Hi Pete, hi chregu
Post by Christian Stocker
Ok, I got the error, too... BXE assumes if no NS == XHTML NS,
Hey, great for pointing out this issue. That's exactly the same that
I've struggled with for a long long time (hours). I always thought I was
wrong with my relax file (too stupid for relax?) and then found that
there must be "something" else complaining about "not allowed" stuff.
Well, hadn't had the time to dive deeper in the js-stuff.
Many thanks Pete for pointing out and to chregu for fixing it. ;-)
Cheers
Michael
--
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 | ***@bitflux.ch | gnupg-keyid 0x5CE1DECB
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Christian Stocker
2004-02-20 13:46:45 UTC
Permalink
Hello

ok, this should be fixed in CVS and snapshot

I'll try to make the inline example properly working this afternoon and
will then release 0.9.3

Thanks for the bug report

chregu
Post by Christian Stocker
Hi Peter
Ok, I got the error, too... BXE assumes if no NS == XHTML NS, which is
plain wrong...
I'll fix it
chregu
Hi Christian,
No, I put together a really basic example of my own. I was aware that the
examples are a bit out of date.
<?xml version="1.0"?>
<page>
<content>
<para>
Here is some text
</para>
</content>
</page>
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="css/main.css"
media="screen"/>
<script src="/bx/bxeLoader.js" type="text/javascript"/>
</head>
<body onload="bxe_start('./config.xml')">
<div class="editblock" bxe_xpath="/page">
</div>
</body>
<?xml version="1.0" encoding="UTF-8"?>
<grammar ns="" xmlns="http://relaxng.org/ns/structure/1.0">
<start>
<element name="page"> <element name="content">
<zeroOrMore>
<choice> <element name="para">
<oneOrMore>
<choice>
<text/>
<element name="bold">
<text/>
</element>
</choice>
</oneOrMore>
</element>
</choice>
</zeroOrMore>
</element>
</element> </start>
</grammar>
I then get the error when trying to set <bold> within a <para>.
Pete.
-----Original Message-----
2004 10:52
Subject: Re: [bx-editor-dev] XML editing in Bitflux 0.9.2
Hi Peter
did you try one of the examples? If yes, which one? I'm currently
trying to fix them ;)
chregu
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.
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
"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-----
Sent: 20 February 2004 08:27
To: Peter Bowman
Subject: Re: [bx-editor-dev] XML editing in Bitflux 0.9.2
Hi
Post by Peter Bowman
Hi,
I've been watching the progress on Bitflux for nearly a
year now, and
Post by Peter Bowman
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
Post by Peter Bowman
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 ;)
Post by Peter Bowman
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 ;)
Post by Peter Bowman
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.
Post by Peter Bowman
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 ;)
Post by Peter Bowman
For example, if I have a <para> tag containing text and try
to embed a
Post by Peter Bowman
<bold> tag in the text, I get an error saying that the
<bold> tag of
Post by Peter Bowman
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 ;)
Post by Peter Bowman
Thanks for your hard work.
Hope that helps
chregu
Post by Peter Bowman
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
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
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 | ***@bitflux.ch | gnupg-keyid 0x5CE1DECB
--
bx-editor-dev mailing list
bx-editor-***@lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev
Loading...