Re: Find content between <text:change-start /> and <text:change-end />
Dave Pawson <[email protected]> Thu, 18 Feb 2010 13:53:26 +0000
| Newsgroups | gmane.comp.openoffice.devel.xml |
|---|---|
| Message-ID | <[email protected]> |
On 18 February 2010 13:41, ashok _ <[email protected]> wrote: > 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 .. Last one. <xsl:template match="text:section"> <xsl:variable name='t' select='.//text:change-start/@text:change-id'/> <xsl:value-of select="concat(.//text:change-start/following::text(),' ',.//text:change-start/following::*/text()[not(preceding::text:change/@text:change-id=$t)])"/> </diff> </xsl:template> regards -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk