[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

blockQuotes to blockQuote p p

Subject: blockQuotes to blockQuote p p
From: Jim_Albright@xxxxxxxxxxxx
Date: Sun, 4 May 2003 09:16:26 -0400
xsl and blockquote
Here is final working code ... Thanks to all who helped.

<xsl:template match="blockQuotes"/>

<xsl:template match="blockQuotes[not(preceding-sibling::*[1][self::blockQuotes])]">
        <xsl:element name="blockQuote">
                <xsl:call-template name="lineGroupOrP"/>
                <xsl:apply-templates select="following-sibling::*[1][self::blockQuotes]" mode="blockQuotes"/>
        </xsl:element>
</xsl:template>

<xsl:template match="blockQuotes" mode="blockQuotes">
        <xsl:call-template name="lineGroupOrP"/>
        <!-- start recursion - - end when there is not -->
        <xsl:apply-templates select="following-sibling::*[1][self::blockQuotes]" mode="blockQuotes"/>
</xsl:template>

<xsl:template name="lineGroupOrP">
        <xsl:choose>
                <xsl:when test="child::paragraph-continuation">
                                <xsl:apply-templates select="child::paragraph-continuation"/>
                </xsl:when>
                <xsl:when test="child::lineGroup">
                        <xsl:apply-templates select="child::lineGroup"/>
                </xsl:when>
                <xsl:otherwise>
                        <xsl:element name="p">
                                <xsl:apply-templates/>
                        </xsl:element>
                </xsl:otherwise>
        </xsl:choose>
</xsl:template>

Jim Albright
704 843-0582
Wycliffe Bible Translators



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.