At 1:53 pm +0000 6/1/06, I wrote:
>I think I see what the problem is. The count ancestors rule is only counting
>sections, and so the context rules, which are looking for other elements
>('SectionProgramming' and 'SectionReview'), will always fail. Correct?
That seems to be the case: FrameMaker does not want to honor a context rule for
element B that is nested within a count ancestors rule for element A. Breaking
the required subrules out into new text format rules, and making sure that they
are in the correct sequence, now works.
I now have..
>Element (Container): TitleBody
>General rule: <TEXT>, IndexTerm?
>Text format rules
>
> 1. Count ancestors named: Section
> If level is: 3
> Use paragraph format: C-head
> Else, if level is: 2
> Use paragraph format: B-head
> Else, if level is: 1
> Use paragraph format: A-head
> Else
> If context is: Title < Chapter
> Use paragraph format: ChapterTitle
>
> 2. If context is: SectionIntroduction
> Use paragraph format: Introduction
>
> 3. If context is: Title < SectionProgramming
> Use paragraph format: A-headExercises
>
> 4. If context is: Title < SectionReview
> Use paragraph format: A-headReview
...which works as expected [small yippees]. However, I am still baffled as to
why the 'If context is: Title < Chapter' rule *also* works, nested as it is
within the 'count ancestors named Section' rule, as this breaks theory as
stated at the top of this mail. Maybe it's because it's outside of the
level-dependent 'elseif's?
Are there any known bugs in this area?
--
Steve