P96 Etats
P96 Bébés
P96 Infirmières
P96-Cat-1
P96-Cat-2
 
Thème 1
Thème 2
Thème 3
Thème 4
Thème 5
Sommaire
Thème 6
Thème 7
Thème 8
Thème 9
Thème 10
 


Exemples de ressources XML

 
DTDs et instances de document

 
  Document de type roman

<?xml version="1.0" standalone="yes"?>
<document>
<salutation>Bonjour monde !</salutation>
</document>

Bulletin météorologique

<!-- AuthorName = "Sf" -->
<!-- Copyright = "2000" -->
<!-- Description="Exemple de bulletion meteorologique" -->
<!ELEMENT METEO ( REGION )+>
<!ELEMENT REGION ( VILLE )+>
<!ATTLIST REGION NAME CDATA #REQUIRED>
<!ELEMENT VILLE ( CIEL, MATIN, APRESMIDI, PCDATA? )>
<!ATTLIST VILLE NAME CDATA #REQUIRED>
<!ELEMENT CIEL EMPTY>
<!ATTLIST CIEL VALUE ( ENSOLEILLE | PARTIELLEMENT ENSOLEILLE | PARTIELLEMENT COUVERT | COUVERT | PLUIE | NEIGE ) #REQUIRED>
<!ELEMENT MATIN EMPTY>
<!ATTLIST MATIN C CDATA #REQUIRED>
<!ELEMENT APRESMIDI EMPTY>
<!ATTLIST APRESMIDI C CDATA #REQUIRED>

<?xml version="1.0"?>
<!DOCTYPE METEO SYSTEM "METEO.DTD">
<METEO>
<REGION NAME="ILE DE FRANCE">
<VILLE NAME="PARIS">
<CIEL VALUE="ENSOLEILLE"/>
<MATIN C="10"/>
<APRESMIDI C="18" />
Belle journée </VILLE>
<VILLE NAME="PONTOISE">
<CIEL VALUE="ENSOLEILLE"/>
<MATIN C="6"/>
<APRESMIDI C="17"/>
Journée ensoleillée, mais fraîcheur matinale. </VILLE>
</REGION>
<REGION NAME="PACA">
<VILLE NAME="MARSEILLE">
<CIEL VALUE="PLUIE"/>
<MATIN C="13"/>
<APRESMIDI C="23"/>
Température douce avec pluie intermittente </VILLE>
<VILLE NAME="CANNES">
<CIEL VALUE="PARTIELLEMENT ENSOLEILLE"/>
<MATIN C="14"/>
<APRESMIDI C="25"/>
Journée lourde avec de rares apparitions du soleil </VILLE>
</REGION>
</METEO>


  Document de type memo

<!-- Ceci est la DTD utilisable pour baliser les memos en SGML -->
<!ELEMENT memo -- ((auteur & (date?) & sujet & dest & (cc?)), corps)>
<!ATTLIST memo statut (conf | pub) pub>
<!ELEMENT (dest | cc) -- (nom+)>
<!ELEMENT corps -- (par*)>
<!ELEMENT (auteur | date | sujet | nom | par) -- (#PCDATA)>

<!DOCTYPE memo SYSTEM "memo.dtd">
<memo statut="conf">
<auteur>
Serge Fleury</auteur>
<dest>
<nom>
André Salem</nom>
<nom>
Claire Beyssade</nom>
</dest>
<sujet>
Cours SLFE6</sujet>
<corps>
<par>
Veuillez noter que le cours SLFE6 sur les documents électronique aura bel et bien lieu au mois de mai 2000</par>
<par>
S'il y avait des changements de votre côté, veuillez m'en aviser dans les plus brefs délais.</par>
</corps>
</memo>


  Petit manuel XML au format XML (i.e. lisible dans un lecteur idoine comme IE 5)


  Un texte de Ionesco au format XML (i.e. lisible dans un lecteur idoine comme IE 5)


  Pièces de Shakespeare (i.e. lisible dans un lecteur idoine comme IE 5)
  • Extrait de la présentation : "This is shaksper.200, a set of the plays of William Shakespeare marked up for electronic publication. The set began as ASCII files put into the public domain by Moby Lexical Tools in 1992. They were marked up in 1992 as a beginner's exercise in SGML DTD and stylesheet design (originally using the DynaText proprietary stylesheet language) and in 1996 were released along with a companion set of publicly available religious texts as the earliest examples of real documents marked up in (early) XML. The current distribution conforms to the XML 1.0 Recommendation released February 8, 1998." /.../ While the text has been in the public domain since 1992, the status of the markup hasn't been clear. For purposes of legal simplicity (I think), I'm now asserting copyright over the markup to discourage the circulation of variant versions while still allowing free distribution. Each play now includes the following notice:
    • ASCII text placed in the public domain by Moby Lexical Tools, 1992. SGML markup by Jon Bosak, 1992-1994. XML version by Jon Bosak, 1996-1999. The XML markup in this version is Copyright © 1999 Jon Bosak. This work may freely be distributed on condition that it not be modified or altered in any way.
  • Index et notes de l'auteur