diff options
Diffstat (limited to 'roundtrip')
-rw-r--r-- | roundtrip/dbk2wordml.xsl | 28 |
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> |