This is the mail archive of the xsl-list@mulberrytech.com mailing list .
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Kristof: At 03:49 PM 4/4/01, you wrote: >I have this for-each sequence that filters the data when select statement is >true. > ><xsl:for-each >select="document('../../released_xml/news_xml_en/newsticker.xml')/News/Block >[@STARTDATE = '01']"> >blabla ></xsl:for-each> > >Now, I want to know into how many nodes this for-each results, with the >purpose to use that number in this selection: ><xsl:choose> ><xsl:when test="previous_amount_nudes = 0">blabla</xsl:when> ></xsl:choose> The number of nodes selected by a for-each instruction can be accessed by using the last() function (inside the for-each). As for the number of nudes, you're on your own (not that I don't wish I was there with you). Cheers, Wendell ====================================================================== Wendell Piez mailto:wapiez@mulberrytech.com Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |