Hi,
I have some XML Stuff & I want to trasform that XML file into HTML page( This HTML Page contains one html table and it consist of input XML file data)
Whats my require ment is my HTML table contains some data should like below
" <name>Gopi</name><age>24</age> "
while implementing this scenario with "xsl:copy-of " element it working but it displays like below
"Gopi24" instead of above one
Please find the example XML Code Below
XML Code:
Code:
<class>
<name>Gopi</name>
<age>24</age>
</class>
XSLT Code:
Code:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html><body><table border="1"><tr bgcolor="#9acd32"><th>Class Data</th></tr>
<tr><td><xsl:copy-of select="class"/></td></tr></table></body></html>
</xsl:template>
</xsl:stylesheet>
I Wonna result in HTML Page like it self "<name>Gopi</name><age>24</age>"
but if appears like "Gopi24"
Hope you understand my issue.
Thanks in Advance for ur valuable assistance.....