This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: formatting for breaking paragraph-xpath question
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] formatting for breaking paragraph-xpath question
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Mon, 24 Sep 2001 19:07:06 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
>
> I thought this xpath would work, but it doesn't.
> p[child::pgbreak]/node()[preceding::pgbreak]
> It grabs all nodes within the paragraph, not sure why.
>
because preceding::pgbreak searches all the way back to the beginning of the
document. You want preceding-sibling.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list