mhonarc-users

Re: INCLUDE directive stopped working

2001-05-30 16:44:23
(courtesy cc to mhonarc list since my response may be useful to others)

On May 30, 2001 at 14:52, pegmgr(_at_)peg(_dot_)com wrote:

<IdxPgBegin>
<INCLUDE>
pgbegin.rc
</INCLUDE>
</IdxPgBegin>

Something like the above is not supported.  The INCLUDE resource
is for including MHonArc *resource definitions* from another file.
It is not a general include-file-here.  Also, MHonArc does not
support nested resource definitions.  For example, IdxPgBegin treats
is content as document markup to print on index pages.  The only
processing done on the data is resource variable expansion.

To the desired effect you want, you can do something like the following:

        <Include>
        pgbegin.mrc
        </Include>
        <IdxPgBegin>
        $PG-BEGIN-MARKUP$
        </IdxPgBegin>

And in pgbegin.mrc, you have the following:

        <DefineVar>
        PG-BEGIN-MARKUP
        ... page begin markup here ...
        </DefineVar>

In sum, your included resource files contain resource variable definitions
that you can then reference in page layout resources.  For readable,
you can put all of your includes at the top of the main resource file
and then just reference the resource variables they define where needed.

Hope this helps,

--ewh

<Prev in Thread] Current Thread [Next in Thread>