Showing:

Documentation
Parameters
Used by
References
Overriding
Imported from
Source
Stylesheet placeholders.xsl
Documentation

Description

TEI stylesheet for making Word docx files from TEI XML

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: placeholders.xsl 7952 2010-08-12 21:14:51Z rahtz $

Copyright: 2008, TEI Consortium

Imported from
Stylesheet version 2.0
Template block-element
Documentation

Description

Template used to process block elements

Template used to process block elements: Is implemented by the main stylesheet and should usually not be overridden.

Namespace No namespace
Overriding
Template block-element
Parameters
QName Namespace Select
bookmark-id No namespace
bookmark-name No namespace
nop No namespace
pPr No namespace
select No namespace .
style No namespace
Import precedence 10
Source
<xsl:template name="block-element">
  <xsl:param name="style"/>
  <xsl:param name="select" select="."/>
  <xsl:param name="pPr"/>
  <xsl:param name="nop"/>
  <xsl:param name="bookmark-id"/>
  <xsl:param name="bookmark-name"/>
</xsl:template>
Stylesheet location ../../../docx/to/placeholders.xsl
Template getStyleName
Documentation

Description

to a given style name, this template returns the correct style id looking it up in styles.xml

The template is implemented by the main stylesheet.

Namespace No namespace
Overriding
Template getStyleName
Parameters
QName Namespace
in No namespace
Import precedence 10
Source
<xsl:template name="getStyleName">
  <xsl:param name="in"/>
</xsl:template>
Stylesheet location ../../../docx/to/placeholders.xsl
Template titlepages
Documentation

Description

A callback for any titlepages that belong to the front matter.
Namespace No namespace
Used by
Import precedence 10
Source
<xsl:template name="titlepages">
</xsl:template>
Stylesheet location ../../../docx/to/placeholders.xsl
Template generateTitle
Documentation

Description

"Returns" the document's title (as plain string).
Namespace No namespace
Used by
Import precedence 10
Source
<xsl:template name="generateTitle">Undefined Document</xsl:template>
Stylesheet location ../../../docx/to/placeholders.xsl
Template document-title
Documentation

Description

Namespace No namespace
Used by
References
Template block-element
Import precedence 10
Source
<xsl:template name="document-title">
  <xsl:choose>
    <xsl:when test="/tei:TEI/tei:text/tei:front/tei:titlePage">
    </xsl:when>
    <xsl:when test="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title[@type='main']">
      <xsl:for-each select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title[@type='main']">
        <xsl:call-template name="block-element">
          <xsl:with-param name="style">Title</xsl:with-param>
        </xsl:call-template>
      </xsl:for-each>
      <xsl:for-each select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title[@type='main']">
        <xsl:call-template name="block-element">
          <xsl:with-param name="style">Title</xsl:with-param>
        </xsl:call-template>
      </xsl:for-each>
      <xsl:for-each select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title[@type='sub']">
        <xsl:call-template name="block-element">
          <xsl:with-param name="style">Subtitle</xsl:with-param>
        </xsl:call-template>
      </xsl:for-each>
    </xsl:when>
    <xsl:otherwise>
      <xsl:for-each select="/tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title">
        <xsl:call-template name="block-element">
          <xsl:with-param name="style">Title</xsl:with-param>
        </xsl:call-template>
      </xsl:for-each>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location ../../../docx/to/placeholders.xsl
Template created-by
Namespace No namespace
Overriding
Template created-by
Import precedence 10
Source
<xsl:template name="created-by"/>
Stylesheet location ../../../docx/to/placeholders.xsl
Template headerParts
Namespace No namespace
Used by
Import precedence 10
Source
<xsl:template name="headerParts"/>
Stylesheet location ../../../docx/to/placeholders.xsl