Mode:

Compact lists

Showing:

Documentation
Parameters
Used by
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 10881 2012-10-01 16:34:00Z rahtz $

Copyright: 2008, TEI Consortium

Imported from
Stylesheet version 2.0
Function tei:render-bold (element)
Documentation

Description

 import functions 
Namespace http://www.tei-c.org/ns/1.0
Type xs:boolean
Used by
Template
Parameters
QName Namespace
element No namespace
Import precedence 16
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