I am having difficulty including an Image in my Conceptual Content

Topics: Developer Forum, User Forum
Mar 6, 2009 at 8:44 PM
I have the following MAML:
<?xml version="1.0" encoding="utf-8"?>
<topic id="542d69da-f5fa-484c-9b4f-bebc356233ec" revisionNumber="1">
  <developerConceptualDocument
    xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5"
    xmlns:xlink="http://www.w3.org/1999/xlink">

    <summary>
      <para>This is an overview of the CNX SDK from Cognex.</para>
    </summary>

    <introduction>
      <para>CNX is a common foundation that can be used for communication by various Cognex machine vision platforms, applications, and user interface systems.</para>
    </introduction>

     
    <section>
      <title>CNX Overview</title>
      <content>
        <mediaLink><image xlink:href="CNX SDK" /></mediaLink>
      </content>
    </section>
...

I get the CNX Overview title, but the image does not appear in the help file.  Here are some bits from the log file regarding the image:

...
<buildStep step="CopyConceptualContent">
Copying conceptual content...
Creating token shared content file...
Copying images and creating the media map file...
    C:\views\pohara_cnx_current\cnx\TechDoc\SDK.filtered\Content\Media\CNX SDK.png -&gt; C:\views\pohara_cnx_current\cnx\Build\dist\Working\Media\CNX SDK.png
Generating conceptual topic files
    Parsing topic file 'C:\views\pohara_cnx_current\cnx\TechDoc\SDK.filtered\Content\Overview.xml'
    C:\views\pohara_cnx_current\cnx\TechDoc\SDK.filtered\Content\Overview.xml -&gt; C:\views\pohara_cnx_current\cnx\Build\dist\Working\ddueXml\542d69da-f5fa-484c-9b4f-bebc356233ec.xml
    Parsing topic file 'C:\views\pohara_cnx_current\cnx\TechDoc\SDK.filtered\Content\Licensing.xml'
    C:\views\pohara_cnx_current\cnx\TechDoc\SDK.filtered\Content\Licensing.xml -&gt; C:\views\pohara_cnx_current\cnx\Build\dist\Working\ddueXml\56f8e6f7-2d33-4d5a-a2d5-004b7fe491af.xml
    Last step completed in 00:00:00.0340
</buildStep>
...
Info: ResolveReferenceLinksComponent2: Loaded 176713 reference targets.
Info: SaveComponent: Instantiating component.
Info: BuildAssembler: Building topic 542d69da-f5fa-484c-9b4f-bebc356233ec
Warn: ResolveArtLinksComponent: Unknown art target 'cnx sdk'
Info: BuildAssembler: Building topic 56f8e6f7-2d33-4d5a-a2d5-004b7fe491af
Info: Processed 2 topics
    Last step completed in 00:00:33.2763
...
Info: Saving topic 1822: /html/P_Cognex_Cnx_View_ICnxZoomPanService_ScaleMin.htm
Info: Saving topic 1823: /html/P_Cognex_Cnx_View_ICnxZoomPanService_ZoomMode.htm
Info: Saving topic 1824: /html/P_Cognex_Cnx_View_ICnxZoomPanService_ZoomModesSupported.htm
Info: Saving topic 1825: /html/E_Cognex_Cnx_View_ICnxZoomPanService_ZoomPanChanged.htm
Info: Saving file: /CNX SDK.png
Info: Saving file: /table.css
Info: Saving file: /styles/highlight.css
Info: Saving file: /styles/presentation.css
...
I don't see any errors, but I also don't see my image :-(

Pat O



Coordinator
Mar 7, 2009 at 1:58 AM
Is the ID on the image entry in the conceptual content "cnx sdk"?  If not, that would cause the problem.  The ID should match what you reference in the link (case-insensitive).  I think you're using SHFB 1.7.  It defaults to a GUID for the ID if you don't specify one.

Eric