summaryrefslogtreecommitdiff
path: root/roundtrip
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2013-03-17 20:07:05 +0000
committer <>2015-07-07 10:18:30 +0000
commit802da9dd5d4bc18f46a916eedc0c5c1980a15e59 (patch)
treef78a8637465b7a4c9624fef03d27eb7aeaa779d4 /roundtrip
parent18f63104106b81bf37ca1af774d7be38051e5444 (diff)
downloaddocbook-xsl-master.tar.gz
Imported from /home/lorry/working-area/delta_docbook-xsl/docbook-xsl-1.78.1.tar.bz2.HEADdocbook-xsl-1.78.1master
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>