|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] adding hierarchy
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Cast Your Vote
We need your help – Vote for DataDirect XML Products!
Winners and finalists announced at SOA World Conference in November. Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|







