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

Re: Finding immediately preceding node.

Subject: Re: Finding immediately preceding node.
From: Betty Harvey <betty@xxxxxxxxxx>
Date: Mon, 2 Jun 2003 13:24:58 -0400 (EDT)
preceding node
Thanks David:

	That is what I am afraid of.  It would be so
easy to set a variable as a switch in the parent but
you can't seem to do that with variables because they
can't be transferred across templates.  

	In XML processing looking at parents is 
common problem.  You can do it very easily in DOM,
I just can't figure out how to do it in XSLT.  

	I am taking Ken's advice and rewriting
the XSLT to use <xsl:for-each> but I am still 
having difficulty finding the immediately preceding-sibling.
Now it is always giving a true because there is a qualifying
sibling in the tree.

Thanks again.


On Mon, 2 Jun 2003, David Carlisle wrote:

>   I guess there isn't an easy way of looking back at the
>   parent, then the immediate preceding node without the template
>   being in the parent node.
> ../preceding-sibling::b
> David
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 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.