Re: XML/XSLT to write typical CF Form page[ENCRYPTED]

2004-07-16 Thread Rob
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]

2004-07-16 Thread Rob
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]




Re: XML/XSLT to write typical CF Form page

2004-07-15 Thread Rob
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

2004-07-15 Thread Jon Gunnip
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?

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?

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, and I'm not sure if all of the possibilities of the
different forms would make an XML doc that is way more complex than my
current problem.

Jon

 [EMAIL PROTECTED] 7/15/2004 9:11:54 AM 

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.

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

2004-07-15 Thread Rob
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]




RE: XML/XSLT to write typical CF Form page

2004-07-15 Thread Samuel Neff
Blackstone does this.You write simple CFFORM/CFINPUT tags and behind the
scenes it generates XForms (XML standard).Then it uses an XSLT to
transform into HTML.You can use provided XSLT's or make your own.

It was demoed heavily during Ben Forta's user group tour and is pretty kewl.

Another thing you can look at is instead of using xml/xslt it might be
easier to create a set of custom form tags.. cf_form, cf_input, cf_select
and put the display logic in those.You could even use cfimport to have
different styles as long as they expose the same tags.

Sam

-Original Message-
From: Jon Gunnip [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 15, 2004 9:34 AM
To: CF-Talk
Subject: XML/XSLT to write typical CF Form page

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

2004-07-15 Thread Jon Gunnip
Sam,

I've seen the Blackstone demo, and that is pretty unrelated to what I'm
trying to do.Blackstone will take a small subset of CFML and create
XML which can then be processed with a stylesheet to create an HTML
layout.

I want to write some XML and apply a stylesheet to create CFML. 
Basically, is it a good idea for similar processes (like similar-looking
self-posting forms) to be described ONLY in XML and then converted to
CFML so that one only has to write the similar CFML logic (that is
reused in several pages) just once in an XSLT stylesheet?

Jon

 [EMAIL PROTECTED] 7/15/2004 1:06:13 PM 
Blackstone does this.You write simple CFFORM/CFINPUT tags and behind
the
scenes it generates XForms (XML standard).Then it uses an XSLT to
transform into HTML.You can use provided XSLT's or make your own.

-Original Message-
From: Jon Gunnip [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 15, 2004 9:34 AM
To: CF-Talk
Subject: XML/XSLT to write typical CF Form page

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]