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 <[EMAIL PROTECTED]> 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: > <[EMAIL PROTECTED]> > For additional commands, e-mail: > <[EMAIL PROTECTED]> > --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>