Mode:

Compact lists

Showing:

Documentation
Parameters
Used by
References
Imported from
Source
Stylesheet default-functions.xsl
Documentation

Description

Specialized TEI stylesheet for transforming tei into Word docx files for Vesta

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: default-functions.xsl 9646 2011-11-05 23:39:08Z rahtz $

Copyright: 2008, TEI Consortium

Imported from
Stylesheet version 2.0
Function tei:get-listtype (style)
Documentation

Description

 import functions 
 returns a listtype for a given stylename (return empty string to figure it out dynamically)
Namespace http://www.tei-c.org/ns/1.0
Type xs:string
References
Parameters
QName Namespace
style No namespace
Import precedence 13
Source
<xsl:function name="tei:get-listtype" as="xs:string">
  <xsl:param name="style"/>
  <xsl:choose>
    <xsl:when test="starts-with($style,'dl')">
      <xsl:text>gloss</xsl:text>
    </xsl:when>
    <xsl:when test="starts-with($style,$ListBullet)">
      <xsl:text>unordered</xsl:text>
    </xsl:when>
    <xsl:when test="starts-with($style,$ListContinue)">
      <xsl:text>unordered</xsl:text>
    </xsl:when>
    <xsl:when test="starts-with($style,$ListNumber)">
      <xsl:text>ordered</xsl:text>
    </xsl:when>
    <xsl:when test="$style=$List">
      <xsl:text>ordered</xsl:text>
    </xsl:when>
    <xsl:otherwise>
      <xsl:text/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:function>
Stylesheet location default-functions.xsl
Function tei:render-bold (element)
Namespace http://www.tei-c.org/ns/1.0
Type xs:boolean
Used by
Template
Parameters
QName Namespace
element No namespace
Import precedence 13
Source
<xsl:function name="tei:render-bold" as="xs:boolean">
  <xsl:param name="element"/>
  <xsl:for-each select="$element">
    <xsl:choose>
      <xsl:when test="ancestor-or-self::tei:cell[@rend='wovenodd-col1']">true</xsl:when>
      <xsl:when test="ancestor-or-self::tei:cell[@role='label']">true</xsl:when>
      <xsl:when test="self::tei:cell and parent::tei:row[@role='label']">true</xsl:when>
      <xsl:when test="@rend='bold'">true</xsl:when>
      <xsl:when test="@rend='label'">true</xsl:when>
      <xsl:when test="@rend='odd_label'">true</xsl:when>
      <xsl:when test="contains(@rend,'bold')">true</xsl:when>
      <xsl:when test="parent::tei:hi[@rend='bold']">true</xsl:when>
      <xsl:when test="parent::tei:hi[starts-with(@rend,'specList-')]">true</xsl:when>
      <xsl:when test="self::tei:docAuthor">true</xsl:when>
      <xsl:when test="self::tei:hi[@rend='label']">true</xsl:when>
      <xsl:when test="self::tei:label[following-sibling::tei:item]">true</xsl:when>
      <xsl:when test="self::tei:term">true</xsl:when>
      <xsl:when test="starts-with(@rend,'specList-')">true</xsl:when>
      <xsl:when test="starts-with(parent::tei:hi/@rend,'specList-')">true</xsl:when>
      <xsl:otherwise>false</xsl:otherwise>
    </xsl:choose>
  </xsl:for-each>
</xsl:function>
Stylesheet location default-functions.xsl