Re: Find content between <text:change-start /> and <text:change-end />

ashok _ <[email protected]> Thu, 18 Feb 2010 16:11:31 +0300
Newsgroups gmane.comp.openoffice.devel.xml
Message-ID <[email protected]>
On Thu, Feb 18, 2010 at 2:37 PM, Dave Pawson <[email protected]> wrote:
> you write //text:change, it should be .// =A0i.e. relative to the current=
 node?
> You could try dumping the value
> <xsl:message>
> <xsl:value-of select=3D'' ....
>
> 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.
>
>


Many many thanks for following up with more questions -- I was finally
able to get the correct expression.

//text:change-start[@text:change-id=3D'ct-472232592']/following::text()[not=
(preceding::text:change-end[@text:change-id=3D'ct-472232592'])]

I am doing it relative to the document root thats why i have // instead of =
.//