diff --git a/.gitignore b/.gitignore index 5984c337aafcc3186908fe7d24aa8d496fc73c6f..0dcd0645d5a37ccd25d5cb9a09af3c86796ccde9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ */input/ */tmp/ -*/output/ \ No newline at end of file +*/output/ +*/result/ \ No newline at end of file diff --git a/wikipedia_to_hdoc/ant/wiki_to_hdoc_fetcher.ant b/wikipedia_to_hdoc/ant/wiki_to_hdoc_fetcher.ant index e6261f2f79f5fd791b5c2594e11459888548e43d..37a059a73b22df294a7c20ed928422facc47138a 100644 --- a/wikipedia_to_hdoc/ant/wiki_to_hdoc_fetcher.ant +++ b/wikipedia_to_hdoc/ant/wiki_to_hdoc_fetcher.ant @@ -9,15 +9,13 @@ - + - - - - - + + + @@ -32,11 +30,15 @@ - + + + + + ${myURL} @@ -83,6 +85,6 @@ - + diff --git a/wikipedia_to_hdoc/hdoc_to_opale/hdoc_to_opale.ant b/wikipedia_to_hdoc/hdoc_to_opale/hdoc_to_opale.ant index d213802418454841cfe31661dd64147da61bc588..26fd6402abce2bc1ea241b8b3dd552ac09771a19 100644 --- a/wikipedia_to_hdoc/hdoc_to_opale/hdoc_to_opale.ant +++ b/wikipedia_to_hdoc/hdoc_to_opale/hdoc_to_opale.ant @@ -51,7 +51,7 @@ diff --git a/wikipedia_to_hdoc/hdoc_to_opale/myantce.ant b/wikipedia_to_hdoc/hdoc_to_opale/myantce.ant index c29244df00fdeb90dadb4c2a377c7725b781679c..e8f0c014c46f619dc3dea58a49e2b08d7a7722b1 100644 --- a/wikipedia_to_hdoc/hdoc_to_opale/myantce.ant +++ b/wikipedia_to_hdoc/hdoc_to_opale/myantce.ant @@ -21,25 +21,28 @@ - - + - + - + - + + + + + diff --git a/wikipedia_to_hdoc/hdoc_to_opale/output/outdividedOutput.scar b/wikipedia_to_hdoc/hdoc_to_opale/output/outdividedOutput.scar index 613b0ceb68d3f8e56a9478ee5f940ac4f8fa48e4..664682551bf80e7aa5ba7d2bae3198010e1d0e92 100644 Binary files a/wikipedia_to_hdoc/hdoc_to_opale/output/outdividedOutput.scar and b/wikipedia_to_hdoc/hdoc_to_opale/output/outdividedOutput.scar differ diff --git a/wikipedia_to_hdoc/hdoc_to_opale/output/output.scar b/wikipedia_to_hdoc/hdoc_to_opale/output/output.scar index 38b86c5378973a1925f702eff0114bb7f4010ad4..a2c059e6a4330eb62276b4881af71fd0fd385dc3 100644 Binary files a/wikipedia_to_hdoc/hdoc_to_opale/output/output.scar and b/wikipedia_to_hdoc/hdoc_to_opale/output/output.scar differ diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/convertReferences.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/convertReferences.xml new file mode 100644 index 0000000000000000000000000000000000000000..ab224d3dfbf9afd9603ef3006e8e160534e6fb03 --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/convertReferences.xml @@ -0,0 +1,12 @@ + + + + + + + diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/META-INF/container.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/META-INF/container.xml new file mode 100644 index 0000000000000000000000000000000000000000..e342ea7c952cae700f4bf4d2ddc52bbfe5b909a8 --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/META-INF/container.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/__MACOSX/._META-INF b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/__MACOSX/._META-INF new file mode 100644 index 0000000000000000000000000000000000000000..233a4834383043df226407a156f86d78ef392957 Binary files /dev/null and b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/__MACOSX/._META-INF differ diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/__MACOSX/._content.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/__MACOSX/._content.xml new file mode 100644 index 0000000000000000000000000000000000000000..0c35c586e4e151509fce4d10829f4f69c44ef112 Binary files /dev/null and b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/__MACOSX/._content.xml differ diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/__MACOSX/._mimetype b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/__MACOSX/._mimetype new file mode 100644 index 0000000000000000000000000000000000000000..233a4834383043df226407a156f86d78ef392957 Binary files /dev/null and b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/__MACOSX/._mimetype differ diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/__MACOSX/META-INF/._container.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/__MACOSX/META-INF/._container.xml new file mode 100644 index 0000000000000000000000000000000000000000..233a4834383043df226407a156f86d78ef392957 Binary files /dev/null and b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/__MACOSX/META-INF/._container.xml differ diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/content.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/content.xml new file mode 100644 index 0000000000000000000000000000000000000000..66ace640bb0edd82e6542b408155d99437e72a41 --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/content.xml @@ -0,0 +1,21 @@ + + + + Constructeur — Wikipédia + + + + + +
+
+

