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

How to get the preceding template on the same level

Subject: How to get the preceding template on the same level
From: Frederic Schwebel <schwebel@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 5 Jun 2000 20:08:57 +0200 (MET DST)
templates preceding level xsl
Hello,

I'm about to finish the XSL stylesheet to translate MathML into Braille. I
still have one problem : in Braille, when there's a multiplication or
division sign, I have to ouput twice the sign if there's a fraction
before.

That mean in XSL, that when the processor sees <mo>&times;</mo> or
<mo>&divide;</mo> it must look if the precedent template ON THE SAME TREE
LEVEL is <mfrac> . The "preceding" axis doesn't work since it gives all
precedences, not only those on the same tree level...
Examples :
(2/3)*2
<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. 
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
I solve this ?

Thanks in advance !
Frederic SCHWEBEL.


 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.