Showing:

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

Copyright: 2008, TEI Consortium

Included from
Stylesheet version 2.0
Template write-docxfile-content-types
Namespace No namespace
Used by
References
Import precedence 12
Source
<xsl:template name="write-docxfile-content-types">
  <xsl:if test="$debug='true'">
    <xsl:message>Writing out
      <xsl:value-of select="concat($word-directory,'/%5BContent_Types%5D.xml')"/>
    </xsl:message>
  </xsl:if>
  <xsl:result-document href="{concat($word-directory,'/%5BContent_Types%5D.xml')}">
    <Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
      <Default Extension="jpeg" ContentType="image/jpeg"/>
      <Default Extension="jpg" ContentType="image/jpeg"/>
      <Default Extension="png" ContentType="image/png"/>
      <Default Extension="tiff" ContentType="image/tiff"/>
      <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
      <Default Extension="xml" ContentType="application/xml"/>
      <Default Extension="bin" ContentType="application/vnd.openxmlformats-officedocument.oleObject"/>
      <Default Extension="wmf" ContentType="image/x-wmf"/>
      <Default Extension="emf" ContentType="image/x-emf"/>
      <!-- docprops -->
      <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>
      <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>
      <Override PartName="/docProps/custom.xml" ContentType="application/vnd.openxmlformats-officedocument.custom-properties+xml"/>
      <!-- word -->
      <Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>
      <Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>
      <Override PartName="/word/numbering.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml"/>
      <Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/>
      <Override PartName="/word/endnotes.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml"/>
      <Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/>
      <Override PartName="/word/footnotes.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml"/>
      <Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/>
      <Override PartName="/word/comments.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml"/>
      <!-- others -->
      <Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>
      <!-- headers -->
      <xsl:choose>
        <xsl:when test="count(key('ALLHEADERS',1))=0">
          <xsl:for-each select="document($defaultHeaderFooterFile)">
            <xsl:call-template name="write-docxfile-content-types-header-references"/>
          </xsl:for-each>
        </xsl:when>
        <xsl:otherwise>
          <xsl:call-template name="write-docxfile-content-types-header-references"/>
        </xsl:otherwise>
      </xsl:choose>
      <!-- footers -->
      <xsl:choose>
        <xsl:when test="count(key('ALLFOOTERS',1))=0">
          <xsl:for-each select="document($defaultHeaderFooterFile)">
            <xsl:call-template name="write-docxfile-content-types-footer-references"/>
          </xsl:for-each>
        </xsl:when>
        <xsl:otherwise>
          <xsl:call-template name="write-docxfile-content-types-footer-references"/>
        </xsl:otherwise>
      </xsl:choose>
    </Types>
  </xsl:result-document>
</xsl:template>
Stylesheet location ../../../docx/to/docxfiles/content-types.xsl
Template write-docxfile-content-types-footer-references
Namespace No namespace
Used by
References
Import precedence 12
Source
Stylesheet location ../../../docx/to/docxfiles/content-types.xsl
Template write-docxfile-content-types-header-references
Namespace No namespace
Used by
References
Import precedence 12
Source
<xsl:template name="write-docxfile-content-types-header-references">
  <xsl:for-each select="key('ALLHEADERS',1)">
    <Override xmlns="http://schemas.openxmlformats.org/package/2006/content-types" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml">
      <xsl:attribute name="PartName" select="concat('/word/header', position(), '.xml')"/>
    </Override>
  </xsl:for-each>
</xsl:template>
Stylesheet location ../../../docx/to/docxfiles/content-types.xsl