Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


xhtml.xsd error?

From: Luis Fernando Heckler <lfheckler@--.---.-->
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


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent