Yo!
Kinda easy... I don't think you tried to hard...
Here's your solution mate:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="TD5">
<xsl:copy>
<xsl:apply-templates select="separator"/>
</xsl:copy>
</xsl:template>
<xsl:template match="separator">
<xsl:element name="value">
<xsl:if test="following-sibling::node()[1][name()='value']">
<xsl:value-of select="following-sibling::node()[1]"/>
</xsl:if>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
Next time, try to solve your problem a little before getting free code. This forum is here to help people, not to provide cheap labor.
Hasta la vista!
Rushman
Dijkstra's law on Programming and Inertia:
If you don't know what your program is supposed to do, don't try to write it.
|