magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

[Feature] Please Provide XML Schema Definitions for configuration and layout and layout

Open kirmorozov opened this issue 13 years ago • 7 comments

In order to make a "standard" for configuration, and way to validate validate configurations during development.

Please, provide XML Schema Definitions (http://www.w3schools.com/schema/) for all XML configurations.

kirmorozov avatar Jan 18 '13 10:01 kirmorozov

I would be willing to take part in this.

ldusan84 avatar Jan 18 '13 10:01 ldusan84

Hello. This is part of the roadmap. We have already added XSD and validation with tests for some of the files and plan to continue on this later.

magento-team avatar Jan 18 '13 11:01 magento-team

Where can I find out more about XSD in Magento 2?

ldusan84 avatar Jan 18 '13 12:01 ldusan84

You can find the XSD files in: app\code\core\Mage\Backend\Model\Menu\Config\menu.xsd app\code\core\Mage\Backend\Model\Config\Structure\system.xsd lib\Magento\Acl\Config\acl.xsd

magento-team avatar Jan 18 '13 17:01 magento-team

Where again? Am I missing something

gfxguru avatar Jan 19 '13 05:01 gfxguru

Some of them can be found here: https://github.com/magento/magento2/tree/master/app/code/core/Mage/Backend/etc But still there is no final schema. These files can be combined via include node http://www.w3.org/TR/2004/REC-xmlschema-0-20041028/#SchemaInMultDocs

kirmorozov avatar Jan 21 '13 09:01 kirmorozov

Hello,

As you may have already seen, we added xsd schema for configuration and layout XML files. Please see the latest releases and corresponding documentation: https://wiki.magento.com/display/MAGE2DOC/Understanding+Layout+Files https://wiki.magento.com/display/MAGE2DOC/Validating+Configuration+Files and https://wiki.magento.com/display/MAGE2DOC/Configuration+Changes+from+Magento+1.x+to+2.x

Thanks

tanya-soroka avatar Mar 04 '14 23:03 tanya-soroka