EDD rules context for a possible parent element?

Hi all

I understand the use of {first} upon identification of the context of an element, such as:

If the context is: {first} < Section

But what happens if I want to set if the item is the first inside its parent?

For example, for this hierarchy:

< chapter >

< section > < / title > < / section >

< section > < / title > < / section >

< / section >

I want to say that if < title > appear in the first < section > element in a <>chapter, then apply a particular format.  Otherwise, apply a different format if < title > appears in a section of <>, which is not the first in a chapter in <>. -i.e. a parent context of the element, if you want to.

The syntax to do this is beyond me.  My EDD has a series of context for a < title > rules, including when it appears in a section <>, like this:

Otherwise, if the context is: Section < chapter
If the context is: < {first} < chapter
Use paragraph format: Heading1NoNewPage
On the other
Use paragraph format: title 1

Whatever the syntax I try for the above context rule (that the section be the first within the chapter), I am doing the analysis of errors or rule is not read.  I tried:


If the context is: Section < {chapter}

If the context is: {first} < chapter / / invalid

If the context is: Section {first} < Chapter / / applies only Heading1. never reads this

If the context is: Section < {chapter} / / not valid

Any ideas if there is a syntax that allows you to establish a context for the parent element and not only for the item in question?

Thanks for all help on this.

Shelley

Shelley Hoose

Rogue Wave Software

Senior Developer Documentation

Shelley,

Don't forget that

Article {first}<>

does not check if the current item is the first section in a chapter. On the contrary, it checks if the current element is in a Section that is the first child of a chapter. For example, if your chapter begins with a title or has the introductory paragraphs, lists and so on, the rule will not apply. (Allowing FrameMaker test more full brother relationship could make excessively slow editing.)

If your chapters have material before the first section, you must use a context such as:

Article {title}<>

-Lynne

Tags: Adobe FrameMaker

Similar Questions

Maybe you are looking for