cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: Portal bug? - Using SessionTransformer inside coplets
Date Fri, 24 Jan 2003 07:49:24 GMT
If you have the OutOfMemory Exception during build,
than have a look in the developer list mailing archive.
You have to set the maximum memory for the build task
to 256m.

HTH
Carsten 

Carsten Ziegeler 
Open Source Group, S&N AG


> -----Original Message-----
> From: Alex Romayev [mailto:romayev@yahoo.com]
> Sent: Friday, January 24, 2003 5:58 AM
> To: cocoon-users@xml.apache.org
> Subject: RE: Portal bug? - Using SessionTransformer inside coplets
> 
> 
> I tried today's snapshot and got a
> java.lang.OutOfMemory exception.  I believe someone
> else got it as well.  I'll try again in a couple of
> days.
> 
> Cheers,
> -Alex
> 
> --- Carsten Ziegeler <cziegeler@s-und-n.de> wrote:
> > Alex Romayev wrote:
> > > 
> > > I'm using a version from a couple of months ago. 
> > I'll
> > > get the latest and try it again and let you know.
> > > 
> > Ok!
> > 
> > > While I have your attention, I've asked another
> > > question a couple of days ago about getting
> > parameter
> > > values from the request.  Could you take a look at
> > it,
> > > I'm pasting it below:
> > > 
> > Clever! :)
> > 
> > > 
> > > Hi,
> > > 
> > > I'm looking for help in how to extract parameter
> > > values using SessionTransformer.
> > > 
> > > My uri looks like this:
> > > 
> > > myaction?item=1&item=2&item=3
> > > 
> > > The SessionTransformer generates the following
> > path:
> > > 
> > > <parametervalues>
> > >   cinclude:parameters>
> > >     <cinclude:parameter>
> > >       <cinclude:name>item</cinclude:name>
> > >       <cinclude:value>1</cinclude:value>
> > >     </cinclude:parameter>
> > >   </cinclude:parameters>
> > > </parametervalues>
> > > 
> > > My goal is to turn this into the following xml:
> > > 
> > > <items>
> > >  <item>1</item>
> > >  <item>2</item>
> > >  <item>3</item>
> > > </items>
> > > 
> > > 
> > > Two questions:
> > > 
> > > 1. SessionTransformer javadoc says: This output
> > has
> > > the namespace of the CIncludeTransformer to use it
> > as
> > > input for a <cinclude:includexml> command.  I
> > don't
> > > quite understand how I would make use of CIclude
> > > transformer.
> > This is only handy *if* you need the cinclude
> > transformer
> > to include additional content. So it's not of use
> > for you (in this context).
> > 
> > > 
> > > 2. I've tried doing the following:
> > > 
> > > <items 
> > >  
> > xmlns:session="http://cocoon.apache.org/session/1.0"
> > > 
> > >  
> > >
> >
> xmlns:cinclude="http://apache.org/cocoon/include/1.0">
> > > 
> > >   <session:getxml
> > >
> >
> xmlns:cinclude="http://apache.org/cocoon/include/1.0"
> > > context="request" 
> > >   
> > >
> >
> path="/parametervalues/cinclude:parameters/cinclude:parameter[cinc
> > > lude:name='item']/cinclude:value"/>
> > > </items>
> > > 
> > > So that I could later transform it to the xml I
> > need,
> > > but I get the following error:
> > > 
> > >  "Prefix must resolve to a namespace: cinclude"
> > > 
> > You can make a <session:getxml context="request"
> > path="/"/>
> > and you will see all the xml outputted by the
> > request context.
> > 
> > You can use <session:getxml context="request"
> > path="/parametervalues"/>
> > and you get the parameters as described above. All
> > your items
> > will then have the cinclude namespace, you have to
> > filter
> > them in a stylesheet or custom component.
> > 
> > HTH
> > Carsten
> > 
> >
> ---------------------------------------------------------------------
> > Please check that your question  has not already
> > been answered in the
> > FAQ before posting.    
> > <http://xml.apache.org/cocoon/faq/index.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/faq/index.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/faq/index.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