Skip to content
Permalink
bd204a5785
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
64 lines (59 sloc) 2.48 KB
<?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="webdesign_url" as="xs:string" select="'/webdesign_platform'"/>
<xsl:param name="publ_static_url" as="xs:string" select="'/static'"/>
<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:param name="platform_name" as="xs:string" select="'dummy-platform'"/>
<xsl:param name="platform_uri" as="xs:string" select="'http://dummy-platform.com'"/>
<xsl:param name="aux_uri" as="xs:string" select="../../../data/aux"/>
<xsl:output method="html" encoding="UTF-8"/>
<xsl:include href="tei2html_chapter_utils.xsl"/>
<xsl:include href="utils/html_container.xsl"/>
<xsl:include href="utils/html_inline.xsl"/>
<xsl:include href="utils/common.xsl"/>
<xsl:include href="utils/print.xsl"/>
<xsl:include href="utils/render.xsl"/>
<xsl:include href="utils/numbering.xsl"/>
<xsl:include href="utils/index.xsl"/>
<xsl:template match="/">
<xsl:variable name="indices" as="element(eoa:index)*">
<xsl:variable name="ctxt" select="."/>
<xsl:for-each select="$index_types">
<xsl:variable name="index_type" as="xs:string" select="."/>
<xsl:for-each select="$ctxt">
<xsl:call-template name="create_index">
<xsl:with-param name="indextype" select="$index_type"/>
</xsl:call-template>
</xsl:for-each>
</xsl:for-each>
</xsl:variable>
<xsl:for-each select="(//tei:div[@type='chapter'])[position() = $chapter_nr]">
<xsl:variable name="heading">
<xsl:for-each select="tei:head">
<xsl:call-template name="render_heading"/>
</xsl:for-each>
</xsl:variable>
<xsl:sequence select="eoa:info(concat('printing chapter ', $chapter_nr, '. head: ', $heading))"/>
<xsl:call-template name="render_chapter">
<xsl:with-param name="webdesign_url" select="$webdesign_url"/>
<xsl:with-param name="publ_static_url" select="$publ_static_url"/>
<xsl:with-param name="nav_items" as="element(eoa:entry)*" select="$nav_items"/>
<xsl:with-param name="indices" as="element(eoa:index)*" select="$indices"/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>