cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Header extraction in DITA

RichardSteadman
1-Newbie

Header extraction in DITA

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 1

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
Top Tags