![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - >Thread Next - XSchema question xhtml.xsd error?To: xmlschema-dev@--.--- Date: 8/2/2006 1:01:00 PM 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 mike@s... Thu Aug 03 08:03:54 2006 Received: from aji.w3.org ([133.27.22 | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