Introduction

+
+
+

Le mot + constructeur peut avoir plusieurs significations : +

+
+
+ + \ No newline at end of file diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing1.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing1.xml new file mode 100644 index 0000000000000000000000000000000000000000..f245c854e3183a14bd0d7fb7fa9e0dc986252a63 --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing1.xml @@ -0,0 +1,9 @@ + + + + MaClasse obj; + ... +obj = new MaClasse(5, "bonjour"); + + + \ No newline at end of file diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing2.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing2.xml new file mode 100644 index 0000000000000000000000000000000000000000..3ee444e4bca1eec80596d4e0e3a55e27b486c3ff --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing2.xml @@ -0,0 +1,11 @@ + + + + String[] arguments = new String[10]; + // ou bien : +int[][] uneMatrice = new int[4][5]; + // ou encore : +int[][] quatreLignes = new int[4][]; + + + \ No newline at end of file diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing3.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing3.xml new file mode 100644 index 0000000000000000000000000000000000000000..cb87e98de42721f703316b731709c97c894979a4 --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing3.xml @@ -0,0 +1,23 @@ + + + + class Object +{ + public : + Object (); // Constructeur par défaut + Object (int n) : nombre(n){}; // Constructeur paramétrique + Object (const Object&); // Constructeur par recopie + ~Object (); // Destructeur + int nombre; +}; + +int main () +{ + Object obj, *p_obj; // Appel du constructeur par défaut pour obj + p_obj=new Object(27); // Appel du constructeur paramétrique pour créer un objet pour p_obj + Object obj2(obj); // Appel du constructeur par recopie pour obj2 + delete p_obj; // Appel du destructeur pour détruire l'objet contenu dans p_obj +} // Appel du destructeur pour obj et obj2 + + + \ No newline at end of file diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing4.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing4.xml new file mode 100644 index 0000000000000000000000000000000000000000..d3fd232fdc93ec4516a7efa72d16d5ec057f4338 --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing4.xml @@ -0,0 +1,23 @@ + + + + public class MaClasse +{ + private int a; + private string b; + + // Constructeur + public MaClasse() : this(42, "string") + { + } + + // Surcharge d'un constructeur + public MaClasse(int a, string b) + { + this.a = a; + this.b = b; + } +} + + + \ No newline at end of file diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing5.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing5.xml new file mode 100644 index 0000000000000000000000000000000000000000..313bca4f3aee17a8dd8303ee0e8dff6e5cb76120 --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing5.xml @@ -0,0 +1,8 @@ + + + + // Instanciation d'un objet à l'aide du constructeur +MaClasse c = new MyClass(42, "string"); + + + \ No newline at end of file diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing6.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing6.xml new file mode 100644 index 0000000000000000000000000000000000000000..edb6b626e09985c7cc5697d962ea790425d9b8a9 --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing6.xml @@ -0,0 +1,22 @@ + + + + public class MaClasse +{ + private static int _A; + + // Constructeur statique + static MaClasse() + { + _A = 32; + } + + // Constructeur standard + public MaClasse() + { + + } +} + + + \ No newline at end of file diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing7.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing7.xml new file mode 100644 index 0000000000000000000000000000000000000000..ddc56b3e281e79dfa29c56bd75f4e6312c1fc35c --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/listing/listing7.xml @@ -0,0 +1,10 @@ + + + + // Instanciation d'un objet à l'aide du constructeur +// juste avant l'instanciation +// Le constructeur statique est exécuté, _A prend la valeur 32 +MaClasse c = new MaClasse(); + + + \ No newline at end of file diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/mimetype b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/mimetype new file mode 100644 index 0000000000000000000000000000000000000000..ebda1c400b8705155e2254996113030590fd8dae --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedHdoc/mimetype @@ -0,0 +1 @@ +application/x-hdoc+zip \ No newline at end of file diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedOpale/.wspmeta b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedOpale/.wspmeta new file mode 100644 index 0000000000000000000000000000000000000000..ddcf2a7f627f7a6cca70d90949eb761ee28a6ae9 --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedOpale/.wspmeta @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedOpale/main.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedOpale/main.xml new file mode 100644 index 0000000000000000000000000000000000000000..a138dbaa0d37bdb2da7a4911816654b378794e71 --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedOpale/main.xml @@ -0,0 +1,35 @@ + + + + + Constructeur — Wikipédia + + + + + + + + Wikipedia + + + + + + + + + + Le mot + constructeur peut avoir plusieurs significations : + + + + + + + diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedOpaleDivided/.wspmeta b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedOpaleDivided/.wspmeta new file mode 100644 index 0000000000000000000000000000000000000000..ddcf2a7f627f7a6cca70d90949eb761ee28a6ae9 --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedOpaleDivided/.wspmeta @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedOpaleDivided/main.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedOpaleDivided/main.xml new file mode 100644 index 0000000000000000000000000000000000000000..a138dbaa0d37bdb2da7a4911816654b378794e71 --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/decompressedOpaleDivided/main.xml @@ -0,0 +1,35 @@ + + + + + Constructeur — Wikipédia + + + + + + + + Wikipedia + + + + + + + + + + Le mot + constructeur peut avoir plusieurs significations : + + + + + + + diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/exportUnits.ant b/wikipedia_to_hdoc/hdoc_to_opale/tmp/exportUnits.ant new file mode 100644 index 0000000000000000000000000000000000000000..b07c34490d0442c3a91f27d6311da87d14249102 --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/exportUnits.ant @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/generateContentPath.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/generateContentPath.xml new file mode 100644 index 0000000000000000000000000000000000000000..61f85638180f5b35315be4fd9b1851530c76193f --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/generateContentPath.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/moveRessourceFiles.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/moveRessourceFiles.xml new file mode 100644 index 0000000000000000000000000000000000000000..d6b8a9b330068c557f1059b91fc9c2dc0b41a2dc --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/moveRessourceFiles.xml @@ -0,0 +1,8 @@ + + + + + diff --git a/wikipedia_to_hdoc/hdoc_to_opale/tmp/outputWithCourseUcIds.xml b/wikipedia_to_hdoc/hdoc_to_opale/tmp/outputWithCourseUcIds.xml new file mode 100644 index 0000000000000000000000000000000000000000..a138dbaa0d37bdb2da7a4911816654b378794e71 --- /dev/null +++ b/wikipedia_to_hdoc/hdoc_to_opale/tmp/outputWithCourseUcIds.xml @@ -0,0 +1,35 @@ + + + + + Constructeur — Wikipédia + + + + + + + + Wikipedia + + + + + + + + + + Le mot + constructeur peut avoir plusieurs significations : + + + + + + + diff --git a/wikipedia_to_hdoc/result/source/listing/listing1.txt b/wikipedia_to_hdoc/hdoc_to_opale/xsl/listing/listing1.txt similarity index 100% rename from wikipedia_to_hdoc/result/source/listing/listing1.txt rename to wikipedia_to_hdoc/hdoc_to_opale/xsl/listing/listing1.txt diff --git a/wikipedia_to_hdoc/result/source/listing/listing2.txt b/wikipedia_to_hdoc/hdoc_to_opale/xsl/listing/listing2.txt similarity index 100% rename from wikipedia_to_hdoc/result/source/listing/listing2.txt rename to wikipedia_to_hdoc/hdoc_to_opale/xsl/listing/listing2.txt diff --git a/wikipedia_to_hdoc/result/source/listing/listing3.txt b/wikipedia_to_hdoc/hdoc_to_opale/xsl/listing/listing3.txt similarity index 100% rename from wikipedia_to_hdoc/result/source/listing/listing3.txt rename to wikipedia_to_hdoc/hdoc_to_opale/xsl/listing/listing3.txt diff --git a/wikipedia_to_hdoc/result/source/listing/listing4.txt b/wikipedia_to_hdoc/hdoc_to_opale/xsl/listing/listing4.txt similarity index 100% rename from wikipedia_to_hdoc/result/source/listing/listing4.txt rename to wikipedia_to_hdoc/hdoc_to_opale/xsl/listing/listing4.txt diff --git a/wikipedia_to_hdoc/result/source/listing/listing5.txt b/wikipedia_to_hdoc/hdoc_to_opale/xsl/listing/listing5.txt similarity index 100% rename from wikipedia_to_hdoc/result/source/listing/listing5.txt rename to wikipedia_to_hdoc/hdoc_to_opale/xsl/listing/listing5.txt diff --git a/wikipedia_to_hdoc/result/source/listing/listing6.txt b/wikipedia_to_hdoc/hdoc_to_opale/xsl/listing/listing6.txt similarity index 100% rename from wikipedia_to_hdoc/result/source/listing/listing6.txt rename to wikipedia_to_hdoc/hdoc_to_opale/xsl/listing/listing6.txt diff --git a/wikipedia_to_hdoc/result/source/listing/listing7.txt b/wikipedia_to_hdoc/hdoc_to_opale/xsl/listing/listing7.txt similarity index 100% rename from wikipedia_to_hdoc/result/source/listing/listing7.txt rename to wikipedia_to_hdoc/hdoc_to_opale/xsl/listing/listing7.txt diff --git a/wikipedia_to_hdoc/hdoc_to_opale/xsl/prepareCourseUcCopies.xsl b/wikipedia_to_hdoc/hdoc_to_opale/xsl/prepareCourseUcCopies.xsl index ba2f41862dc78d0fafd63b5d04b1fc4ae3d166b1..1767769edc366de43a5c90db334029098359f167 100644 --- a/wikipedia_to_hdoc/hdoc_to_opale/xsl/prepareCourseUcCopies.xsl +++ b/wikipedia_to_hdoc/hdoc_to_opale/xsl/prepareCourseUcCopies.xsl @@ -42,7 +42,7 @@ - + diff --git a/wikipedia_to_hdoc/hdoc_to_opale/xsl/transformation2.xsl b/wikipedia_to_hdoc/hdoc_to_opale/xsl/transformation2.xsl index 735a928a36840d39a5a5cb8a2e996e3192483c9b..bea316dc997866987b0a33c9273857d81649694c 100644 --- a/wikipedia_to_hdoc/hdoc_to_opale/xsl/transformation2.xsl +++ b/wikipedia_to_hdoc/hdoc_to_opale/xsl/transformation2.xsl @@ -1,11 +1,13 @@  @@ -568,6 +570,34 @@ + + + + + + + + + + + + + + + + + + + diff --git a/wikipedia_to_hdoc/result/info/info.hdoc b/wikipedia_to_hdoc/result/info/info.hdoc index 0c773edf837990ac4436b31d448b001c6c3a5bbd..3018cf0f037b160f7c6dfec26f6580ea9bec0566 100644 Binary files a/wikipedia_to_hdoc/result/info/info.hdoc and b/wikipedia_to_hdoc/result/info/info.hdoc differ diff --git a/wikipedia_to_hdoc/result/info/outdividedOutput.scar b/wikipedia_to_hdoc/result/info/outdividedOutput.scar index 3f93a6f6079469d42dd67efb899c370f0b6e9703..97e352dc2ce818f6e3e04933157632de72858c97 100644 Binary files a/wikipedia_to_hdoc/result/info/outdividedOutput.scar and b/wikipedia_to_hdoc/result/info/outdividedOutput.scar differ diff --git a/wikipedia_to_hdoc/result/info/output.scar b/wikipedia_to_hdoc/result/info/output.scar index 4d4d372db360e23ad3557af4d21c06d375d43e09..9a8fa17ff9e38c9236eed9c322b0fc07b971012d 100644 Binary files a/wikipedia_to_hdoc/result/info/output.scar and b/wikipedia_to_hdoc/result/info/output.scar differ diff --git a/wikipedia_to_hdoc/result/source/outdividedOutput.scar b/wikipedia_to_hdoc/result/source/outdividedOutput.scar index c1b25a2bd64e3b1b2be8660e3a0c316ac249a868..a1d81410bfeadd310a1db3e6b10592f165504454 100644 Binary files a/wikipedia_to_hdoc/result/source/outdividedOutput.scar and b/wikipedia_to_hdoc/result/source/outdividedOutput.scar differ diff --git a/wikipedia_to_hdoc/result/source/output.scar b/wikipedia_to_hdoc/result/source/output.scar index 17396555d6d9c8a9ea6f824b2c15a7fad9ce4336..7e3f2df93531f8ac40e08cf1090ae9a6bf3870fa 100644 Binary files a/wikipedia_to_hdoc/result/source/output.scar and b/wikipedia_to_hdoc/result/source/output.scar differ diff --git a/wikipedia_to_hdoc/result/source/source.hdoc b/wikipedia_to_hdoc/result/source/source.hdoc index 4c7abfd7f4469506a6d695e7139a1eb7c5273377..cdfef89f769582a017584571b660fc6df5f5ec82 100644 Binary files a/wikipedia_to_hdoc/result/source/source.hdoc and b/wikipedia_to_hdoc/result/source/source.hdoc differ diff --git a/wikipedia_to_hdoc/result/source/source.html b/wikipedia_to_hdoc/result/source/source.html index 3ba8b9e93743799bbd2534d65ff000a921e0fc8c..48a11902fddc5bdecc3876c0365493581bd2c9b3 100644 --- a/wikipedia_to_hdoc/result/source/source.html +++ b/wikipedia_to_hdoc/result/source/source.html @@ -1,5 +1,5 @@ - + Constructeur (programmation) — Wikipédia @@ -46,12 +46,12 @@

