cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Verdin <>
Subject Re: Generating form models from XML Schemas
Date Mon, 23 Aug 2004 09:37:15 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Hi Derek,<br>
I am currently working about this exact transformation.<br>
I previously made a transformation from XML schema to HTML forms, but
due to the large flexibility of the XML schemas, I had to switch to
something more dynamic, like cocoon.<br>
I'm trying to understand exactly how control flow and forms work in
cocoon, and then I will adapt my old XSLT transformation to Cforms.<br>
So, yes, I'll try to do this using XSLT.<br>
I have nothing very conclusive for the moment but I'm supposed to
finish this soon.<br>
So I hope I can help you soon too.<br>
Nothing more for the moment.<br>
Derek Hohls a &eacute;crit&nbsp;:
<blockquote cite="" type="cite">
  <pre wrap="">Has anyone made any attempt to do a mapping between
an XML Schema, and a CForms model representation of
the data... I assume it would need a stylesheet of some
kind, or is there any other way?

For example, the extract from this article
( <a class="moz-txt-link-freetext" href=""></a>
suggest a mapping to a Java class:

"The xs:annotation elements can be added at the beginning 
of most schema constructions, as shown in the example 
below. The appinfo section demonstrates how custome 
namespaces and schemes might allow the binding of an 
element to a Java class from within the schema.

&lt;xs:element name="book"&gt;
&lt;xs:documentation xml:lang="en"&gt;
  Top level element.
&lt;xs:documentation xml:lang="fr"&gt;
  Element racine.
&lt;xs:appinfo source=<a class="moz-txt-link-rfc2396E" href="">""</a>&gt;
  &lt;bind xmlns=<a class="moz-txt-link-rfc2396E" href="">""</a>&gt;
      &lt;class name="Book"/&gt;

Ideas welcome.


<pre class="moz-signature" cols="72">-- 
David Verdin
GES / ENSAR - laboratoire d'informatique
65, rue de St Brieuc
CS 84 215
35 042 Rennes cedex
e-mail : <a class="moz-txt-link-abbreviated" href=""></a>
t&eacute;l : 02 23 48 54 58
fax : 02 23 48 54 50

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message