You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Amelie Cordier <ac...@insa-rouen.fr> on 2003/03/02 14:27:19 UTC
Generating dynamic attributes in xsp
Hello,
I have an xsp page and a logicsheet where I have defined my own tags.
In my logicsheet I use thinks like that : <xsl:template
match="mytag:user[@name]"> in order to perform specifics resquests on a
database.
This work perfectly if I use a tag like <mytag:user name="foo"/> in the xsp.
But my problem is that I want the attribute "name" to be dynamically
generated by using resquest-parameter.
I mean, in my xsp page, I don't want to write "foo" but something like
<xsp-request:get-parameter name="user"/> and I really don't know how to do
it.
Thanks for help
Amelie.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Generating dynamic attributes in xsp
Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 05.Mar.2003 -- 01:14 AM, Amelie Cordier wrote:
> >
> > 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/>.
> >
>
> 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?
Don't think so. You can do two things now to work on your problem:
a) easiest is to look at the java source created from your xsp. it is
located in case of tomcat in a subdirectory of
$TOMCATHOME/work/Standalone/localhost/cocoon/ and has almost the
same name as your xsp: foo.xsp -> foo_xsp.java
Locate the place that corresponds to your tag and post the relevant
lines.
b) if you have already setup an XSLT processor in your environment,
you can try to do the transform manually. Look at the resulting xsp
and see what happened.
If you don't have setup an XSLT processor, you could try a pipeline
along these lines:
<map:match pattern="view-transform">
<map:generate type="file" src="{request-param:source}"/>
<map:transform type="xslt" src="{request-param:logicsheet}"/>
<map:serialize type="xml"/>
</map>
Request the result by:
http://localhost:8080/cocoon/path/to/pipeline/view-transform?source=relative/path/to/my.xsp&logicsheet=relative/path/to/logicsheet.xsl
Perhaps you should setup a little HTML form for this.
Or you can all the included xalan from the commandline (must be in
your classpath):
java org.apache.xalan.xslt.Process -IN my.xsp -XSL my.xsl
Or you could use the great xslt-process-mode for emacs:
http://xslt-process.sourceforge.net/
This allows to step through your logicsheet!
>
> By the way, what do you mean by "in a place where it can safely expand to a
> <xsp:expr/>" ?
A place where <xsp:expr/> would make sense and does not violate java
syntax. Counter examples
<xsp:logic>
String foo="";
<xsp:logic>a</xsp:logic> //wrong!
foo = "bar";
foo = "bar<xsp:expr>a</xsp:expr>bar"; // wrong!
// some tag expand to more than an xsp:expr (that is bad
// but sometimes without alternative)
// the following does not work:
foo = "bar" + <xsp:logic> String yada = null; for (int i=0;
i<yada.length(); i++) { <br/> }; </xsp:logic>
</xsp:logic>
Chris.
--
C h r i s t i a n H a u l
haul@informatik.tu-darmstadt.de
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Generating dynamic attributes in xsp [OK]
Posted by Amelie Cordier <ac...@insa-rouen.fr>.
>> 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.
Ok, now it works perfectly with get-nested-content instead of get-parameter.
I found this in a quite old mail in this mailing list.
Thanks a lot to everybody
Best regards
Am...
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
AW: Generating dynamic attributes in xsp
Posted by Marco Rolappe <m_...@web.de>.
you could post relevant snippets from your page, logicsheet. and please
check the logs, too. maybe there's an error somewhere else occurring.
> -----Ursprüngliche Nachricht-----
> Von: cocoon-users-return-47324-m_rolappe=web.de@xml.apache.org
> [mailto:cocoon-users-return-47324-m_rolappe=web.de@xml.apache.org]Im
> Auftrag von Amelie Cordier
> Gesendet: Mittwoch, 5. März 2003 01:14
> An: cocoon-users@xml.apache.org
> Betreff: Re: Generating dynamic attributes in xsp
>
>
> 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: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Generating dynamic attributes in xsp
Posted by Amelie Cordier <ac...@insa-rouen.fr>.
> 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: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Generating dynamic attributes in xsp
Posted by Christian Haul <ha...@informatik.tu-darmstadt.de>.
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.
--
C h r i s t i a n H a u l
haul@informatik.tu-darmstadt.de
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Generating dynamic attributes in xsp
Posted by Amelie Cordier <ac...@insa-rouen.fr>.
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?
Thanks a lot.
Am
>
>
>
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: AW: Generating dynamic attributes in xsp
Posted by Amelie Cordier <ac...@insa-rouen.fr>.
>
> seems like that import statement is the delinquent. maybe you fiddled
> around too much with those logicsheets? ;-) if you're doing sql/esql
> stuff within your custom logicsheet you should check that. don't know
> why that import statement wraps onto the next line.
>
Still doesn't work :( :(
In fact, there is 2 problems, I solved the first one but not the second
(the most important one).
1° For thoses who are interested in, the error above was due to the fact
that the tag <xsl:with-param name="required"> is already setup at false
in the source code => no need to do it again (I think :))
2° <xsl:call-template name="get-string-parameter"> returns an empty string
: "". In fact, the problem is before.
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))
Any idea?
Thanks.
Am
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
AW: Generating dynamic attributes in xsp
Posted by Marco Rolappe <m_...@web.de>.
> -----Ursprüngliche Nachricht-----
> Von: cocoon-users-return-47247-m_rolappe=web.de@xml.apache.org
> [mailto:cocoon-users-return-47247-m_rolappe=web.de@xml.apache.org]Im
> Auftrag von Amelie Cordier
> Gesendet: Sonntag, 2. März 2003 22:12
> An: cocoon-users@xml.apache.org
> Betreff: Re: AW: Generating dynamic attributes in xsp
>
>
> Ok.
>
> I'm using a cvs version of cocoon that I build about one week ago
> I've made a copy of the logicsheet-util in my application directory
>
well, I'm using cocoon 2.0.4 so things might be different here.
> When I miss to declare <xsl:param name="namespace-uri"> I have an error
> which says the namespace-uri parameter is missing so I think there is no
> problem with the logicsheet inclusion.
>
> The error above is the one displayed by my browser when I call my page
> (it's begin by "error compiling user_xsp")
>
> In the error.log, I have the following :
>
> ...
> import
> org.apache.cocoon.components.language.markup.xsp.AbstractEsqlQuery;
> import
> org.apache.cocoon.components.language.markup.xsp.AbstractEsqlConnection;
> // start error (lines 95-95) " <identifier> expected"
> import
> // end error
> ...
> Line 95, column 13: <identifier> expected
> Line 0, column 0:
> 1 error
seems like that import statement is the delinquent. maybe you fiddled around
too much with those logicsheets? ;-) if you're doing sql/esql stuff within
your custom logicsheet you should check that. don't know why that import
statement wraps onto the next line.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: AW: Generating dynamic attributes in xsp
Posted by Amelie Cordier <ac...@insa-rouen.fr>.
>
>
>> hi again too :)
> :-D
>
>>
>> I agree with you but each time I add "year" or "year or @year" or
>> "@year or year", cocoon crashes with this error :
>>
>> // start error (lines 95-95) " expected"
>> import
>> // end error
>
> where does this one show up? on the page or in the logs? a bit more
> context around that error would be helpful to see what component threw
> it.
>
Ok.
I'm using a cvs version of cocoon that I build about one week ago
I've made a copy of the logicsheet-util in my application directory
When I miss to declare <xsl:param name="namespace-uri"> I have an error
which says the namespace-uri parameter is missing so I think there is no
problem with the logicsheet inclusion.
The error above is the one displayed by my browser when I call my page
(it's begin by "error compiling user_xsp")
In the error.log, I have the following :
...
import org.apache.cocoon.components.language.markup.xsp.AbstractEsqlQuery;
import
org.apache.cocoon.components.language.markup.xsp.AbstractEsqlConnection;
// start error (lines 95-95) " <identifier> expected"
import
// end error
...
Line 95, column 13: <identifier> expected
Line 0, column 0:
1 error
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
AW: Generating dynamic attributes in xsp
Posted by Marco Rolappe <m_...@web.de>.
> hi again too :)
:-D
>
> I agree with you but each time I add "year" or "year or @year" or "@year
> or year", cocoon crashes with this error :
>
> // start error (lines 95-95) " expected"
> import
> // end error
where does this one show up? on the page or in the logs? a bit more context
around that error would be helpful to see what component threw it.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: AW: AW: Generating dynamic attributes in xsp
Posted by Amelie Cordier <ac...@insa-rouen.fr>.
hi again too :)
> hi again, see inline...
>> And in my xsl:
>>
>> <xsl:include href="logicsheet-util.xsl"/>
>> <xsl:param name="namespace-uri">http://mynamspace/mytag</xsl:param>
>>
>>
>> <xsl:template match="mytag:user[@year]">
>> <xsl:variable name="varyear">
>> <xsl:call-template name="get-string-parameter">
>> <xsl:with-param name="name">year</xsl:with-param>
>> <xsl:with-param name="required">true</xsl:with-param>
>> </xsl:call-template>
>> </xsl:variable>
>> <xsl:call-template name="mytesttemplate"/>
>> </xsl:template>
>>
>>
>> As soon as I had "[@year]" on my match xsl:template, the
>> "<xsl:call-template name="mytesttemplate"/>" instruction isn't
>> executed anymore.
>
> that should be the predicate as mentioned above. in your example markup
> your <mytag:user> element didn't have the attribute (@year) so the
> template didn't match.
>
I agree with you but each time I add "year" or "year or @year" or "@year
or year", cocoon crashes with this error :
// start error (lines 95-95) " expected"
import
// end error
I'm lost :(
Anyway, thank you for your help so far !
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
AW: AW: Generating dynamic attributes in xsp
Posted by Marco Rolappe <m_...@web.de>.
hi again, see inline...
> -----Ursprüngliche Nachricht-----
> Von: cocoon-users-return-47237-m_rolappe=web.de@xml.apache.org
> [mailto:cocoon-users-return-47237-m_rolappe=web.de@xml.apache.org]Im
> Auftrag von Amelie Cordier
> Gesendet: Sonntag, 2. März 2003 17:07
> An: cocoon-users@xml.apache.org
> Betreff: Re: AW: Generating dynamic attributes in xsp
>
>
<snipped-nice-name-et-al/>
> I can't achieve to make this work.
>
> Here is what I've done (I've changed some names because it was quite
> ambiguous)
>
>
> In my xsp :
>
> <mytag:user>
> <year><xsp-request:get-parameter name="paramyear"/></year>
> </mytag:user>
if you used this then the template below doesnt't match because your
predicate says there must be an _attribute_ year. either leave the predicate
out or also check for the corresponding element;
<xsl:template match="mytag:user[@year or year]">
...
>
> And in my xsl:
>
> <xsl:include href="logicsheet-util.xsl"/>
> <xsl:param name="namespace-uri">http://mynamspace/mytag</xsl:param>
>
>
> <xsl:template match="mytag:user[@year]">
> <xsl:variable name="varyear">
> <xsl:call-template name="get-string-parameter">
> <xsl:with-param name="name">year</xsl:with-param>
> <xsl:with-param name="required">true</xsl:with-param>
> </xsl:call-template>
> </xsl:variable>
> <xsl:call-template name="mytesttemplate"/>
> </xsl:template>
>
>
> As soon as I had "[@year]" on my match xsl:template, the
> "<xsl:call-template name="mytesttemplate"/>" instruction isn't executed
> anymore.
that should be the predicate as mentioned above. in your example markup your
<mytag:user> element didn't have the attribute (@year) so the template
didn't match.
> Thanks
>
> Amelie
ingen orsak.
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: AW: Generating dynamic attributes in xsp
Posted by Amelie Cordier <ac...@insa-rouen.fr>.
> hi amelie (nice name ;-),
thanks :)
> <mytag:user>
> <name><xsp-request:get-parameter name="user"/></name>
> </mytag:user>
>
>
> and your modified logicsheet would look something like this:
>
> ...
> <xsl:include href="logicsheet-util.xsl"/>
>
> <xsl:param name="namespace-uri">http://your/namespace/uri</xsl:param>
> <!-- you know -->
>
> <xsl:template match="mytag:user[@name or name]">
> <xsl:variable name="name">
> <xsl:call-template name="get-string-parameter">
> <xsl:with-param name="name">name</xsl:with-param>
> <xsl:with-param name="required">true</xsl:with-param>
> </xsl:call-template>
> </xsl:variable>
>
> ...
> </xsl:template>
> ...
>
> and in your template you now accees the parameter via the variable.
I can't achieve to make this work.
Here is what I've done (I've changed some names because it was quite
ambiguous)
In my xsp :
<mytag:user>
<year><xsp-request:get-parameter name="paramyear"/></year>
</mytag:user>
And in my xsl:
<xsl:include href="logicsheet-util.xsl"/>
<xsl:param name="namespace-uri">http://mynamspace/mytag</xsl:param>
<xsl:template match="mytag:user[@year]">
<xsl:variable name="varyear">
<xsl:call-template name="get-string-parameter">
<xsl:with-param name="name">year</xsl:with-param>
<xsl:with-param name="required">true</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="mytesttemplate"/>
</xsl:template>
As soon as I had "[@year]" on my match xsl:template, the
"<xsl:call-template name="mytesttemplate"/>" instruction isn't executed
anymore.
I'm sure that there is no problem with the logicsheet-util inclusion .
What am i doing wrong?
Thanks
Amelie
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
AW: Generating dynamic attributes in xsp
Posted by Marco Rolappe <m_...@web.de>.
hi amelie (nice name ;-),
instead of passing the 'name' parameter as an attribute of <mytag:user> you
could use an element with the same name. the logicsheet-util logicsheet that
comes with cocoon has templates that you can call to get a parameter. it
checks for an attribute and an element with the name you specify.
example markup:
<mytag:user>
<name><xsp-request:get-parameter name="user"/></name>
</mytag:user>
and your modified logicsheet would look something like this:
...
<xsl:include href="logicsheet-util.xsl"/>
<xsl:param name="namespace-uri">http://your/namespace/uri</xsl:param> <!--
you know -->
<xsl:template match="mytag:user[@name or name]">
<xsl:variable name="name">
<xsl:call-template name="get-string-parameter">
<xsl:with-param name="name">name</xsl:with-param>
<xsl:with-param name="required">true</xsl:with-param>
</xsl:call-template>
</xsl:variable>
...
</xsl:template>
...
and in your template you now accees the parameter via the variable.
> -----Ursprüngliche Nachricht-----
> Von: cocoon-users-return-47226-m_rolappe=web.de@xml.apache.org
> [mailto:cocoon-users-return-47226-m_rolappe=web.de@xml.apache.org]Im
> Auftrag von Amelie Cordier
> Gesendet: Sonntag, 2. März 2003 14:27
> An: cocoon-users@xml.apache.org
> Betreff: Generating dynamic attributes in xsp
>
>
> Hello,
>
> I have an xsp page and a logicsheet where I have defined my own tags.
>
> In my logicsheet I use thinks like that : <xsl:template
> match="mytag:user[@name]"> in order to perform specifics resquests on a
> database.
>
> This work perfectly if I use a tag like <mytag:user name="foo"/>
> in the xsp.
>
> But my problem is that I want the attribute "name" to be dynamically
> generated by using resquest-parameter.
>
> I mean, in my xsp page, I don't want to write "foo" but something like
> <xsp-request:get-parameter name="user"/> and I really don't know how to do
> it.
>
> Thanks for help
>
> Amelie.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org