Guest nicolaibvm Posted October 6, 2005 Share Posted October 6, 2005 My problem is that I have this XSLT: <xsl:apply-templates select="Document[position()<11]"> <xsl:sort select="Document/Date" order="descending"/></xsl:apply-templates> What I would very much like is to apply this template on the first ten nodes AFTER i have sorted it. Which (of course) would put the newest Document on top.I understand why this won't work but how do I do it then?if I just do something like this: <xsl:apply-templates select="Document"> <xsl:sort select="Document/Date" order="descending"/></xsl:apply-templates> is there any way in the template I call that I can decide how many I have allready processed?The so called variable is much more like a const isn't it. So I can't count this up.I really need some help (like anyone else who posts on a forum does).greetsNick Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now