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

Received on Thursday, 3 August 2006 06:10:54 UTC