Showing:

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

Copyright: 2008, TEI Consortium

Included from
Stylesheet version 2.0
Template write-docxfile-comments-file
Documentation

Description

Create the comments file

Description

 write out comments 
Namespace No namespace
Used by
Template write-docxfiles
References
Key COMMENTS
Parameters debug; word-directory
Function whatsTheDate()
Import precedence 12
Source
<xsl:template name="write-docxfile-comments-file">
  <xsl:if test="count(key('COMMENTS',1))>0">
    <xsl:if test="$debug='true'">
      <xsl:message>Writing out
        <xsl:value-of select="concat($word-directory,'word/comments.xml')"/>
      </xsl:message>
    </xsl:if>
    <xsl:result-document href="{concat($word-directory,'/word/comments.xml')}" standalone="yes">
      <w:comments>
        <xsl:for-each select="key('COMMENTS',1)">
          <w:comment w:id="{position()-1}" w:author="{@resp}">
            <xsl:attribute name="w:date">
              <xsl:choose>
                <xsl:when test="tei:date/@when">
                  <xsl:value-of select="tei:date/@when"/>
                </xsl:when>
                <xsl:otherwise>
                  <xsl:value-of select="teidocx:whatsTheDate()"/>
                </xsl:otherwise>
              </xsl:choose>
            </xsl:attribute>
            <w:p>
              <w:pPr>
                <w:pStyle w:val="CommentText"/>
              </w:pPr>
              <w:r>
                <w:rPr>
                  <w:rStyle w:val="CommentReference"/>
                </w:rPr>
                <w:annotationRef/>
              </w:r>
              <xsl:apply-templates/>
            </w:p>
          </w:comment>
        </xsl:for-each>
      </w:comments>
    </xsl:result-document>
  </xsl:if>
</xsl:template>
Stylesheet location ../../../docx/to/docxfiles/comments.xsl
Key COMMENTS
Namespace No namespace
Match tei:note[@place='comment']
Use 1
Used by
Source
<xsl:key name="COMMENTS" match="tei:note[@place='comment']" use="1"/>
Stylesheet location ../../../docx/to/docxfiles/comments.xsl