From 1fee33fc9f271c7118cc4de97eef02d18af8900a Mon Sep 17 00:00:00 2001 From: BenoitV Date: Mon, 12 Dec 2016 17:25:57 +0100 Subject: [PATCH] Rajout de la tranformation d'une Division et d'une Partie de Grain (Opale_to_Hdoc) --- opale_to_hdoc/README.md | 8 + opale_to_hdoc/xsl/opale_to_hdoc_regle2.xsl | 517 +++++++++++---------- 2 files changed, 282 insertions(+), 243 deletions(-) diff --git a/opale_to_hdoc/README.md b/opale_to_hdoc/README.md index 5d7b110..7590ec4 100644 --- a/opale_to_hdoc/README.md +++ b/opale_to_hdoc/README.md @@ -149,3 +149,11 @@ The opale_to_hdoc converter transcribes an Opale publication to a hdoc format. O The source code converter is available and can be completed in order to improve it and manage more Opale elements. + + +Modified by Benoit Villain (12/12/2016) +------------------ +Les divisions et les parties d'un grain n'étaient pas traitées... Contrairement à ce que mentionne le README... +J'ai donc apporté les modifications nécessaires pour que les divisions et les parties (récursives) soient bel et bien transformées en "section" hdoc. + + diff --git a/opale_to_hdoc/xsl/opale_to_hdoc_regle2.xsl b/opale_to_hdoc/xsl/opale_to_hdoc_regle2.xsl index 58af8a6..90eaa6e 100644 --- a/opale_to_hdoc/xsl/opale_to_hdoc_regle2.xsl +++ b/opale_to_hdoc/xsl/opale_to_hdoc_regle2.xsl @@ -1,32 +1,26 @@ - - + + - + - + RNGSchema="http://hdoc.crzt.fr/schemas/xhtml/hdoc1-xhtml.rng" type="xml" - + - + @@ -34,91 +28,120 @@ - + - + - - - + + + - + - -

+ +

+ +

- <xsl:value-of select="." /> + + <xsl:value-of select="."/> + -
+
+ +
- + -

+

+ +

- + - +
- +
- + - +
- +
- + + + - + - +
- +
- + - - + +
+
+ + + +
+ + + + + + + + + +
+ +
+
- +
- +
- + - - + + - - +
@@ -127,36 +150,39 @@
- -
+ +
- +
-
+
- +
- +
- - - + + - + + + +
-
+
- +
@@ -165,10 +191,10 @@
-
+
- +
@@ -178,10 +204,10 @@
-
+
- +
@@ -191,288 +217,293 @@
-
+
- + - + - + - +
- - - - + + + + + + +
- + - + - + {$name} - + - + - + - + - +
- - + +
- - + +
- - + +
- - + +
- - + +
- - + +
- - + +
- - + +
- - + +
- - + +
- +
- - + +
- - + +
- - + +
- + - + - + - - - - - -

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - -
-
- - - -
    - -
-
- - - - - -
  • - -
  • -
    - - - - - - - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - + + + + + +

    + +

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      + +
    +
    + + + +
      + +
    +
    + + + + + +
  • + +
  • +
    + + + + + + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + - +

    - +

    - - - + + + -- GitLab