Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] alternative to repeatedly walking the ancestor axis in 1.0

From: "Andrew Welch" <andrew.j.welch@--------->
To:
Date: 8/1/2008 3:05:00 PM
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/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent