Hi there!
I'm building a javascript image gallery. Which uses my user defined tag "gallery".
And now I want to add this to a DTD document, so that it can be properly validated.
I've tried to input it like this
But the w3c validator is complaining about it!Code:<!-- gallery object, block object --> <!ELEMENT gallery EMPTY> <!ATTLIST gallery %attrs; src %Text; #REQUIRED height %Length; #IMPLIED width %Length; #IMPLIED >
What could I do to make this validated correctly?Line 12, Column 27: document type does not allow element "gallery" here
The W3C is not complaining about my DTD document, it's only saying that my gallery tag is not allowed where it is.
My html document looks like this
Any one?Code:<!DOCTYPE html SYSTEM "http://www.mydomain.com/xhtml.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Image gallery</title> <script src="inc/js/gallery.js" type="text/javascript"></script> </head> <body> <gallery src="images.xml"></gallery> </body> </html>
Cheers,
Artheus


Reply With Quote

Bookmarks