I am trying to transform XML to xHTML using XSLT.
After doing this I get a xmlns="" attribute in all HTML tags(<p>).
This is my part of my XSL file
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
<html xmlns="http://www.w3.org/1999/xhtml">
What might be the problem?
If you want all your result elements to be in the XHTML namespace
http://www.w3.org/1999/xhtmlthen you need to put that namespace declaration on thexsl:stylesheetelement so use