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

Re: How to get the preceding template on the same level

Subject: Re: How to get the preceding template on the same level
From: "Sebastian Rahtz" <sebastian.rahtz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 5 Jun 2000 21:37:12 +0100 (BST)
Re: How to get the preceding template on the same level
Frederic Schwebel writes:
 > <mfrac>
 >   <mn>2</mn><mn>3</mn>
 > </mfrac>
 > <mo>&times;</mo>
 > <mn>2</mn>
 > 
 > the preceding axis would give me twice mn and one mfrac. I have no way to
 > know if mfrac is on the same level as &times. 

Maybe I am being dense, but don't you just want the preceding-sibling
axis? that delivers your siblings up in nearest first order.

so presumably if "name(preceding-sibling::*[1])" produces "mfrac", you 
fire.

 > And also : (2/3)+2*3
 > for the preceding-axis of "*", I'd still get mfrac, but it's not the FIRST
 > predecessor on the same tree level so I would have to ignore it... How can
do a

 <xsl:for-each select="preceding-sibling::*">
   <!-- look at each sibling in turn -->
 </xsl:for-each>

sebastian


 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.