You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Oliver Klinger <ol...@danet-consult.de> on 2001/02/20 09:22:25 UTC

AW: Data input with a FORM via XSL and search on the basis of tha t...

Yes, XSL HAS a logic like count. It is define within the XPath
specification. The following should do the job:

count(xpathexpression)

e.g.

<xsl:value-of select="count(/root/element[subelement='expression'])"/>

Regards,
Oliver

> -----Ursprüngliche Nachricht-----
> Von: Tapan Nanawati [mailto:tapan_nanawati@yahoo.com]
> Gesendet am: Dienstag, 20. Februar 2001 06:26
> An: cocoon-users@xml.apache.org
> Betreff: Data input with a FORM via XSL and search on the basis of
> that...
> 
> Dear friends
> We have been working around for quite some time now in 
> finding out how to
> take the form input from XSL stylesheets  and send it to XSP logic.
> <xsl:value-of> is used to get value from the XML document but 
> how to do the
> reverse : how to get an input from the user and base the 
> search query on the
> basis of that!
> Say for example : the xsp returns five (random) search 
> results and I need to
> run an input form for
> five times in xsl. how do I do this. Please help.
> does xsl have a logic like "count"?
> 
> Tapan Nanawati
> Globe Communication
> NIL/26, Malviya Nagar
> New Delhi - INDIA
> email -
> tapan_nanawati@yahoo.com (official)
> tapan.nanawati@lycos.com (friends)
> phone -
> 91-11-6685274 (o)
> 91-98112-98982 (mobile)
> ------------------------------
> God is real, unless declared integer.
> 
> 
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>