[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: last(): selecting the last one?

Subject: RE: last(): selecting the last one?
From: Jarkko.Moilanen@xxxxxx
Date: Tue, 23 Apr 2002 11:31:57 +0300 (EEST)
moilanen jarkko
Hi 

No that it selects the right one, I was trying to make the link to the 
document like I managed to do earlier, but now it does not work. 


<xsl:variable name="recent">
  		<xsl:for-each select="Document/Information">
    		<xsl:sort select="Time" order="ascending" />
		<xsl:sort select="Clock" order="ascending" />
		<xsl:if test="position() = last()">	
		<a href="{Subject/@id}.htm">
		<xsl:apply-templates select="Subject" /></a>
		</xsl:if>
		</xsl:for-each>		
</xsl:variable>

The result of my xsl is:
<b>Message count= </b>11</p>
</td><td width="319" valign="top" bgcolor="#C4DAFE">
<p>
<b>Recent message: </b>RE:Juu Juu</p>
</td><td width="248" valign="top" bgcolor="#C4DAFE">
<p>
<b>Sender: </b>Moilanen Jarkko</p>

So it seems that the link is not created, why?



*******************************************************************
Jarkko Moilanen         *You are wise, witty, and wonderful,      *
Researcher/ ITCM        *but you spend too much time              *
jarkko.moilanen@xxxxxx  *reading this sort of trash.              *
www.uta.fi/~jm60697     *                                         *
GSM: +358 50 3766 927   *                                         *
*******************************************************************
* ITCM Information Technology and Crisis Management               *
*******************************************************************

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.