Showing:

Documentation
Used by
References
Included from
Source
Stylesheet dynamic.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: dynamic.xsl 7952 2010-08-12 21:14:51Z rahtz $

Copyright: 2008, TEI Consortium

Included from
Stylesheet version 2.0
Template teidocx:dynamicContent
Documentation

Description

dynamic content

Description

 Deals with dynamic text creation such as toc 
Namespace No namespace
Match teidocx:dynamicContent
Mode #default
Import precedence 8
Source
<xsl:template match="teidocx:dynamicContent">
  <xsl:choose>
    <xsl:when test="@type='pagenumber'">
      <w:fldSimple w:instr=" PAGE \* MERGEFORMAT ">
        <w:r>
          <w:rPr>
            <w:noProof/>
          </w:rPr>
          <w:t>1</w:t>
        </w:r>
      </w:fldSimple>
    </xsl:when>
  </xsl:choose>
</xsl:template>
Stylesheet location ../../../docx/to/dynamic/dynamic.xsl
Template tei:divGen
Documentation

Description

Dealing with divGens
Namespace No namespace
Match tei:divGen
Mode #default
References
Template generate-toc
Import precedence 8
Source
<xsl:template match="tei:divGen">
  <xsl:choose>
    <xsl:when test="@type='toc'">
      <xsl:call-template name="generate-toc"/>
    </xsl:when>
  </xsl:choose>
</xsl:template>
Stylesheet location ../../../docx/to/dynamic/dynamic.xsl
Template generate-toc
Documentation

Description

Table of Contents: Feel free to overwrite this one.
Namespace No namespace
Used by
Template tei:divGen
Import precedence 8
Source
<xsl:template name="generate-toc">
  <w:p>
    <w:pPr>
      <w:pStyle w:val="TOC1"/>
      <w:tabs>
        <w:tab w:val="right" w:leader="dot" w:pos="9350"/>
      </w:tabs>
    </w:pPr>
    <w:r>
      <w:fldChar w:fldCharType="begin"/>
    </w:r>
    <w:r>
      <w:rPr>
        <w:noProof/>
      </w:rPr>
      <w:instrText xml:space="preserve"> TOC \o "1-6" \h \z </w:instrText>
    </w:r>
    <w:r>
      <w:fldChar w:fldCharType="separate"/>
    </w:r>
    <w:r>
      <w:fldChar w:fldCharType="end"/>
    </w:r>
  </w:p>
</xsl:template>
Stylesheet location ../../../docx/to/dynamic/dynamic.xsl