[Home] [By Thread] [By Date] [Recent Entries]
Hi Josef,
Also, see my demo at http://piez.org/wendell/papers/dh2010/clix-sonnets/index.html, where I do this on a small scale, but with a general approach that handles arbitrary overlap. Consider the links in the right column in particular, where the flattened markup is induced back into hierarchies. The names of the elements you want stacked in the hierarchy are passed in at runtime. The method does not depend on any particular structural arrangement of milestones, as long as they are paired. (If you have milestones whose start or ends are implied, these are expanded in a first step, not shown in the demo, which starts with a normalized format.) Nor does it use any "tag-writing" hacks, which can be expedient but which also introduce dependencies on organization in the source. The demo is slightly documented at http://piez.org/wendell/papers/dh2010/ (it served as a demonstration behind a paper I gave in London in July). The stylesheets are in a pipeline, currently implemented in Cocoon. (What is posted on line is a static copy.) Some stylesheets (but not all) require XSLT 2.0. But it's not beginner stuff. Mail me off list if you want to know more. Cheers, Wendell At 03:45 AM 10/14/2010, Mike wrote: This class of problems is quite tricky. The most general approach is to flatten the first hierarchy, so everything is reduced to milestones, and then use positional grouping to construct the new hierarchy from the flat structure. ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|

Cart



