Meta Attribute Configuration

Apr 28, 2008 at 10:41 PM
I am trying to use the MetaAttributeComponent with my .shfb file.
I've extracted the Sandcastle extension files into my SHFB folder. I've also added the Meta Attribute Component to my .sfhb file using the "Select and Configure Build Components" dialog. I've set the component properties like this:
<component
id="Meta Attribute Component"
type="Darilek.SandcastleExtensions.Components.MetaAttributeComponent"
assembly="{@SHFBFolder}BuildComponents\SandcastleExtensions.Components.dll" xml:space="preserve">
<description>This component adds predefined meta attributes into transformed help file. For example, meta attributes are used for filtering fuctionality in Help2 viewer (DocSet meta-attribute)</description>
<insert placement="before" type="Microsoft.Ddue.Tools.SaveComponent" />
<configureMethod name="ConfigureComponent" />
<defaultConfiguration>
<attributes>
<attribute name="DocSet" value="Test123" />
</attributes>
</defaultConfiguration>
</component>

Whenever I run the build though, I don't see the correct attribute. In the log file it says:
Info: MetaAttributeComponent: Instantiating component.
Info: MetaAttributeComponent:
Meta Attribute Component * Sandcastle Extensions, version 1.0.3.2]
Copyright c 2007, Martin Darilek, http://www.codeplex.com/sandextensions
Info: MetaAttributeComponent: Loaded 0 meta attribute definition(s)

Any ideas what I'm missing?

Thanks.
Coordinator
May 3, 2008 at 12:55 PM
Hello, I'm using this component without any problems on Help2 and VS2005 presentation configuration. Your problem is in empty meta attribute definition list. Please try open MetaAttributeComponent configuration dialog via SHFB UI, check default settings and click OK button to serialize settings into project settings (shfb) file.

MaD
May 7, 2008 at 7:01 PM
Yes, that's what I have done. In the SHFB UI, I set the Meta Attribute Component configuration settings to have all this:
<component
id="Meta Attribute Component"
type="Darilek.SandcastleExtensions.Components.MetaAttributeComponent"
assembly="{@SHFBFolder}BuildComponents\SandcastleExtensions.Components.dll" xml:space="preserve">
<description>This component adds predefined meta attributes into transformed help file. For example, meta attributes are used for filtering fuctionality in Help2 viewer (DocSet meta-attribute)</description>
<insert placement="before" type="Microsoft.Ddue.Tools.SaveComponent" />
<configureMethod name="ConfigureComponent" />
<defaultConfiguration>
<attributes>
<attribute name="DocSet" value="Test123" />
</attributes>
</defaultConfiguration>
</component>

Is that the correct place to put the attribute definition list? Or should it go somewhere else?

Thanks.