W3C home > Mailing lists > Public > www-html@w3.org > June 2008

XHTML Basic 1.1 and setting input field to numeric mode

From: Luca Passani <passani@eunet.no>
Date: Mon, 23 Jun 2008 16:50:56 +0200
Message-ID: <485FB850.2010901@eunet.no>
To: www-html@w3.org

Hi,

I heard that W3C has recently unleashed XHTML-Basic 1.1 as a proposed 
recommendation:

http://www.w3.org/TR/xhtml-basic/

(this was long over due, since all of this time  the BP guys had been 
referring to recommendations that simply were not recommendations yet).

Having said this, I am asked to define a mini-markup for a little project.
The mini-markup needs to specify whether an input field should be set on 
numeric mode (believe it or not, still a very useful feature when you 
want to ask someone to input a long series of digits on a numeric keypad!),

Of course, my reaction was to specify something like this:

style="-wap-input-format:'*N'"

which will work on most regular phones when reported verbatim, and even 
in WML with a simple transform.
Being aware that XHTML-Basic has just been released, I thought that 
checking out how W3C is recommending to support this feature might be a 
good idea. Unfortunately, I cannot find where/how this function is allowed.
Looking at the Form module:

http://www.w3.org/MarkUp/DTD/xhtml-form-1.mod

I see this:


<!ENTITY % input.element  "INCLUDE" >
<![%input.element;[
<!ENTITY % input.content  "EMPTY" >
<!ELEMENT %input.qname;  %input.content; >
<!-- end of input.element -->]]>

<!ENTITY % input.attlist  "INCLUDE" >
<![%input.attlist;[
<!ENTITY % InputType.class
    "( text | password | checkbox | radio | submit
     | reset | file | hidden | image | button )"
 >
<!-- attribute 'name' required for all but submit & reset
-->
<!ATTLIST %input.qname;
     %Common.attrib;
     type         %InputType.class;        'text'
     name         CDATA                    #IMPLIED
     value        CDATA                    #IMPLIED
     checked      ( checked )              #IMPLIED
     disabled     ( disabled )             #IMPLIED
     readonly     ( readonly )             #IMPLIED
     size         %Number.datatype;        #IMPLIED
     maxlength    %Number.datatype;        #IMPLIED
     src          %URI.datatype;           #IMPLIED
     alt          %Text.datatype;          #IMPLIED
     tabindex     %Number.datatype;        #IMPLIED
     accesskey    %Character.datatype;     #IMPLIED
     accept       %ContentTypes.datatype;  #IMPLIED
 >
<!-- end of input.attlist -->]]>

None of which seems related to the possibility of specifying a numeric 
mode.
Am I missing something?
Is this supposed to happen with CSS? which flavor of CSS? which syntax?

I also see that the style attribute module is deprecated, which seems 
really crazy.

(why shouldn't this be possible? <div style="color:red">Red Text</div> )

So maybe someone from W3C wants to comment on this too.

thanks

Luca Passani
Received on Monday, 23 June 2008 15:20:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:14 GMT