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

Re: inserting verseEnd milestone

Subject: Re: inserting verseEnd milestone
From: Jim_Albright@xxxxxxxxxxxx
Date: Sat, 16 Nov 2002 08:13:38 -0500
Re:  inserting verseEnd milestone
<xsl:template match="p/node()[last()]  | lineGroup/line[last()]/node()[last
()]"  >
      <!--...... found last node in p or line .....-->
      <!-- identity transformation-->
      <xsl:call-template name="copy-current-node"/>
      <xsl:choose>
            <!-- Find the first p or line and then test to see if it is
followed by verse OR that this is the end of the book and no verse
follows-->
            <xsl:when test="not(following::verse) or following::*[self::p|
self::line][1] /child::node()[1][self::verse]">
                  <!--.....p or line found with verse.....-->
                  <xsl:call-template name="verseEnd"/>
            </xsl:when>
            <xsl:otherwise>
                  <!--....no verse at start of p or line....-->
            </xsl:otherwise>
      </xsl:choose>
</xsl:template>

Thanks. This is working now!!

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.