Mode:

Compact lists

Showing:

Documentation
Used by
References
Included from
Source
Stylesheet dynamic.xsl
Documentation

Description

TEI stylesheet for making Word docx files from TEI XML

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 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

Copyright: 2013, TEI Consortium

Included from
Stylesheet version 3.0
Template tei:dynamicContent
Documentation

Description

dynamic content

Description

 Deals with dynamic text creation such as toc 
Namespace No namespace
Match tei:dynamicContent
Mode #default
Import precedence 16
Source
<xsl:template match="tei: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.xsl
Template tei:divGen
Documentation

Description

Dealing with divGens
Namespace No namespace
Match tei:divGen
Mode #default
References
Template
Import precedence 16
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.xsl
Template generate-toc
Documentation

Description

Table of Contents: Feel free to overwrite this one.
Namespace No namespace
Used by
Template
Import precedence 16
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.xsl