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

RE: container list display problem

Subject: RE: container list display problem
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 1 May 2002 15:01:55 +0100
RE:  container list display problem
> I have been using a style sheet that supports an XML DTD
> called EAD - Encoded Archival Description. ....
> <xsl:when test="(../preceding-sibling::c03[1]//did/container
> @type='reel']=$reelnumber
> or  parent::c02[last()]/did/container[@type='reel']=$reelnumber)">
I haven't tried to understand your detailed logic but the
parent::c02[last()] test looks wrong. A node has exactly one parent so the
predicate [last()] is always true. You obviously don't want to select the
"last parent" because there is only one. Perhaps you want to test whether
the parent is the last child of its own parent? In that case the condition
would be parent[not(following-sibling::*)].

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx

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

Current Thread


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.
First Name
Last Name
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.