- From: Michael Hallett <hallem@rpi.edu>
- Date: Tue, 30 Jul 2002 23:45:07 -0400
- To: "'Masayasu Ishikawa'" <mimasa@w3.org>, <www-html@w3.org>
Ok I am having some trouble with the XHTML DTD implementation. I want to write a DTD that includes the Frames module and the Target module. I have done this, you can view the file at <http://hallem.mine.nu/DTDs/xhtml-target-frames.dtd>. And the page I am trying to validate is <http://hallem.mine.nu/xhtml/xhtml-frames.html> (there is a link to the validation results towards the end of the message). The only problem I am having is I can't get it to validate. The reason is "Because according to "4.2 Entity Declarations" of XML 1.0, "[i]f the same entity is declared more than once, the first declaration encountered is binding", so in your DTD, the declaration of %html.content; in the Structure Module referenced from the XHTML 1.1 DTD is binding." <Masayasu Ishikawa> Now according to Mr. Masayasu Ishikawa I have to "include a redundant declaration of %html.content; before you bring in the XHTML 1.1 DTD in addition to the Frames Module which should be brought in after the XHTML 1.1 DTD", which I understand. However I am clueless on how to do it. Any help would be much appreciated. Michael Hallett hallem@rpi.edu ===================================================== "Life is not a punishment, not a task, but a gift. Your only obligation is to enjoy every minute of it." -Louie Stermole ===================================================== -----Original Message----- From: www-validator-request@w3.org [mailto:www-validator-request@w3.org] On Behalf Of Masayasu Ishikawa Sent: Wednesday, June 26, 2002 3:19 AM To: hallem@rpi.edu Cc: www-validator@w3.org Subject: Re: My page doesn't validate Because according to "4.2 Entity Declarations" of XML 1.0, "[i]f the same entity is declared more than once, the first declaration encountered is binding", so in your DTD, the declaration of %html.content; in the Structure Module referenced from the XHTML 1.1 DTD is binding. On the other hand if you bring in the Frames Module before the XHTML 1.1 DTD, you'll get another parameter entity problems. This is well-known nasty chicken-and-egg problem of DTD, and you'll have to include a redundant declaration of %html.content; before you bring in the XHTML 1.1 DTD in addition to the Frames Module which should be brought in after the XHTML 1.1 DTD. I know it's ugly, but that's how DTD works. It would be easier to write your DTD by modifying the XHTML 1.1 DTD driver rather than referencing it and cope with chicken-and-egg problems. And this is not really a validator's issue, please move to the www-html@w3.org list if you want to continue the discussion about XHTML DTD implementation. Regards, -- Masayasu Ishikawa / mimasa@w3.org W3C - World Wide Web Consortium "Michael Hallett" <hallem@rpi.edu> wrote: >Now I am having another problem with the validator... When I validate >the page I get the following errors: > >Line 15, column 21: > <frameset rows="50,*"> > ^Error: element "frameset" not allowed here; >check which elements this element may be contained within > >Line 29, column 6: > </html> > ^Error: missing a required sub-element of "html" > ><http://validator.w3.org/check?uri=http://hallem.mine.nu/xhtml/xhtml-fr ames.html> > > I poked around the implementation DTD's for XHTML 1.1 and the Frames > Module and came to the conclusion that the redefinition of html.content > in the Frames Module wasn't being processed.
Received on Tuesday, 30 July 2002 23:45:12 UTC