witam
jak z wyjsciowego kodu xhtml usunac puste znaczniki xmlns="" ?
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" encoding="UTF-8" omit-xml-declaration="no" doctype-public="-//WAPFORUM//DTD XHTML Mobile 1.2//EN" doctype-system="http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd" cdata-section-elements="script" media-type="application/xhtml+xml" /> <xsl:include href="html_head.xsl" /> <xsl:include href="menu.xsl" /> <xsl:include href="header.xsl" /> <xsl:include href="footer.xsl" /> <xsl:template match="/"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <xsl:call-template name="html_head" /> </head> <body> <xsl:apply-templates select="root" /> </body> </html> </xsl:template> </xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="content/page_RP0.xsl" /> <xsl:template match="root"> <xsl:call-template name="header" /> <div id="main"> <xsl:apply-templates select="contents/content_page[@type = 'RP0']" /> </div> <xsl:call-template name="footer" /> </xsl:template> </xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template name="header"> <div id="header"> <img src="i/logo.gif" alt="logo" class="mobileLogo" width="218" height="36"/> </div> </xsl:template> </xsl:stylesheet>
<div id="header" xmlns="">.....
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:output method="xml" encoding="UTF-8" omit-xml-declaration="no" doctype-public="-//WAPFORUM//DTD XHTML Mobile 1.2//EN" doctype-system="http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd" cdata-section-elements="script" media-type="application/xhtml+xml" /> <xsl:include href="main_params.xsl" /> <xsl:include href="html_head.xsl" /> <xsl:include href="menu.xsl" /> <xsl:include href="header.xsl" /> <xsl:include href="footer.xsl" /> <xsl:template match="/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:element name="html" namespace="http://www.w3.org/1999/xhtml"> <xsl:element name="head"> <xsl:call-template name="html_head" /> </xsl:element> <xsl:element name="body"> <xsl:apply-templates select="root" /> </xsl:element> </xsl:element> </xsl:template> </xsl:stylesheet>
<?php ?>