Le cahier des charges du projet est en ligne !
avec une proposition de réalisation
Othello.xml
Othello.html
Othello.fo
Othello.pdf
NN1.xml
- la DTD Nom_note1.dtd
xmllint --valid
leFichierXML
xmllint leFichierXML --dtdvalid leFichierDTD
http://validator.w3.org/
PUBLIC
(genre HTML
ou
XHTML)xmllint --shell
monFichier.xml
essai.php
jfp$ php essai.php NN1b.xml "/liste/eleve[@note
> 16]/@nom"
Maurice
Ernestine
Josette
Fini
jfp$ php essai.php NN1b.xml "/liste/eleve[@nom
=
'Luc']/@note"
12
Fini
demNote.php
jfp$ php demNote.php.txt Luc
12
Fini
jfp$ php demNote.php.txt Josette
19
Fini
jfp$ php demNote.php.txt Josiane
Fini
Josiane
ne figure pas dans la liste
...<html
xmlns="http://www.w3.org/1999/xhtml">
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<fo:root
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<grammar
xmlns="http://relaxng.org/ns/structure/1.0">
<rdf:RDF
xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<sparql
xmlns="http://www.w3.org/2005/sparql-results#">
xpath()
des
espaces de noms qui seront utilisés dans les expressions XPath,$doc->registerXPathNamespace('h',
'http://www.w3.org/1999/xhtml');
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:epita="http://epita/masters/international/"
xml:base="http://epita/masters/international/perso">
<rdf:Description rdf:about="#Toto">
<epita:note >12</epita:note>
</rdf:Description>
<rdf:Description rdf:about="#Tata">
<epita:note >13</epita:note>
</rdf:Description>
<rdf:Description rdf:about="#Tutu">
<epita:note >17</epita:note>
</rdf:Description>
<rdf:Description rdf:about="#Titi">
<epita:note >11</epita:note>
</rdf:Description>
</rdf:RDF>
http://pagesperso-systeme.lip6.fr/Jean-Francois.Perrot/inalco/XMLA/Cours2/XSLT/
Othello.xml
à Othello.html
grâce à la feuille de style Shak.xsl
xsltproc
:xsltproc la-feuille-de style.xsl la-source.xml >
le-résultat.html