W3C home > Mailing lists > Public > www-forms@w3.org > March 2003

Re: [XForms] Namespace prefixes in XForms and discrepant results

From: <AndrewWatt2001@aol.com>
Date: Sat, 8 Mar 2003 15:22:44 EST
Message-ID: <b0.35b69415.2b9bab14@aol.com>
To: XForms@yahoogroups.com, www-forms@w3.org

On thinking a little longer the seeming "discrepancy" for the 
non-namespace-prefixed nodes is clear (see 2.3 of XPath 1.0).

But, taking 2.3 of XPath 1.0 into account I expected the following code to 
work, but it doesn't in either X-Smiles (input binding failed error) or 
Novell (fails to retrieve the text in <Name>).

<?xml version="1.0"?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 lang="en" xml:lang="en">
 <link href="SimpleLogin.css" rel="stylesheet" type="text/css"></link>

<title>Simple XForms Login Example</title>
 <xforms:submission localfile="DumpData.xml" method="postxml"/>
  <Name>Your Name</Name>
  <Password>Your password</Password>
  <xmml:Name >Your QName</xmml:Name>
<body > 
 <xforms:input ref="/LoginData/Name"
  <xforms:label>Enter your name:</xforms:label>
 <xforms:secret ref="/LoginData/Password" style="width:100pt"
  <xforms:label>Enter your password:</xforms:label>
 <xforms:label>Login by clicking here</xforms:label>

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. :)

Andrew Watt
Received on Saturday, 8 March 2003 15:23:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:08 UTC