You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by "Hartwig, Thomas" <t....@crapoud.com> on 2004/05/14 23:20:13 UTC
bitflux and lenya again
Sorry for crossposting to two mailinglists, but I hope to reach at least
one who might help me with my problems of integrating bitflux with lenya.
I have taken a look to the bitflux/examples/inlineXHTML and I'm really
impressed. But unfortunately I can not reach the same functionality to
work with lenya. I have found absolutely no current documentation about
A: configuring bitflux in its current version and B: how is bitflux
integrated in lenya.
My problems in detail:
Thanks to Rolf Kulemann we have a cleen public installation for this:
http://olr.kbs.uni-hannover.de:8080/lenya/default/authoring/
1. It is not possible to make a word bold. Bitflux always claims: "b is
not allowed as a child of p" (this is possible in the original examples
of bitflux)
2. In the upper left corner you have a bunch of xhtml style elements in
the examples (like xhtml:p, xhtml:h1, xhtml:li,...) In the lenya default
pub there are just two 4 of that (p, h1-4)
So far so good, this sounds not to much, but I'm wondering that I'm
absolutely not able to change the default behaviour in lenya. I have
peeked around really a lot already with all the schema files and tried
to adjust config.xml, xhtml.xml and so on, but nothing helps. I'm sure
I'm missing one small point. Do you have a hint for me?
Thanks a lot for every sugesstion
Thomas
Re: bitflux and lenya again
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Thomas Hartwig wrote:
> Hello Gregor,
>
> the bold button is not the only one which is not working, even the
> italic does not.
>
> I have looked into "xhtml-basic.rng" and it did not include following
> schema: "modules/pres.rng". This one includes all the simple format tags.
>
> Perhaps this should be included as well in the default dist.
i and b are deprecated and replaced by em and strong (which validate as
strict). thus the presentational markup is not needed.
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: bitflux and lenya again
Posted by Thomas Hartwig <t....@crapoud.com>.
Hello Gregor,
the bold button is not the only one which is not working, even the
italic does not.
I have looked into "xhtml-basic.rng" and it did not include following
schema: "modules/pres.rng". This one includes all the simple format tags.
Perhaps this should be included as well in the default dist.
Thomas
Gregor J. Rothfuss wrote:
>> change the button definition in the config.xhtml from
>> <button name="b" col="1" row="1" action="ToggleTextClass"
>> ns="http://www.w3.org/1999/xhtml"/>
>> to
>> <button name="strong" col="1" row="1" action="ToggleTextClass"
>> ns="http://www.w3.org/1999/xhtml"/>
>
>
> i commited that just now. it had escaped an earlier fix attempt of mine :)
>
>>> 2. In the upper left corner you have a bunch of xhtml style elements
>>> in the examples (like xhtml:p, xhtml:h1, xhtml:li,...) In the lenya
>>> default pub there are just two 4 of that (p, h1-4)
>>
>>
>>
>> remove the ones you want to show from the config.xml.
>
>
> the standard bxe config.xml is in
> lenya/resources/misc/bxeng/inc/config.xml and is transformed by the
> config usecase in your usecase-bxeng.xmap in your publication.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: bitflux and lenya again
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
> change the button definition in the config.xhtml from
> <button name="b" col="1" row="1" action="ToggleTextClass"
> ns="http://www.w3.org/1999/xhtml"/>
> to
> <button name="strong" col="1" row="1" action="ToggleTextClass"
> ns="http://www.w3.org/1999/xhtml"/>
i commited that just now. it had escaped an earlier fix attempt of mine :)
>> 2. In the upper left corner you have a bunch of xhtml style elements
>> in the examples (like xhtml:p, xhtml:h1, xhtml:li,...) In the lenya
>> default pub there are just two 4 of that (p, h1-4)
>
>
> remove the ones you want to show from the config.xml.
the standard bxe config.xml is in
lenya/resources/misc/bxeng/inc/config.xml and is transformed by the
config usecase in your usecase-bxeng.xmap in your publication.
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: [bx-editor-users] Re: bitflux and lenya again
Posted by Christian Stocker <ch...@bitflux.ch>.
Hi
Glad could help.
I edited and added your questions and my answer to our wiki at
http://wiki.bitfluxeditor.org/index.php/configuringBXE
chregu
On 15.5.2004 15:06 Uhr, Thomas Hartwig wrote:
> Hello Christian,
>
> thank you very much for you detailed description. I'm just getting into
> it now and it works already. One of the main problem was that lenya did
> not include the right schemas in the default dist.
>
> Thanks, I think you mail will help others too
> Thomas
>
> Christian Stocker wrote:
>
>>
>>
>> On 14.5.2004 23:20 Uhr, Hartwig, Thomas wrote:
>>
>>> Sorry for crossposting to two mailinglists, but I hope to reach at least
>>> one who might help me with my problems of integrating bitflux with
>>> lenya.
>>
>>
>>
>> FYI, Bitflux is the company, the product is called "Bitflux Editor",
>> or BXE for short (and this will als be the official name soon, as the
>> Editor will become an OSCOM project)
>>
>>>
>>> I have taken a look to the bitflux/examples/inlineXHTML and I'm really
>>> impressed. But unfortunately I can not reach the same functionality to
>>> work with lenya. I have found absolutely no current documentation about
>>> A: configuring bitflux in its current version and B: how is bitflux
>>> integrated in lenya.
>>
>>
>>
>> In BXE, there are mainly 2 places to configure the Editor.
>>
>> First, the Relax NG itself, for defining which elements are allowed
>> where. RelaxNG is an alternative to XML Schema and relatively easy to
>> understand. More info about RelaxNG can be found at http://relaxng.org/.
>>
>> Where this RelaxNG file can be found within Lenya was answered in
>> another mail.
>>
>> The second place is the config.xml
>>
>> Besides defining which files to load, from where and some button
>> definition, you can also define, which elements (defined in the
>> RelaxNG) should _not_ appear on the popups.
>>
>> See
>> http://cvs.bitflux.ch/chora/co.php/trunk/examples/uni/config.xml?rt=svneditor&r=687#120
>> for an example (the <context type="dontShow"> part)
>>
>> the config.xml is also somewhat described i
>> http://wiki.bitfluxeditor.org/index.php/config.xml
>>
>> I don't know, where the config.xml is located in lenya, but someone
>> else can certainly answer you that.
>>
>>
>>> My problems in detail:
>>>
>>> Thanks to Rolf Kulemann we have a cleen public installation for this:
>>> http://olr.kbs.uni-hannover.de:8080/lenya/default/authoring/
>>>
>>> 1. It is not possible to make a word bold. Bitflux always claims: "b
>>> is not allowed as a child of p" (this is possible in the original
>>> examples of bitflux)
>>
>>
>>
>> change the button definition in the config.xhtml from
>> <button name="b" col="1" row="1" action="ToggleTextClass"
>> ns="http://www.w3.org/1999/xhtml"/>
>> to
>> <button name="strong" col="1" row="1" action="ToggleTextClass"
>> ns="http://www.w3.org/1999/xhtml"/>
>>
>> (if th Lenya xhtml schema needs strong instead of b, as mentioned in
>> another mail)
>>
>>>
>>> 2. In the upper left corner you have a bunch of xhtml style elements
>>> in the examples (like xhtml:p, xhtml:h1, xhtml:li,...) In the lenya
>>> default pub there are just two 4 of that (p, h1-4)
>>
>>
>>
>> remove the ones you want to show from the config.xml.
>>
>> To make it hopefully clear, what those 2 different "files" intend to do:
>>
>> The RelaxNG Schema is for defining, which elements and attributes are
>> allowed where. It's the general approach to the problem, using a
>> widely known standard.
>>
>> In the config.xml, you can adjust, what BXE should show to the user
>> (besides other configuration issues). As the XHTML standard is quite
>> huge, we didn't want to show all possibilities to the enduser, but
>> still allow to validate these X(HT)ML documents.
>>
>> By the way, Lenya uses RelaxNG for all its validation (Form Editor et
>> al.), so it's not a BXE specific issue for your Lenya installation. If
>> you change the RelaxNG, all other editors will validate against your
>> new schema, as well.
>>
>> HTH
>>
>> chregu
>>
>>>
>>>
>>> So far so good, this sounds not to much, but I'm wondering that I'm
>>> absolutely not able to change the default behaviour in lenya. I have
>>> peeked around really a lot already with all the schema files and
>>> tried to adjust config.xml, xhtml.xml and so on, but nothing helps.
>>> I'm sure I'm missing one small point. Do you have a hint for me?
>>>
>>> Thanks a lot for every sugesstion
>>> Thomas
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
>>> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>>
>>
>>
--
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 | chregu@bitflux.ch | gnupg-keyid 0x5CE1DECB
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: bitflux and lenya again
Posted by Thomas Hartwig <t....@crapoud.com>.
Thomas Hartwig wrote:
> Gregor J. Rothfuss wrote:
>
>> Thomas Hartwig wrote:
>>
>>> Hello Christian,
>>>
>>> thank you very much for you detailed description. I'm just getting
>>> into it now and it works already. One of the main problem was that
>>> lenya did not include the right schemas in the default dist.
>>
>>
>>
>> strict is ok, but we allowed tags (i and b)in bxe that are not part of
>> strict
>
>
> xhtml-basic is working but if I enter xhtml-strict or xhtml in
> "config.xml" no more tags are working at all, despite it already
> contains more schemas than the basic one. There might be an other
> problem with these ones.
Ups, little mistake: the responsible file is not config.xml, but
"lenya/pub/default/config/doctypes/schemas/xhtml.rng".
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: image attributes
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Thomas Hartwig wrote:
> Ok. I found this one in "lenya/pubs/myproject/xslt/xhtml2xhtml.xsl" and
> have added the align attribute there.
another (superior) option is to define css classes that achieve this.
the align attribute is not supported in xhtml strict.
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: image attributes
Posted by Thomas Hartwig <t....@crapoud.com>.
Ok. I found this one in "lenya/pubs/myproject/xslt/xhtml2xhtml.xsl" and
have added the align attribute there.
Thomas
Thomas Hartwig wrote:
> I managed it to add the attribute "align" to the object class for
> setting the alignment of an image within a text. Bxeng interprets this
> one, and displays the image at the right edge for instance. But if I
> save the document. The object tag is converted to a image tag without
> the align attribute in the HTML file. Which XSL or action is responsible
> for this conversion, so I could add the align here as well?
>
> Thomas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
image attributes
Posted by Thomas Hartwig <t....@crapoud.com>.
I managed it to add the attribute "align" to the object class for
setting the alignment of an image within a text. Bxeng interprets this
one, and displays the image at the right edge for instance. But if I
save the document. The object tag is converted to a image tag without
the align attribute in the HTML file. Which XSL or action is responsible
for this conversion, so I could add the align here as well?
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: asset management
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Hartwig, Thomas wrote:
> The asset management does not work in my binary installation
> (incubating-lenya-1.2dev-bin-20040514045132).
>
> Assets are not uploaded in site administration and authoring. There
> comes no error message or anything. I can see the upload form, but after
> submission lenya just returns to the overview.
>
> The only thing I can see is the following info in core.log:
you need to turn on enable uploads. in the binary, that would be in
cocoon.xconf i think (or maybe web.xml)
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
asset management
Posted by "Hartwig, Thomas" <t....@crapoud.com>.
The asset management does not work in my binary installation
(incubating-lenya-1.2dev-bin-20040514045132).
Assets are not uploaded in site administration and authoring. There
comes no error message or anything. I can see the upload form, but after
submission lenya just returns to the overview.
The only thing I can see is the following info in core.log:
-------------------------------------------------------------------------
INFO (2004-05-15) 18:01.55:719 [core.program-generator]
(/lenya/default/info-authoring/index.html)
http8080-Processor25/ProgramGeneratorImpl: The serverpage
[file:/opt/tomcat/webapps/lenya/lenya/content/info/assets.xsp] could not
be preloaded, will be re-created
(org.apache.cocoon.components.language.LanguageException: Unable to
preload program org/apache/cocoon/www/lenya/content/info/assets_xsp:
org.apache.cocoon.components.language.LanguageException: Could not load
class for program 'org/apache/cocoon/www/lenya/content/info/assets_xsp'
due to a java.lang.ClassNotFoundException:
org.apache.cocoon.www.lenya.content.info.assets_xsp)
-------------------------------------------------------------------------
Unfortunately I can not build lenya from the source in my environment
with following errors, so I can not test it. However I have seen working
asset management on the demo site:
http://olr.kbs.uni-hannover.de:8080/lenya/default/authoring
Rolf Kulemann which build did you use for that?
-------------------------------------------------------------------------
webapp:
[echo] INFO: Copy files from src/webapp to build/lenya/webapp
[echo] INFO: Copy publications from src/webapp/lenya/pubs to
build/lenya/webapp/lenya/pubs
[copyPubs] Copying 0 directories to
/home/th/unpacked/cocoon-lenya/build/lenya/webapp/lenya/pubs
[copyPubs] Copying 0 files to
/home/th/unpacked/cocoon-lenya/build/lenya/webapp/lenya/pubs
[echo] INFO: Patch cocoon.xconf
BUILD FAILED
java.lang.IllegalArgumentException: No attributes are implemented
at
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:93)
at XConfToolTask.execute(Unknown Source)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
Total time: 5 seconds
java.lang.IllegalArgumentException: No attributes are implemented
at
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:93)
at XConfToolTask.execute(Unknown Source)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:301)
at org.apache.tools.ant.Target.performTasks(Target.java:328)
at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
at org.apache.tools.ant.Project.executeTargets(Project.java:1063)
at org.apache.tools.ant.Main.runBuild(Main.java:632)
at org.apache.tools.ant.Main.startAnt(Main.java:183)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56)
No attributes are implemented
Thomas
Re: bitflux and lenya again
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Thomas Hartwig wrote:
> xhtml-basic is working but if I enter xhtml-strict or xhtml in
> "config.xml" no more tags are working at all, despite it already
> contains more schemas than the basic one. There might be an other
> problem with these ones.
possibly. let us know if you get to the root of the problem :)
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: bitflux and lenya again
Posted by Thomas Hartwig <t....@crapoud.com>.
Gregor J. Rothfuss wrote:
> Thomas Hartwig wrote:
>
>> Hello Christian,
>>
>> thank you very much for you detailed description. I'm just getting
>> into it now and it works already. One of the main problem was that
>> lenya did not include the right schemas in the default dist.
>
>
> strict is ok, but we allowed tags (i and b)in bxe that are not part of
> strict
xhtml-basic is working but if I enter xhtml-strict or xhtml in
"config.xml" no more tags are working at all, despite it already
contains more schemas than the basic one. There might be an other
problem with these ones.
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: bitflux and lenya again
Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Thomas Hartwig wrote:
> Hello Christian,
>
> thank you very much for you detailed description. I'm just getting into
> it now and it works already. One of the main problem was that lenya did
> not include the right schemas in the default dist.
strict is ok, but we allowed tags (i and b)in bxe that are not part of
strict
--
Gregor J. Rothfuss
Wyona Inc. - Open Source Content Management - Apache Lenya
http://wyona.com http://cocoon.apache.org/lenya
gregor.rothfuss@wyona.com gregor@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: bitflux and lenya again
Posted by Thomas Hartwig <t....@crapoud.com>.
Hello Christian,
thank you very much for you detailed description. I'm just getting into
it now and it works already. One of the main problem was that lenya did
not include the right schemas in the default dist.
Thanks, I think you mail will help others too
Thomas
Christian Stocker wrote:
>
>
> On 14.5.2004 23:20 Uhr, Hartwig, Thomas wrote:
>
>> Sorry for crossposting to two mailinglists, but I hope to reach at least
>> one who might help me with my problems of integrating bitflux with lenya.
>
>
> FYI, Bitflux is the company, the product is called "Bitflux Editor", or
> BXE for short (and this will als be the official name soon, as the
> Editor will become an OSCOM project)
>
>>
>> I have taken a look to the bitflux/examples/inlineXHTML and I'm really
>> impressed. But unfortunately I can not reach the same functionality to
>> work with lenya. I have found absolutely no current documentation about
>> A: configuring bitflux in its current version and B: how is bitflux
>> integrated in lenya.
>
>
> In BXE, there are mainly 2 places to configure the Editor.
>
> First, the Relax NG itself, for defining which elements are allowed
> where. RelaxNG is an alternative to XML Schema and relatively easy to
> understand. More info about RelaxNG can be found at http://relaxng.org/.
>
> Where this RelaxNG file can be found within Lenya was answered in
> another mail.
>
> The second place is the config.xml
>
> Besides defining which files to load, from where and some button
> definition, you can also define, which elements (defined in the RelaxNG)
> should _not_ appear on the popups.
>
> See
> http://cvs.bitflux.ch/chora/co.php/trunk/examples/uni/config.xml?rt=svneditor&r=687#120
> for an example (the <context type="dontShow"> part)
>
> the config.xml is also somewhat described i
> http://wiki.bitfluxeditor.org/index.php/config.xml
>
> I don't know, where the config.xml is located in lenya, but someone else
> can certainly answer you that.
>
>
>> My problems in detail:
>>
>> Thanks to Rolf Kulemann we have a cleen public installation for this:
>> http://olr.kbs.uni-hannover.de:8080/lenya/default/authoring/
>>
>> 1. It is not possible to make a word bold. Bitflux always claims: "b
>> is not allowed as a child of p" (this is possible in the original
>> examples of bitflux)
>
>
> change the button definition in the config.xhtml from
> <button name="b" col="1" row="1" action="ToggleTextClass"
> ns="http://www.w3.org/1999/xhtml"/>
> to
> <button name="strong" col="1" row="1" action="ToggleTextClass"
> ns="http://www.w3.org/1999/xhtml"/>
>
> (if th Lenya xhtml schema needs strong instead of b, as mentioned in
> another mail)
>
>>
>> 2. In the upper left corner you have a bunch of xhtml style elements
>> in the examples (like xhtml:p, xhtml:h1, xhtml:li,...) In the lenya
>> default pub there are just two 4 of that (p, h1-4)
>
>
> remove the ones you want to show from the config.xml.
>
> To make it hopefully clear, what those 2 different "files" intend to do:
>
> The RelaxNG Schema is for defining, which elements and attributes are
> allowed where. It's the general approach to the problem, using a widely
> known standard.
>
> In the config.xml, you can adjust, what BXE should show to the user
> (besides other configuration issues). As the XHTML standard is quite
> huge, we didn't want to show all possibilities to the enduser, but still
> allow to validate these X(HT)ML documents.
>
> By the way, Lenya uses RelaxNG for all its validation (Form Editor et
> al.), so it's not a BXE specific issue for your Lenya installation. If
> you change the RelaxNG, all other editors will validate against your new
> schema, as well.
>
> HTH
>
> chregu
>
>>
>>
>> So far so good, this sounds not to much, but I'm wondering that I'm
>> absolutely not able to change the default behaviour in lenya. I have
>> peeked around really a lot already with all the schema files and tried
>> to adjust config.xml, xhtml.xml and so on, but nothing helps. I'm sure
>> I'm missing one small point. Do you have a hint for me?
>>
>> Thanks a lot for every sugesstion
>> Thomas
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
>> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: bitflux and lenya again
Posted by Christian Stocker <ch...@bitflux.ch>.
On 14.5.2004 23:20 Uhr, Hartwig, Thomas wrote:
> Sorry for crossposting to two mailinglists, but I hope to reach at least
> one who might help me with my problems of integrating bitflux with lenya.
FYI, Bitflux is the company, the product is called "Bitflux Editor", or
BXE for short (and this will als be the official name soon, as the
Editor will become an OSCOM project)
>
> I have taken a look to the bitflux/examples/inlineXHTML and I'm really
> impressed. But unfortunately I can not reach the same functionality to
> work with lenya. I have found absolutely no current documentation about
> A: configuring bitflux in its current version and B: how is bitflux
> integrated in lenya.
In BXE, there are mainly 2 places to configure the Editor.
First, the Relax NG itself, for defining which elements are allowed
where. RelaxNG is an alternative to XML Schema and relatively easy to
understand. More info about RelaxNG can be found at http://relaxng.org/.
Where this RelaxNG file can be found within Lenya was answered in
another mail.
The second place is the config.xml
Besides defining which files to load, from where and some button
definition, you can also define, which elements (defined in the RelaxNG)
should _not_ appear on the popups.
See
http://cvs.bitflux.ch/chora/co.php/trunk/examples/uni/config.xml?rt=svneditor&r=687#120
for an example (the <context type="dontShow"> part)
the config.xml is also somewhat described i
http://wiki.bitfluxeditor.org/index.php/config.xml
I don't know, where the config.xml is located in lenya, but someone else
can certainly answer you that.
> My problems in detail:
>
> Thanks to Rolf Kulemann we have a cleen public installation for this:
> http://olr.kbs.uni-hannover.de:8080/lenya/default/authoring/
>
> 1. It is not possible to make a word bold. Bitflux always claims: "b is
> not allowed as a child of p" (this is possible in the original examples
> of bitflux)
change the button definition in the config.xhtml from
<button name="b" col="1" row="1" action="ToggleTextClass"
ns="http://www.w3.org/1999/xhtml"/>
to
<button name="strong" col="1" row="1" action="ToggleTextClass"
ns="http://www.w3.org/1999/xhtml"/>
(if th Lenya xhtml schema needs strong instead of b, as mentioned in
another mail)
>
> 2. In the upper left corner you have a bunch of xhtml style elements in
> the examples (like xhtml:p, xhtml:h1, xhtml:li,...) In the lenya default
> pub there are just two 4 of that (p, h1-4)
remove the ones you want to show from the config.xml.
To make it hopefully clear, what those 2 different "files" intend to do:
The RelaxNG Schema is for defining, which elements and attributes are
allowed where. It's the general approach to the problem, using a widely
known standard.
In the config.xml, you can adjust, what BXE should show to the user
(besides other configuration issues). As the XHTML standard is quite
huge, we didn't want to show all possibilities to the enduser, but still
allow to validate these X(HT)ML documents.
By the way, Lenya uses RelaxNG for all its validation (Form Editor et
al.), so it's not a BXE specific issue for your Lenya installation. If
you change the RelaxNG, all other editors will validate against your new
schema, as well.
HTH
chregu
>
>
> So far so good, this sounds not to much, but I'm wondering that I'm
> absolutely not able to change the default behaviour in lenya. I have
> peeked around really a lot already with all the schema files and tried
> to adjust config.xml, xhtml.xml and so on, but nothing helps. I'm sure
> I'm missing one small point. Do you have a hint for me?
>
> Thanks a lot for every sugesstion
> Thomas
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
--
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 | chregu@bitflux.ch | gnupg-keyid 0x5CE1DECB
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: bitflux and lenya again
Posted by Michael Wechner <mi...@wyona.com>.
Hartwig, Thomas wrote:
> I'm sure I'm missing one small point. Do you have a hint for me?
you might want to use "Trang" to generate the RNG for your example
and then compare with the schemas at
src/webapp/lenya/pubs/default/config/doctypes/schemas
HTH
Michi
>
> Thanks a lot for every sugesstion
> Thomas
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>
--
Michael Wechner
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://cocoon.apache.org/lenya/
michael.wechner@wyona.com michi@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: bitflux and lenya again
Posted by Jean Pierre LeJacq <jp...@quoininc.com>.
On Fri, 14 May 2004, Hartwig, Thomas wrote:
> Thanks to Rolf Kulemann we have a cleen public installation for this:
> http://olr.kbs.uni-hannover.de:8080/lenya/default/authoring/
>
> 1. It is not possible to make a word bold. Bitflux always claims:
> "b is not allowed as a child of p" (this is possible in the
> original examples of bitflux)
My guess is that you are using the xhtml scheme. This scheme does
not support the <b> element (unlike html). You normally can get the
same visual effect by using the <strong> element but this is
dependent on what css is defined.
--
JP
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org