 |
 |
 |
Rasheed wrote:
> <Employees>
> <Employ>
> <Name>..</Name>
> <RollNum>..</RollNum>
> <EmpID>..</EmpID>
> :
> :
> </Employ>
> <Dept>
> <DeptName>...</DeptName>
> <RollNo>..</RollNo>
> <DeptID>..</DeptID>
> :
> :
> </ Dept >
>
> :
> :
> </Employees>
>
>
> Like some many nodes in the <Employees>. Now I have to change only
> <Name> tag as <EmpName> and reset of all the tags(like RollNum,EmpID,
> ...etc) in <Employ> has to copy into some other file so how can I go
> about it.
Start with the identity transformation template
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
then you need to add a template doing the transformation e.g.
<xsl:template match="Employ/Name">
<EmpName>
<xsl:apply-templates select="@* | node()"/>
</EmpName>
</xsl:template>
That is all you need to perform the name change.
I am not sure what you mean by "reset of all the tags", post back with
some more detailed explanation if you need help with that.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
|
 | 



|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |