Using Tokens in Conceptual Content Topics

Sep 5, 2012 at 2:49 PM


I have created a tokens file that contain my commonly used maml snippets. one of my tokens named "TroubleshootingMenu" has the below syntax:

<content xmlns:xlink="">
    <alert class="note">
            // Some Text here ....

Inside any conceptual content topic, i am referencing the token item:

<list class="ordered">

But after build and in the chm, it is showing the token item with no styles, i.e. my token appears in the topic as ordinary text and not a note.

Can anyone help please ?

Sep 5, 2012 at 3:13 PM

All MAML elements in a token need to be prefixed with the "ddue:" namespace.  In addition, your token file does not appear to have a valid format.  Each token needs to be in an <item> element like this:

<?xml version="1.0" encoding="utf-8"?>
<content xml:space="preserve"

    <item id="TroubleshootingMenu">
      <ddue:alert class="note">
            // Some Text here ....




Sep 6, 2012 at 9:40 AM

thanks Eric, 

that worked for me.