You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Abbas Mousavi (JIRA)" <ji...@apache.org> on 2007/02/03 08:56:05 UTC

[jira] Commented: (COCOON-2001) xml datatype for forms

    [ https://issues.apache.org/jira/browse/COCOON-2001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469944 ] 

Abbas Mousavi commented on COCOON-2001:
---------------------------------------

I am quoting "Mark Lundquist" <lu...@gmail.com> from mailing list:


 

>  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 
datatype.

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?

HTH,
—ml—

> xml datatype for forms
> ----------------------
>
>                 Key: COCOON-2001
>                 URL: https://issues.apache.org/jira/browse/COCOON-2001
>             Project: Cocoon
>          Issue Type: New Feature
>          Components: Blocks: Forms
>    Affects Versions: 2.1.10, 2.1.11-dev (Current SVN)
>            Reporter: Abbas Mousavi
>
> having an xml datatype for form may be a good idea specially when 
> using an XML native database like eXist with cocoon.
> for example we cat get xml data from user with
> some kind of javascript interface in a form and then write it directly to 
> eXist.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.