On Thu, Feb 18, 2010 at 4:18 PM, Dave Pawson <[email protected]> wrote: > Try testing with > > <text:change-start > text:change-id="ct472232592"/>Change start</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"/> Unchanged</text:p> > > I.e. do you pick up the text on the end of the current para element? > > > <xsl:template match="text:section"> > <xsl:variable name='t' select='.//text:change-start/@text:change-id'/> > <xsl:message> > [<xsl:value-of select=".//text:change-start/following::*[1][text()]"/> ] > </xsl:message> > <diff> > <xsl:value-of > select=".//text:change-start/following::*/text()[not(preceding::text:change/@text:change-id=$t)] > | .//text:change-start/text()"/> > </diff> > </xsl:template> > > Gets 'most' of it, misses the 'Change start' text. >
Yeah it does miss the text if I do : .//text:change-start/following::*/text()[not(preceding::text:change/@text:change-id=$t)] instead if use : i.e. change following::*/text() to following::text() .. .//text:change-start/following::text()[not(preceding::text:change/@text:change-id=$t)] it always picks up the 'Change start' text .. ashok --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
