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

RE: access preceding record

Subject: RE: access preceding record
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 11 Nov 2003 16:20:59 +0200
xsl first record
Hi,

> Your snippet says: "any time you see a record, copy it to 
> output including
> descendents. Add an element stop and set its value to the value of the
> preceding record/start element.". Right?

Yes, the first record in reverse document order.
 
> But it won't do that.

What do you get, then? Which processor do you use? You don't get the results you specified in you original email with the source provided and with those two templates only?
 
> And I do not know where to start and how to debug this.
> 
> However, the missing point in my thought was "preceding::record[1]" or
> "../preceding-sibling::record[1]" in order to reference the preceding
> record.

Oh yes, you should use 
 
  preceding-sibling::record[1]/start

but in your case it shouldn't matter which you use. You don't want to use the parent axis (..) in the expression, because then you'd end up in the base element.

Cheers,

Jarno - Dulce Liquido: Antichristiano

 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.