Slashdot Mirror


XForms Becomes Proposed Recommendation

leighklotz writes "The W3C has announced that XForms is now a Proposed Recommendation, after certification of one full implementation (open source Java XSmiles from Finland) and two more implementations of each feature (the Internet Explorer plug-in FormsPlayer and the Java standalone Novell xPlorer). XForms is the next generation of forms for the Web, and uses an XML-based three-layer model: data model, data, and user interface. XForms uses CSS for device independencence and is designed for integration into XHTML 2, SVG, and other XML-based markup languages. A host of other implementations are available or in progress, but my pick for most interesting is DENG, which is an XForms to Flash compiler written in Flash. DENG supports XForms, SVG, RSS, XHTML, and CSS. XForms is in consideration for other standards as diverse as Universal Remote Controls and the UK Government Interoperability Framework, and was developed with the participation of IBM, Oracle, Xerox, Adobe, Novell, SAP, Cardiff, PureEdge, and a host of other companies, universities, and invididuals."

43 of 247 comments (clear)

  1. in a nutshell... by selderrr · · Score: 4, Funny

    xforms is fully buzzword compliant and serves as an excellent tool for dumb managers to wank with.

  2. WTF? That name is already taken, try again. by Dr.+Zowie · · Score: 5, Informative
    Jesus Christ, doesn't anyone look out for name collisions anymore? XForms is a GUI toolkit for X., in (slow) development since 1995 and still used in many useful apps like GeomView and Lyx.

    Now it's also "the next generation of web forms". Gag me with a buzzword.

    It's not as if the original XForms were unknown, either -- it comes up second in a Google search for "Xforms". These jokers should have known better.

    Feh.

  3. So many links by Anonymous Coward · · Score: 4, Funny

    After all that, I think Bender summed it up best:

    "Interesting! No, wait, the other thing. Tedious."

  4. Thank god. by Duncan3 · · Score: 3, Interesting

    I was having a ton of trouble teaching people how to use and . It's good to see that they went and solved the complexity problem.

    Maybe they think if they make forms complex enough, and break enough browsers, the cheap labor in India won't take their jobs?

    --
    - Adam L. Beberg - The Cosm Project - http://www.mithral.com/
    1. Re:Thank god. by sketerpot · · Score: 4, Informative
      The thing about xforms is that I see, lurking underneath the buzzwords and nasty looking XML namespaces (ugh. UGH!), that there is some good technology here. The old HTML forms are okay, but you get the feeling that they are a bit too lightweight. They have no support for input validation, so you either have to do that with server scripting (which is typically a lot of work, and ugly at that), or stick in a bunch of nasty javascript. Xforms looks like a way to give the browser more knowledge about what is supposed to go into the fields, and let it figure out how to get it---what validation to do, and even how to display the forms, which should be very useful on, say, handheld computers. Not all the world uses MSIE 800x600 24 bit monitors, and not all the world can display normal forms that way they're intended to be displayed.

      For some good information on how to actually use xforms, go to W3Schools, which also has lots of other stuff. But knock off the buzzwords, people!

    2. Re:Thank god. by dasunt · · Score: 3, Insightful

      If Xforms allows the browser to verify fields, doesn't that mean we base our security on trusting the client?

    3. Re:Thank god. by whereiswaldo · · Score: 4, Interesting

      If Xforms allows the browser to verify fields, doesn't that mean we base our security on trusting the client?

      My take on this: if you can validate on the client side, it saves you from having fancy (and tedious to write) code on the server side which repopulates the HTML page and allows the user to fix the problem. You still check for invalid data on the server side, but error messages can be curt and no repopulating forms BS.

      All depends on what kind of site you're designing, of course.

    4. Re:Thank god. by whereiswaldo · · Score: 2, Informative

      Some people need to re-read my post. I would _never_ suggest omitting the server-side checks. I'm suggesting that bad data can be flagged to the user by javascript rather than more complex code on the server side which repopulates form elements, etc.. and presents the data the user has entered plus any error messages. That part is tedious. The data is still validated on the server side but handler code can be as simple as "you entered an invalid address". Period.

      As one poster replied, Struts can do more complex repopulation work for you, if using Struts is an option to your project.

  5. Key Feature by billstr78 · · Score: 4, Funny
    Key Goals of XForms

    • Support for handheld, television, and desktop browsers, plus printers and scanners
    • Suspend and Resume support



    Suspend and Resume. Oh, that'll be usefull for last minute regret when making large online purchaces.

    Click here to submit form to purchase $2000 computer... Wait! I changed my mind. Suspend. Suspend. Hmmm... I can always use another computer, Resume!
  6. Not again... by JessLeah · · Score: 4, Insightful

    Jebus. Every time you look around, they're introducing some new technology designed to help us. (And half the time, it's based around XML.) Am I really the only one left on this planet that believes that assembly language, C, BASIC, Cobol, Fortran, Forth, Pascal, HTML, and Perl are "good enough" for anything, and there's no need for another billion languages, "standards", plug-ins, etc.?

    I can make "plain old CGIs written in Perl" jump up and do tricks without any fancy new whizbang technology telling me it's time to re-evaluate the whole way I make Web forms. Not to mention the fact that this is going to be a nightmare to integrate into all of the browsers.

    When people started talking about Flash as if it were some sort of an IEEE-blessed, completely open standard, and as if it were available in all browsers, (I'm sorry, but "the most common browsers on the most common operating systems" doesn't count), I knew the Web was going downhill fast. Now we're mired in our own complexity, we have a billion plug-ins (Flash, Shockwave, Quicktime, Windows Media Player, etc. etc. etc.)... and now they're telling us that plain old <FORM> isn't good enough. Dammit, I want back to 1995 and Slackware 3.0...

    1. Re:Not again... by ocelotbob · · Score: 2, Insightful
      standard HTML forms may be Good Enough for most uses on a machine with a relatively large display, etc, but it begins to break down when porting XHTML to embedded platforms, mobile platforms, etc. XForms' separation of content and markup means that it'll be easier and more usable to port to new platforms and areas.

      To consider your analogy, Perl, C and company are great for scripting and application building, but at the same time, sometimes you need to roll your own language to perform operations that just weren't needed 10 years ago. Progress is good; sometimes it's beneficial to throw everything out, and start from scratch. See what's broken and fix it permanently. At least, until the next new technology comes around ;3. But such is life in the tech world. Get used to it, or you'll be sweeping floors with all the old PL/I and Flowmatic programmers who didn't want to adapt either.

      --

      Marxism is the opiate of dumbasses

    2. Re:Not again... by JessLeah · · Score: 2, Insightful

      Oh, come off it. First of all, I would never call anyone a "pussy" or not a "real man", since (among other, more important reasons) I'm a girl. Secondly, it has nothing to do with "niche" versus "non-niche". I'm just freaking sick of people MAKING our field more and more and more and more and more complex, year after wretched year. There is no Law Of Physics which states that computing will get more and more complex, changing year after year. This is something which we as techies have brought upon ourselves.

      If, instead of continually reinventing the wheel, we would focus on refining EXISTING technologies, we would be so much further down the road now. Imagine a 4GHz Pentium 4 (or, as I'd prefer, a dual 2GHz Power Macintosh G5) running some beautifully written, hand-optimized C or assembly code, tuned and tweaked and whittled into glistening sleek perfection over the past 20 years. The OS would boot in under 1MB of RAM, including the TCP/IP stack, the Web browsing environment, the sound server, the firewall and the file browser. "System Requirements" sections on software boxes would be a thing of the past, since the software would work on virtually any computer released in the past 15 years. The whole system would include beautifully refined and trimmed APIs, perfected over a decade or more, for all programmers to write to.

      But no, at some point along the line, the emphasis in the computing field went from efficiency and quality to "OOH! LOOK! SHINY!". That is where we started to go downhill.

      Here is an exercise for you, Mr. New-School Thinker. Go buy a Commodore 64. (or use an emulator...) Install Contiki on it. There you have a complete GUI system that runs in 64 kilobytes of RAM. That's KILOBYTES, not megabytes! The sort of devil-may-care, newer-is-better school of thought you advocate is what has prevented this sort of thing from being a marketable reality. An ounce of restraint on the part of coders would have done so much 10 to 20 years ago, when code bloat started on its eternal downward cycle. I should have seen something bad coming down the pike the instant when I bought Windows 3.0 (this was "back in the day" when it was new) and it brought my '286 to a crawl. Meanwhile, Appleworks, arguably a more complex software system than the entirity of Windows 3.0, ran beautifully on piddly little Apple IIs with 32KB or so of RAM.

      And people like you keep advocating newer, bloatier, more "complexified" (to borrow a word from Star Control 3) solutions to fundamentally simple problems.

      Some day, I hope to get off my rear end, and prove all of you wrong, by making an OS the right way-- that is, optimize, optimize, optimize, and optimize some more, and DAMN the shiny new tech!

    3. Re:Not again... by porter235 · · Score: 2, Informative

      Man... RTFM... this isn't to replace perl. It's to make development of web apps in languages like perl EASIER.

      And as for w3c "standards" these are not plug-ins and are not called standards because they are supported by everything.. hell, they don't even call 'em standards, they call them recomendations.

      These are layed out so that people creating the browsers of tomorrow can work together to prevent any more messed-up-browser-detection-required-scripting-shi t that happend during the browser wars and is a fact of life still today for most web developers.

      Don't worry, now that it is a W3C Proposed Recommendation, browsers like mozilla will start to work towards it, and then someone talented will write a perl module so that you too can start using Xforms with even more ease of use in your favourite language, than you currently have using plain old s!

    4. Re:Not again... by __past__ · · Score: 2, Insightful
      And as for w3c "standards" these are not plug-ins and are not called standards because they are supported by everything.. hell, they don't even call 'em standards, they call them recomendations.

      These are layed out so that people creating the browsers of tomorrow can work together to prevent any more messed-up-browser-detection-required-scripting-shi t that happend during the browser wars and is a fact of life still today for most web developers.

      Unfortunatly, no. That was how the W3C got big, and it was really good at it: Being an independent gremium where best practices from competing vendors were consolidated for the sake of interoperability.

      But that is not what they are doing today. They silently switched from standardization to specification, developing "standards" out of the blue - and they suck at it!

      The worst example is probably W3C XML Schema - the classical example of design by committe, hard to use, theoretically unsound, with lots of stuff bolted on without real integration late in the process (like the gHorribleKludge date/time types). And now they force it in into every other spec. They are seriously alienating huge parts of the community - take XPath2/XSLT2 for example, there have been quite some implementors stating that they don't plan to support it, ever (for example the ones of 4XSLT (Python) and libxslt (C)) - their user base doesn't need it (and yes, the userbase itself said so), and it makes the implementation way more complex than it has to be for XSLT1.

      I certainly don't want the browser wars back, but I miss the old, working W3C.

  7. an open letter to w3c by joe_bruin · · Score: 5, Insightful

    dear world wide web consortium,

    thank you for your recommendation of yet another over-complicated standard for the world wide web. while we do appreciate the time and effort it takes to keep coming up with esoteric standards that involve the letter 'x', we currently are not searching to implement any additional layers of abstraction into our website viewing experience. we currently have xml backends that are interpreted by xslt's to generate style sheets that are controlled by dhtml, and feel that adding another abstraction layer to what was originally a simple way to serve a formatted text page would take us into the realm of meta-meta-meta-meta-programming, and that's probably two meta's too many for us. we have decided that we would rather spend our time creating interesting content, than debugging at what level our standards-based fancy pants websites are breaking on each browser.

    so, while you guys are doing good job there in lotus-eating land, we on the real web will be passing on this standard.

    thanks,
    the world wide web

    1. Re:an open letter to w3c by Khomar · · Score: 3, Insightful

      Amen to that. I don't really see anything in the standard that cannot be done with the current technology (except the suspend/resume... but as another poster noted, WHY?!). While this argument is often a bad one in that it can cause one to be stuck in the past forever, in the case of web development, stability is better than progress. The web is finally starting to reach a point (after many, many years of frustration) where everyone is using the same standard and most users have capable web browsers. Yet, just when the job of the web developer is looking to become almost managable, they want to add an entirely new mess that will involve a whole new generation of browser incompatibility and proprietary "features". There just aren't enough compelling reasons to face the compatibility nightmare. Yet another worthless standard...

      BTW, what is up with this whole "separate the logic from the interface" kick about. While it is an interesting programming model, I do not see why an entirely new standard is required to support it. This kind of thing is already possible given existing server-side technology. Just wondering.

      --

      I believe in de-evolution. God made the world perfect, man fell, and its been going downhill ever since!

    2. Re:an open letter to w3c by irritating+environme · · Score: 3, Interesting

      Dude, you forgot the five layers of abstraction on the back-end:

      XML-based Web services, connecting to your Application Server layer, which communicates with the Enterprise Application Integration Messaging/Queuing Layers, JDBC abstraction layers, CORBA, DCOM, interpreted/JIT-compiled ByteCode, plus all the TCP/IP messaging it all runs on across the eight servers.

      --


      Hey, I'm just your average shit and piss factory.
    3. Re:an open letter to w3c by GigsVT · · Score: 2, Interesting

      It's more of seperating the content from the presentation.

      The idea is you can write a document once, then you can run it through one doohicky and make a PDF that looks nice for printing, run it through another doohicky and make a website that looks nice (and isn't linear like the printed version), run it through a special doohicky and it makes a web site that works for blind people, etc...

      Basically, once you write the content, you never have to worry about formatting, that's not your concern.

      A side effect is that the semantic markup makes it really easy to do things like smart search engines, that know that "python" could either mean a snake or a programming language, and let you clearly specify which you mean.

      --
      I've had enough abrasive sigs. Kittens are cute and fuzzy.
  8. Minor correction by Anonymous Coward · · Score: 2, Informative

    Two implementations, not one, passed the test suite for XForms: X-Smiles, and FormsPlayer

  9. Re:Browsers..? by jnana · · Score: 3, Interesting

    See the following bugzilla item for XForms support in Mozilla: http://bugzilla.mozilla.org/show_bug.cgi?id=97806. There are also plugins available for some present browsers. See the implementations section of http://www.w3.org/MarkUp/Forms/ for more info.

  10. Re:WTF? That name is already taken, try again. by SpamJunkie · · Score: 5, Funny

    Just like Firebird. What really gets me is not the fact that these names have already been taken but that at least two seperate people on earth think these are good names for their projects. Firebird is a bad name and it's only made worse by the Thunderbird project, confusing as hell. One should be called Fire and one Thunder, now that's pretty cool. Except for the fact that Fire is an IM on the Mac.

    XForms is a bad name. Sure, it kinda sounds like XHTML. Here's a reality check: XHTML is a bad name. X2 was a bad name for a movie, XP is a bad version number and so is MX. X is a stupid letter. Don't go tacking it onto everything you name just to make it sound cool. A name doesn't make something cool, but it sure can make it sound stupid.

    Don't even try to explain that extensible starts with an X instead of an E unless you're speaking in ebonics, and in that case, mad props.

  11. CSS for device independence? by irritating+environme · · Score: 2, Funny

    Huh?

    As someone who once wrote a cross-device content delivery platform for PDAs, WML/HDML phones, and browsers, I repeat:

    Huh?

    Craptastic.

    --


    Hey, I'm just your average shit and piss factory.
  12. independencence? by renard · · Score: 4, Funny
    XForms uses CSS for device independencence...

    Here at /. we have human editors for spelling independencence... not to mention English grammar transcendencence... or (my favorite) just plain incoherencence...

  13. Just one simple question: by RoLi · · Score: 2, Interesting
    Do they support combo-boxes?

    (Combo boxes are those in which you can both enter a text and choose from a list - for example the "location" bar in most browsers.)

    1. Re:Just one simple question: by Anonymous Coward · · Score: 3, Informative

      Yes, XForms supports combo-boxes

  14. Re:WTF? That name is already taken, try again. by tarquin_fim_bim · · Score: 2, Funny

    Xcellent post.

  15. This yanks the rug out from under Office 2003! by Tsu+Dho+Nimh · · Score: 2, Insightful
    The current design of Web forms doesn't separate the purpose from the presentation of a form. XForms, in contrast, are comprised of separate sections that describe what the form does, and how the form looks. ... These form controls are directly usable inside XHTML and other XML documents, like SVG.

    You might not appreciate this, but decoupling data, logic and presentation is a good thing for us all. If I can have a form control that pulls the applicable bits out of an OpenOffice (also XML) file and displays it appropriately for the web or the PDA, or sends it to a database that needs is ... I'm one happy dataslinger.

    The ability to do this sort of thing is what Microsoft has been touting as the next best thing coming soon to an expensive proprietary desktop near you as soon as they get a handle on that security stuff. But from what I have seen of the Microsoftian version of XML (totally bastardized by the Beast of Redmond), and what little I have done with Java IDEs ... this will be much easier and cleaner to implement.

    1. Re:This yanks the rug out from under Office 2003! by molarmass192 · · Score: 2, Informative

      Sure thing, take a look right here. Take special note of the 8 XML namespaces in the parent tag. Now go take a look at those individual namespaces and you'll see what he means. Just so you know, you can't because they're only available in the Word Content Developer's kit. No problem, download the kit get the XSD's and you're done right? Wrong, MS explicit forbids ANY redistribution of the XSDs. So, in effect, you wind up with an XML that can ONLY be read in Word. Useful ain't it?

      --

      Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws-Plato
    2. Re:This yanks the rug out from under Office 2003! by Tsu+Dho+Nimh · · Score: 2, Interesting
      "All the versions of Office 2003 will have support for what we call Native XML. Native means a native file format of Office. In this case we have SpreadsheetML within Excel and a new one for Word, WordML. Both of these formats save files as XML." ... "We didn't create WordML to be an interoperable format." Microsoft Office Product Manager Simon Marks.

      XML is supposed to be interoperable

      Microsoft has taken the stance that small companies aren't likely to make use of custom-defined schemas because an IT staff skilled in XML and familiar with the XSD specification is needed to write one ... I will admit that schemas are a PITA to define and write, but there are industry-specific schemas already out there, and the tools to make writing them easier are there too. Microsoft's concern for the small business is just an excuse to sell crippleware and licence upgrades.

      http://www.smallbusinesscomputing.com/biztools/a rticle.php/2194131

  16. We don't need no backwards compatibility by Simon+Brooke · · Score: 4, Interesting

    Way back in 2000 I had a hard look at how you'd deliver an XForms form to a legacy device, and concluded that it was in the general case virtually impossible using standard tools. So I said so. As far as I know, there's still no way, and no one has produced any sensible response to this problem.

    --
    I'm old enough to remember when discussions on Slashdot were well informed.
  17. Doesn't anyone care about efficiency? by sedrik · · Score: 2, Insightful

    XML is inefficient enough in terms of processing power. Every derivative of XML like XSL, XForms, and any other derived "language" of XML is exponentially more inefficient. I do use XML for some things - the things it does well (config files, multi-lingual sites, etc.). However, I would argue that no matter how many acronyms with an "X" in the name you use, there is more straight forward, more maintainable, and MUCH more efficient code out there.

    1. Re:Doesn't anyone care about efficiency? by tupshin · · Score: 2, Insightful

      Depending on your delivery platform, however, the "costs" of XML do not have to be at runtime. This spec will allow you to create a UI independent method of representing a form-based interaction. The transformation to the actual delivery format (e.g. html or swf) can happen offline, so there doesn't need to be any run-time costs. In addition, the XForms XML representation of a form is likely to more compact then the HTML equivalent. Therefore the wire costs are less then current form based(web) applications. Net efficiency gain from today instead of a loss.

      -Tupshin

  18. It Should by The+Monster · · Score: 2, Interesting
    does it run the GNU/Debian process?
    It should. Seriously....

    One of the biggest problems with running Linux for non-geeks is configuration. Every app has its own .appnamerc or appname.conf with its own peculiar syntax and options. Now that we have a standard for filling out forms, we can build the infrastructure for a single front end to them all.

    To enable Web content developers to meet these challenges XForms will be designed to cleanly distinguish between form instance data, form description (called the em>XForms Model), and form presentation (called the XForms User Interface).
    So, for each *rc or *conf file, we need an XForms Model that describes the form and how to validate it, and an X-forms-aware UA like Mozilla (but you can't get there from here!), or perhaps on the server side through Apache and Cocoon's XMLForm to handle the work of getting the input. XForms can become the glue that holds Linux together.

    When users can right-click on something, select Properties from the menu, and configure it in a consistent interface, one of the biggest impediments to Linux use by non-techies will be removed.

    --

    [100% ISO 646 Compliant]
    SVM, ERGO MONSTRO.

  19. Microsoft InfoPath? by moosesocks · · Score: 4, Insightful

    While Xforms is great and all M$ already (almost) has a production-ready implementation of their own new form standard in InfoPath, which is part of the yet-to-be-released Office 2003.

    I got to test InfoPath myself this week, and found it to be a tool which was intuitive, powerful, easy to use, and standards-compliant.

    Yes. The M$ product complied to every widely accepted standard possible. It uses XML almost exclusively, seems to have an extensive API, and uses syntactically correct XHTML wherever it can.

    Xforms isn't even a standard yet. Don't bash M$ for not complying to it. In fact, it's quite different than Xforms in that it's designed for MUCH MORE than the web (in fact, I find that it's not really geared twoard the web at all)

    So, for now, Microsoft seems to have produced a working next-generation form solution before any of the open groups or competitors. (Note: Windows is by no means my primary OS. I use Linux extensively, as well as Mac OS X, and am typing this from my Mac)

    --
    -- If you try to fail and succeed, which have you done? - Uli's moose
    1. Re:Microsoft InfoPath? by Nevyn · · Score: 3, Insightful
      So, for now, Microsoft seems to have produced a working next-generation form solution before any of the open groups or competitors.

      But it's always easier to make the compromises you want, for what you want, than it is to work with a group and come up with something everyone is happy with. So this isn't a supprise, or even unexpected.

      --
      ustr: Managed string API with ave. 44% overhead over strdup(), for 0-20B
  20. This is big. by CYwo1f · · Score: 5, Informative
    I, personally, can't wait until XForms is supported by all the major browsers. I've been planning for it in my web development framework for a few reasons. The benefits of having the browser construct an XML document and submit it back the server are tremendous:
    • You get hierarchical data, as opposed to the flat list of query parameters you have today. This makes a huge difference in the expressibility of a form. In fact, the XForms spec outlines some support for, for instance, dynamically adding controls to a form. No more re-submitting because those 3 file upload controls weren't enough for you, extend the form offline via javascript!
    • You get to reuse your form handling code to service SOAP requests, too. Instantly.
    • Form data can be serialized by the browser or by a more specialized client, and submitted later on (this is the Suspend and Resume another poster mentioned). How about being able to disconnect from the internet, copy that article submission form to your laptop, and fixing all those typos while you wait for that call from your editor? Or even submitting the form via an alternate method, SOAP or even email if your server supports it.
    • Accessibility. This isn't something I worry about on a daily basis, but there are many people who do. XForms controls are fairly platform-agnostic, and cater better to those with visual or other disabilities. Plus they're more easily adapted to novel input devices, like a cellphone.
    If you're a frustrated web developer itching for a simpler way of living, this may be your ticket. Even today, you should consider supporting XForms on your back end, while translating to the simpler HTML forms for today's web clients. I am.
  21. So much noise, so little signal by Anonymous Coward · · Score: 3, Insightful

    I usually only come to /. for the news content, so reading this whole thread has depressed me, seeing as how it purports to come from knowledgeable, savvy technical people.

    Having followed the development of XForms for the last couple of years, I have to say I'm pretty impressed. For instance, I've seen a stunning demo of an implementation by Oracle, where the same form has been filled in over a PC screen, a mobile phone screen, a regular phone by speaking and being spoken to, and even over an Instant Messenger buddy. The same form not different forms that do the same thing, or different forms generated from a central hybrid. People, you cannot do that with HTML forms. Until you understand the power of having a live XML instance in your form, you haven't understood the power of XForms.

    Go and look at the Google search example on FormsPlayer.com and tell me that's not cool; or the live map search with XSmiles.

    I know it's tough, just when you've got your head round HTML, Javascript, the DOM and all that stuff, to be told that there is something new coming that also has to be learnt, but please don't go judging it because of its name, TLA's, the fact that the spec is hard to read, or that it's new until you've actually seen it in action and tried it out.

    I've been told that no other W3C spec has had so many implementations before it was even a recommendation. I think that that fact alone means we should take it seriously and try to evaluate it rationally.

  22. This is really a good thing by duncanFrance · · Score: 5, Informative

    I'm surprised at the number of negative posts I've seen already.

    This is actually a good thing. HTML forms are badly broken at every level, as anyone who has actually tried to build a decent UI with them will know.

    I have been using the draft specification for a while to produce forms in my software and it is useful because it lets me write code (PHP) which produces XFORMS XML, without worrying about how it will look. I then pass the XML through a transform and end up with good old html. Because the actual layout is produced by a transform, I can let my designers choose which transform they want to use to get the kind of prettiness they like. I can get complex layout, with sexy results, without having to write hideous html or wrangle with the cruft that is CSS each time.

    That's just the layout side of things. The three-level model give me much more control over adding scripting behaviours (Javascript), abstracting the form control out into PHP classes etc. etc.

    If you don't understand why html forms are broken, I suggest you start playing with Xforms. Once you grok it you won't look back. When I first came across Xforms, I thought "great, loads of complexity for no good reason" too.

  23. Re:DOA by Zaiff+Urgulbunger · · Score: 2, Informative

    Been there, done that, produced the inferior proprietary clone!

    See Info Path.

    NB: It might not be inferior. I just said that 'cos this is /. !

  24. Re:Hmmmm..... InfoPath anyone? by Zaiff+Urgulbunger · · Score: 2, Interesting
    Its far bigger than just being able to manage clients. Since it allows automated validation, you could in fairly simple instances do away with much of the middle tier. I'll explain but start at the top...

    Lets say I'm building a web based app. to allow users to create/update/delete records. I create a database table to store these records in. I use SQL to do this. I write documentation detailing the table layout, field types and sizes.

    I write some script on the web server to perform the SQL create/update/delete and to squirt suitable (X)HTML at the user. I also have to include data validation here, which involves knowledge of the database layout... no problem, I've got my documentation!

    Oh, and I want to include some validation at the client end so the user doesn't have to wait for the round-trip to be told that they've missed some information or something. So thats a little JavaScript, again involving knowledge of the DB layout.

    And bingo! Its done.
    But then the boss says they want to add some extra fields to the "record", so I've now got to:
    1. Modify the database schema
    2. Update my documentaiton
    3. Modify the web server script to create/update/delete the new field *AND* validate it!
    4. Modify the HTML to include the new field
    5. Modify the client JavaScript validation
    Its a lot of maintenance work, and a lot of places for things not to work right. Lots of potential for errors/SQL injection vunerabilities.

    Now just with that lot, you could use XSchema to describe the data record *once* and use that to update the database, update the documentation (okay, generate docs from the XSchema) and build server and client side form validation.

    You'd then just be left with updating the HTML to include the extra field.

    But beyond that I imagine there should be a way to submit the form directly to the database server maybe? Certainly, the amount of coding required at the web server should at least be negligable - and completely automatable.

    Which I'd guess is what MS InfoPath is all about?

    A product that allows you to describe data *once* and easily, visually, build forms would make it childs play for an unskilled, non-programmer type to create database applications.

    I do hope that Mozilla/OpenOffice/mySQL or someone does some joined up thinking with all this, because otherwise Microsoft *might* be about to roll out a complete end-to-end solution based on their own proprietary crap!

    NOTE - This is pure speculation as I don't know much about InfoPath. It *might* be fully open standards based!! However, if it isn't, then it will still be a compelling product, and more worryingly, a product that would very much tie an organisation into MS software.
  25. Before you mock Xforms... by IGnatius+T+Foobar · · Score: 2, Interesting

    Before you mock Xforms, keep in mind that it is at least on track to be a W3C open standard. Perhaps you've also heard of something called "WinForms" which is part of the .NET framework currently being pushed by that big evil monopoly that's trying to turn the Web into a closed system. Despite having told everyone in the previous decade what a bad idea it is to embed applets in web pages, they're now pushing exactly that idea -- but now they call it "smart clients."

    So, you decide. WinForms, on IE with .NET only? Or XForms, a W3C standard that will eventually get implemented everywhere? I know which ring I'm throwing my hat into.

    --
    Tired of FB/Google censorship? Visit UNCENSORED!
  26. Re:How will this change things? by bwt · · Score: 3, Informative


    Some of the key advantages will be:
    1) decouple data, logic, and presentation
    2) allow client side rules-based validation
    3) spits back an XML record, maybe w/ schema validation
    4) replaces a lot of javascript with markup
    5) highly device independent (eg render an XForm via telephone, web browser, handheld)

  27. we NEED something by Tablizer · · Score: 2, Interesting

    we currently are not searching to implement any additional layers of abstraction into our website viewing experience.

    I have to disagree. There is a serious lack of an HTTP-friendly standard for GUI business forms. The current standards are optimized for e-brochures, not business forms. While it can possibly be bent screaming and fighting into an almost-acceptable business form under certain vendor's browsers, one gets charley horses doing such. HTML+JavaScript+DOM is nasty for non-trivial forms.

    We need a standard purposely targeted for business forms. (I even proposed one of my own because I fealt something was needed. See my other reply.)

    However, this proposal does look a bit overdone.