Mode:

Compact lists

Showing:

Documentation
Parameters
References
Included from
Source
Stylesheet tagdocs.xsl
Documentation

Description

TEI stylesheet dealing with elements from the tagdocs 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: tagdocs.xsl 9646 2011-11-05 23:39:08Z rahtz $

Copyright: 2011, TEI Consortium

Included from
Stylesheet version 2.0
Template teix:egXML
Documentation

Description

Process elements 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:choose>
        <xsl:when test="@valid='feasible'">
          <xsl:text> egXML_feasible</xsl:text>
        </xsl:when>
        <xsl:when test="@valid='false'">
          <xsl:text> egXML_invalid</xsl:text>
        </xsl:when>
        <xsl:otherwise>
          <xsl:text> egXML_valid</xsl:text>
        </xsl:otherwise>
      </xsl:choose>
    </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 tagdocs.xsl
Template tei:ident
Documentation

Description

Process element ident
Namespace No namespace
Match tei:ident
Mode #default
Import precedence 3
Source
<xsl:template match="tei:ident">
  <xsl:choose>
    <xsl:when test="@type">
      <span class="ident-{@type}">
        <xsl:apply-templates/>
      </span>
    </xsl:when>
    <xsl:otherwise>
      <span class="ident">
        <xsl:apply-templates/>
      </span>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location tagdocs.xsl
Template tei:gi
Documentation

Description

Process element gi
Namespace No namespace
Match tei:gi
Mode #default
Import precedence 3
Source
<xsl:template match="tei:gi">
  <span class="gi">
    <xsl:text><</xsl:text>
    <xsl:apply-templates/>
    <xsl:text>></xsl:text>
  </span>
</xsl:template>
Stylesheet location tagdocs.xsl