XML/XSLT to write typical CF Form page[ENCRYPTED]
I have an app with 100 forms that are all very similar in structure: 1) filter on some heirarchy of properies on the left: e.g. Year - State - City to find a paricular record 2) edit, delete, or add a new record on the right I want to streamline the maintenance of writing these CF self-posting form processing pages since the structure seems pretty consistent but each form is between 400 and 1000 lines of CF/HTML. I was thinking I could describe the structure in XML and then use XSLT to write my 400-1000 line CFM page.Then I could cfinclude the result. It would be great is someone out there has already defined a nice DTD for doing this. Anyone doing anything like this? Jon [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: XML/XSLT to write typical CF Form page[ENCRYPTED]
On Thu, 15 Jul 2004 07:34:10 -0600, Jon Gunnip [EMAIL PROTECTED] wrote: I was thinking I could describe the structure in XML and then use XSLT to write my 400-1000 line CFM page.Then I could cfinclude the result. It would be great is someone out there has already defined a nice DTD for doing this. Anyone doing anything like this? Yeah, I am working on a project that does that. Actually it takes and XML document makes an XSD out of it then uses the XSD+XSLT to make form elements so what you are saying it totally possible.The only code that I could share with you is XSD+XSLT-form elements though, which I dont think is what you want. If you'd like to see the code let me know and I'll send it to you. Cheers, Rob -- ~The cfml plug-in for eclipse~ http://cfeclipse.tigris.org ~open source xslt IDE~ http://treebeard.sourceforge.net ~open source XML database~ http://ashpool.sourceforge.net [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]
Re: XML/XSLT to write typical CF Form page[ENCRYPTED]
On Thu, 15 Jul 2004 10:27:23 -0600, Jon Gunnip [EMAIL PROTECTED] wrote: Rob, Could you explain why you are creating an XSD from XML?I thought XSD's were for validation (like a DTD, but more powerful).Are you using the XSD to validate a form submission? Yeah, in the end it'll create _javascript_ to vaidate numbers vs text - that parts far off though. Plus if it didnt go to the xsd I would need an intermedate step to describe which is a text box and which is a radio button so I figured I might as well go with a standard. I would like to use XML/XSLT as a .cfm page builder.The XSLT will write my cfquery's, cfif's, and forms.Is that what you are doing, too? Yeah I have 2 things I am working on one is the form generation thing and the other is an XSLT that'll take a XMI (a uml exported diagram in xml) and make CFCs out of it.So I am doing that but in a bit of a round about way. I guess another option is to use cfm to build an XML doc that describes the state of the request (Filter, Save, Delete, ..) and the data in the form and use XSLT just to do the form display. The tricky part is that I want the same XSLT to work for lots of different forms, Thats why I went with the XSD step :) I gotta actually work now my boss is given me the evil eye - I'll send you the sheets to play with - note they are not done -- ~The cfml plug-in for eclipse~ http://cfeclipse.tigris.org ~open source xslt IDE~ http://treebeard.sourceforge.net ~open source XML database~ http://ashpool.sourceforge.net [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]