[EMAIL PROTECTED] wrote:
Thanks for clearing that up for me!
no problem. I am not sure if there might be some misleading docu
on this. Please let me know if so.
Also there might be another thing to add. IIRC Lenya 1.2.x doesn't require
a RelaxNG for the form editors (it's optional), whereas I think Lenya 1.4.x
does require a RelaxNG for the form editors, which one might want to
discuss.
Also I think it would be a good idea to enhance the form editors such that
they also support XML Schema, which shouldn't be that hard, because IIRC
the validation is done with the Jing lib
(src/java/org/apache/lenya/xml/RelaxNG.java)
of James Clark and it might also support XML Schema.
Thanks
Michi
-Justin
*Michael Wechner <[EMAIL PROTECTED]>*
08/23/2005 11:04 AM
Please respond to
[email protected]
To
[email protected]
cc
Subject
Re: How to create a form editor from an XML schema?
[EMAIL PROTECTED] wrote:
>
> Hi Gilles,
> A couple things to note about xml schemas for the WYSIWYG and forms
> editor in lenya 1.2x.
>
> 1) RNG schemas are only used for the BXE editor.
> 2) XML schemas are used for the Kopu and forms editor.
Kupu doesn't use a Schema, neither XML Schema nor RelaxNG, because
Kupu can edit only XHTML, whereas I am not sure if Kupu does
internal validation re XHTML.
The form based editors need also a RelaxNG
Xopus (which is proprietary) needs a XML Schema
HTH
Michi
>
> The lenya docs use the term "reaource type" and "doctype" for the same
> thing. There are also parts of the docs that speak about them a little
> differently. I think the reason for that is the idea was probably
> revisited so the docs might be a lttle confusing. I'll use the term
> doctype to explain below.
>
> To create a new doctype editiable by the WYSIWIG's and forms editors:
> 1) define a new doctype in pubs/mypub/config/doctypes/doctypes.xmap
> 2) add your doctype xml sample in pubs/mypub/config/doctypes/samples.
> this is what the forms editor and kopu will use.
> 3) add your doctypes .rng schema to pubs/mypub/config/doctypes/schemas
>
> You'l also need to define a way to create your new doctype as well, see:
> 1) <map:actions>...
> 2) org.apache.lenya.cms.authoring.DefaultCreator
>
> > Can I use an .xsd the same way as a .rng
> I dont think so. As far as I know the the only defined schema would be
> the rng, for BXE. The samples/mysample.xml is used as the schema by
> the other editors.
>
> HTH
> -Justin
>
>
>
> *Gilles Vandaele <[EMAIL PROTECTED]>*
> Sent by: news <[EMAIL PROTECTED]>
>
> 08/23/2005 07:12 AM
> Please respond to
> [email protected]
>
>
>
> To
> [email protected]
> cc
>
> Subject
> How to create a form editor from an XML schema?
>
>
>
>
>
>
>
>
>
> I've read that Lenya comes with Browser-based WYSIWYG Editors that
> validate
> input against a W3C XML Schema, but haven't found the way to do it.
> The tutorial explains how to add a custom resource type
> based on a new RELAX NG schema
> (http://lenya.apache.org/1_2_x/how-to/custom_resourcetype.html) but
> don't say
> anything about the use of an XNL schema. Can I use an .xsd the same
> way as a
> .rng, or do I need to transform my existing (and allready widely
> published) XML
> schema to a RELAX NG schema?
> Tx,
> Gilles
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Michael Wechner
Wyona - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]