The Extensible HyperText Markup Language (XHTML) est un langage de balisage ("mark up")
<balise> ....... le contenu de l'environnement </balise>
Voici un exemple d'environnement XHTML:
<h1>Titre principal</h1>
JUSTE: <h1><a href="./test.html">Votre titre</a></h1>
FAUX !! <h1><a href="./test.html">Votre titre</h1></a>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>document test </title>
<!-- Created by: D.K.S., 2002 -->
</head>
<body>
<h1>document test</h1>
Voici un test!
</body>
</html>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
xmlns="http://www.w3.org/1999/xhtml"
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="copy.xsl"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
Ensuite faire un fichier copy.xsl (accessible sur le même serveur!)
<stylesheet version="1.0"
xmlns="http://www.w3.org/1999/XSL/Transform">
<template match="/">
<copy-of select="."/>
</template>
</stylesheet>