For posterity I transformed the
<list><item/><item/><item/><list><item/><item/></list></list>
to
<list><item/><item/><item><list><item/><item/></list></item></list>.
with
<xsl:template match="item[following::*[1]=following::list[1]]">
<xsl:element name="item">
<xsl:copy-of select="following::list[1]" />
</xsl:element>
</xsl:template>
<!-- already processed -->
<xsl:template match=
"list[preceding-sibling::*[1]=preceding-sibling::item[1]]"/>
<!-- identity -->
<xsl:template match="@*|node()" name="copy-current-node">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
Thanks.
Jim Albright
704 843-0582
JAARS, Speeding Bible Translation
Wycliffe, Partners in Bible Translation
--~------------------------------------------------------------------
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>
--~--