[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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>
RE: xhtml.xsd error?

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

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.