Pour créer un nouvel objet, le mot-clé new doit être suivi d'une méthode qui soit un constructeur. Par exemple, on pourra avoir :

- +

si toutefois la classe MaClasse a un constructeur qui possède deux paramètres : un entier et une chaîne de caractères.

Pour créer un nouveau tableau, on peut par exemple écrire :

- +
@@ -65,7 +65,7 @@ du mot-clé new. Le constructeur peut utiliser la syntaxe constructeur(argument) : variable(argument) pour initialiser les variables.

- +
@@ -76,8 +76,8 @@

Exemple de constructeur en C# :

- - + +

Il existe par ailleurs en C# des constructeurs statiques, qui permettent d'initialiser une donnée statique et d'effectuer une action particulière devant être effectuée une seule fois. Les constructeurs statiques sont appelés implicitement @@ -85,8 +85,8 @@ déclenche l'exécution du constructeur statique.

Exemple d'utilisation d'un constructeur statique :

- - + +
diff --git a/wikipedia_to_hdoc/result/source/source.scar b/wikipedia_to_hdoc/result/source/source.scar deleted file mode 100644 index 76d5dbff732d0b3d3e48ba825230752264ecb31b..0000000000000000000000000000000000000000 Binary files a/wikipedia_to_hdoc/result/source/source.scar and /dev/null differ diff --git a/wikipedia_to_hdoc/result/source/source_divided.scar b/wikipedia_to_hdoc/result/source/source_divided.scar deleted file mode 100644 index 69c892b43d20e362b30b7871c1989e7056759033..0000000000000000000000000000000000000000 Binary files a/wikipedia_to_hdoc/result/source/source_divided.scar and /dev/null differ diff --git a/wikipedia_to_hdoc/xslt/wiki_to_hdoc.xsl b/wikipedia_to_hdoc/xslt/wiki_to_hdoc.xsl index 3b3a27e4ff2483495c37ff097e4703022bca9a1e..0f6c18c521fa181f6804a16da30802c074a8ef65 100644 --- a/wikipedia_to_hdoc/xslt/wiki_to_hdoc.xsl +++ b/wikipedia_to_hdoc/xslt/wiki_to_hdoc.xsl @@ -1,12 +1,14 @@ - + + @@ -239,23 +241,65 @@ - + - - - - + + + + + + + + + + + + + + + + + + + + + +<sc:item xmlns:sc="http://www.utc.fr/ics/scenari/v3/core"> + <op:code xmlns:sp="http://www.utc.fr/ics/scenari/v3/primitive" xmlns:op="utc.fr:ics/opale3"> + <sc:code mimeType="text/plain"> + + </sc:code> + </op:code> +</sc:item> + + + + + + + + + + + + + + + + + +