Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

XML Shema for Layouts
 
mooch
Jr. Member
 
Total Posts:  1
Joined:  2008-02-06
 

Hi,

are there any consideration about writing an shema for the layout xmls?
Would be a great help for writing these files in concerns of validation and code completion!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

XML in both layouts and configs is too flexible to write any useful schema…

As example for layouts it is:

<!ELEMENT layout ANY>

<!
ELEMENT block (action block)*>
<!
ATTLIST block
    type CDATA 
#REQUIRED
    
name CDATA #IMPLIED
    
as CDATA #IMPLIED
    
before CDATA #IMPLIED
    
after CDATA #IMPLIED
    
output CDATA #IMPLIED
>

<!
ELEMENT action ANY>
<!
ATTLIST action
    method CDATA 
#REQUIRED
    
json NMTOKENS #IMPLIED
    
translate NMTOKENS #IMPLIED
>

<!
ELEMENT reference (action block)*>
<!
ATTLIST reference
    name CDATA 
#REQUIRED
>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top