# HG changeset patch # User Patrick PIERRE <patrick.pierre@prismallia.fr> # Date 1308404473 -7200 # Node ID 00232027dbd63da63d28d3dd8c323e46b350ea32 # Parent c0f9e813c039ec39129a48961a93ffea04c36a38 Exemple complet d'une sélection diff -r c0f9e813c039 -r 00232027dbd6 Xml/Documents/torture_test.xml --- a/Xml/Documents/torture_test.xml sam. juin 18 15:40:14 2011 +0200 +++ b/Xml/Documents/torture_test.xml sam. juin 18 15:41:13 2011 +0200 @@ -123,8 +123,8 @@ <head> <title>METAR</title> </head> - <item><p>METAR LFPB 230900Z 13003KT CAVOK 18/10 Q1015 NOSIG=</p></item> - <item><p>METAR LFOR 230900Z 18003KT CAVOK 17/09 Q1015=</p></item> + <item>METAR LFPB 230900Z 13003KT CAVOK 18/10 Q1015 NOSIG=</item> + <item>METAR LFOR 230900Z 18003KT CAVOK 17/09 Q1015=</item> </list> </item> <item> @@ -132,8 +132,8 @@ <head> <title>TAF</title> </head> - <item><p>TAF LFOP 230800Z 230918 18005KT CAVOK BECMG 1416 24010KT BKN014 TEMPO 1618 RA BKN005=</p></item> - <item><p>TAF LFOT 230800Z 230918 23007KT CAVOK=</p></item> + <item>TAF LFOP 230800Z 230918 18005KT CAVOK BECMG 1416 24010KT BKN014 TEMPO 1618 RA BKN005=</item> + <item>TAF LFOT 230800Z 230918 23007KT CAVOK=</item> </list> </item> </list> diff -r c0f9e813c039 -r 00232027dbd6 Xml/Sets/composition.xml --- a/Xml/Sets/composition.xml sam. juin 18 15:40:14 2011 +0200 +++ b/Xml/Sets/composition.xml sam. juin 18 15:41:13 2011 +0200 @@ -13,8 +13,8 @@ <head> <title>Les événements</title> </head> - <file>centre_pompidou.xml</file> - <file>chasseurs.xml</file> + <file name="centre_pompidou.xml"/> + <file name="chasseurs.xml"/> </division> <!-- =========================== Brèves ============================= --> @@ -22,16 +22,16 @@ <head> <title>Les brèves</title> </head> - <file xslt="simplified_head.xsl">../Topics/portugal_ue.xml</file> + <file name="../Topics/portugal_ue.xml" xslt="simplified_head.xsl"/> </division> <!-- =========================== Photos ============================= --> - <division path="../Topics"> + <division> <head> - <title>Les photos légendées</title> + <title>Les photos avec légende</title> </head> - <division as="topic"> - <file xpath="topic/section">roi_belge.xml</file> + <division as="topic" path="../Topics"> + <file name="prince_belge.xml" xpath="topic/section"/> </division> </division> </division> diff -r c0f9e813c039 -r 00232027dbd6 Xml/Sets/selection.xml --- a/Xml/Sets/selection.xml sam. juin 18 15:40:14 2011 +0200 +++ b/Xml/Sets/selection.xml sam. juin 18 15:41:13 2011 +0200 @@ -1,39 +1,38 @@ <?xml version='1.0' encoding='utf-8'?> <!-- $Id$ --> <publiset version="1.0"> - <selection xml:id="selection"> - <division> + <!-- ============================ SÉLECTION 1 =========================== --> + <selection xml:id="selection1"> + <head> + <title>Première sélection</title> + <language xml:lang="fr"/> + </head> + <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~ Événements ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> + <division path="../Topics"> <head> - <title>Exemple de sélection de sujets</title> - <language xml:lang="fr"/> + <title>Les événements</title> </head> + <file name="centre_pompidou.xml">Un nouveau Centre Pompidou</file> + <file name="chasseurs.xml">Les chasseurs contestent la loi</file> <!-- <file>Publidoc/Xml/Sets/tree.xml</file> --> - <!-- ========================== Événements ========================== --> - <division path="../Topics"> - <head> - <title>Les événements</title> - </head> - <file>centre_pompidou.xml</file> - <file>chasseurs.xml</file> - </division> - - <!-- =========================== Brèves ============================= --> - <division> - <head> - <title>Les brèves</title> - </head> - <file>../Topics/portugal_ue.xml</file> - </division> - - <!-- =========================== Photos ============================= --> - <division path="../Topics"> - <head> - <title>Les photos avec légende</title> - </head> - <division> - <file xpath="topic/section">roi_belge.xml</file> - </division> - </division> + </division> + <!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Brèves ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --> + <division path="../Topics"> + <head> + <title>Les brèves</title> + </head> + <file name="portugal_ue.xml">Lisbonne, samedi 1<sup>er</sup></file> </division> </selection> + + <!-- ============================ SÉLECTION 2 =========================== --> + <selection xml:id="selection2"> + <head> + <title>Deuxième sélection</title> + <language xml:lang="fr"/> + </head> + <file name="../Topics/prince_belge.xml" + uri="../PrinceBelge/prince_belge.html">Prince Philippe</file> + <link uri="../TortureTest/torture_test.html">Torture test</link> + </selection> </publiset> diff -r c0f9e813c039 -r 00232027dbd6 Xml/Topics/Images/prince_belge.jpg Binary file Xml/Topics/Images/prince_belge.jpg has changed diff -r c0f9e813c039 -r 00232027dbd6 Xml/Topics/Images/roi_belge.jpg Binary file Xml/Topics/Images/roi_belge.jpg has changed diff -r c0f9e813c039 -r 00232027dbd6 Xml/Topics/prince_belge.xml --- /dev/null jeu. janv. 01 00:00:00 1970 +0000 +++ b/Xml/Topics/prince_belge.xml sam. juin 18 15:41:13 2011 +0200 @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Id$ --> +<publidoc version="1.0"> + <topic xml:id="prince_belge" type="photo"> + <head> + <title>Janvier 2000</title> + <language xml:lang="fr-FR"/> + <date value="2000-01"/> + <source type="book" id="9782843550362"> + <title>Chronique de l'année 2000</title> + <pagenumber value="8"/> + </source> + <source type="file" id="e8.tex"/> + </head> + + <section> + <media> + <image id="prince_belge"/> + <caption> + <p>Le 18, à Liège, le prince Philippe et son épouse, Mathilde, + prennent avec le sourire leur premier bain de foule : 15 000 + personnes les acclament.</p> + </caption> + </media> + </section> + </topic> +</publidoc> diff -r c0f9e813c039 -r 00232027dbd6 Xml/Topics/roi_belge.xml --- a/Xml/Topics/roi_belge.xml sam. juin 18 15:40:14 2011 +0200 +++ /dev/null jeu. janv. 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- $Id$ --> -<publidoc version="1.0"> - <topic xml:id="roi_belge" type="photo"> - <head> - <title>Janvier 2000</title> - <language xml:lang="fr-FR"/> - <date value="2000-01"/> - <source type="book" id="9782843550362"> - <title>Chronique de l'année 2000</title> - <pagenumber value="8"/> - </source> - <source type="file" id="e8.tex"/> - </head> - - <section> - <media> - <image id="roi_belge"/> - <caption> - <p>Le 18, à Liège, le prince Philippe et son épouse, Mathilde, - prennent avec le sourire leur premier bain de foule : 15 000 - personnes les acclament.</p> - </caption> - </media> - </section> - </topic> -</publidoc>