Showing:

Documentation
Parameters
Used by
References
Overriding
Imported modules
Included from
Source
Stylesheet utility-templates.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: docx-tei.xsl 6820 2009-10-10 20:03:31Z rahtz $

Copyright: 2008, TEI Consortium

Imported modules
Included from
Template generateAppInfo
Namespace No namespace
Used by
References
Parameter word-directory
Import precedence 17
Source
<xsl:template name="generateAppInfo">
  <appInfo>
    <application ident="TEI_fromDOCX" version="2.12.0">
      <label>DOCX to TEI</label>
    </application>
    <xsl:if test="xpath:doc-available(concat($word-directory,'/docProps/custom.xml'))">
      <xsl:for-each select="xpath:doc(concat($word-directory,'/docProps/custom.xml'))/prop:Properties">
        <xsl:for-each select="prop:property">
          <xsl:choose>
            <xsl:when test="@name='TEI_fromDOCX'"/>
            <xsl:when test="contains(@name,'TEI')">
              <application ident="{@name}" version="{.}">
                <label>
                  <xsl:value-of select="@name"/>
                </label>
              </application>
            </xsl:when>
          </xsl:choose>
        </xsl:for-each>
        <application ident="WordTemplate" version="{prop:property[@name='WordTemplate']}">
          <label>Word template file</label>
          <ptr target="{prop:property[@name='WordTemplateURI']}"/>
        </application>
      </xsl:for-each>
    </xsl:if>
  </appInfo>
</xsl:template>
Stylesheet location ../../../docx/from/utils/utility-templates.xsl
Template getDocTitle
Namespace No namespace
Used by
References
Parameter word-directory
Import precedence 17
Source
<xsl:template name="getDocTitle">
  <xsl:for-each select="document(concat($word-directory, '/docProps/core.xml'),/)">
    <xsl:value-of select="cp:coreProperties/dc:title"/>
  </xsl:for-each>
</xsl:template>
Stylesheet location ../../../docx/from/utils/utility-templates.xsl
Template getDocAuthor
Namespace No namespace
Used by
References
Parameter word-directory
Import precedence 17
Source
<xsl:template name="getDocAuthor">
  <xsl:for-each select="document(concat($word-directory, '/docProps/core.xml'),/)">
    <xsl:value-of select="cp:coreProperties/dc:creator"/>
  </xsl:for-each>
</xsl:template>
Stylesheet location ../../../docx/from/utils/utility-templates.xsl
Template getDocDate
Namespace No namespace
Used by
References
Parameter word-directory
Import precedence 17
Source
<xsl:template name="getDocDate">
  <xsl:for-each select="document(concat($word-directory, '/docProps/core.xml'),/)">
    <xsl:value-of select="substring-before(cp:coreProperties/dcterms:created,'T')"/>
  </xsl:for-each>
</xsl:template>
Stylesheet location ../../../docx/from/utils/utility-templates.xsl
Template identifyChange
Namespace No namespace
Overriding
Template identifyChange
Parameters
QName Namespace
who No namespace
Import precedence 17
Source
<xsl:template name="identifyChange">
  <xsl:param name="who"/>
  <xsl:attribute name="resp">
    <xsl:text>#</xsl:text>
    <xsl:value-of select="translate($who,' ','_')"/>
  </xsl:attribute>
</xsl:template>
Stylesheet location ../../../docx/from/utils/utility-templates.xsl