From: Steve Ball Date: Thu, 13 Oct 2005 07:12:43 +0000 (+0000) Subject: added abstract, fixed itemizedlist, ulink X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94c7614ac4e95d9854596b61949bcb3a2f697d4b;p=docbook-dsssl added abstract, fixed itemizedlist, ulink --- diff --git a/xsl/wordml/specifications.xml b/xsl/wordml/specifications.xml index bf0253976..e02f64dbd 100755 --- a/xsl/wordml/specifications.xml +++ b/xsl/wordml/specifications.xml @@ -5,7 +5,7 @@ BobStaytonSagehill Enterprises SteveBallZveno -Version 1.1, dated 28 September 2005 +Version 1.2, dated 13 Octobber 2005 This document specifies how DocBook elements can be mapped to Microsoft Word styles. The specifications will be used to write conversions between DocBook XML and Microsoft's WordProcessingML (WordML). @@ -288,6 +288,11 @@ colwidth="1.00*"/> Any Word paragraph with style Normal will also be converted to a para element. +abstract +abstract,abstract-title +abstract/para. + + note/para note Consecutive paragraphs with style "note" after the first note are to be treated as part of the same note element. That is, consecutive notes are coalesced. diff --git a/xsl/wordml/wordml-final.xsl b/xsl/wordml/wordml-final.xsl index 9cf0858b6..8a55f7c14 100644 --- a/xsl/wordml/wordml-final.xsl +++ b/xsl/wordml/wordml-final.xsl @@ -12,7 +12,7 @@ (w:pPr/w:listPr/w:ilvl/@w:val = "0" and w:pPr/w:listPr/wx:t/@wx:val = "·" and w:pPr/w:listPr/wx:font/@wx:val = "Symbol")]'> - @@ -55,6 +55,9 @@ + + + @@ -211,7 +214,8 @@ ../&editor; | ../&othercredit; | ../&revhistory; | - ../&revision;'> + ../&revision; | + ../&abstract;'> <xsl:apply-templates select="w:r|w:hlink"/> @@ -222,7 +226,8 @@ ../&editor; | ../&othercredit; | ../&revhistory; | - ../&revision;' + ../&revision; | + ../&abstract;' mode='metadata'/> </xsl:element> </xsl:when> @@ -290,7 +295,36 @@ &affiliation; | &revhistory; | &revision; | - &revremark;" mode='group'/> + &revremark; | + &abstracttitle; | + &abstract;" mode='group'/> + <xsl:template match='&abstracttitle;' mode='metadata'/> + <xsl:template match='&abstract;' mode='metadata'> + <xsl:choose> + <xsl:when test='preceding-sibling::*[1][self::&abstracttitle;]'> + <abstract> + <title> + <xsl:apply-templates + select='preceding-sibling::*[1]/*[self::w:r|self::w:hlink]'/> + + + + + + + + + + + + + + + + + + + @@ -519,22 +553,33 @@ + or self::&orderedlist;)][1]"/> + - - - + + + + + + + + + + - + @@ -552,7 +597,6 @@ - @@ -693,7 +737,8 @@ - + @@ -719,6 +764,9 @@ + + +