[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: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 15 Nov 2002 11:38:32 -0500
Re: inserting verseEnd milestone
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@xxxxxxxxxxxxxxxx
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



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.