From user-return-1943-apmail-forrest-user-archive=forrest.apache.org@forrest.apache.org Tue Apr 05 18:34:21 2005 Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 66927 invoked from network); 5 Apr 2005 18:34:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Apr 2005 18:34:20 -0000 Received: (qmail 82627 invoked by uid 500); 5 Apr 2005 18:34:19 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 82595 invoked by uid 500); 5 Apr 2005 18:34:19 -0000 Mailing-List: contact user-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@forrest.apache.org Delivered-To: mailing list user@forrest.apache.org Received: (qmail 82582 invoked by uid 99); 5 Apr 2005 18:34:19 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from ns3.wkwyw.net (HELO ns3.wkwyw.net) (217.199.181.91) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 05 Apr 2005 11:34:18 -0700 Received: (qmail 22156 invoked from network); 5 Apr 2005 18:34:21 -0000 Received: from 82-69-78-226.dsl.in-addr.zen.co.uk (HELO ?192.168.0.4?) (82.69.78.226) by ns3.wkwyw.net with SMTP; 5 Apr 2005 18:34:21 -0000 Message-ID: <4252DA26.1080606@apache.org> Date: Tue, 05 Apr 2005 19:34:14 +0100 From: Ross Gardler User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: user@forrest.apache.org Subject: Re: Newbie question: defining ENTITY values in a separate configurati on file References: <2052C51FEE2DD611AE5F0002A59305F106F80AE1@swec9900bk.pgh.wec.com> In-Reply-To: <2052C51FEE2DD611AE5F0002A59305F106F80AE1@swec9900bk.pgh.wec.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Paterline, David L. wrote: > Hello all - > > I'm a new user of Forrest and the associated technologies, so I hope I can > find some help with a basic question or two. > > Basically, I'm looking for a way to centralize definitions of text variables > to be used throughout the various XML files in my project. > > I'm using entity references to refer to contents of pre-defined entities > within my XML files. Within each file, I define the entity and then > reference it: > > "http://apache.org/forrest/dtd/document-v12.dtd" [ > > ]> > ... > User Manual > ... > > This works fine, within each XML file. For a couple of reasons, I'd like to > collect all these entity definitions into a single configuration file > (mainly to minimize maintenance issues, such as using a single definition in > multiple XML files). You might want to read the docs on linking for some interesting tricks. See http://forrest.apache.org/docs/linking.html#indirect-linking in particular see the "site:" psuedo-protocol for internal linking and the "ext:" pseudo-protocol for external linking. Ross