|
Posted by benz on September 30, 2004, 5:20 am
Please log in for more thread options
i use the validator to validate my xhtml file (see code section).
and the validator returned an error that there is no attribute like
width in the DTD i use.
Why is that so?
http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_simpletablemodule lists an attribute width in xhtml 1.0 basic
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
"http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
<title>Welcome</title>
</head>
<body>
<table width="100%" summary="test">
|
|
Posted by steve@pugh.net on September 30, 2004, 7:33 am
Please log in for more thread options
benz@silverwire.com wrote:
> i use the validator to validate my xhtml file (see code
> section). and the validator returned an error that there
> is no attribute like width in the DTD i use.
> Why is that so?
>
http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_simpletablemodule > lists an attribute width in xhtml 1.0 basic
The spec does, but the DTD doesn't. See
http://www.w3.org/TR/xhtml-modularization/dtd_module_defs.html#a_module_Basic_Tables
<!ENTITY % table.attlist "INCLUDE" >
<![%table.attlist;[
<!ATTLIST %table.qname;
%Common.attrib;
summary %Text.datatype; #IMPLIED
>
<!-- end of table.attlist -->]]>
%Common and summary are the only attributes listed.
You're quite correct that
http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_simpletablemodule lists Common, summary and width
So there's a contradiction between the spec and the DTD. As the
validator can only check things against the DTD not the spec it doesn't
know about this contradiction and just goes on what the DTD says.
BTW why are you writing XHTML Basic anyway?
Steve
|
|
Posted by Arne on September 30, 2004, 12:46 pm
Please log in for more thread options *benz@silverwire.com* skrev 2004-09-30 13:20:
> i use the validator to validate my xhtml file (see code section).
> and the validator returned an error that there is no attribute like
> width in the DTD i use.
> Why is that so?
>
http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_simpletablemodule > lists an attribute width in xhtml 1.0 basic
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
> "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head>
> <title>Welcome</title>
> </head>
> <body>
> <table width="100%" summary="test">
What is the URL to your site? For a good opinion it's best to see it all.
What is the DTD you are trying to use (XHTML Basic 1.0). Never seen it
used before, and even there is a "basic10.dtd" I can't find it on the
W3C valid DTD's list ( http://www.w3.org/QA/2002/04/valid-dtd-list.html )
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
Have you tried the Transitional DTD?
I am using <table width="100%"> with XHTML 1.1 and it validates.
But the problem can be somewhere else in your code, so therefore
submitting an URL here, would be helpful.
--
/Arne
Got a website? Get a StatCounter! http://www.statcounter.com/ Free, invisible, configurable and real-time detailed webstats.
|
|
Posted by Harrie on October 2, 2004, 12:25 am
Please log in for more thread options Arne said the following on 30/09/2004 13:46:
> *benz@silverwire.com* skrev 2004-09-30 13:20:
[snip]
>><?xml version="1.0" encoding="UTF-8"?>
>><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
>> "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
[snip]
> What is the DTD you are trying to use (XHTML Basic 1.0). Never seen it
> used before, and even there is a "basic10.dtd" I can't find it on the
> W3C valid DTD's list ( http://www.w3.org/QA/2002/04/valid-dtd-list.html )
Maybe http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd ? ;)~
It's in his DOCTYPE. I don't know why it isn't on the W3C list you
provided, AFAICT there are more XHTML modules missing on that link, but
I don't use XHTML myself (apart from XHTML 1.0 Strict for testing).
--
Regards
Harrie
|
|
Posted by Arne on October 1, 2004, 11:19 pm
Please log in for more thread options *Harrie* skrev 2004-10-01 23:25:
> Arne said the following on 30/09/2004 13:46:
>
>> *benz@silverwire.com* skrev 2004-09-30 13:20:
>
> [snip]
>>><?xml version="1.0" encoding="UTF-8"?>
>>><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
>>> "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"> >
> [snip]
>> What is the DTD you are trying to use (XHTML Basic 1.0). Never seen it
>> used before, and even there is a "basic10.dtd" I can't find it on the
>> W3C valid DTD's list ( http://www.w3.org/QA/2002/04/valid-dtd-list.html )
>
> Maybe http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd ? ;)~
>
> It's in his DOCTYPE. I don't know why it isn't on the W3C list you
> provided, AFAICT there are more XHTML modules missing on that link, but
> I don't use XHTML myself (apart from XHTML 1.0 Strict for testing).
Yes, I was aware of the link to basic10.dtd so that's not the reason I
asked. The question was because it isn't on the W3C list and I never
seen it used by anyone.
I'm to lazy to look in to the DTD content, so I was hoping the OP can
tell me what the difference is between the basic and transitional DTD's.
And why he prefer to use basic?
--
/Arne
|
| Similar Threads | Posted | | Problem with xhtml Validator at http://validator.w3.org/ | July 27, 2005, 5:06 am |
| problem with the w3.org validator | October 5, 2004, 7:17 am |
| Validator problem | February 5, 2005, 10:12 pm |
| Validator Problem | May 9, 2006, 11:17 pm |
| Problem with Validator: Form spanning accross table rows does notvalidate | August 4, 2004, 5:48 pm |
| wdg validator | August 12, 2004, 1:59 pm |
| SP2 IE and W3 validator | October 8, 2004, 5:27 pm |
| W3C validator | December 3, 2004, 12:04 am |
| Bug in validator.w3.org? | June 21, 2005, 11:41 am |
| http://validator.w3.org/ -bug? | March 4, 2005, 3:00 pm |
|