This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
formatting for breaking paragraph-xpath question
- To: XSL List <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] formatting for breaking paragraph-xpath question
- From: Joerg Pietschmann <joerg dot pietschmann at zkb dot ch>
- Date: Tue, 25 Sep 2001 08:47:38 +0200
- Organization: ZKB
- Reply-To: xsl-list at lists dot mulberrytech dot com
"Lisa Rupe" <LRupe@questia.com> wrote:
> I'm having trouble formatting a breaking paragraph.
In order to complete previous answers:
p[pgbreak]/node()[not(following-sibling::pgbreak)]
selects all nodes of paragraphs with at least one page break before
the first break, considered that pgbreak elements are only immediate
children of p elements.
Use p[descendant::pgbreak]/node()[not(following-sibling::*[descendant-or-self::pgbreak])]
if pgbreak elements can be buried deeper in the hierarchy.
HTH
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list