Skip to main content
Participant
October 1, 2019
Question

Ancestoral Context in FrameMaker 2019

  • October 1, 2019
  • 2 replies
  • 989 views

I am trying to create a context rule that basically says:

 

If you are inserting a FigureTitle into a Figure that is located in PgblkDESC (Highest-level element), and it is the first FigureTitle in that document, use paragraph format Figure0. If it’s not the first FigureTitle in that document, use paragraph format FigureTitleCont.

 

Attached is a clip of what I have currently that does not seem to be working. Anyone have any ideas why?

 

This topic has been closed for replies.

2 replies

Ian Proudfoot
Legend
October 2, 2019

Hi Jollydawg,

The problem with the rules you have defined is due to a FrameMaker limitation.

The context {first} is testing whether the FigureTitle is the first child element of Figure. The other contexts are testing for when Figure is a descendant of either PgblkDESC or PgblkTEST.

The limitation with {first} is that it is only checking if the element is the first in its parent. So if there are other element preceeding it, the test fails. 

At a guess I would say you are working with ATA iSpec 2200 DTDs? In the past I have used scripting or FDK to add the missing context resolution capability to an EDD. Let me know if you want to know more about that.

I hope that helps a little?

Ian

jollydawgAuthor
Participant
October 2, 2019
Thanks Ian. I see now that I was misinterpreting the {first} context rule to be the first instance of FigureTitle within the Figure element instead of the first instance of ANY element within the Figure element. With the Anchor element already predefined as the first element in the General Rule for Figure, FigureTitle would never pass that test. When I removed the {first} SubRule the other context rules worked perfectly. Thanks for responding!
Legend
October 2, 2019

Hi Jolly,

 

I don't see anything immediately wrong with your rules. Which paragraph format is actually being applied? That would be helpful to know. Also, note that there is a helpful tool under Structure > Show Element Context that may allow you to see exactly how your rules are being interpreted.

 

Russ