From 97a0d1ef1d0b5b23844475aab79fe328026fbb51 Mon Sep 17 00:00:00 2001
From: zeterberg <zeterberg@ug-sub-5170.sub.uni-goettingen.de>
Date: Mon, 4 Mar 2024 15:58:23 +0100
Subject: [PATCH] fix(edxml2html): remove Kol-heading

---
 .gitignore                                    |  5 ++-
 .../edxml2html/libs/html-facsimile.lib.xsl    |  8 -----
 scenarios/xslt/edxml2html/philology2html.xsl  |  5 +--
 scenarios/xslt/edxml2html/samples/.gitkeep    |  0
 .../xslt/edxml2html/transcription2html.xsl    | 32 +++++++++----------
 5 files changed, 20 insertions(+), 30 deletions(-)
 create mode 100644 scenarios/xslt/edxml2html/samples/.gitkeep

diff --git a/.gitignore b/.gitignore
index b44d0d8..af9bff2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,4 @@
-/misc
\ No newline at end of file
+/misc
+/scenarios/xslt/edxml2html/samples/*
+
+!/**/.gitkeep
\ No newline at end of file
diff --git a/scenarios/xslt/edxml2html/libs/html-facsimile.lib.xsl b/scenarios/xslt/edxml2html/libs/html-facsimile.lib.xsl
index d8e6c56..39527a4 100644
--- a/scenarios/xslt/edxml2html/libs/html-facsimile.lib.xsl
+++ b/scenarios/xslt/edxml2html/libs/html-facsimile.lib.xsl
@@ -22,18 +22,10 @@
     
     <xsl:template match="column">
         <xsl:variable name="nr" select="if(@n) then(@n) else(count(preceding::column)+1)"/>
-        <xsl:variable name="roman-nr">
-            <xsl:number value="$nr" format="I"/>
-        </xsl:variable>
         <xsl:variable name="id" select="if(@xml:id) then (@xml:id) else ('colu_'||generate-id(.))"/>
         <div class="column" 
             id="{$id}"
             data-n="{$nr}">
-            <h2 class="head">
-                <a href="#{$id}" class="column-anchor">
-                    Col. <span class="col-nr" data-n="{$nr}" data-roman-n="{$roman-nr}"><!--<xsl:value-of select="$nr"/>--></span>
-                </a>
-            </h2>
             <xsl:apply-templates />
         </div>
     </xsl:template>
diff --git a/scenarios/xslt/edxml2html/philology2html.xsl b/scenarios/xslt/edxml2html/philology2html.xsl
index 6b56911..660ef6d 100644
--- a/scenarios/xslt/edxml2html/philology2html.xsl
+++ b/scenarios/xslt/edxml2html/philology2html.xsl
@@ -16,10 +16,7 @@
             <head>
                 <meta charset="utf-8"/>
                 <title><xsl:apply-templates select="edxml/header/title"/></title>
-                <!--<style>
-                    <xsl:copy-of select="unparsed-text('styles.css')"></xsl:copy-of>
-                </style>-->
-                <link rel="stylesheet" href="/home/sikora/ownCloud/job/projekte/sub_DigiEdi/sub_eupt/xml samples/scenarios/xslt/edxml2html/css/styles.css"></link> 
+                <link rel="stylesheet" href="../css/styles.css"/> <!-- For files in /scenarios/xslt/edxml2html/samples --> 
             </head>
             <body>
                 <xsl:apply-templates select="edxml/text"/>
diff --git a/scenarios/xslt/edxml2html/samples/.gitkeep b/scenarios/xslt/edxml2html/samples/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/scenarios/xslt/edxml2html/transcription2html.xsl b/scenarios/xslt/edxml2html/transcription2html.xsl
index dd5aa25..06d71ac 100644
--- a/scenarios/xslt/edxml2html/transcription2html.xsl
+++ b/scenarios/xslt/edxml2html/transcription2html.xsl
@@ -1,36 +1,34 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-    xmlns:xs="http://www.w3.org/2001/XMLSchema"
-    xmlns:tei="http://www.tei-c.org/ns/1.0"
-    xmlns="http://www.w3.org/1999/xhtml"
-    exclude-result-prefixes="xs"
-    version="2.0" xpath-default-namespace="http://sub.uni-goettingen.de/edxml#">
-    
+    xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tei="http://www.tei-c.org/ns/1.0"
+    xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xs" version="2.0"
+    xpath-default-namespace="http://sub.uni-goettingen.de/edxml#">
+
     <xsl:include href="libs/html-facsimile.lib.xsl"/>
     <xsl:include href="libs/html-tei.lib.xsl"/>
-    
+
     <xsl:output indent="yes"/>
-    
+
     <xsl:template match="/">
         <html lang="en-US">
             <head>
                 <meta charset="utf-8"/>
-                <title><xsl:apply-templates select="edxml/header/title"/></title>
-                <!--<style>
-                    <xsl:copy-of select="unparsed-text('css/styles.css')"></xsl:copy-of>
-                </style>-->
-                <link rel="stylesheet" href="/home/sikora/ownCloud/job/projekte/sub_DigiEdi/sub_eupt/xml samples/scenarios/xslt/edxml2html/css/styles.css"></link> 
+                <title>
+                    <xsl:apply-templates select="edxml/header/title"/>
+                </title>
+                <link rel="stylesheet" href="../css/styles.css"/>
+                <!-- For files in /scenarios/xslt/edxml2html/samples -->
             </head>
             <body>
                 <xsl:apply-templates select="edxml/text"/>
             </body>
         </html>
     </xsl:template>
-    
+
     <xsl:template match="header"/>
-    
+
     <xsl:template match="text">
         <xsl:apply-templates select="facsimile"/>
     </xsl:template>
-    
-</xsl:stylesheet>
\ No newline at end of file
+
+</xsl:stylesheet>
-- 
GitLab