Bonjour
Lors d'un transformation d'un XML en XHTML par une feuille XSLT il y a des attribut xmlns="" qui s'ajoute automatique.
Cela me créer une erreur lors de la validation XHTML strict sur la balise div inclu dans une fonction
	
	 <div xmlns="" id="heading">
 Le message d'erreur concerne namespace mais je ne comprend pas bien comment résoudre ce problème
Voici la feuille XSLT 
	
	1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
   |  
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"  <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:output method="xml" indent="yes"  omit-xml-declaration="yes" encoding="ISO-8859-1"
    doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
 
 <xsl:strip-space elements="*"/>
  <xsl:template match="/">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
        <link rel="stylesheet" type="text/css" href="css/default/report.css" media="screen"/>
        <title>
          <xsl:value-of select="//report/title"/>
        </title>
      </head>
      <body>
        <div id="main">
          <xsl:call-template name="header"/>
        </div>
      </body>
    </html>
  </xsl:template> | 
 Et la fonction header 
	
	1 2 3 4 5 6 7
   |  
   <xsl:template name="header">
        <div id="heading">
            <xsl:call-template name="logo"/>
            <xsl:call-template name="adress"/>
        </div>
    </xsl:template> | 
 
						
					
Partager