[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: formatting for breaking paragraph-xpath question
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 24 Sep 2001 19:07:06 +0100
>
> 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


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member