Re: [xsl] How to render TEI <div*>s with chapter-like pagination?

Subject: Re: [xsl] 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)
--- "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