This project has moved and is read-only. For the latest updates, please go here.

Image does not show up in .chm but does on the topic previewer

Topics: Developer Forum
Nov 16, 2014 at 3:17 AM

I wanted to use an image for the section header, and this is how I am achieving this:

<section address="Overview">
                        <image xlink:href="TopicTextImage" />
          . . .

The topic text image shows up in the topic previewer in SandCastle, but does not show up when I build the .chm. Perhaps I am not doing this right, and I wonder if anyone has input on this.

Nov 16, 2014 at 7:27 PM
The mediaLink element is invalid outside of the content element. Place it inside the content element and it will appear. Bear in mind that the previewer simply parses the topic for elements. It doesn't do any kind of validation. The XSL transforms don't either but they're written to output the content based on certain expectations and thus won't necessarily render content that's out of place. If you are using Visual Studio to edit the MAML topics, the IntelliSense will flag invalid content with a red underline.