On 18 February 2010 11:09, ashok _ <[email protected]> wrote: > On Wed, Feb 17, 2010 at 6:03 PM, Dave Pawson <[email protected]> wrote: >> >> match on the section. >> >> value-of >> select=".//text:change-start::following:*[not(preceding::*...@text:change:id='ct47...'])]/text()" >> >> basically, find all text nodes, >> after the text change start node, >> which don't have a preceding node with the same id as the current >> change-start. >> > > > This didnt seem to work for me i tried a variant but thats also not woking > > //text:change-sta...@text:change-id='ct472232592']/following::text()[not(//text:change-e...@text:change-id='ct472232592']/following::text()] > > running the 2 Xpaths independently seems to yeild correct results > however the not() does not seem to work ?
you write //text:change, it should be .// i.e. relative to the current node? You could try dumping the value <xsl:message> <xsl:value-of select='' .... to see what is being gathered. Then build up the expression to see what is collected? The not expression is intended to stop when the end of the change is met? That happens when the id value of the end is the current node? There are other ways of expressing this terminating condition. Play about with them until you find one you like | works. HTH -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
