|
Hi Derek, I am currently working about this exact transformation. 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. 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. So, yes, I'll try to do this using XSLT. I have nothing very conclusive for the moment but I'm supposed to finish this soon. So I hope I can help you soon too. Nothing more for the moment. Derek Hohls a écrit : 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 ( http://www.xml.com/lpt/a/2000/11/29/schemas/part1.html ) 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. <xs:element name="book"> <xs:annotation> <xs:documentation xml:lang="en"> Top level element. </xs:documentation> <xs:documentation xml:lang="fr"> Element racine. </xs:documentation> <xs:appinfo source="http://example.com/foo/"> <bind xmlns="http://example.com/bar/"> <class name="Book"/> </bind> </xs:appinfo> </xs:annotation> " Ideas welcome. Derek. -- ************************************ David Verdin GES / ENSAR - laboratoire d'informatique 65, rue de St Brieuc CS 84 215 35 042 Rennes cedex e-mail : [EMAIL PROTECTED] tél : 02 23 48 54 58 fax : 02 23 48 54 50 ************************************--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] |
- Generating form models from XML Schemas Derek Hohls
- Re: Generating form models from XML Schemas David Verdin
- Re: Generating form models from XML Schemas Tim Larson
