Showing:

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

Copyright: 2008, TEI Consortium

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

Description

Create the endnotes file
Namespace No namespace
Used by
Template write-docxfiles
References
Parameters debug; word-directory
Key ENDNOTES
Template block-element
Import precedence 12
Source
<xsl:template name="write-docxfile-endnotes-file">
  <xsl:if test="$debug='true'">
    <xsl:message>Writing out
      <xsl:value-of select="concat($word-directory,'/word/endnotes.xml')"/>
    </xsl:message>
  </xsl:if>
  <xsl:result-document href="{concat($word-directory,'/word/endnotes.xml')}">
    <w:endnotes>
      <w:endnote 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:p/>
        <w:p/>
      </w:endnote>
      <w:endnote 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:endnote>
      <xsl:for-each select="key('ENDNOTES',1)">
        <xsl:variable name="id" select="position()+1"/>
        <w:endnote w:id="{$id}">
          <xsl:call-template name="block-element">
            <xsl:with-param name="pPr">
              <w:pPr>
                <w:pStyle w:val="EndnoteText"/>
              </w:pPr>
              <w:r>
                <w:rPr>
                  <w:rStyle w:val="EndnoteReference"/>
                </w:rPr>
                <w:endnoteRef/>
              </w:r>
            </xsl:with-param>
          </xsl:call-template>
        </w:endnote>
      </xsl:for-each>
    </w:endnotes>
  </xsl:result-document>
</xsl:template>
Stylesheet location ../../../docx/to/docxfiles/endnotes.xsl