summaryrefslogtreecommitdiff
path: root/roundtrip
diff options
context:
space:
mode:
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>2014-11-06 11:50:51 +0100
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>2014-11-06 11:50:51 +0100
commit14b660c1b43c74e8db2abb51e38e7a1aa38220a2 (patch)
treef78a8637465b7a4c9624fef03d27eb7aeaa779d4 /roundtrip
parentb2d73bee5e123c5e69352a447d4bc318132612d9 (diff)
downloaddocbook-xsl-stylesheets-14b660c1b43c74e8db2abb51e38e7a1aa38220a2.tar.gz
docbook-xsl-stylesheets-14b660c1b43c74e8db2abb51e38e7a1aa38220a2.tar.bz2
docbook-xsl-stylesheets-14b660c1b43c74e8db2abb51e38e7a1aa38220a2.zip
Imported Upstream version 1.78.1upstream/1.78.1
Diffstat (limited to 'roundtrip')
-rw-r--r--roundtrip/dbk2wordml.xsl28
1 files changed, 17 insertions, 11 deletions
diff --git a/roundtrip/dbk2wordml.xsl b/roundtrip/dbk2wordml.xsl
index c818094..ed6030d 100644
--- a/roundtrip/dbk2wordml.xsl
+++ b/roundtrip/dbk2wordml.xsl
@@ -16,7 +16,7 @@
<xsl:output method="xml" indent='yes' standalone='yes' encoding='UTF-8'/>
<!-- ********************************************************************
- $Id: dbk2wordml.xsl 9396 2012-06-02 21:56:19Z bobstayton $
+ $Id: dbk2wordml.xsl 9651 2012-10-26 20:44:10Z bobstayton $
********************************************************************
This file is part of the XSL DocBook Stylesheet distribution.
@@ -61,21 +61,27 @@
<o:Author>
<xsl:choose>
<xsl:when test='$authors'>
- <xsl:apply-templates select='$authors[1]' mode='doc:docprop.author'/>
+ <xsl:variable name="content">
+ <xsl:apply-templates select='$authors[1]' mode='doc:docprop.author'/>
+ </xsl:variable>
+ <xsl:value-of select="$content"/>
</xsl:when>
<xsl:otherwise>Unknown</xsl:otherwise>
</xsl:choose>
</o:Author>
<o:LastAuthor>
- <xsl:choose>
- <xsl:when test='$info/revhistory/revision[1]/*[self::author|self::authorinitials]'>
- <xsl:apply-templates select='$info/revhistory/revision[1]/*[self::author|self::authorinitials]' mode='doc:docprop.author'/>
- </xsl:when>
- <xsl:when test='$authors'>
- <xsl:apply-templates select='$authors[1]' mode='doc:docprop.author'/>
- </xsl:when>
- <xsl:otherwise>Unknown</xsl:otherwise>
- </xsl:choose>
+ <xsl:variable name="content">
+ <xsl:choose>
+ <xsl:when test='$info/revhistory/revision[1]/*[self::author|self::authorinitials]'>
+ <xsl:apply-templates select='$info/revhistory/revision[1]/*[self::author|self::authorinitials]' mode='doc:docprop.author'/>
+ </xsl:when>
+ <xsl:when test='$authors'>
+ <xsl:apply-templates select='$authors[1]' mode='doc:docprop.author'/>
+ </xsl:when>
+ <xsl:otherwise>Unknown</xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:value-of select="$content"/>
</o:LastAuthor>
<o:Revision>1</o:Revision>
<o:TotalTime></o:TotalTime>