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

alternative to repeatedly walking the ancestor axis in

Subject: alternative to repeatedly walking the ancestor axis in 1.0
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 1 Aug 2008 16:04:54 +0100
 alternative to repeatedly walking the ancestor axis in
I wonder if there are any cunning solutions to this problem:

- An attribute which indicates right-to-left text can occur on any
element in the input
- All elements in the output beneath that element should then have a
certain style

For example:

<foo>
  <bar dir="rtl">
    <baz>...

The output for both bar and baz should contain the style.

Using 2.0 I guess the solution would be tunnelled paramters, but in
1.0 you'd have to manually pass the parameters - which isn't
practical...  which leaves walking the ancestor axis most of the time
checking for the dir attribute.

Are there any other ways?   Or is walking the ancestor axis no big
deal, especially when the input tree is likely to be a DOM?


-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

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.