Showing:

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

Description

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

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: default-functions.xsl 7101 2010-01-07 21:12:12Z rahtz $

Copyright: 2008, TEI Consortium

Included from
Stylesheet version 2.0
Function teidocx:get-listtype
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/teidocx/1.0
Type xs:string
References
Parameters
QName Namespace
style No namespace
Import precedence 14
Source
<xsl:function name="teidocx:get-listtype" as="xs:string">
  <xsl:param name="style"/>
  <xsl:choose>
    <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 teidocx:render-bold
Namespace http://www.tei-c.org/ns/teidocx/1.0
Type xs:boolean
Used by
Template applyRend
Parameters
QName Namespace
element No namespace
Import precedence 14
Source
<xsl:function name="teidocx: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