> Amelie Cordier wrote: >> Hi again. >> >> To sum up, I'm trying to use request parameters in a logicsheet that >> I've made on my own. >> >> According to Marco's suggestions (thanks a lot Marco!), I've tried >> this : >> >> In the .xsp : >> >> <mytag:year> >> <year><xsp-request:get-parameter name="yearparam"/></year> >> </mytag:year> >> >> In the logicsheet : >> >> <xsl:template match="mytag:year[year or @year]"> >> <xsl:variable name="mavar"> >> <xsl:call-template name="get-string-parameter"> >> <xsl:with-param name="name">year</xsl:with-param> >> </xsl:call-template> >> </xsl:variable> >> ... >> </xsl:template> >> >> >> My problem is the following : as soon as I use my logicsheet tags, the >> value of <xsp-request:get-parameter name="year"> is lost. >> >> ----------------------- >> Example : >> >> <xsp-request:get-parameter name="year"/> => returns the value of the >> parameter year >> >> <mytag:year> >> <year><xsp-request:get-parameter name="year"/> </year> >> </mytag:year> >> >> => returns nothing !!! or better, something like that : >> (XSPRequestHelper.getParameter(objectModel, "year", null, null, >> null)) >> ----------------------- >> >> Is there something to do in the sitemap level? >> Just to know : is there anybody who tried this once? Am I trying to do >> something impossible? > > Try to use "get-parameter" instead of "get-string-parameter". That > should return the node as well. But you need to insert the variable with > copy-of, not value-of and in a place where it can safely expand to a > <xsp:expr/>. > > HTH > > Chris.
Thanks, it works "better" but the returned string is : "null" :( as if the parameter didn't went through my custom logicsheet. May be a sitemap problem don't you think? By the way, what do you mean by "in a place where it can safely expand to a <xsp:expr/>" ? thanks in advance Am. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]