Showing:

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

Copyright: 2008, TEI Consortium

Included from
Stylesheet version 2.0
Template write-docxfile-header-files
Documentation

Description

Namespace No namespace
Used by
Template write-docxfiles
References
Import precedence 12
Source
<xsl:template name="write-docxfile-header-files">
  <xsl:choose>
    <xsl:when test="count(key('ALLHEADERS',1))=0">
      <xsl:for-each select="document($defaultHeaderFooterFile)">
        <xsl:call-template name="write-docxfile-specific-header-file"/>
      </xsl:for-each>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="write-docxfile-specific-header-file"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
Stylesheet location ../../../docx/to/docxfiles/headers.xsl
Template write-docxfile-specific-header-file
Documentation

Description

Namespace No namespace
Used by
References
Key ALLHEADERS
Parameters debug; word-directory
Import precedence 12
Source
<xsl:template name="write-docxfile-specific-header-file">
  <xsl:for-each select="key('ALLHEADERS',1)">
    <xsl:if test="$debug='true'">
      <xsl:message>Writing out
        <xsl:value-of select="concat($word-directory,'/word/header',position(),'.xml')"/>
      </xsl:message>
    </xsl:if>
    <xsl:result-document href="{concat($word-directory,'/word/header',position(),'.xml')}">
      <w:hdr xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:mo="http://schemas.microsoft.com/office/mac/office/2008/main">
        <xsl:apply-templates select="."/>
      </w:hdr>
    </xsl:result-document>
  </xsl:for-each>
</xsl:template>
Stylesheet location ../../../docx/to/docxfiles/headers.xsl