diff --git a/.gitignore b/.gitignore index b44d0d81d963af7fceed9647c7e109847af3487c..af9bff292fdd04e30c460090ec74480c73574fed 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 d8e6c56e6b301338439918cf732e94619fceca8a..39527a4de2864fdf16e49a5dc269e31f88288123 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 6b569119f087adbf24061ed45b937bf8bbd299bf..660ef6d8a29bc204805397568afd9bc459b6fc16 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 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/scenarios/xslt/edxml2html/transcription2html.xsl b/scenarios/xslt/edxml2html/transcription2html.xsl index dd5aa255d40e323ee83a4aee8daabc76006eb472..06d71acdb19b9509434eca09deeeb38ae57cf84f 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>