How to get members into the index?

Topics: Developer Forum, User Forum
Feb 18, 2008 at 11:01 AM
Firstly, thanks for a great tool.

This is probably a very basic question, but how do you get members (e.g. "CostPrice Property", "ComputeTax Method") into the index? I couldn't see what you have to do to achieve this. SHFB's own help file only includes namespaces/types in the index.

Thanks in advance,

Krasna Halopti
Feb 18, 2008 at 5:05 PM
Based upon a post by Brainsucker found here https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1796124&SiteID=1, you can modify ReflectionToChmIndex.xsl to the following (line 40):

<xsl:template match="api[apidata/@group='member' and not(topicdata/@notopic)]" > <!-- MODIFIED: Fix problem with missing properties and methods in index. -->
Coordinator
Feb 18, 2008 at 5:31 PM
ReflectionToChmIndex.xsl is no longer supported by Sandcastle. The preferred method is to use ChmBuilder which creates an index off of the keywords in the XML data island within each topic. Currently, SHFB still uses the XSL transformation so the CHM index is not as good as it could be. With the next release (1.6.0.5), I have switched over to a method similar to ChmBuilder that extracts the keywords in the same way so it won't be a problem going forward.

Eric
Feb 18, 2008 at 7:35 PM

dwhearn wrote:
Based upon a post by Brainsucker found here https://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1796124&SiteID=1, you can modify ReflectionToChmIndex.xsl to the following (line 40):

<xsl:template match="api[apidata/@group='member' and not(topicdata/@notopic)]" > <!-- MODIFIED: Fix problem with missing properties and methods in index. -->



This change did the trick. Thank you very much!