I want to transform the given xml input using XSLT and I want to exclude the "xmlns" attribute of root element from the transformed output
my input xml is
<?xml version="1.0" encoding="ISO-8859-1"?>
<library xmlns="https://support.bridgerinsight.lexisnexis.com/downloads/xsd/4.2/CWLEntityExport.xsd">
<book>
<title>Programming in C</title>
<author>Balagurusamy</author>
<country>India</country>
<price>165</price>
<year>1998</year>
</book>
<book>
<title>Professional ASP.NET 4 in C# and VB</title>
<author>Bill Evjen, Scott Hanselman, Devin Rader</author>
<country>USA</country>
<price>580</price>
<year>2010</year>
</book>
<book>
<title>Professional Microsoft SQL Server 2008 Programming</title>
<author>Robert Vieira</author>
<country>USA</country>
<price>520</price>
<year>2009</year>
</book>
<book>
<title>Professional LINQ</title>
<author>Scott Klein</author>
<country>USA</country>
<price>425</price>
<year>2008</year>
</book>
</library>
and expected xml output after transformation using XSLT is as follows
<?xml version="1.0" encoding="UTF-8"?>
<BookList>
<Book>
<title>Programming in C</title>
<author>Balagurusamy</author>
<country>India</country>
</Book>
<Book>
<title>Professional ASP.NET 4 in C# and VB</title>
<author>Bill Evjen, Scott Hanselman, Devin Rader</author>
<country>USA</country>
</Book>
<Book>
<title>Professional Microsoft SQL Server 2008 Programming</title>
<author>Robert Vieira</author>
<country>USA</country>
</Book>
<Book>
<title>Professional LINQ</title>
<author>Scott Klein</author>
<country>USA</country>
</Book>
</BookList>
my xslt is
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:template match="/">
<BookList>
<xsl:for-each select="library/book">
<Book>
<title>
<xsl:value-of select="title"/>
</title>
<author>
<xsl:value-of select="author"/>
</author>
<country>
<xsl:value-of select="country" />
</country>
</Book>
</xsl:for-each>
</BookList>
</xsl:template>
</xsl:stylesheet>
what changes do i need to make in above XSLT to get the given expected output xml?