copy-of question.
the xml:
-----------------------------------------
<?xml version="1.0"?>
<?xml-stylesheet href="file:///c:/temp/test.xsl" type="text/xsl"?>
<employee>
<name>John Doe</name>
<department>Widget Sales</department>
<salary>62,000</salary>
</employee>
the xslt:
------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
Now i try to open the xml file in Mozilla Firefox. I thought that I will see:
<employee>
<name>John Doe</name>
<department>Widget Sales</department>
<salary>62,000</salary>
</employee>
However I only see:
John Doe
Widget Sales
62,000
So why didn't i see all the tags.
|