Return-Path: X-Original-To: apmail-cocoon-users-archive@www.apache.org Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 409CE18E24 for ; Thu, 15 Oct 2015 19:30:45 +0000 (UTC) Received: (qmail 90956 invoked by uid 500); 15 Oct 2015 19:30:40 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 90876 invoked by uid 500); 15 Oct 2015 19:30:39 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 90866 invoked by uid 99); 15 Oct 2015 19:30:39 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2015 19:30:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3D2F71A2549 for ; Thu, 15 Oct 2015 19:30:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.643 X-Spam-Level: X-Spam-Status: No, score=0.643 tagged_above=-999 required=6.31 tests=[SPF_NEUTRAL=0.652, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Om6skXrm2UUk for ; Thu, 15 Oct 2015 19:30:31 +0000 (UTC) Received: from mhw.ulib.iupui.edu (mhw.ulib.iupui.edu [134.68.171.23]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id E50B023038 for ; Thu, 15 Oct 2015 19:30:30 +0000 (UTC) Received: from mwood by mhw.ulib.iupui.edu with local (Exim 4.85) (envelope-from ) id 1ZmoEK-00060G-3O for users@cocoon.apache.org; Thu, 15 Oct 2015 15:30:24 -0400 Date: Thu, 15 Oct 2015 15:30:24 -0400 From: "Mark H. Wood" To: users@cocoon.apache.org Subject: Re: Documentation for component-configurations, global-variables? Message-ID: <20151015193024.GB18631@IUPUI.Edu> References: <20110119185443.GA29729@IUPUI.Edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PmA2V3Z32TCmWXqI" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) --PmA2V3Z32TCmWXqI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 19, 2011 at 10:27:40PM +0100, Luca Morandini wrote: > On 01/19/2011 07:54 PM, Mark H. Wood wrote: > > > > It appears that 2.2 wants us to use Spring to do something analogous, > > but first I need to know in detail what the old way is doing so that I > > can work out how to do the same thing the new way. >=20 > In 2.1 you can use global variables throughout the sitemap (it is just an= other=20 > input module), like in: > >=20 > In 2.2 you can use the Cocoon-Spring configurator to the same effect, but= it is=20 > way more flexible then the old "global-variables" definition. Yes, but specifically how is the old way used, and how is the new way used to do the same thing? I've found no documentation for the deprecated element, and no examples of the elements, nor a definitive description of the configurator namespace. [spend half a day grubbing through the code] The deprecation message in question appears to come from org.apache.cocoon.core.container.spring.avalon.SitemapHelper.getGlobalSitem= apVariables. That code winkles out the global-variables element and pokes its content into a Properties, which is then used by the caller (createDefinition) which seems to be building a StringBuffer that eventually contains a Spring element and lots of content, which is returned to createContainer (which returns a WebApplicationContext to somewhere). So it looks like the translation of: IUPUIScholarWorks IUPUIScholarWORKS theme ... is: ... I'm still figuring out for certain what SITEMAP LOCATION is supposed to be, though it does seem somewhat obvious. --=20 Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu --PmA2V3Z32TCmWXqI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEAREIAAYFAlYf/tAACgkQs/NR4JuTKG8sugCgiX8uWym6o66lY4dloq5boQXC /W0AnRLiRGtM6jdgF+S7WP9GqXpaBS1i =ndIn -----END PGP SIGNATURE----- --PmA2V3Z32TCmWXqI--