On 07.Mar.2003 -- 10:11 AM, Yves Vindevogel wrote: > I face the same problem. > > Untill now, I have found no way to "dynamically" generate parameters. > The <xsp-request:get-parameter> must always include the "name" attribute. > Assigning an <xsp:attribute> never seems to work for me either. > > I was trying to work around this with the tags > <xsp-request:get-parameter-names> and <xsp-request:get-parameter-values> > The names thing works (returning all the params in xml format or string) > but the values always came up empty. > > I'm still looking for a solution to this problem. > So I will keep listening.
Please read the docs carefully: xsp:attribute This element is used to dynamically provide attribute values for a given element. This tag is typically used in conjunction with <xsp:expr>, where the substituted expression is always cast to String First, let's be reminded that an XSP is turned into a generator. Now, "element" above referrs to *an element generated by this generator*. IOW not an element of this XML document you're currently editing! See http://xml.apache.org/cocoon/userdocs/xsp/logicsheet-concepts.html for a discussion of this problem. The logicsheet in question has to support dynamic attributes. There is no overall method to do this independantly. However, most logicsheets use the logicsheet-utils.xsl templates. Thus for a logicsheet bound to the namespace prefix "foo" <foo:param name="bar"><xsp:expr>yada</xsp:expr></foo:param> works. E.g. <xsp-request:get-parameter> <xsp-request:param name="name"><xsp:expr>pname</xsp:expr></xsp-request:param> </xsp-request:get-parameter> But this works usually only on selected parameters. See the logicsheet in question for details. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]