|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Rename element
Hmmmmm. I can see from another thread, DC provided you with a solution
for the same input. Note that my solution will not work, if you do
these together, at DC's solution simply makes a deep copy of the XML
in question.
You will need something like (use it together with the template I
provided in the last email):
<xsl:template match="sample">
<test>
<!--<xsl:copy-of select="@*|node()"/>-->
<xsl:apply-templates/>
</test>
</xsl:template>
<xsl:template match="*[not(self::script)]"/>
<!-- Makes a shallow copy of the element in question -->
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/> <!-- Applies templates to below elements -->
</xsl:copy>
</xsl:template>
Regards,
Ragulf Pickaxe :-)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








