Subject: formatting for breaking paragraph-xpath question
From: Joerg Pietschmann <joerg.pietschmann@xxxxxx>
Date: Tue, 25 Sep 2001 08:47:38 +0200
|
"Lisa Rupe" <LRupe@xxxxxxxxxxx> 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
|