Re: Find content between <text:change-start /> and <text:change-end />
Dave Pawson <[email protected]> Wed, 17 Feb 2010 15:03:58 +0000
| Newsgroups | gmane.comp.openoffice.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
On 17 February 2010 14:41, ashok _ <[email protected]> wrote: > I am struggling =C2=A0a 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=3D"Sect1" text:name=3D"Section2"> > =C2=A0 =C2=A0 =C2=A0<text:p text:style-name=3D"Standard"/> > =C2=A0 =C2=A0 =C2=A0<text:p text:style-name=3D"Standard">Neque porro quis= quam est, qui > dolorem ipsum > =C2=A0 =C2=A0 =C2=A0quia dolor sit amet, consectetur, adipisci velit, sed= quia non > numquam eius > =C2=A0 =C2=A0 =C2=A0modi <text:change-start text:change-id=3D"ct472232592= "/></text:p> > =C2=A0 =C2=A0........................ > =C2=A0 =C2=A0........................ > =C2=A0 =C2=A0<text:p text:style-name=3D"Standard">Sed ut perspiciatis und= e omnis iste natus > =C2=A0 =C2=A0 =C2=A0 =C2=A0error sit voluptatem accusantium doloremque la= udantium, totam > rem aperiam, > =C2=A0 =C2=A0 =C2=A0 =C2=A0nihil molestiae consequatur, vel illum qui dol= orem eum fugiat > quo voluptas > =C2=A0 =C2=A0 =C2=A0 =C2=A0nulla pariatur?<text:change =C2=A0text:change-= id=3D"ct472209600"/></text:p> > =C2=A0 =C2=A0........................ > =C2=A0 =C2=A0........................ > =C2=A0</text:section> match on the section. value-of select=3D".//text:change-start::following:*[not(preceding::*[@te= xt:change:id=3D'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-st= art. HTH --=20 Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk