Where to find DTDs

For Joomla! 2.5 Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general
Note: All 1.6, 1.7 and 3.5 releases have reached end of life and should be updated to 3.x.

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Locked
LoneWolf4
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed May 28, 2014 3:09 pm

Where to find DTDs

Post by LoneWolf4 » Wed May 28, 2014 3:12 pm

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.

User avatar
dhuelsmann
Joomla! Master
Joomla! Master
Posts: 19656
Joined: Sun Oct 02, 2005 12:50 am
Location: Omaha, NE
Contact:

Re: Where to find DTDs

Post by dhuelsmann » Wed May 28, 2014 3:38 pm

Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org

LoneWolf4
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed May 28, 2014 3:09 pm

Re: Where to find DTDs

Post by LoneWolf4 » Wed May 28, 2014 3:43 pm

I do not understand your response, you are referring to the HTML DTDs, I am asking about the templateDetails.xml DTD

User avatar
dhuelsmann
Joomla! Master
Joomla! Master
Posts: 19656
Joined: Sun Oct 02, 2005 12:50 am
Location: Omaha, NE
Contact:

Re: Where to find DTDs

Post by dhuelsmann » Wed May 28, 2014 4:10 pm

They are not downloaded. Used for validation only.
http://docs.joomla.org/DocType_header_for_templates
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org

LoneWolf4
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed May 28, 2014 3:09 pm

Re: Where to find DTDs

Post by LoneWolf4 » Wed May 28, 2014 4:17 pm

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.

User avatar
dhuelsmann
Joomla! Master
Joomla! Master
Posts: 19656
Joined: Sun Oct 02, 2005 12:50 am
Location: Omaha, NE
Contact:

Re: Where to find DTDs

Post by dhuelsmann » Wed May 28, 2014 5:28 pm

Joomla moved them and then apparently quit using those which is why I referred you to what they are now using.
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org

LoneWolf4
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed May 28, 2014 3:09 pm

Re: Where to find DTDs

Post by LoneWolf4 » Wed May 28, 2014 6:18 pm

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?

User avatar
dhuelsmann
Joomla! Master
Joomla! Master
Posts: 19656
Joined: Sun Oct 02, 2005 12:50 am
Location: Omaha, NE
Contact:

Re: Where to find DTDs

Post by dhuelsmann » Wed May 28, 2014 6:41 pm

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.
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org

LoneWolf4
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed May 28, 2014 3:09 pm

Re: Where to find DTDs

Post by LoneWolf4 » Thu May 29, 2014 9:58 am

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.

oe1tkt
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Oct 03, 2015 5:02 pm

Re: Where to find DTDs

Post by oe1tkt » Sat Oct 03, 2015 5:06 pm

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


Locked

Return to “Joomla! 2.5 Coding”