xsl-list
[Top] [All Lists]

Re:inserting verseEnd milestone

2002-11-15 09:38:32
Jim,

If I understand you correctly, try

<xsl:when test="following::*[self::p|self::line][1]/child::node()[1][self::verse]">

This picks up the following element nodes, throws away all but the p and line elements, takes the first of those, and selects its first node child if it's a verse.

?

The "|" may appear to be an "or" but it's really a union operator. The expression "following::*[self::p or self::line]" would do as well.

Or you could do "(following::p|following::line)[1]/node()[1][self::verse]". This groups the following p and line elements, takes the first, and picks the first child if it's a verse.

Cheers,
Wendell

At 11:25 AM 11/15/2002, you wrote:
I have made some progress but still need some more help.

My logic is: While at last node in p or line see if following p or line has
verse as first node

This code finds the next p and checks for verse as first child.
<xsl:when test="following::p[1]/child::node()[1][self::verse]">

I need of way of adding "p or line whichever comes first"

Thanks for your help.


Jim Albright
704 843-0582
Wycliffe Bible Translators





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


======================================================================
Wendell Piez                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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



<Prev in Thread] Current Thread [Next in Thread>