Daniel Fagerstrom dijo: > Somewhat OT, I think that the current use of the id attribute in the > Woody widget definition (WD) file is unfortunate. Id attributes are > supposed to be unique in an XML document according to the standard, and > as id in WD files rather describe a relative position in a widget > hierarchy, there are no reason for them to be unique.
Hmm. The reason to be "unique" are: 1-Allow easy access (byname) in CSS or JS- client side. 2-If it would not be unique, then if we recieve 2 request param with the same name, then how we will manage the values. The unique name is clear in this case. So I am +1 to keep a unique ID politic for each widget. Best Regards, Antonio Gallardo > IMO it would be > better to use the attribute name "ref" for refering to relative > positions as in XForms. See also > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25300. > > What about replaceing "id" with "ref" in the WD files when we rename > Woody to CForms? Not good idea. I would can be a problem if we use a strict.dtd in DOCTYPE. Best Regards, Antonio Gallardo
