Funing, no problem, you just pass a parameter (named, say, "select-cat") to your stylesheet from the sitemap, and then use that parameter value to select a category; hence, your stylesheet may look like:
<map:param name="selected-cat"/> <xsl:template match="isodocs/doc[@category=$select-cat]"> <xsl:copy-of select="."/> </xsl:template> To pass the "select-cat" request parameter to that stylesheet you may use "use-request-parameters" in your sitemap. Best regards, --------------------------------------------- Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html --------------------------------------------- > -----Original Message----- > From: funing [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 27, 2002 12:26 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: How to filter the data according to the user input? > > > Thank you. > But, it is my fault not to state the question clearly, I need a > dynamical generation.That is, which category to show is decided > by user. It seems that I must use logic sheet, right? > > > On Fri, 27 Sep 2002 11:23:37 +0200 > "Luca Morandini" <[EMAIL PROTECTED]> wrote: > > > > > I think a little XSLT could do the job, something along these lines: > > > > <xsl:template match="isodocs/doc[@category='jpg']"> > > <xsl:copy-of select="."/> > > </xsl:template>> > -- > funing <[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]> > --------------------------------------------------------------------- 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]>