[xsl] Getting dropped tags...

Subject: [xsl] Getting dropped tags...
From: Buddhi Dananjaya <buddhi@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 24 Sep 2007 16:33:18 +0530
I am using following XSL file, for transformation. Under <VisualObject> node I have many nodes, Some need to be changed /added after transformation. But I need to preserve existing ones. But Once I transformed using following XSL, I am getting only the tags which are newly added or changed.. (which are in betwwen <xsl:copy> and </xsl:copy>). Transformation has dropped some tags which are not defined between <xsl:copy> and </xsl:copy>

How I can get dropped onces into new xml doc.

<xsl:template match="/"> <xsl:apply-templates select="*"/>
<xsl:template match="@* | node()">
<xsl:apply-templates select="@* | node()"/>
</xsl:template> <xsl:template match="VisualObject">
<xsl:when test="@xsi:type='CTextEx' or @xsi:type='CTextRingEx'">
<Variable />
<Value><xsl:value-of select="Y/Value"/></Value>
<xsl:copy-of select="." />

Part of XML
<VisualObject xsi:type="CTextRingEx">
             <Address>LaserJob.Layer.Text Ring1</Address>
             <Name>Text Ring1</Name>
               <Variable />
               <Variable />
               <Variable />
               <Variable />
               <Variable />
               <Variable />
               <Variable />
               <Variable />
               <Variable />
               <Variable />
               <Variable />



Current Thread