CV

Un schéma de CV

Soit le schéma XML suivant (formalisme DTD) :

CTRL+C pour copier, CTRL+V pour coller
1
<!ELEMENT cv (nom, prenom, age?, rubrique+)>
2
<!ELEMENT nom (#PCDATA)>
3
<!ELEMENT prenom (#PCDATA)>
4
<!ELEMENT age (#PCDATA)>
5
<!ELEMENT rubrique (titre, contenu)>
6
<!ELEMENT contenu  (#PCDATA)>
7
<!ELEMENT titre (#PCDATA)>
<!ELEMENT cv (nom, prenom, age?, rubrique+)>
<!ELEMENT nom (#PCDATA)>
<!ELEMENT prenom (#PCDATA)>
<!ELEMENT age (#PCDATA)>
<!ELEMENT rubrique (titre, contenu)>
<!ELEMENT contenu  (#PCDATA)>
<!ELEMENT titre (#PCDATA)>

Question

Écrire un document XML valide par rapport à ce schéma avec au moins un élément age et deux rubriques.

Indice

Solution

Question

Écrire un document HTML cible d'une transformation XSLT de ce document.

Les nom, prénom et age seront en italique, les titres de rubriques seront en gras.

Indice

Solution

Question

Écrire le programme de transformation XSLT d'un fichier XML en fichier HTML.

Indice

Solution