I am trying ListDefinition and came to see the creation of List definition from content types
What is the meaning of following code?
Schema.xml
<ContentTypes>
<ContentTypeRef ID="0x0101005CF0DB5B6075417a8664EFD23835C831">
<Folder TargetName="Forms/Document" />
</ContentTypeRef>
<ContentTypeRef ID="0x0120" /> <!--ID of folder content-->
</ContentTypes>
I have created a sample in Visual studio 2010
Steps
1.Created a contenttype project
2.added two fields and its fieldRefs in element.xml
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Field Name="CPUFan" ID="{43AFEDFD-046C-4900-AEA1-61A2D6FC0482}" DisplayName="CPU FAN" Type="Number"></Field>
<Field Name="CPUType" ID="{59706A25-2EF3-4AC3-B19E-2BC2CCADB527}" DisplayName="CPU TYPE" Type="Number"></Field>
<ContentType ID="0x0100e8f64d8b525043fe969f5df964e02122"
Name="ContentTypeAnish - ContentType1"
Group="Custom Content Types"
Description="My Content Type"
Inherits="TRUE"
Version="0">
<FieldRefs>
<FieldRef Name="CPUFan" ID="{43AFEDFD-046C-4900-AEA1-61A2D6FC0482}"/>
<FieldRef Name="CPUType" ID="{59706A25-2EF3-4AC3-B19E-2BC2CCADB527}"/>
</FieldRefs>
</ContentType>
</Elements>
3.Then i added new item(List Definition from content type) by right clicking solution and selected above mentioned content type
schema.xml
<ContentTypes>
<ContentType ID="0x0100e8f64d8b525043fe969f5df964e02122" Name="ContentTypeAnish - ContentType1" Group="Custom Content Types" Description="My Content Type" Inherits="TRUE" Version="0">
<FieldRefs>
<FieldRef Name="CPUFan" ID="{43AFEDFD-046C-4900-AEA1-61A2D6FC0482}" />
<FieldRef Name="CPUType" ID="{59706A25-2EF3-4AC3-B19E-2BC2CCADB527}" />
</FieldRefs>
</ContentType>
</ContentTypes>
<Fields>
<Field Name="CPUFan" ID="{43afedfd-046c-4900-aea1-61a2d6fc0482}" DisplayName="CPU FAN" Type="Number">
</Field>
<Field Name="CPUType" ID="{59706a25-2ef3-4ac3-b19e-2bc2ccadb527}" DisplayName="CPU TYPE" Type="Number">
</Field>
</Fields>
what is the difference between the two schemas?