Subject: Re: [xsl] inserting verseEnd milestone From: Jim_Albright@xxxxxxxxxxxx Date: Sat, 16 Nov 2002 08:13:38 -0500 |
<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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] inserting verseEnd milest, David Carlisle | Thread | [xsl] variable in xpath, Kalyan Kumar Mudumba |
RE: [xsl] New Working Drafts, Michael Kay | Date | Re: [xsl] fo:table border, G. Ken Holman |
Month |