[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Finding immediately 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. Betty 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|