W
wooks
I would appreciate some guidance not just to the solution but why my
own solutions don't seem to work. Copy.xsl in the code below is an
imported identity template.
Non solution 1
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="copy.xsl"/>
<xsl:template match="//text()[.=following::text()]"/>
</xsl:stylesheet>
Non Solution 2 (because I suspected there may be some issues about
what is the current node)
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="copy.xsl"/>
<xsl:template match="text()">
<xsl:apply-templates select="text()[not(.=following::text())]"/>
</xsl:template>
</xsl:stylesheet
own solutions don't seem to work. Copy.xsl in the code below is an
imported identity template.
Non solution 1
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="copy.xsl"/>
<xsl:template match="//text()[.=following::text()]"/>
</xsl:stylesheet>
Non Solution 2 (because I suspected there may be some issues about
what is the current node)
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="copy.xsl"/>
<xsl:template match="text()">
<xsl:apply-templates select="text()[not(.=following::text())]"/>
</xsl:template>
</xsl:stylesheet