Showing:

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

Copyright: 2008, TEI Consortium

Included from
Stylesheet version 2.0
Template write-docxfile-footnotes-file
Documentation

Description

Namespace No namespace
Used by
Template write-docxfiles
References
Parameters debug; word-directory
Key FOOTNOTES
Template block-element
Import precedence 12
Source
<xsl:template name="write-docxfile-footnotes-file">
  <xsl:if test="$debug='true'">
    <xsl:message>Writing out
      <xsl:value-of select="concat($word-directory,'/word/footnotes.xml')"/>
    </xsl:message>
  </xsl:if>
  <xsl:result-document href="{concat($word-directory,'/word/footnotes.xml')}">
    <w:footnotes>
      <w:footnote w:type="separator" w:id="-1">
        <w:p>
          <w:pPr>
            <w:spacing w:after="0" w:line="240" w:lineRule="auto"/>
          </w:pPr>
          <w:r>
            <w:separator/>
          </w:r>
        </w:p>
      </w:footnote>
      <w:footnote w:type="continuationSeparator" w:id="0">
        <w:p>
          <w:pPr>
            <w:spacing w:after="0" w:line="240" w:lineRule="auto"/>
          </w:pPr>
          <w:r>
            <w:continuationSeparator/>
          </w:r>
        </w:p>
        <w:p/>
        <w:p/>
      </w:footnote>
      <xsl:for-each select="key('FOOTNOTES',1)">
        <xsl:variable name="id" select="position()+1"/>
        <w:footnote w:id="{$id}">
          <xsl:call-template name="block-element">
            <xsl:with-param name="pPr">
              <w:pPr>
                <w:pStyle w:val="FootnoteText"/>
              </w:pPr>
              <w:r>
                <w:rPr>
                  <w:rStyle w:val="FootnoteReference"/>
                </w:rPr>
                <w:footnoteRef/>
              </w:r>
              <xsl:choose>
                <xsl:when test="ancestor::tei:bibl">
                  <w:r>
                    <w:rPr>
                      <w:rStyle w:val="FootnoteReference"/>
                    </w:rPr>
                    <w:t>)</w:t>
                  </w:r>
                </xsl:when>
                <xsl:otherwise>
                  <w:r>
                    <w:t xml:space="preserve"> </w:t>
                  </w:r>
                </xsl:otherwise>
              </xsl:choose>
            </xsl:with-param>
          </xsl:call-template>
        </w:footnote>
      </xsl:for-each>
    </w:footnotes>
  </xsl:result-document>
</xsl:template>
Stylesheet location ../../../docx/to/docxfiles/footnotes.xsl