Skip to content
Snippets Groups Projects
Commit faacd689 authored by Max-Ferdinand Zeterberg's avatar Max-Ferdinand Zeterberg
Browse files

Merge branch '14-correct-2-kol-i' into 'master'

Resolve "Correct: 2: Kol I..."

Closes #14

See merge request !5
parents e2ac33a9 97a0d1ef
No related branches found
No related tags found
1 merge request!5Resolve "Correct: 2: Kol I..."
/misc /misc
\ No newline at end of file /scenarios/xslt/edxml2html/samples/*
!/**/.gitkeep
\ No newline at end of file
...@@ -22,18 +22,10 @@ ...@@ -22,18 +22,10 @@
<xsl:template match="column"> <xsl:template match="column">
<xsl:variable name="nr" select="if(@n) then(@n) else(count(preceding::column)+1)"/> <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(.))"/> <xsl:variable name="id" select="if(@xml:id) then (@xml:id) else ('colu_'||generate-id(.))"/>
<div class="column" <div class="column"
id="{$id}" id="{$id}"
data-n="{$nr}"> 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 /> <xsl:apply-templates />
</div> </div>
</xsl:template> </xsl:template>
......
...@@ -16,10 +16,7 @@ ...@@ -16,10 +16,7 @@
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title><xsl:apply-templates select="edxml/header/title"/></title> <title><xsl:apply-templates select="edxml/header/title"/></title>
<!--<style> <link rel="stylesheet" href="../css/styles.css"/> <!-- For files in /scenarios/xslt/edxml2html/samples -->
<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>
</head> </head>
<body> <body>
<xsl:apply-templates select="edxml/text"/> <xsl:apply-templates select="edxml/text"/>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xs" version="2.0"
xmlns="http://www.w3.org/1999/xhtml" xpath-default-namespace="http://sub.uni-goettingen.de/edxml#">
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-facsimile.lib.xsl"/>
<xsl:include href="libs/html-tei.lib.xsl"/> <xsl:include href="libs/html-tei.lib.xsl"/>
<xsl:output indent="yes"/> <xsl:output indent="yes"/>
<xsl:template match="/"> <xsl:template match="/">
<html lang="en-US"> <html lang="en-US">
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title><xsl:apply-templates select="edxml/header/title"/></title> <title>
<!--<style> <xsl:apply-templates select="edxml/header/title"/>
<xsl:copy-of select="unparsed-text('css/styles.css')"></xsl:copy-of> </title>
</style>--> <link rel="stylesheet" href="../css/styles.css"/>
<link rel="stylesheet" href="/home/sikora/ownCloud/job/projekte/sub_DigiEdi/sub_eupt/xml samples/scenarios/xslt/edxml2html/css/styles.css"></link> <!-- For files in /scenarios/xslt/edxml2html/samples -->
</head> </head>
<body> <body>
<xsl:apply-templates select="edxml/text"/> <xsl:apply-templates select="edxml/text"/>
</body> </body>
</html> </html>
</xsl:template> </xsl:template>
<xsl:template match="header"/> <xsl:template match="header"/>
<xsl:template match="text"> <xsl:template match="text">
<xsl:apply-templates select="facsimile"/> <xsl:apply-templates select="facsimile"/>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment