Quantcast
Channel: Adobe Community : Popular Discussions - FrameMaker Structured
Viewing all articles
Browse latest Browse all 66580

EDD Context Rules for a parent element possible?

$
0
0

Hi all,

 

I understand the use of {first} when identifying the context of an element, such as:

 

If context is: {first}<Section

 

But what if I want to set whether Section is first inside its parent?

 

For instance, for this hierarchy:

 

<chapter>

  <section></title></section>

  <section></title></section>

</chapter>

 

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

 

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

 

Else, if context is: Section < Chapter
     If context is: <{first}<Chapter
        Use paragraph format: Heading1NoNewPage
     Else
        Use paragraph format: Heading1

 

Whatever syntax I try for the context rule above (that the section be first within the chapter), I get parsing errors or the rule is not read.  I've tried:


If context is: Section<Chapter{first}

If context is: <{first}<Chapter                   // invalid

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

If context is: Section < {first} Chapter       // invalid

 

Any ideas if there is a syntax that allows you to set a context for  the parent element, and not just for the element in question?

 

Thanks for anyone's help on this.

 

Shelley

 

Shelley Hoose

Rogue Wave Software

Senior Documentation Developer


Viewing all articles
Browse latest Browse all 66580

Trending Articles