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

re: How can I achieve correct tail-recursion ?

Subject: re: How can I achieve correct tail-recursion ?
From: "Vladimir Nesterovsky" <vladimir@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Jan 2010 07:55:56 -0800
re:  How can I achieve correct tail-recursion ?
> Hello, I'm using SaxonHE 9.2 with a layout sheet for braille output. I
> need to process every child of node "doc" while remembering line and
> page numbers for each child I process. Here's the sub-part of the
> sheet ("doc" is the root of my document) :

You may try to avoid tracing numbers in template parameters.
If your numbering depends on one level of nesting (doc/children) then
you may use context position to derive the numbers.
If numbers depend on multilevel nesting then something like
  count(preceding::*) + count(ancestor-or-self::*) - 1
can be used to get numbers.
--
Vladimir Nesterovsky
http://www.nesterovsky-bros.com/

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.