<xsl:template match="result-attr">
<tr>
<td align="left">
<a href="http://localhost:8080/cocoon/showuser?username={result-id}">
<xsl:value-of select="result-id"/>
</a>
</td>
<td align="left">
<xsl:value-of select="result-name"/>
</td>
<td align="left">
<xsl:value-of select="result-firstname"/>
</td>
</tr>
</xsl:template>
rgi wrote:
Hello cocoon-users,I have a easy problem...! I want to make a link with parameter in
the url. I read some data from a database (user with diffrent
usernames). Now I want to make links to a other xsp page and the
username should be in the query. e.g.
http://localhost:8080/cocoon/showuser?username=testuserI have a xsp page and I list all users with a xsl file...all work
fine, but with no link...how can I implement a link. I tried id to
implement it in the xsl file.here I print out the username, name and firstname:
the problem ist the href section!<xsl:template match="result-attr">
<tr>
<td align="left">
<a href="">
<xsl:value-of select="result-id"/>
</a>
</td>
<td align="left">
<xsl:value-of select="result-name"/>
</td>
<td align="left">
<xsl:value-of select="result-firstname"/>
</td>
</tr>
</xsl:template>--
Best regards,
rgi mailto:[EMAIL PROTECTED]---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>