diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-15 06:55:11 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-10-15 06:55:11 +0900 |
commit | d2cfd1f36d94c2377115f9ac79213eae31f83464 (patch) | |
tree | d33d3aadc7edbb0b5dd84194e053e16fc4410c06 /roundtrip/dbk2wordml.xsl | |
parent | 4c7d5230da2c9c32ccfd18cf1f46b8c50d32db7a (diff) | |
download | docbook-xsl-stylesheets-d2cfd1f36d94c2377115f9ac79213eae31f83464.tar.gz docbook-xsl-stylesheets-d2cfd1f36d94c2377115f9ac79213eae31f83464.tar.bz2 docbook-xsl-stylesheets-d2cfd1f36d94c2377115f9ac79213eae31f83464.zip |
Imported Upstream version 1.79.2upstream/1.79.2
Diffstat (limited to 'roundtrip/dbk2wordml.xsl')
-rw-r--r-- | roundtrip/dbk2wordml.xsl | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/roundtrip/dbk2wordml.xsl b/roundtrip/dbk2wordml.xsl index ed6030d..bde1fca 100644 --- a/roundtrip/dbk2wordml.xsl +++ b/roundtrip/dbk2wordml.xsl @@ -1,5 +1,6 @@ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:d="http://docbook.org/ns/docbook" xmlns:w='http://schemas.microsoft.com/office/word/2003/wordml' xmlns:v='urn:schemas-microsoft-com:vml' xmlns:w10="urn:schemas-microsoft-com:office:word" @@ -16,11 +17,9 @@ <xsl:output method="xml" indent='yes' standalone='yes' encoding='UTF-8'/> <!-- ******************************************************************** - $Id: dbk2wordml.xsl 9651 2012-10-26 20:44:10Z bobstayton $ - ******************************************************************** This file is part of the XSL DocBook Stylesheet distribution. - See ../README or http://docbook.sf.net/release/xsl/current/ for + See ../README or http://cdn.docbook.org/release/xsl/current/ for copyright and other information. ******************************************************************** --> @@ -29,8 +28,8 @@ <xsl:include href='param.xsl'/> <xsl:strip-space elements='*'/> - <xsl:preserve-space elements='literallayout doc:literallayout - programlisting doc:programlisting'/> + <xsl:preserve-space elements='d:literallayout doc:literallayout + d:programlisting doc:programlisting'/> <xsl:variable name='templatedoc' select='document($wordml.template)'/> @@ -50,8 +49,8 @@ <xsl:text>
</xsl:text> <xsl:variable name='info' - select='$doc/book/bookinfo|$doc/article/articleinfo'/> - <xsl:variable name='authors' select='$info/author|$info/authorinitials|$info/authorgroup/author|$info/authorgroup/editor'/> + select='$doc/d:book/d:bookinfo|$doc/d:article/d:articleinfo'/> + <xsl:variable name='authors' select='$info/d:author|$info/d:authorinitials|$info/d:authorgroup/d:author|$info/d:authorgroup/d:editor'/> <w:wordDocument w:macrosPresent="no" w:embeddedObjPresent="no" w:ocxPresent="no"> @@ -72,8 +71,8 @@ <o:LastAuthor> <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 test='$info/d:revhistory/d:revision[1]/*[self::d:author|self::d:authorinitials]'> + <xsl:apply-templates select='$info/d:revhistory/d:revision[1]/*[self::d:author|self::d:authorinitials]' mode='doc:docprop.author'/> </xsl:when> <xsl:when test='$authors'> <xsl:apply-templates select='$authors[1]' mode='doc:docprop.author'/> @@ -196,7 +195,7 @@ </xsl:template> <xsl:template name='doc:make-paragraph'> - <xsl:param name='style' select='"unknown"'/> + <xsl:param name='style' select='"d:unknown"'/> <xsl:param name='content'> <xsl:apply-templates mode='doc:body'/> </xsl:param> @@ -270,7 +269,7 @@ <xsl:template name='doc:make-table'> <xsl:param name='columns'/> <xsl:param name='content'> - <xsl:apply-templates select='*[not(self::caption|self::doc:caption|self::textobject|self::doc:textobject)]' + <xsl:apply-templates select='*[not(self::d:caption|self::doc:caption|self::d:textobject|self::doc:textobject)]' mode='doc:body'/> </xsl:param> |