
March 8th, 2013, 07:11 AM
|
|
Registered User
|
|
Join Date: Mar 2013
Posts: 10
Time spent in forums: 1 h 53 m 19 sec
Reputation Power: 0
|
|
|
Xsl template match="*" processing misunderstanding
I am new to xsl and I am not completely understanding the transformation process. When I have the template with match="*" I am expecting that each node in the xml will match this template. Can someone explain what I am missing in my understanding of the transformation process with my example below. I though I would have gotten something from each node in my transformation output. Thank you very much.
My sample xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<treasure>
<x>
<stuff>jjj</stuff>
</x>
</treasure>
My sample XSL:
Code:
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="*">
<xsl:copy/>
</xsl:template>
</xsl:stylesheet>
My transformation Result:
Code:
<?xml version="1.0" encoding="utf-16"?><treasure />
|