Page: http://wiki.cocoondev.org/Wiki.jsp?page=WoodyBinding , version: 4 on Mon
Jul 28 07:30:55 2003 by MarcPortier
- The wd:convertor element has the same purpose as the wd:convertor element in
the form definition: it converts between objects (numbers, dates) and strings.
This is mostly used when binding to XML documents. Suppose you have defined a
certain field widget in a form definition to have a "date" datatype, and you
want to bind to an XML document which contains the date in the XML Schema date
representation, then you coul define a convertor as follows:
+ The wd:convertor element has the same purpose as the wd:convertor element in
the form definition: it converts between objects (numbers, dates) and strings.
This is mostly used when binding to XML documents. Suppose you have defined a
certain field widget in a form definition to have a "date" datatype, and you
want to bind to an XML document which contains the date in the XML Schema date
representation, then you could define a convertor as follows:
?
+
- The the value of the attribute specified in the name attribute to the fixed
string value specified in the value attribute.
? ----
+ The value of the attribute specified in the name attribute to the fixed
string value specified in the value attribute.