W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2006

RE: xhtml.xsd error?

From: Michael Kay <mike@saxonica.com>
Date: Thu, 3 Aug 2006 09:12:57 +0100
To: "'Luis Fernando Heckler'" <lfheckler@ig.com.br>, <xmlschema-dev@w3.org>
Message-ID: <009c01c6b6d4$a0fdd6f0$6401a8c0@turtle>

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@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Luis 
> Fernando Heckler
> Sent: 02 August 2006 20:01
> To: xmlschema-dev@w3.org
> 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
> 
> 
> 
> 
> 
Received on Thursday, 3 August 2006 08:13:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 3 August 2006 08:13:06 GMT