Is it possible to create a custom site definition template with 'n' number of custom document libraries and content types. I have copied the ONET.xml file from the STS folder, i.e. I am trying to create a template the same as that of the OOTB Team Site template by modifying the ONET.xml but it fails.
My ONET.xml contains the default configuration with a custom master page. Inside that Configuration tag I am specifying my custom List as follows:
<Configuration ID="0" Name="Default" CustomMasterUrl="_catalogs/masterpage/samplests.master">
<Lists>
<!-- Here I am defining a Custom List to be created with the OOTB List like Tasks -->
<List Name="SimpleList" Title="Simple List" BaseType="0" Direction="" Url="" />
</Lists>
</Configuration>
Now while creating a site I select my custom template and it gives the error as follows:
Cannot complete this action. Please try again.