- From: <AndrewWatt2001@aol.com>
- Date: Sat, 8 Mar 2003 15:39:09 EST
- To: XForms@yahoogroups.com, www-forms@w3.org
- Message-ID: <147.c6d26ff.2b9baeed@aol.com>
In a message dated 08/03/2003 20:24:28 GMT Standard Time, AndrewWatt2001@aol.com writes: > It's late on a Saturday night. Quite possibly I am overlooking something > obvious. Maybe it will all seem clear on a fresh day. But maybe not. :) Hm ... just a little caffeine helped. This works for the non-namespace prefixed situation. <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms/cr" xmlns:xmml="http://www.xmml.com" lang="en" xml:lang="en"> <link href="SimpleLogin.css" rel="stylesheet" type="text/css"></link> <head> <title>Simple XForms Login Example</title> <xforms:model> <xforms:submission localfile="DumpData.xml" method="postxml"/> <xforms:instance xmlns:xmml="http://www.xmml.com" xmlns="http://rubbish"> <LoginData> <Name>Your Name</Name> <Password>Your password</Password> <xmml:Name >Your QName</xmml:Name> <xmml:Password></xmml:Password> </LoginData> </xforms:instance> </xforms:model> </head> <body > <xforms:input ref="/my:LoginData/my:Name" xmlns:my="http://rubbish"> <xforms:label>Enter your name:</xforms:label> </xforms:input> <xforms:secret ref="/my:LoginData/my:Password" style="width:100pt" xmlns:my="http://rubbish"> <xforms:label>Enter your password:</xforms:label> </xforms:secret> <p/> <xforms:submit> <xforms:label>Login by clicking here</xforms:label> </xforms:submit> </body> </html> Andrew Watt
Received on Saturday, 8 March 2003 15:39:23 UTC