[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] How to render TEI
Re: [xsl] How to render TEI 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
- Re: [xsl] How to render TEI <div*>s with chapter-like pagination?, (continued)
- David Carlisle - Sun, 13 Apr 2003 18:27:12 +0100
- James J. Ramsey - Sun, 13 Apr 2003 10:55:56 -0700 (PDT)
- David Carlisle - Sun, 13 Apr 2003 20:05:42 +0100
- James J. Ramsey - Sat, 12 Apr 2003 16:15:31 -0700 (PDT)
- James J. Ramsey - Sun, 13 Apr 2003 09:00:07 -0700 (PDT) <=
- David Carlisle - Sun, 13 Apr 2003 18:45:36 +0100
- James J. Ramsey - Sun, 13 Apr 2003 11:35:57 -0700 (PDT)
- David Carlisle - Sun, 13 Apr 2003 18:33:16 +0100
- James J. Ramsey - Sun, 13 Apr 2003 10:51:17 -0700 (PDT)
<- Previous Index Next ->
Re: [xsl] How to render TEI <div*>s, James J. Ramsey
Thread
Re: [xsl] How to render TEI <div*>s, David Carlisle
Re: [xsl] How to render TEI <div*>s, James J. Ramsey
Date
[xsl] Sorting on call-template valu, Randy Oxentenko
Month
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to render TEI <div*>s, James J. Ramsey | Thread | Re: [xsl] How to render TEI <div*>s, David Carlisle |
Re: [xsl] How to render TEI <div*>s, James J. Ramsey | Date | [xsl] Sorting on call-template valu, Randy Oxentenko |
Month |
Products
Features
Resources
Support
Oxygen XML on Facebook
Follow
Oxygen XML on Twitter
Oxygen XML Web Feed
Oxygen XML
Blog
Oxygen XML Youtube Channel
© 2002-2022 SyncRO Soft SRL. All rights reserved.
This website was created & generated with <oXygen/>®XML Editor