![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - xhtml.xsd error? >Thread Next - Re: xhtml.xsd error? RE: xhtml.xsd error?To: "'Luis Fernando Heckler'" <lfheckler@--.---.-->, <xmlschema-dev@--.---> Date: 8/3/2006 10:13:00 AM This picture allows a decimal point only if there is a "%", which seems reasonable, because you can't have a fractional number of pixels. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: xmlschema-dev-request@w... > [mailto:xmlschema-dev-request@w...] On Behalf Of Luis > Fernando Heckler > Sent: 02 August 2006 20:01 > To: xmlschema-dev@w... > Subject: xhtml.xsd error? > > > Hi, > > I'm using the w3c xhtml.xsd to validate my xhtml document, > but I found something wrong: > > In the simpleType definition named Length (line 203), used to > validate de type of attributes width and heigth of table > element for example, we have a pattern to validate the type, > but this pattern doesn't match witch all the expected formats (AFAIK). > > http://www.w3.org/TR/xhtml-modularization/abstraction.html#dt_ > Length say's: > "Length - The value may be either in pixels or a percentage > of the available horizontal or vertical space. Thus, the > value "50%" means half of the available space." > > The documentation comment in the xsd say's: > "nn for pixels or nn% for percentage length" > > So, I thing that expected values are: > 100 > 100.0 > 100% > 100.0% > +100 > +100.0 > +100% > +100.0% > -100 > -100.0 > -100% > -100.0% > > But the original pattern "[-+]?(\d+|\d+(\.\d+)?%)" don't > match all this length formats. > > I change to "[-+]?\d+(\.\d+)?%?" > > This is a error in original w3c xhtml.xsd or I'm wrong about > the expected length formats? > > Best wishes > Luis Fernando Heckler > > > > > From sandra.martinez@n... Mon Aug 07 13:17:59 2006 Received: from aji.w3.org ([133.27.228.225]) b | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
