This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

formatting for breaking paragraph-xpath question



"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]