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 library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Author: See AUTHORS

Id: $Id: header.xsl 7138 2010-01-25 09:57:19Z rahtz $

Copyright: 2008, 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="ancestor-or-self::tei:TEI/tei:teiHeader/tei:encodingDesc/tei:tagsDecl/tei:rendition">
    <style type="text/css">
      <xsl:for-each select="ancestor-or-self::tei:TEI/tei:teiHeader/tei:encodingDesc/tei:tagsDecl/tei:rendition">
        <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="count(key('ALL-RENDITION',1))>0">
    <style type="text/css">
      <xsl:for-each select="key('ALL-RENDITION',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
Key ALL-RENDITION
Namespace No namespace
Match @rendition[not(starts-with(.,'#'))]
Use 1
Used by
Template generateLocalCSS
Source
<xsl:key name="ALL-RENDITION" match="@rendition[not(starts-with(.,'#'))]" use="1"/>
Stylesheet location ../../../xhtml2/header.xsl
Key RENDITION
Namespace No namespace
Match @rendition[not(starts-with(.,'#'))]
Use .
Used by
Template generateLocalCSS
Source
<xsl:key name="RENDITION" match="@rendition[not(starts-with(.,'#'))]" use="."/>
Stylesheet location ../../../xhtml2/header.xsl