W3C home > Mailing lists > Public > www-forms@w3.org > November 2000

Re: AW: Dots in input's names interefere with dots in XML element names?

From: Chris Hubick <chris@hubick.com>
Date: Thu, 16 Nov 2000 12:41:28 -0500
Message-ID: <027601c04ff4$7376e480$0500a8c0@chlap>
To: <www-forms@w3.org>
Hi.

I am implementing XForms using a combination of Java and ECMAScript
(JavaScript/JScript).  I am using a Java applet implementation, proxying
through LiveConnect (netscape.javascript.JSObject) to HTML forms.

I am having problems using either '.' or '/' as qualifiers in names.  Neither
of these characters are valid script identifiers. From what I can tell, the
character '.' is interpreted as an object hierarchy separator, and '/' as the
division operator.  The ECMA Script 262-3 specification, section 7.6,
specification states that even if you use unicode escapes in your scripts,
the character codes these evaluate to must also be valid identifier
characters.  It also states that aside from alphanumeric characters, '$' and
'_' may also be used, and that '$' is intended for use in mechanically
generated code.  I am currently using '$', with no problems, to get my code
working.  I have not used XPath, but as I understand it..it probably does not
place script writers in the position of needing to use '/' as an identifier,
but rather just in strings...which is fine.

How does the working group expect scripts to deal with these characters?
Have others not had problems with '/' in scripts?

I would like to vote for '$' (or '_') as a better alternative to '/'.

Much Thanks.

---
Chris Hubick
mailto:chris@hubick.com
http://www.hubick.com/


----- Original Message -----
From: "Sebastian Schnitzenbaumer" <schnitz@mozquito.com>
To: "Mikko Honkala" <Mikko.Honkala@iki.fi>
Cc: <www-forms@w3.org>
Sent: Wednesday, November 01, 2000 4:24 PM
Subject: DEL: AW: Dots in input's names interefere with dots in XML element
names?


> Hey Mikko,
>
> > Maybe something else than '.' should be used as the separator in XForms,
> > e.g. '/' as in XPath.
>
> we've decided at our last FtF that we will choose "/" as in XPath
> instead of dots. So stay tuned for the next version of the XForms
> Spec.
>
> BTW, Please keep posting to this mailing list. Even though a lot
> of emails don't get answered, be assured that the XForms Working
> Group *is* listening.
>
> Regards,
>
> Sebastian
> Co-chair W3C XForms WG
>
Received on Thursday, 16 November 2000 12:42:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:48 GMT