Can an Element be a Container and a System Variable

Daniel Emory danemory7224 at sbcglobal.net
Wed Dec 13 09:43:35 PST 2006


--- Catudal & Rousseau <catrou at videotron.ca> wrote:
> Can an element be a container and a system variable
> at the same time? I
> would like to generate the Chapter-Section-Subject
> in the footer of the page from the
> attributes of the subject element.
=======================================
Yes, this is doable if you appropriately define a
running header/footer variable to contain the
applicable attribute value(s). For instance, if you
define three attributes in the subject element to have
three attributes identifying the chapter (chapnbr),
section (sectnbr) and subject number (subjnbr), you
would define an available running header-footer
variable as follows:

<$attribute[chapnbr:Subject] -
<$attribute[sectnbr:Subject]> -
<$attribute[subjnbr:Subject]>

Alternatively, if you were to use a single attribute
to define all three numbers (e.g, 2-3-5) in the
Subject element, the definition of the running footer
variable would be simplified as follows:

<$attribute <subjnbr:Subject]>

Note that you must follow the attribute name with a
colon (:) followed by the name of the applicable
element in which the attribute is contained.

If there are two or more Subject elements on a page,
the attribute(s) in the first element is used. If
there are no Subject elements on the current page,
Framemaker will use the attribute values in the last
Subject element on a preceding page.





Dan Emory & Associates
FrameMaker/FrameMaker+SGML Document Design & Database Publishing
<danemory7224 at sbcglobal.net>



More information about the framers mailing list