Page 1 of 1

Where to find DTDs

Posted: Wed May 28, 2014 3:12 pm
by LoneWolf4
Hi I have started developing some joomla templates and I see that there is a DTD declaration for the templateDetails.xml:
<!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/2.5/template-install.dtd">

But it seems that the url for the DTD returns a 404, so my question is, where do I find the DTDs and why are they declared if they do not exist? Seems pointless to me to have a DTD and then it is nowhere to be found.

Re: Where to find DTDs

Posted: Wed May 28, 2014 3:38 pm
by dhuelsmann

Re: Where to find DTDs

Posted: Wed May 28, 2014 3:43 pm
by LoneWolf4
I do not understand your response, you are referring to the HTML DTDs, I am asking about the templateDetails.xml DTD

Re: Where to find DTDs

Posted: Wed May 28, 2014 4:10 pm
by dhuelsmann
They are not downloaded. Used for validation only.
http://docs.joomla.org/DocType_header_for_templates

Re: Where to find DTDs

Posted: Wed May 28, 2014 4:17 pm
by LoneWolf4
And yet again you send me to the HTML DTDs, I know how those work and if I want they can be downloaded from the mentioned urls, but how about this DTD?

Code: Select all

<!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/2.5/template-install.dtd">
Used in the templateDetails.xml file.

Re: Where to find DTDs

Posted: Wed May 28, 2014 5:28 pm
by dhuelsmann
Joomla moved them and then apparently quit using those which is why I referred you to what they are now using.

Re: Where to find DTDs

Posted: Wed May 28, 2014 6:18 pm
by LoneWolf4
Ok.

But that does not make any sense, the templateDetails.xml is not an HTML page, and most elements are not the same as an HTML page.

Any idea how I can contact the core developers?

Re: Where to find DTDs

Posted: Wed May 28, 2014 6:41 pm
by dhuelsmann
The XML file places the DOCTYPE into the template file. It used to be required but you can experiment by removing the DOCTYPE line from the XML file in Joomla 2.5 or later and the template will install just fine. You just won't be able to do a markup validation at http://validator.w3.org/ if you remove it.

Re: Where to find DTDs

Posted: Thu May 29, 2014 9:58 am
by LoneWolf4
No it does not, the XML doctype is one thing, the template doctype is another, I always place the doctype into the index.php and If I remove it the doctype from the templateDetails.xml is not placed there.
They are separate things, one defines the DTD of the generated HTML page, the other is the DTD of the XML for the template, tho very different things.

Re: Where to find DTDs

Posted: Sat Oct 03, 2015 5:06 pm
by oe1tkt
the DTD's seem to be removed from http://www.joomla.org, but you can download the DTD at https://github.com/halfstrik/joomla-dtd (3 years old, but should work).
Tom, oe1tkt