[xsl] Adding hierarchy

Subject: [xsl] Adding hierarchy
From: Jim_Albright@xxxxxxxxxxxx
Date: Sun, 12 Oct 2003 21:52:40 -0400
Thank you for help in the past. Next question.

Starting with this piece, I want to add a wrapper around a whole set of 
lineGroup elements

<blankLIne>
<lineGroup>
        <line></line>
        <line></line>
</lineGroup>
<lineGroup>
        <line></line>
        <line></line>
        <lineGroup>
                <line></line>
                <line></line>
        </lineGroup>
        <line></line>
</lineGroup>
<p>.......or any non lineGroup element .....

should change to
<lineGroup type="stanza">
        <lineGroup>
                <line></line>
                <line></line>
        </lineGroup>
        <lineGroup>
                <line></line>
                <line></line>
                <lineGroup>
                        <line></line>
                        <line></line>
                </lineGroup>
                <line></line>
        </lineGroup>
</lineGroup>
<p>.......or any non lineGroup element .....
So a blankLine as preceding-sibling to lineGroup is the trigger to then 
process all following-sibling lineGroups.

A 2.0 solution is welcome if needed.


Jim Albright
704 843-0582
Wycliffe Bible Translators



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


Current Thread