PDA

View Full Version : XForms..


Marble
February 6th, 2005, 18:36
Anyone using these in xHTML? I was playing with these today and cannot get any results... ? not sure what I am doing wrong because I am declaring a namespace and defining the model within the head. I've even copied and pasted the example xhtml one from the site and it doesn't work..

Another question I have is if any of you ever create xml pages with xsl to style it rather than xhtml or html?

vigo
February 6th, 2005, 22:00
XForms aren't implemented by default in any browser I know of, have you installed the plugin for your browser? Betas for Firefox and MSIE are linked from the W3C XForms site.
How about a post of the example code?

I think its important to note that an xsl doesn't style an xml document, it transforms it into another format e.g. xml, pdf or even (x)html (which will then be styled on the client side by CSS). I haven't done this for a while, but I know people who do - one company I know even runs a full e-commerce facility using this method.

PS: Just a thought - are you serving as application/xhtml+xml not text/html? Might make a difference to the XForms.

Marble
February 6th, 2005, 22:09
I wasn't aware you needed a plugin.. I thought once you defined the namespace and model and a link to the "offical" namespace on w3 then you wouldn't have a problem? Guess not...
Here is the page I was talking about - granted I added a few more things, but the form and namespace/model is the same...
http://www.w3schools.com/xforms/xforms_namespace.asp

Didn't think about the text/html bit... in fact I can't find mention of it in the w3 tutorial - I'll give it a shot later...

I did some xml work ages ago and we used xsl to style the page like a regular stylesheet... I realise you can do more with it - including a langauge construct, but we only worked for web output - I will have to look into other formats...

vigo
February 7th, 2005, 01:50
Nice tutorial there, thanks for the link; I've added it to my "to study" bookmarks list (which is beginning to resemble War and Peace :)). As far as I can see the demo on that page works because of the javascript library they include (presumably to negate the need for a plugin). I'd guess if you included that file then your demo would work.

Roll on XHTML 2.0 and the end of the madness!

Marble
February 7th, 2005, 08:57
yeah... I like the idea of it, but I think it will have to be a learner until it gets implemented later on (hopefully not too far later on...)

vigo
February 7th, 2005, 11:14
Roll on 2018 :D

BigBison
April 2nd, 2005, 10:40
The following article, dated Feb. 9th, was a little too late for this thread:

http://www.xml.com/pub/a/2005/02/09/xforms.html

BigBison
April 12th, 2005, 23:26
HTML forms are in the news these days. Seems Opera and Mozilla got frustrated with lack of progress on XForms, and submitted their own proposal, called Web Forms, yesterday. This effort seems to show a rift between the w3c and two major browser manufacturers, as evidenced by w3c's comments on their submission:

http://www.w3.org/Submission/2005/02/Comment

Interesting, huh?

the_pm
April 13th, 2005, 16:26
Interesting indeed. Basically, they're saying they want to return ownership of this issue to W3C, in exchange for allowing Opera/Moz to have input. Mozilla, Opera nad Microsoft have all had influence on how standards are written from day one. That's nothing unusual. It seems the W3C had their egos hurt a bit when Opera and Moz sent them a strong message that they weren't moving quickly enough on this matter. Life's little soap operas... :)