Documentation for component-configurations, global-variables?

2011-01-19 Thread Mark H. Wood
I need to understand a sitemap that begins:

http://apache.org/cocoon/sitemap/1.0";>
  


  
IUPUIScholarWorks
IUPUIScholarWORKS theme
  


Apparently this stuff didn't exist in 2.0 and is deprecated in 2.2,
and I haven't tracked it down in the 2.1 documentation either.  We're
currently running on 2.2 and getting some deprecation messages that
I'd like to address as time permits.

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.

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Asking whether markets are efficient is like asking whether people are smart.


pgpFg7JQxHhFD.pgp
Description: PGP signature


Re: Documentation for component-configurations, global-variables?

2011-01-19 Thread Luca Morandini

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.


In 2.1 you can use global variables throughout the sitemap (it is just another 
input module), like in:



In 2.2 you can use the Cocoon-Spring configurator to the same effect, but it is 
way more flexible then the old "global-variables" definition.


Regards,

Luca Morandini
http://www.lucamorandini.it


-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: Documentation for component-configurations, global-variables?

2015-10-15 Thread Mark H. Wood
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.
> 
> In 2.1 you can use global variables throughout the sitemap (it is just 
> another 
> input module), like in:
> 
> 
> In 2.2 you can use the Cocoon-Spring configurator to the same effect, but it 
> is 
> 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.getGlobalSitemapVariables.
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:

http://apache.org/cocoon/sitemap/1.0";>
  


  
IUPUIScholarWorks
IUPUIScholarWORKS theme
  

...

is:

http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:util="http://www.springframework.org/schema/util";
xmlns:configurator="http://cocoon.apache.org/schema/configurator";
xmlns:avalon="http://cocoon.apache.org/schema/avalon";
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-2.0.xsd
http://cocoon.apache.org/schema/configurator

http://cocoon.apache.org/schema/configurator/cocoon-configurator-1.0.xsd
http://cocoon.apache.org/schema/avalon/cocoon-avalon-1.0.xsd\";>

  


  

...

I'm still figuring out for certain what SITEMAP LOCATION is supposed
to be, though it does seem somewhat obvious.

-- 
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


signature.asc
Description: Digital signature