Where to find DTDs
Moderator: ooffick
Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
-
- Joomla! Apprentice
- Posts: 5
- Joined: Wed May 28, 2014 3:09 pm
Where to find DTDs
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.
<!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.
- dhuelsmann
- Joomla! Master
- Posts: 19659
- Joined: Sun Oct 02, 2005 12:50 am
- Location: Omaha, NE
- Contact:
Re: Where to find DTDs
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
-
- Joomla! Apprentice
- Posts: 5
- Joined: Wed May 28, 2014 3:09 pm
Re: Where to find DTDs
I do not understand your response, you are referring to the HTML DTDs, I am asking about the templateDetails.xml DTD
- dhuelsmann
- Joomla! Master
- Posts: 19659
- Joined: Sun Oct 02, 2005 12:50 am
- Location: Omaha, NE
- Contact:
Re: Where to find DTDs
They are not downloaded. Used for validation only.
http://docs.joomla.org/DocType_header_for_templates
http://docs.joomla.org/DocType_header_for_templates
Regards, Dave
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
-
- Joomla! Apprentice
- Posts: 5
- Joined: Wed May 28, 2014 3:09 pm
Re: Where to find DTDs
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?
Used in the templateDetails.xml file.
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">
- dhuelsmann
- Joomla! Master
- Posts: 19659
- Joined: Sun Oct 02, 2005 12:50 am
- Location: Omaha, NE
- Contact:
Re: Where to find DTDs
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
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
-
- Joomla! Apprentice
- Posts: 5
- Joined: Wed May 28, 2014 3:09 pm
Re: Where to find DTDs
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?
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?
- dhuelsmann
- Joomla! Master
- Posts: 19659
- Joined: Sun Oct 02, 2005 12:50 am
- Location: Omaha, NE
- Contact:
Re: Where to find DTDs
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
Past Treasurer Open Source Matters, Inc.
Past Global Moderator
http://www.kiwaniswest.org
-
- Joomla! Apprentice
- Posts: 5
- Joined: Wed May 28, 2014 3:09 pm
Re: Where to find DTDs
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.
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.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sat Oct 03, 2015 5:02 pm
Re: Where to find DTDs
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
Tom, oe1tkt