At 2004-11-23 13:04 +0000, Richard Higgins wrote:
I think this is beyond the capacity of simple XSL:FO, but is it possible
by other methods?
It is simple if I've properly understood your problem.
I have a series of files with one or more nested sections. Each section
and subsection to whatever level of nesting has a heading that I wish to
concatenate into a running header. The main section head is fine as this
is always present, but depending on the complexity of the document each
section can have several or no nested subsections.
Fine.
Retrieving each marker and concatenating them is fine, but if you have no
3rd level sub-section then the value retrieved for the previous 3rd level
persists in the subsequent sections until a new value is retrieved to
supplant it, which means the running header continues to give parts of the
heading from previous sections.
Then when you detect you have no 3rd level sub-section, seed in your flow
an empty marker for retrieval. Subsequent sections will retrieve the empty
value.
Given that this is all tied in with the FO stage of processing is there a
way of feeding the correct value into this using XSL or is it just beyond
FO's marker capabilities and nothing more can be done to circumvent this?
The onus is on you as you define the flow to put the markers in place for
retrieval. In XSL-FO retrieval is not conditional (e.g. you can't
selectively retrieve a marker based on a priority concept), you must always
retrieve the marker you have identified. If at some point in the flow you
want that marker not to be retrieved, define an empty value for that marker
and have the empty value retrieved.
I hope this helps.
...................... Ken
--
World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
--~------------------------------------------------------------------
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>
--~--