Mode:

Compact lists

Showing:

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

Description

TEI stylesheet for converting Word docx files to TEI

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 w:p[w:pPr/w:sectPr]|w:sectPrparagraph
Documentation

Description

match strange word sections

See comment at begin of document to understand why this template is calling a named template. It matches strange Word "sections".

Namespace No namespace
Match w:p[w:pPr/w:sectPr]|w:sectPr
Mode paragraph
References
Template
Import precedence 7
Source
<xsl:template match="w:p[w:pPr/w:sectPr]|w:sectPr" mode="paragraph">
  <xsl:call-template name="paragraph-sectpr"/>
</xsl:template>
Stylesheet location ../../../docx/from/wordsections.xsl
Template paragraph-sectpr
Documentation

Description

Template called by a match on w:p[w:pPr/w:sectPr]|w:sectPr
Namespace No namespace
Used by
References
Import precedence 7
Source
<xsl:template name="paragraph-sectpr">
  <xsl:if test="$preserveWordSections='true'">
    <xsl:for-each select="descendant-or-self::w:sectPr">
      <milestone unit="section">
        <xsl:for-each select="w:headerReference">
          <tei:header type="{@w:type}" ref="{@r:id}"/>
        </xsl:for-each>
        <xsl:for-each select="w:footerReference">
          <tei:footer type="{@w:type}" ref="{@r:id}"/>
        </xsl:for-each>
        <xsl:if test="w:pgSz/@w:orient='landscape'">
          <tei:orientation type="landscape"/>
        </xsl:if>
        <xsl:if test="w:pgNumType">
          <tei:pageNumbering>
            <xsl:if test="w:pgNumType/@w:start">
              <xsl:attribute name="start" select="w:pgNumType/@w:start"/>
            </xsl:if>
            <xsl:if test="w:pgNumType/@w:fmt">
              <xsl:attribute name="type" select="w:pgNumType/@w:fmt"/>
            </xsl:if>
          </tei:pageNumbering>
        </xsl:if>
      </milestone>
    </xsl:for-each>
  </xsl:if>
  <xsl:next-match/>
</xsl:template>
Stylesheet location ../../../docx/from/wordsections.xsl