我正在为SharePoint2007创建自定义ContentType,作为网站集范围的功能。当我试图激活这个特性时,我得到一个错误页面,其中只有这个提示:“值不在预期范围内。”
这是我的XML文件
特性:XML:
<?xml version="1.0" encoding="utf-8"?>
<!--Created by STSDEV at 5/5/2009 5:11:40 PM-->
<Feature
Id="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
Title="Custom Document Content Type"
Description="Custom Document Content Type"
Version="1.0.0.0"
Scope="Site"
Hidden="false"
ImageUrl="CustomDocumentContentType\Image.gif"
xmlns="http://schemas.microsoft.com/sharepoint/">
<ElementManifests>
<ElementManifest
Location="CustomDocumentContentType.xml" />
</ElementManifests>
</Feature>
和customDocumentContentType.xml:
<!--<?xml version="1.0" encoding="utf-8"?>-->
<!--Created by STSDEV at 5/5/2009 5:11:40 PM-->
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<ContentType ID="0X010100YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY"
Name="Custom Document Content Type"
Group ="Custom Document Content Types"
Description="Custom Document Content Type inherits from Document"
Version="0">
<FieldRefs>
</FieldRefs>
</ContentType>
</Elements>
谢谢您,
基思