cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist <>
Subject Re: Storing XML fragments in form fields
Date Sat, 27 Jan 2007 17:04:44 GMT
Hi Abbas,

On Jan 27, 2007, at 6:29 AM, Abbas Mousavi wrote:

>  Is there any XML data type for field?

Unfortunately not.  It sounds like it might be a good idea though, you 
should submit a feature request via JIRA

If you decide to make an xml datatype, follow the patterns you find in 
package org.apache.cocoon.forms.datatype.typeimpl and cocoon.xconf.  
You may find the classes in package org.apache.cocoon.xml (e.g. 
XMLUtils, StringXMLizable, etc.) to be helpful in implementing your 

Otherwise, just keep the datatype="string" and don't bind it to your 
XML document, but instead parse the string to a Node in your flowscript 
and insert/replace it in the document.  Will that work?


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

View raw message