Showing:

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

Description

TEI stylesheet for converting Word docx files to TEI

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: from.xsl 6832 2009-10-12 22:42:59Z rahtz $

Copyright: 2008, TEI Consortium

Included from
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 paragraph-sectpr
Import precedence 17
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/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 17
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">
          <teidocx:header type="{@w:type}" ref="{@r:id}"/>
        </xsl:for-each>
        <xsl:for-each select="w:footerReference">
          <teidocx:footer type="{@w:type}" ref="{@r:id}"/>
        </xsl:for-each>
        <xsl:if test="w:pgSz/@w:orient='landscape'">
          <teidocx:orientation type="landscape"/>
        </xsl:if>
        <xsl:if test="w:pgNumType">
          <teidocx: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>
          </teidocx:pageNumbering>
        </xsl:if>
      </milestone>
    </xsl:for-each>
  </xsl:if>
  <xsl:next-match/>
</xsl:template>
Stylesheet location ../../../docx/from/wordsections/wordsections.xsl