Showing:

Documentation
Parameters
Used by
References
Imported modules
Included modules
Imported from
Source
Stylesheet tei.xsl
Documentation

Description

TEI stylesheet for 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: tei.xsl 7025 2009-11-29 19:47:02Z rahtz $

Copyright: 2008, TEI Consortium

Imported modules
Included modules
Imported from
Stylesheet version 2.0
Template teix:egXML
Namespace No namespace
Match teix:egXML
Mode #default
References
Parameters
QName Namespace
highlight No namespace
simple No namespace
Import precedence 3
Source
<xsl:template match="teix:egXML">
  <xsl:param name="simple">false</xsl:param>
  <xsl:param name="highlight"/>
  <div>
    <xsl:attribute name="id">
      <xsl:apply-templates mode="ident" select="."/>
    </xsl:attribute>
    <xsl:attribute name="class">
      <xsl:text>pre</xsl:text>
      <xsl:if test="not(*)">
        <xsl:text> cdata</xsl:text>
      </xsl:if>
    </xsl:attribute>
    <xsl:choose>
      <xsl:when test="$simple='true'">
        <xsl:apply-templates mode="verbatim">
          <xsl:with-param name="highlight">
            <xsl:value-of select="$highlight"/>
          </xsl:with-param>
        </xsl:apply-templates>
      </xsl:when>
      <xsl:otherwise>
        <xsl:call-template name="egXMLStartHook"/>
        <xsl:apply-templates mode="verbatim">
          <xsl:with-param name="highlight">
            <xsl:value-of select="$highlight"/>
          </xsl:with-param>
        </xsl:apply-templates>
        <xsl:call-template name="egXMLEndHook"/>
      </xsl:otherwise>
    </xsl:choose>
  </div>
</xsl:template>
Stylesheet location ../../../xhtml2/tei.xsl
Template get-basename
Documentation

Description

[html] How to work out the filename component of a path

Parameters

file filename

Namespace No namespace
Used by
Template get-basename
Variable masterFile
References
Template get-basename
Parameter STDOUT
Parameters
QName Namespace
file No namespace
Import precedence 3
Source
<xsl:template name="get-basename">
  <xsl:param name="file"/>
  <xsl:choose>
    <xsl:when test="contains($file,'/')">
      <xsl:call-template name="get-basename">
        <xsl:with-param name="file">
          <xsl:value-of select="substring-after($file,'/')"/>
        </xsl:with-param>
      </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
      <xsl:choose>
        <xsl:when test="$STDOUT='true'">
          <xsl:value-of select="$file"/>
        </xsl:when>
        <xsl:when test="contains($file,'.xml')">
          <xsl:value-of select="substring-before($file,'.xml')"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="$file"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location ../../../xhtml2/tei.xsl
Variable top
Documentation

Description

Stylesheet constant setting the name of the main output file.
Namespace No namespace
Select /
Source
<xsl:variable name="top" select="/"/>
Stylesheet location ../../../xhtml2/tei.xsl
Variable masterFile
Namespace No namespace
Used by
References
Parameters REQUEST; STDOUT; outputName
Template get-basename
Source
<xsl:variable name="masterFile">
  <xsl:choose>
    <xsl:when test="not($outputName ='')">
      <xsl:choose>
        <xsl:when test="$STDOUT='true'">
          <xsl:value-of select="$outputName"/>
        </xsl:when>
        <xsl:when test="contains($outputName,'.xml')">
          <xsl:value-of select="substring-before($outputName,'.xml')"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="$outputName"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:when>
    <xsl:when test="contains($REQUEST,'.ID=')">
      <xsl:call-template name="get-basename">
        <xsl:with-param name="file">
          <xsl:value-of select="substring-before($REQUEST,'.ID=')"/>
        </xsl:with-param>
      </xsl:call-template>
    </xsl:when>
    <xsl:when test="not($REQUEST='')">
      <xsl:call-template name="get-basename">
        <xsl:with-param name="file">
          <xsl:value-of select="$REQUEST"/>
        </xsl:with-param>
      </xsl:call-template>
    </xsl:when>
    <xsl:when test="$STDOUT='true'">
      <xsl:text>index.xml</xsl:text>
    </xsl:when>
    <xsl:otherwise>
      <xsl:text>index</xsl:text>
    </xsl:otherwise>
  </xsl:choose>
</xsl:variable>
Stylesheet location ../../../xhtml2/tei.xsl