[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] formatting for breaking paragraph-xpath question


Subject: RE: [xsl] 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
Keywords