Hi Mohan,I do find <xsl
utput method="xml" encoding="utf-8" indent="yes"….. line in your XSL file declaration and the code in it tries to create a new xml.To let you know the xsd itself creates a xml file which in turn can be used to create the required output. Check out with the below xsl :
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:template match="/">
<html>
<head>Test Page</head>
<body>
<table cellspacing="0" cellpadding="0" border="0">
<tr><th>Name</th><th>City</th></tr>
<tr><td><xsl:value-of select="sample/name"/></td><td><xsl:value-of select="sample/city"/></td></tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
If you are in need of multiple values for Name & City then you may need to change the xsd so that it has an element which is of type maxOccurs="unbounded" and using <xsl:for-each> tag you may iterate over all the items.Hope so that helps you out.Thanks,