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

Re: How to render TEI <div*>s with chapter-like pagin

Subject: Re: How to render TEI <div*>s with chapter-like pagination?
From: "James J. Ramsey" <jjramsey_6x9eq42@xxxxxxxxx>
Date: Sun, 13 Apr 2003 09:00:07 -0700 (PDT)
how to render
--- "James J. Ramsey" <jjramsey_6x9eq42@xxxxxxxxx>
wrote:

> What I want to do is
> collect the siblings following one top-level <div*>
> but preceding the next top-level <div*> so that I
> could, for example, render them within the page
> sequence containing the contents of the <div> that
> preceded them.

Replying to myself, here, sort of, but also asking
another question.

For now, I'll assume that div1 and divGen are the
top-level <div*>s. Given that, would

<xsl:template match="div1">
<!-- start page sequence and do stuff -->
<xsl:apply-templates
select="./following-sibling::*[not(following-sibling::div1
or following-sibling::divGen or
following-sibling::div1[1]/following-sibling::* or
following-sibling::divGen[1]/following-sibling::*]"/>
<!-- end page sequence -->
</xsl:template>

do what I hope it will, which is render within the
page sequence containing the <div1> the following
siblings of the current div1 that are not also div1's,
divGen's, or the following siblings of the next div1
or divGen?

If this works but is slow, is there a way to optimize?


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

 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.