Is there any way to include xml file in to another in Joomla 2.5 and up?
I am not asking how to write joomla xml params. Question is simple as title . Is there a way to include one xml in to another in Joomla ?
I have 2 files templateDetails.xml
and extend.xml
used these examples:
http://msdn.microsoft.com/en-us/library/aa302291.aspx
Can we import XML file into another XML file?
start code
templateDetails.xml:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/1.6/template-install.dtd" [
<!ENTITY extend SYSTEM "extend.xml">
]>
<extension version="2.5" type="template" client="site" method="upgrade">
<name>...</name>
<creationDate>...</creationDate>
<author>...</author>
<copyright>...</copyright>
<authorEmail>...</authorEmail>
<authorUrl>...</authorUrl>
<version>1.0</version>
<positions>
<position>top</position>
</positions>
<config>
<fields name="params">
<fieldset name="basic">
&extend;
</fieldset>
</fields>
</config>
</extension>
extend.xml:
<?xml version="1.0" encoding="utf-8"?>
<field name="somevar" type="list" default="2" label="My label" description="My desc">
<option value="1">Yes</option>
<option value="2">No</option>
</field>
I either made mistake somewhere or should use another approach. Any help is appreciated,