-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.molgen.mpg.de/EditionOpenAcce…
- Loading branch information
Showing
11 changed files
with
1,858 additions
and
1,490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0"?> | ||
<xsl:stylesheet | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:tei="http://www.tei-c.org/ns/1.0" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:eoa="http://www.edition-open-access.de/ns" | ||
exclude-result-prefixes="xs tei eoa" | ||
version="2.0" | ||
> | ||
<xsl:output | ||
method="html" | ||
encoding="UTF-8" | ||
indent="yes" | ||
/> | ||
|
||
<xsl:include href="tei2html_index_utils.xsl"/> | ||
<xsl:include href="tei2html_chapter_utils.xsl"/> | ||
<xsl:include href="utils/html_rules.xsl"/> | ||
<xsl:include href="utils/common.xsl"/> | ||
|
||
<xsl:param name="output_dir" as="xs:string" select="'.'"/> | ||
<xsl:param name="static_dir" as="xs:string" select="'static'"/> | ||
<xsl:param name="logo_dir" as="xs:string" select="concat($static_dir, '/assets/images')"/> | ||
<xsl:param name="nav_items" as="element(eoa:entry)*"> | ||
<eoa:entry active="1"> | ||
<eoa:link> | ||
<xsl:text>#</xsl:text> | ||
</eoa:link> | ||
<eoa:title>Publications</eoa:title> | ||
</eoa:entry> | ||
</xsl:param> | ||
|
||
<!-- | ||
<xsl:param name="verbosity" as="xs:integer" required="no" select="0"/> | ||
--> | ||
|
||
<xsl:template match="/"> | ||
<xsl:message> domain: <xsl:value-of select="$domain"/> </xsl:message> | ||
<xsl:variable name="output_subdir" as="xs:string"> | ||
<xsl:value-of select="concat($output_dir, '/', $series, '/', $publication_number)"/> | ||
</xsl:variable> | ||
<xsl:result-document | ||
method="html" | ||
encoding="UTF-8" | ||
include-content-type="yes" | ||
indent="yes" | ||
href="{concat($output_subdir, '/index.html')}" | ||
> | ||
<xsl:call-template name="writeindexfile"> | ||
<xsl:with-param name="static_dir" select="concat('../../', $static_dir)"/> | ||
<xsl:with-param name="logo_dir" select="concat('../../', $logo_dir)"/> | ||
<xsl:with-param name="nav_items" as="element(eoa:entry)*" select="$nav_items"/> | ||
</xsl:call-template> | ||
</xsl:result-document> | ||
<xsl:for-each select="//tei:div[@type='chapter']"> | ||
<xsl:result-document | ||
method="html" | ||
encoding="UTF-8" | ||
include-content-type="yes" | ||
indent="yes" | ||
href="{concat($output_subdir, '/', position(), '/index.html')}" | ||
> | ||
<xsl:call-template name="writechapterfile"> | ||
<xsl:with-param name="static_dir" select="concat('../../../', $static_dir)"/> | ||
<xsl:with-param name="logo_dir" select="concat('../../../', $logo_dir)"/> | ||
<xsl:with-param name="nav_items" as="element(eoa:entry)*" select="$nav_items"/> | ||
</xsl:call-template> | ||
</xsl:result-document> | ||
</xsl:for-each> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0"?> | ||
<xsl:stylesheet | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:tei="http://www.tei-c.org/ns/1.0" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:eoa="http://www.edition-open-access.de/ns" | ||
exclude-result-prefixes="xs tei eoa" | ||
version="2.0"> | ||
|
||
<xsl:param name="static_dir" as="xs:string" select="'static'"/> | ||
<xsl:param name="logo_dir" as="xs:string" select="concat($static_dir, '/assets/images')"/> | ||
<xsl:param name="nav_items" as="element(eoa:entry)*"> | ||
<eoa:entry active="1"> | ||
<eoa:link> | ||
<xsl:text>#</xsl:text> | ||
</eoa:link> | ||
<eoa:title>Publications</eoa:title> | ||
</eoa:entry> | ||
</xsl:param> | ||
<xsl:param name="chapter_nr" as="xs:integer" required="1"/> | ||
|
||
<xsl:output method="html" encoding="UTF-8"/> | ||
|
||
<xsl:include href="utils/common.xsl"/> | ||
<xsl:include href="utils/html_rules.xsl"/> | ||
<xsl:include href="tei2html_chapter_utils.xsl"/> | ||
|
||
<xsl:template match="/"> | ||
<!-- | ||
<xsl:message> domain: <xsl:value-of select="$domain"/> </xsl:message> | ||
--> | ||
<xsl:for-each select="(//tei:div[@type='chapter'])[position() = $chapter_nr]"> | ||
<xsl:message>printing chapter <xsl:value-of select="$chapter_nr"/>. head: <xsl:value-of select="tei:head"/></xsl:message> | ||
<xsl:call-template name="writechapterfile"> | ||
<xsl:with-param name="static_dir" select="$static_dir"/> | ||
<xsl:with-param name="logo_dir" select="$logo_dir"/> | ||
<xsl:with-param name="nav_items" as="element(eoa:entry)*" select="$nav_items"/> | ||
</xsl:call-template> | ||
</xsl:for-each> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |
Oops, something went wrong.