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

RE: Button with an image.

From: Goodrich, Christopher Michael <cmgoodr@sandia.gov>
Date: Mon, 21 Mar 2005 15:03:40 -0700
Message-ID: <C01B7DAB36AB864E9C99F5B79655413A0345C478@ES20SNLNT.srn.sandia.gov>
To: "Anne van Kesteren" <fora@annevankesteren.nl>
cc: www-forms@w3.org

Well, let's take a look at his example then.

        <xf:submit submission="grabar">
                <xf:label>
                            <h:img src="../images/cmdSave.gif" />
                </xf:label>
        </xf:submit>

Obviously has previous references to two separate namespaces called xf
and h that are not included in the example.  So he might be having a
problem with validating against a namespace, but we don't have the
proper information to tell which namespace he is validating against.

As for your other example, get into the real world.  HTML programmers
DON'T CARE about whether their code is good HTML or not.  Get real and
realize that the browser will render an img tag whether it's good code
or not, regardless of validation rules, as long as it points to a valid
image file.  Even the XHTML Transitional will still display it.  Which
is why the XHTML Strict exists.  Eventually (hopefully), web programmers
will be called to task for their past transgressions when it comes to
sloppy code.  Bottom line is it starts here, with adherance to the
standards.  Should Xforms validate to the Strict or the Transitional?
My vote would be for the Strict.


Thank you,

Christopher M Goodrich A+
Corporate Computing Help Desk
Sandia National Laboratories
Science Applications International Corporation
cmgoodr@sandia.gov
(505) 284-4797 

-----Original Message-----
From: Anne van Kesteren [mailto:fora@annevankesteren.nl] 
Sent: Monday, March 21, 2005 12:18 PM
To: Goodrich, Christopher Michael
Cc: www-forms@w3.org
Subject: Re: Button with an image.

Goodrich, Christopher Michael wrote:
> I was referring to the inclusion of HTML in Xforms, not the inclusion 
> of Xforms in HTML.  That inclusion implies that there should be some 
> standard for forming the tag that has been included.  My assumption 
> would be that including any tag that derived it's base from HTML would

> have to conform to an XHMTL standard since both are under the general 
> umbrella of XML.

Oh ok. Sure. You still can't validate it though, without some profile
that defines it.


> Absolutely, however, we again run into the question of which standard 
> to use.  HTML is so loose that the inclusion of an ALT attribute is 
> not necessary to display properly, and only by social acceptance does 
> it ever get included.

But the HTML standard does require it, since HTML 2.0. Actually, HTML
4.01 is almost exactly equivalent to XHTML 1.0 with regard to semantics.


> XHTML on the other hand requires the ALT attribute to be present in 
> order to conform to the standard and be validated as proper code.
> So, I believe that this application of the button needs to be properly

> formed in XHMLT to be validated and that is why he's getting  the 
> error about validation.

You can't just mix elements from different namespaces and get the
document to validate. I'm not sure if I followed everything correctly
what has been discussed, but if it really is about validation you would
need to define that xforms:label allows xhtml:img in some DTD or schema.


--
  Anne van Kesteren
  <http://annevankesteren.nl/>
Received on Monday, 21 March 2005 22:04:23 GMT

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