xsl-list
[Top] [All Lists]

re: [xsl] How can I achieve correct tail-recursion ?

2010-01-07 09:57:25
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/




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>