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

Re: XML/XSLT formatting problem

Subject: Re: XML/XSLT formatting problem
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Thu, 06 Jan 2005 08:36:00 +0100
xslt lastid
You could try the following:

<xsl:template match="result">
  ...
  <xsl:variable name="lastid" select="@lastid" />
  <xsl:apply-templates select="image[id = $lastid]/following-sibling::image" />
  ...
</xsl:template>

Cheers

Chris Hicks wrote:

Hi,

I have a problem where I need to start printing values from a nodeset
starting from a certain position in the set.

I need to check the "lastid" attribute in the result node when looping
through the nodeset in order to know when to start printing results (this
represents the last id printed on the previous page).  In the above example
I want to start printing results starting from id = 12.

Any tips on where to begin wo uldbeappreciated.

Cheers,
Chris

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.