Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 65264 invoked by uid 500); 23 Oct 2001 20:37:20 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 65242 invoked from network); 23 Oct 2001 20:37:19 -0000 Message-Id: <200110232036.f9NKawf26900@orion.rgv.hp.com> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0 From: Ovidiu Predescu To: "Gianugo Rabellino" Cc: cocoon-dev@xml.apache.org Subject: Re: Documentation: short alternative to @docname@? In-Reply-To: Your message of "Tue, 23 Oct 2001 19:43:51 +0200." <01c801c15bea$47b84ca0$642a2a0a@ADINA> X-Url: http://www.geocities.com/SiliconValley/Monitor/7464/ X-Image-Url: http://www.geocities.com/SiliconValley/Monitor/7464/ovidiu.tiff X-Face: ?(@Y~qjBA}~8ZMh5gM4{Q{bE_*:sCJ3@Z?{B*Co=J!#8bb~-z?-0._vJjt~MM59!MjxG%>U 5>MW^2-\7~z04buszR^=m^U|m66>FdR@cFwhb;.A(8*D.QmLkK]z,md0'HiOE\pyeiv_PACR+P:Cm. wq_%l':E:q]g-UCc>r&s@BVo'kFN;(\9PF22Myg5w%nUBWQ6MJJ#qL#w>2oxckP'H:\$9F"mxsz]Dg k{1`fTcP'Y$CgGnc^paTV$dzhVX+;(U$;Eb)P<>G)g) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 23 Oct 2001 13:36:58 -0700 Sender: ovidiu@orion.rgv.hp.com X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Tue, 23 Oct 2001 19:43:51 +0200, "Gianugo Rabellino" wrote: > Ciao team, > > while writing the user documentation I came across quite often to the > need of writing "Cocoon" instead than "Apache Cocoon" for fluency and > readability. Since I'm stricly sticking to the use of @docname@ and > @doctitle@, I'm unwilling to write the "Cocoon" term directly in the > phrase: couldn't it be the case to have another macro that expands to > "Cocoon" only ("shortname" or "appname" maybe)? > > As an example, consider the following paragraph I wrote (I'm starting > some general documentation about Cocoon configuration): > > "Every application needs to be configured, and Apache Cocoon is no > exception to the rule. Apache Cocoon has three basic configuration > points: the first one is of course the sitemap, which is responsible for > making decisions about how the processing takes place given a requested > resource; the second one is Apache Cocoon's own configuration, where the > Apache Cocoon components are declared and configured; finally there is a > configuration file mostly intended for hard-core developers willing to > play with the Avalon configuration of Apache Cocoon". > > Well... I think that the above paragraph sounds much better using only > "Cocoon" instead of the whole "Apache Cocoon". Am I the only one? :) In the XML documents I write, I use simple XML elements, which I transform to the right content using a stylesheet. The example you give would look something like this: "Every application needs to be configured, and is no exception to the rule. has three basic configuration points: the first one is of course the sitemap, which is responsible for making decisions about how the processing takes place given a requested resource; the second one is 's own configuration, where the components are declared and configured; finally there is a configuration file mostly intended for hard-core developers willing to play with the Avalon configuration of ". You can then define to expand to "Cocoon", and to "Apache Cocoon". > -- > Gianugo (who had not the time to discover where and how the macro are > expanded... please bear with my ignorance, in any case I'm volunteering > to implement that :) @docname@ is replaced by Ant during the build process. The trick I described above would require instead a new transformer in the pipeline. Regards, -- Ovidiu Predescu http://orion.rgv.hp.com/ (inside HP's firewall only) http://sourceforge.net/users/ovidiu/ (my SourceForge page) http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff) --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org