Mode:

Compact lists

Showing:

Documentation
Parameters
Used by
References
Imported from
Source
Stylesheet pass0.xsl
Documentation

Description

TEI Utility stylesheet for making Word docx files from TEI XML (see tei-docx.xsl)

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

Imported from
Stylesheet version 3.0
Template @*|text()|comment()|processing-instruction()pass0
Namespace No namespace
Match @*|text()|comment()|processing-instruction()
Mode pass0
Import precedence 5
Source
<xsl:template match="@*|text()|comment()|processing-instruction()" mode="pass0">
  <xsl:copy-of select="."/>
</xsl:template>
Stylesheet location ../../../docx/from/pass0.xsl
Template w:bodypass0
Namespace No namespace
Match w:body
Mode pass0
References
Import precedence 5
Source
<xsl:template match="w:body" mode="pass0">
  <xsl:copy>
    <xsl:choose>
      <xsl:when test="w:p[tei:isFirstlevel-heading(.)]"/>
      <xsl:otherwise>
        <w:p>
          <w:pPr>
            <w:pStyle w:val="heading 1"/>
          </w:pPr>
          <w:r>
            <w:rPr>
              <w:sz w:val="36"/>
            </w:rPr>
            <w:t/>
          </w:r>
        </w:p>
      </xsl:otherwise>
    </xsl:choose>
    <xsl:apply-templates select="*|@*|processing-instruction()|comment()|text()" mode="pass0"/>
  </xsl:copy>
</xsl:template>
Stylesheet location ../../../docx/from/pass0.xsl
Template *pass0
Namespace No namespace
Match *
Mode pass0
Import precedence 5
Source
<xsl:template match="*" mode="pass0">
  <xsl:copy>
    <xsl:apply-templates select="*|@*|processing-instruction()|comment()|text()" mode="pass0"/>
  </xsl:copy>
</xsl:template>
Stylesheet location ../../../docx/from/pass0.xsl
Template w:pStyle/@w:val|w:rStyle/@w:valpass0
Namespace No namespace
Match w:pStyle/@w:val|w:rStyle/@w:val
Mode pass0
References
Import precedence 5
Source
<xsl:template match="w:pStyle/@w:val|w:rStyle/@w:val" mode="pass0">
  <xsl:attribute name="w:val">
    <xsl:value-of select="tei:getWordStyleName(.)"/>
  </xsl:attribute>
</xsl:template>
Stylesheet location ../../../docx/from/pass0.xsl
Template w:rStyle[@w:val='FootnoteReference' and not(parent::w:r/w:footnoteReference)]pass0
Documentation

Description

don't call it a footnote reference if it has no footnote reference
Namespace No namespace
Match w:rStyle[@w:val='FootnoteReference' and not(parent::w:r/w:footnoteReference)]
Mode pass0
Import precedence 5
Source
<xsl:template match="w:rStyle[@w:val='FootnoteReference' and          not(parent::w:r/w:footnoteReference)]" mode="pass0">
</xsl:template>
Stylesheet location ../../../docx/from/pass0.xsl
Parameter word-directory
Namespace No namespace
Used by
Variable
Source
<xsl:param name="word-directory">..</xsl:param>
Stylesheet location ../../../docx/from/pass0.xsl
Parameter debug
Namespace No namespace
Source
<xsl:param name="debug">false</xsl:param>
Stylesheet location ../../../docx/from/pass0.xsl
Function tei:getWordStyleName (val)
Namespace http://www.tei-c.org/ns/1.0
Used by
References
Variable
Key
Parameters
QName Namespace
val No namespace
Import precedence 5
Source
<xsl:function name="tei:getWordStyleName">
  <xsl:param name="val"/>
  <xsl:for-each select="document($styleDoc)">
    <xsl:choose>
      <xsl:when test="key('STYLES',$val)">
        <xsl:value-of select="key('STYLES',$val)/w:name/@w:val"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:value-of select="$val"/>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:for-each>
</xsl:function>
Stylesheet location ../../../docx/from/pass0.xsl
Key STYLES
Namespace No namespace
Match w:style
Use @w:styleId
Used by
Source
<xsl:key name="STYLES" match="w:style" use="@w:styleId"/>
Stylesheet location ../../../docx/from/pass0.xsl