Select Page

Schema Validation for Joomla 2.5 Extensions

Schema Validation for Joomla 2.5 Extensions

joomlalovexsd

I’ve created from scratch, all Joomla extensions XSD.

Without them, Joomla accept any entry in manifest xml and never complains about

  • Mistyping, like a valid xml but that the Joomla installer do not understand or only partially,
  • Wrong constructs, xml tag child misplaced,
  • Invalid data type, like a path not being a valid path, an expected integer being a text and so on…

Joomla just silently die during install or install only partially extensions. These days are over as developers with any decent IDE will be able to validate while typing and enjoy auto completion. To use them now just include them in all your manifest like this:

<?xml version="1.0" encoding="UTF-8"?> <extension type="component" version="1.6" method="upgrade" xsi:noNamespaceSchemaLocation="http://raw.github.com/cedricwalter/joomla-xsd/master/component.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
<?xml version="1.0" encoding="utf-8"?> <metafile version="1.6"  client="site" xsi:noNamespaceSchemaLocation="http://raw.github.com/cedricwalter/joomla-xsd/master/language.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<?xml version="1.0" encoding="UTF-8"?> <extension type="module" version="1.6" client="site" method="upgrade" xsi:noNamespaceSchemaLocation="http://raw.github.com/cedricwalter/joomla-xsd/master/module.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<?xml version="1.0" encoding="utf-8"?> <extension version="1.6" type="plugin" group="system" method="upgrade" xsi:noNamespaceSchemaLocation="http://raw.github.com/cedricwalter/joomla-xsd/master/plugin.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<?xml version="1.0" encoding="utf-8"?> <extension version="1.6" type="template" method="upgrade" xsi:noNamespaceSchemaLocation="http://raw.github.com/cedricwalter/joomla-xsd/master/templateDetails.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

 

A Bug request https://github.com/joomla/joomla-cms/issues/838 as been opened in Joomla CMS GIT at https://github.com/joomla/joomla-cms/ for being included somewhere where it will make more sense, somewhere like at http://www.joomla.org/xds/2.5/plugins.xsd

About The Author

I worked with various Insurances companies across Switzerland on online applications handling billion premium volumes. I love to continuously spark my creativity in many different and challenging open-source projects fueled by my great passion for innovation and blockchain technology.In my technical role as a senior software engineer and Blockchain consultant, I help to define and implement innovative solutions in the scope of both blockchain and traditional products, solutions, and services. I can support the full spectrum of software development activities, starting from analyzing ideas and business cases and up to the production deployment of the solutions.I'm the Founder and CEO of Disruptr GmbH.

Categories