(no subject)

Steve Rickaby srickaby at wordmongers.demon.co.uk
Fri Jan 6 05:53:32 PST 2006


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?

At 1:29 pm +0000 6/1/06, Steve Rickaby wrote:

>I'm having problems with context rules not being executed as expected. I'm probably doing something obviously wrong, but it's not obvious to me.
>
>I have the following rule, which is incomplete at present:
>
>>Element (Container): TitleBody
>>General rule:	<TEXT>, IndexTerm?
>>Text format rules
>>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
> >		If context is: Title < SectionProgramming
>>			Use paragraph format: A-headExercises
> >		Else, if context is: Title < SectionReview
>>			Use paragraph format: A-headReview
>>		Else
>>			Use paragraph format: A-head
>>	Else
>>		If context is: Title < Chapter
>>			Use paragraph format: ChapterTitle

-- 
Steve



More information about the framers mailing list