From 5e258281afb4c2884ac25a4e40b64f31cb789418 Mon Sep 17 00:00:00 2001 From: Bart Schuller Date: Wed, 9 Oct 2024 22:09:36 +0200 Subject: [PATCH 1/3] New op.xslt for converting op-xml to html Not finished by far, just enough for one test document. --- html/op.css | 43 ++++ op.xslt | 598 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 641 insertions(+) create mode 100644 html/op.css create mode 100644 op.xslt diff --git a/html/op.css b/html/op.css new file mode 100644 index 0000000..1c6550e --- /dev/null +++ b/html/op.css @@ -0,0 +1,43 @@ +.stuknummer { + display: block; +} + +ol.whitespace-small { + padding-left: 1em; +} + +ol.whitespace-small > li { + margin-left: 1em; + padding-left: 1.5em; +} + +ul.whitespace-small { + padding-left: 1em; +} + +ul.expliciet > li { + list-style-type: none; + padding-left: 2.5em; +} + +ul.whitespace-small > li > p.labeled { + margin-left: 2.5em; + left: -2.5em; +} + +p.labeled { + position: relative; +} + +ul.whitespace-small > li > p.labeled span.ol { + margin-left: -2.5em; + position: absolute; +} + +.wijziging > .artikel, .wijziging > .wijzig-divisie { + margin-left: 2em; +} + +.ondertekening { + font-style: italic; +} diff --git a/op.xslt b/op.xslt new file mode 100644 index 0000000..0b6fc10 --- /dev/null +++ b/op.xslt @@ -0,0 +1,598 @@ + + + + + + + + + + <xsl:apply-templates select="*" mode="title" /> + + + + + + +
+ +
+ + +
+ + + + +
+ +
+
+ + +

+ +

+
+ + + + + + +
+

+ +

+ + +
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
X Noot
+ +
+
+ + + + + + + + + + +

+ +

+
+ + +

+ +

+
+ + +
+ +
+
+ + +
+ + + + + + + + + + + + + +
    + + + + + + + + + + + +
+
+ +
    + +
+
+
+ +
+ + + +
+
+
+ + +
  • + +
  • +
    + + + + + + + + +

    + + + +

    +
    + + +
    + +
    +
    + + +
    + +
    +
    + + + + +
    + + + + + +
    +
    + + +
    + +
    +
    + + +
    + +
    +
    + + +

    + +

    +
    + + + + +

    + + + + + +

    +
    + + +

    + +

    +
    + + +

    + +

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + +

    +
    + + +

    + +

    +
    + + +

    + +

    +
    + + +

    + +

    +
    + + +

    + +

    +
    + + + + + + + + + +
    + +
    +
    + + + + + + + + + + + + +
      + + + + + + + + + + + +
    +
    + +
      + +
    +
    +
    +
    + + +
  • + +
  • +
    + + +
  • + +
  • +
    + + +

    + + +

    +
    + + + + + + +
  • + +
  • +
    + + +

    + + +

    +
    + + + + + + + + + + + + + +

    + +

    +
    + + + + + + + + + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    + +

    +
    + + + + + Unhandled element + + + + + + TODO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + a + + + + + + + + + + + A + + + + + + + + + + + + + + + + + + + No tokenize function available + + + +
    \ No newline at end of file From 3b787ac8675b04fbdfbd7a927788069690e53dd7 Mon Sep 17 00:00:00 2001 From: Bart Schuller Date: Sun, 3 Nov 2024 17:31:27 +0100 Subject: [PATCH 2/3] Add support for kamervragen --- op.xslt | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/op.xslt b/op.xslt index 0b6fc10..b8fc6b5 100644 --- a/op.xslt +++ b/op.xslt @@ -43,7 +43,7 @@ - +
    @@ -51,13 +51,32 @@
    + +
    + + +
    +
    + +
    +
    +
    +
    +

    - + +

    + +

    +
    + + @@ -131,7 +150,8 @@ + wijzig-lid|wijzig-divisie|wijziging|voorstel-sluiting|slotformulering| + vraag">
    @@ -284,7 +304,13 @@
    - + + + + + + + @@ -499,6 +525,12 @@

    + +

    + +

    +
    + From b324a4d1262d5fc86633752b664d189d13ecf958 Mon Sep 17 00:00:00 2001 From: Bart Schuller Date: Sun, 3 Nov 2024 19:48:57 +0100 Subject: [PATCH 3/3] Handle aanhangsels, aka kamervragen met antwoord --- op.xslt | 47 ++++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/op.xslt b/op.xslt index b8fc6b5..2e859e3 100644 --- a/op.xslt +++ b/op.xslt @@ -54,13 +54,7 @@
    - -
    -
    - -
    -
    +
    @@ -76,7 +70,7 @@
    - + @@ -88,13 +82,7 @@ - -
    -
    - -
    -
    + >
    @@ -120,15 +108,15 @@ - +
    X Noot
    - +
    - + @@ -136,7 +124,7 @@ - +

    @@ -151,7 +139,7 @@ + vraag|antwoord">
    @@ -469,6 +457,13 @@
    + +
    +
    + +
    +
    @@ -525,7 +520,7 @@

    - +

    @@ -612,6 +607,16 @@
    + + +
    +
    + +
    +
    +
    +