Bonjour,

je souhaite valider un fichier xhtml avec le schema xhtml1-strict.xsd.
Je ne trouve pas d'où viens l'erreur.

Mon fichier xhtml est de la forme :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="fr" lang="fr" xmlns="http://www.w3.org/1999/xhtml">
...
<html>
Ant me retourne l'erreur suivante :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
 
[schemavalidate] C:\Users\greg\xhtml1-strict.xsd:2:248: TargetNamespace.2
Expecting no namespace, but the schema document has a target namespace of 'http://www.w3.org/1999/xhtml'.
Merci pour vos idées