xsl-list
[Top] [All Lists]

Build hierarchies

2003-11-26 03:36:08
Does anyone have thoughts on the suitability of xslt/techniques for transforming non-nested structures to nested ones? e.g.
Given input such as:

<para role="h1">Text</para>
<para/>
<para/>
{deleted stuff...}
<para role="h1">
....

produce output such as:

<para role="h1"><para>Text</para>
<para/>
<para/>
{deleted stuff...}
</para>

...where the appearance of the second <para role="h1"> effectively marks the closure of the preceeding one.


--
Steve Lloyd, XML Developer-Editorial Production Dept.
International Baccalaureate Organisation
Tel: +44 29 2054 7869
FAX: +44 29 2054 7778



XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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