- From: T. V. Raman <tvraman@almaden.ibm.com>
- Date: Thu, 16 Nov 2000 09:56:20 -0800
- To: "Chris Hubick" <chris@hubick.com>
- Cc: <www-forms@w3.org>
You may want to use '/' as the separator --this will keep you in sync with XPath and also solve your present difficulties with '.'. >>>>> "Chris" == Chris Hubick <chris@hubick.com> writes: Chris> Hi. I am implementing XForms using a combination Chris> of Java and ECMAScript (JavaScript/JScript). I Chris> am using a Java applet implementation, proxying Chris> through LiveConnect Chris> (netscape.javascript.JSObject) to HTML forms. Chris> I am having problems using either '.' or '/' as Chris> qualifiers in names. Neither of these characters Chris> are valid script identifiers. From what I can Chris> tell, the character '.' is interpreted as an Chris> object hierarchy separator, and '/' as the Chris> division operator. The ECMA Script 262-3 Chris> specification, section 7.6, specification states Chris> that even if you use unicode escapes in your Chris> scripts, the character codes these evaluate to Chris> must also be valid identifier characters. It Chris> also states that aside from alphanumeric Chris> characters, '$' and '_' may also be used, and Chris> that '$' is intended for use in mechanically Chris> generated code. I am currently using '$', with Chris> no problems, to get my code working. I have not Chris> used XPath, but as I understand it..it probably Chris> does not place script writers in the position of Chris> needing to use '/' as an identifier, but rather Chris> just in strings...which is fine. Chris> How does the working group expect scripts to deal Chris> with these characters? Have others not had Chris> problems with '/' in scripts? Chris> I would like to vote for '$' (or '_') as a better Chris> alternative to '/'. Chris> Much Thanks. Chris> --- Chris Hubick mailto:chris@hubick.com Chris> http://www.hubick.com/ Chris> ----- Original Message ----- From: "Sebastian Chris> Schnitzenbaumer" <schnitz@mozquito.com> To: Chris> "Mikko Honkala" <Mikko.Honkala@iki.fi> Cc: Chris> <www-forms@w3.org> Sent: Wednesday, November 01, Chris> 2000 4:24 PM Subject: DEL: AW: Dots in input's Chris> 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 >> -- Best Regards, --raman ------------------------------------------------------------ IBM Research: Human Language Technologies Phone: 1 (408) 927 2608 Fax: 1 (408) 927 3012 Email: tvraman@us.ibm.com WWW: http://www.cs.cornell.edu/home/raman PGP: http://cs.cornell.edu/home/raman/raman.asc Snail: IBM Almaden Research Center, 650 Harry Road San Jose 95120
Received on Thursday, 16 November 2000 12:57:01 UTC