You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by do...@cocoon.apache.org on 2004/07/10 03:33:28 UTC
[Cocoon Wiki] Updated: WyonaHTMLFormEditor
Date: 2004-07-09T18:33:28
Editor: JoergHeinicke <jo...@gmx.de>
Wiki: Cocoon Wiki
Page: WyonaHTMLFormEditor
URL: http://wiki.apache.org/cocoon/WyonaHTMLFormEditor
no comment
Change Log:
------------------------------------------------------------------------------
@@ -15,11 +15,11 @@
<section><title>Example</title>
<p>For example we have a "member" document "elvis.xml" of the form</p>
-<source><![:CDATA[<?xmlversion="1.0"encoding="iso-8859-1"?><member><person><name>Presley</name><prename>Elvis</prename><birthday><year></year><month></month><day></day></birthday></person><curriculum>Breakinghearts,isoftenlonelyandlooksforlove.</curriculum><contact><address><street>HeartbreakHotel</street><town>Graceland</town></address><emails><email>elvis@lenya.com</email><email>king@graceland.com</email><email>god@rnr.com</email></emails></contact></member>]]></source>
+<source><![CDATA[<?xmlversion="1.0"encoding="iso-8859-1"?><member><person><name>Presley</name><prename>Elvis</prename><birthday><year></year><month></month><day></day></birthday></person><curriculum>Breakinghearts,isoftenlonelyandlooksforlove.</curriculum><contact><address><street>HeartbreakHotel</street><town>Graceland</town></address><emails><email>elvis@lenya.com</email><email>king@graceland.com</email><email>god@rnr.com</email></emails></contact></member>]]></source>
<p>The corresponding <strong>edit descriptor</strong> has the form</p>
-<source><![:CDATA[<?xmlversion="1.0"encoding="iso-8859-1"?><member><person><nameeditType="form"size="30"name="Name"/><prenameeditType="form"size="30"maxOccurs="5"name="Prename"/><birthday><yeareditType="form"/><montheditType="form"/><dayeditType="form"/></birthday></person><curriculumeditType="text"width="50"height="7"><contact><address><streeteditType="form"/><towneditType="form"/></address><emails><emaileditType="form"minOccurs="0"maxOccurs="unbounded"/></emails></contact></member>]]></source>
+<source><![CDATA[<?xmlversion="1.0"encoding="iso-8859-1"?><member><person><nameeditType="form"size="30"name="Name"/><prenameeditType="form"size="30"maxOccurs="5"name="Prename"/><birthday><yeareditType="form"/><montheditType="form"/><dayeditType="form"/></birthday></person><curriculumeditType="text"width="50"height="7"><contact><address><streeteditType="form"/><towneditType="form"/></address><emails><emaileditType="form"minOccurs="0"maxOccurs="unbounded"/></emails></contact></member>]]></source>
<p>Comparing both files, we see that the edit descriptor is simply the
"member" XML file with empty tags. The attributes declare how to XML-tags
are to be edited, namely:</p>