[xsl] blockQuotes to blockQuote p p

Subject: [xsl] blockQuotes to blockQuote p p
From: Jim_Albright@xxxxxxxxxxxx
Date: Thu, 1 May 2003 14:59:36 -0400
I am having problems with the blockQuotes area of this input file

<section>
        <head></head>
        <parallelPassage></parallelPassage>
        <paragraph></paragraph>
        <blockQuotes></blockQuotes>
        <blockQuotes></blockQuotes>
        <blockQuotes></blockQuotes>
        <paragraph></paragraph>
        <paragraph></paragraph>
        <blockQuotes></blockQuotes>
        <blockQuotes></blockQuotes>
        <blockQuotes></blockQuotes>
        <paragraph></paragraph>
</section>

output should be:

<div>
        <head></head>
        <parallelPassage></parallelPassage>
        <p></p>
        <blockQuote>
                <p></p>
                <p></p>
                <p></p>
        </blockQuote>
        <p></p>
        <p></p>
        <blockQuote>
                <p></p>
                <p></p>
                <p></p>
        </blockQuote>
        <p></p>
</div>

I have been trying to get this with a for-each and XPath, but am wondering 
it this should be handled by recursion instead. If recursion is the answer 
I could use some help getting it started. 


Jim Albright
704 843-0582
Wycliffe Bible Translators


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


Current Thread