Skip to main content
10-Marble
August 18, 2011
Question

Header extraction in DITA

  • August 18, 2011
  • 1 reply
  • 699 views
Hi,

In Styler 6.0 using APP formatting, I'm trying to extract the
contents of a part title to a running header reference like this:

var ref = new fRunningHeaderReference;
ref.groups = fRunningHeaderReference.GROUP_2;
ref.extractText = false;
ref.text = formatting.evaluateXPath('string()');
//ref.text = formatting.evaluateXPath('string(@navtitle)');
formatting.addReference(ref);

I tried this in a "title in part" context, which is how it
appears in the resolved document, and also in part (when I try
to grab the navtitle attribute).

When I try to use the text that was (hopefully) extracted,
in a page region with this code:

var text = formatting.evaluateRunningHeader(2,"editorDom0",1,0,0,20);

I end up with this string being displayed in the region:

/RDStyle/ResolvedMap

Is there a problem using these running header references with
a resolved DITA document?

Thanks,
Richard

    1 reply

    16-Pearl
    August 18, 2011
    Here be dragons!

    I would suggest you try and get something similar working in a standalone
    APP Desktop "demo.3d" type environment. That may then lead you to the answer
    as to how it should work and why the RDStyle stuff is showing up?

    -G