On 17 February 2010 14:41, ashok _ <[email protected]> wrote: > I am struggling a bit with trying to extract inserted text in a > change tracked ODF > document --
> How do i get the text content contained by these two tags ? > > > e.g. > > <text:section text:style-name="Sect1" text:name="Section2"> > <text:p text:style-name="Standard"/> > <text:p text:style-name="Standard">Neque porro quisquam est, qui > dolorem ipsum > quia dolor sit amet, consectetur, adipisci velit, sed quia non > numquam eius > modi <text:change-start text:change-id="ct472232592"/></text:p> > ........................ > ........................ > <text:p text:style-name="Standard">Sed ut perspiciatis unde omnis iste > natus > error sit voluptatem accusantium doloremque laudantium, totam > rem aperiam, > nihil molestiae consequatur, vel illum qui dolorem eum fugiat > quo voluptas > nulla pariatur?<text:change text:change-id="ct472209600"/></text:p> > ........................ > ........................ > </text:section> 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. 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]
