cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Morandini" <luca.morandi...@tin.it>
Subject RE: Urgent: How do one access the context_root in SiteMap?
Date Mon, 01 Apr 2002 23:16:08 GMT
Sorry, this reply was meant for another thread :(


---------------------------------------------
               Luca Morandini
               GIS Consultant
              lmorandini@ieee.org
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------


> -----Original Message-----
> From: Luca Morandini [mailto:luca.morandini1@tin.it]
> Sent: Tuesday, April 02, 2002 1:14 AM
> To: cocoon-users@xml.apache.org
> Subject: RE: Urgent: How do one access the context_root in SiteMap?
>
>
> Vadim,
>
> after a while I was able to set up OptimizeIt and find out that the memory
> consumption was due to an explosion in the number of int[] instances
> (27818), leading to a sudden increase of memory (20769KB).
>
> Most of these int[] are generated in
> org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes().
>
> Should I send you the snapshot (3+MB compressed) ?
>
> Best regards,
>
> ---------------------------------------------
>                Luca Morandini
>                GIS Consultant
>               lmorandini@ieee.org
> http://utenti.tripod.it/lmorandini/index.html
> ---------------------------------------------
>
>
> > -----Original Message-----
> > From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> > Sent: Monday, April 01, 2002 11:52 PM
> > To: cocoon-users@xml.apache.org
> > Subject: RE: Urgent: How do one access the context_root in SiteMap?
> >
> >
> > > From: Chitharanjan Das [mailto:cdas@accordiasys.com]
> > >
> > > Hello,
> > > 	The following are my questions; I did not get much help from the
> > > user docs:
> > > 1. Is there a possibility to define global parameters for the Sitemap?
> > > 	For eg: set a value say $global-context-root = /cocoon
> >
> > <map:pipeline>
> >   <map:act type="my-set-parameter-action">
> >     <map:parameter name="global-context-root" value="/cocoon"/>
> >
> >     ...
> >
> >   </map:act>
> > </map:pipeline>
> >
> >
> > > 2. In the generators like XSP's and File,  how does one refer to the
> > > context root
> > > 	For eg:
> > > 	<map:generate src="docs/samples/samples.xml"/>
> > > 		The above statement looks for the document root of the
> > > sub-sitemap. But if I want to refer to the context root of application
> > > (/cocoon). How does one do it.
> >
> > <map:generate src="context://docs/samples/samples.xml"/>
> >
> >
> > > 3. The same as above but in context of map:redirect
> > > 	I have a common URI for logout which is defined in the main
> > > sitemap
> > > 	If I have to access this URI from sub sitemap I have to give a
> > > URL which contains the context
> > > 		For eg:
> > > 			<map:redirect-to uri="/cocoon/logout" />
> >
> > Now you can use your parameter global-context-root.
> >
> > Vadim
> >
> >
> > > 	I think it is not a good idea to hardcode the context root in
> > > the sitemap.
> > >
> > > To summarize,
> > > 	How can one access the Context root in URI's and src attributes.
> > >
> > >
> > > Regds,
> > > Chiths
> >
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> >
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message