Showing:

Documentation
Used by
References
Included from
Source
Stylesheet header.xsl
Documentation

Description

TEI stylesheet dealing with elements from the header module, making HTML output.

This software is dual-licensed: 1. Distributed under a Creative Commons Attribution-ShareAlike 3.0 Unported License http://creativecommons.org/licenses/by-sa/3.0/ 2. http://www.opensource.org/licenses/BSD-2-Clause All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. This software is provided by the copyright holders and contributors "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright holder or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

Author: See AUTHORS

Id: $Id: header.xsl 9646 2011-11-05 23:39:08Z rahtz $

Copyright: 2011, TEI Consortium

Included from
Stylesheet version 2.0
Template tei:teiHeader
Documentation

Description

Process element teiHeader
Namespace No namespace
Match tei:teiHeader
Mode #default
Import precedence 3
Source
<xsl:template match="tei:teiHeader"/>
Stylesheet location ../xhtml2/header.xsl
Template generateLocalCSS
Documentation

Description

make a style section from rendition elements in the header
Namespace No namespace
Used by
Template includeCSS
References
Import precedence 3
Source
<xsl:template name="generateLocalCSS">
  <xsl:if test="key('ALL-LOCALRENDITION',1)">
    <style type="text/css">
      <xsl:for-each select="key('ALL-LOCALRENDITION',1)">
        <xsl:text>
.</xsl:text>
        <xsl:value-of select="@xml:id"/>
        <xsl:text> {
	</xsl:text>
        <xsl:value-of select="."/>
        <xsl:text>;
}</xsl:text>
      </xsl:for-each>
      <xsl:text>
</xsl:text>
    </style>
  </xsl:if>
  <xsl:if test="key('ALL-EXTRENDITION',1)">
    <style type="text/css">
      <xsl:for-each select="key('ALL-EXTRENDITION',1)">
        <xsl:variable name="pointer">
          <xsl:value-of select="."/>
        </xsl:variable>
        <xsl:for-each select="key('RENDITION',$pointer)[1]">
          <xsl:for-each select="document($pointer)">
            <xsl:text>
.</xsl:text>
            <xsl:value-of select="@xml:id"/>
            <xsl:text> {
</xsl:text>
            <xsl:value-of select="."/>
            <xsl:text>;
}</xsl:text>
          </xsl:for-each>
        </xsl:for-each>
      </xsl:for-each>
    </style>
  </xsl:if>
</xsl:template>
Stylesheet location ../xhtml2/header.xsl
Template tei:availabilitycopyrighttext
Documentation

Description

[html] processing licence
Namespace No namespace
Match tei:availability
Mode copyrighttext
Import precedence 3
Source
<xsl:template match="tei:availability" mode="copyrighttext">
  <xsl:apply-templates mode="copyrighttext"/>
</xsl:template>
Stylesheet location ../xhtml2/header.xsl
Template tei:licencecopyrighttext
Namespace No namespace
Match tei:licence
Mode copyrighttext
Import precedence 3
Source
<xsl:template match="tei:licence" mode="copyrighttext">
  <xsl:if test="@target">
    <xsl:text>[</xsl:text>
    <xsl:value-of select="@target"/>
    <xsl:text>] </xsl:text>
  </xsl:if>
  <xsl:apply-templates/>
</xsl:template>
Stylesheet location ../xhtml2/header.xsl
Key ALL-EXTRENDITION
Namespace No namespace
Match @rendition[not(starts-with(.,'#'))]
Use 1
Used by
Template generateLocalCSS
Source
<xsl:key name="ALL-EXTRENDITION" match="@rendition[not(starts-with(.,'#'))]" use="1"/>
Stylesheet location ../xhtml2/header.xsl
Key EXTRENDITION
Namespace No namespace
Match @rendition[not(starts-with(.,'#'))]
Use .
Source
<xsl:key name="EXTRENDITION" match="@rendition[not(starts-with(.,'#'))]" use="."/>
Stylesheet location ../xhtml2/header.xsl
Key ALL-LOCALRENDITION
Namespace No namespace
Match tei:rendition
Use 1
Used by
Template generateLocalCSS
Source
<xsl:key name="ALL-LOCALRENDITION" match="tei:rendition" use="1"/>
Stylesheet location ../xhtml2/header.xsl