1<?xml version="1.0" encoding="UTF-8"?>
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements.  See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership.  The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License.  You may obtain a copy of the License at
11 *
12 *   http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied.  See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 *
21 ***********************************************************-->
22<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:smil="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0" xmlns:anim="urn:oasis:names:tc:opendocument:xmlns:animation:1.0" xmlns:uof="http://schemas.uof.org/cn/2003/uof" xmlns:表="http://schemas.uof.org/cn/2003/uof-spreadsheet" xmlns:演="http://schemas.uof.org/cn/2003/uof-slideshow" xmlns:字="http://schemas.uof.org/cn/2003/uof-wordproc" xmlns:数="http://www.w3.org/1998/Math/MathML" xmlns:图="http://schemas.uof.org/cn/2003/graph" exclude-result-prefixes="office style text table draw fo xlink dc meta number presentation svg chart dr3d math form script config ooo ooow oooc dom xforms smil anim">
23	<xsl:output method="xml" indent="no" encoding="UTF-8" version="1.0" standalone="no" omit-xml-declaration="no"/>
24	<xsl:variable name="impresswithUnit">
25		<xsl:value-of select="/office:document/office:styles/style:style[@style:family='graphic']/style:graphic-properties/@svg:stroke-width"/>
26	</xsl:variable>
27	<xsl:variable name="uofUnit">
28		<xsl:choose>
29			<xsl:when test="contains($impresswithUnit,'inch')">inch</xsl:when>
30			<xsl:when test="contains($impresswithUnit,'cm')">cm</xsl:when>
31			<xsl:when test="contains($impresswithUnit,'mm')">mm</xsl:when>
32			<xsl:when test="contains($impresswithUnit,'pt')">pt</xsl:when>
33			<xsl:otherwise>cm</xsl:otherwise>
34		</xsl:choose>
35	</xsl:variable>
36	<xsl:variable name="cm-to-other">
37		<xsl:choose>
38			<xsl:when test="$uofUnit='cm'">1</xsl:when>
39			<xsl:when test="$uofUnit='inch'">0.394</xsl:when>
40			<xsl:when test="$uofUnit='pt'">28.346</xsl:when>
41			<xsl:when test="$uofUnit='mm'">10</xsl:when>
42			<xsl:when test="$uofUnit='pica'">2.364</xsl:when>
43			<xsl:otherwise>1</xsl:otherwise>
44		</xsl:choose>
45	</xsl:variable>
46	<xsl:key match="/office:document/office:automatic-styles/style:style | /office:document/office:styles/style:style" name="graphicset" use="@style:name"/>
47	<xsl:template match="/">
48		<xsl:apply-templates select="office:document"/>
49	</xsl:template>
50	<xsl:template match="office:document">
51		<uof:UOF xmlns:uof="http://schemas.uof.org/cn/2003/uof" xmlns:图="http://schemas.uof.org/cn/2003/graph" xmlns:数="http://www.w3.org/1998/Math/MathML" xmlns:字="http://schemas.uof.org/cn/2003/uof-wordproc" xmlns:演="http://schemas.uof.org/cn/2003/uof-slideshow" xmlns:表="http://schemas.uof.org/cn/2003/uof-spreadsheet" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" uof:language="cn" uof:version="1.0" uof:locID="u0000" uof:mimetype="vnd.uof.presentation">
52			<xsl:apply-templates select="office:meta"/>
53			<xsl:if test="//text:bookmark|//text:bookmark-start">
54			<uof:书签集 uof:locID="u0027">
55				<xsl:for-each select="//text:bookmark|//text:bookmark-start">
56					<uof:书签 uof:名称="{@text:name}" uof:locID="u0028" uof:attrList="名称">
57						<uof:文本位置 uof:区域引用="{generate-id(.)}" uof:locID="u0029" uof:attrList="区域引用"/>
58					</uof:书签>
59				</xsl:for-each>
60			</uof:书签集>
61		</xsl:if>
62			<xsl:if test="/office:document/office:body/text:p/text:a | /office:document/office:body/text:p/draw:a">
63				<uof:链接集 uof:locID="u0031">
64					<xsl:for-each select="/office:document/office:body/text:p/text:a | /office:document/office:body/text:p/draw:a">
65						<xsl:variable name="hyperStr" select="@xlink:href"/>
66						<uof:超级链接 uof:locID="u0032" uof:attrList="标识符 目标 书签 式样引用 已访问式样引用 提示 链源">
67							<xsl:if test="contains($hyperStr,'#')">
68								<xsl:attribute name="uof:书签"><xsl:value-of select="substring-after($hyperStr,'#')"/></xsl:attribute>
69								<xsl:attribute name="uof:提示"><xsl:value-of select="."/></xsl:attribute>
70							</xsl:if>
71							<xsl:variable name="num">
72								<xsl:number from="/office:document/office:body" level="any" count="text:p[text:a]"/>
73							</xsl:variable>
74							<xsl:attribute name="uof:链源"><xsl:value-of select="concat('hlnk',$num)"/></xsl:attribute>
75							<xsl:attribute name="uof:标识符"><xsl:value-of select="concat('hyk_','hlnk',$num)"/></xsl:attribute>
76							<xsl:if test="not(contains($hyperStr,'#'))">
77								<xsl:attribute name="uof:目标"><xsl:value-of select="$hyperStr"/></xsl:attribute>
78								<xsl:choose>
79									<xsl:when test="contains($hyperStr,'@')">
80										<xsl:attribute name="uof:提示">链接到邮件地址</xsl:attribute>
81									</xsl:when>
82									<xsl:otherwise>
83										<xsl:attribute name="uof:提示">链接文件</xsl:attribute>
84									</xsl:otherwise>
85								</xsl:choose>
86							</xsl:if>
87							<xsl:if test="@text:style-name">
88								<xsl:attribute name="uof:式样引用"><xsl:value-of select="@text:style-name"/></xsl:attribute>
89							</xsl:if>
90							<xsl:if test="@text:visited-style-name">
91								<xsl:attribute name="uof:已访问式样引用"><xsl:value-of select="@text:visited-style-name"/></xsl:attribute>
92							</xsl:if>
93						</uof:超级链接>
94					</xsl:for-each>
95				</uof:链接集>
96			</xsl:if>
97			<uof:对象集 uof:locID="u0033">
98				<xsl:apply-templates select="office:master-styles/style:handout-master" mode="styles"/>
99				<xsl:apply-templates select="office:master-styles/style:master-page" mode="styles"/>
100				<xsl:apply-templates select="office:body/office:presentation/draw:page" mode="styles"/>
101				<xsl:apply-templates select="office:styles/style:presentation-page-layout/presentation:placeholder" mode="graphic"/>
102				<xsl:apply-templates select="office:body/office:presentation/draw:page/presentation:notes" mode="styles"/>
103				<xsl:for-each select="(/office:document/office:styles/draw:fill-image) | (/office:document/office:automatic-styles/draw:fill-image)">
104					<uof:其他对象 uof:locID="u0036" uof:attrList="标识符 内嵌 公共类型 私有类型">
105						<xsl:attribute name="uof:标识符"><xsl:value-of select="@draw:name"/></xsl:attribute>
106						<xsl:attribute name="uof:公共类型">jpg</xsl:attribute>
107						<xsl:attribute name="uof:内嵌">true</xsl:attribute>
108						<uof:数据 uof:locID="u0037">
109							<xsl:value-of select="office:binary-data"/>
110						</uof:数据>
111					</uof:其他对象>
112				</xsl:for-each>
113				<xsl:for-each select="(/office:document/office:styles/style:style/style:graphic-properties/text:list-style/text:list-level-style-image) | (/office:document/office:automatic-styles/style:style/style:graphic-properties/text:list-style/text:list-level-style-image)">
114					<uof:其他对象 uof:locID="u0036" uof:attrList="标识符 内嵌 公共类型 私有类型">
115						<xsl:attribute name="uof:标识符"><xsl:value-of select="concat('image_numbering_',count(preceding::text:list-level-style-image))"/></xsl:attribute>
116						<xsl:attribute name="uof:公共类型">jpg</xsl:attribute>
117						<xsl:attribute name="uof:内嵌">true</xsl:attribute>
118						<uof:数据 uof:locID="u0037">
119							<xsl:value-of select="office:binary-data"/>
120						</uof:数据>
121					</uof:其他对象>
122				</xsl:for-each>
123			</uof:对象集>
124			<uof:式样集 uof:locID="u0039">
125				<xsl:apply-templates select="office:font-face-decls"/>
126				<xsl:element name="uof:自动编号集">
127					<xsl:attribute name="uof:locID">u0042</xsl:attribute>
128					<xsl:for-each select="/office:document//text:list-style">
129						<xsl:element name="字:自动编号">
130							<xsl:attribute name="uof:locID">t0169</xsl:attribute>
131							<xsl:attribute name="uof:attrList">标识符 名称 父编号引用 多级编号</xsl:attribute>
132							<xsl:attribute name="字:标识符">
133								<xsl:variable name="count1" select="count(preceding::text:list-style)"/>
134							<xsl:choose><xsl:when test="@style:name"><xsl:value-of select="concat(@style:name,$count1)"/></xsl:when><xsl:otherwise><xsl:value-of select="concat(../../@style:name,$count1)"/></xsl:otherwise></xsl:choose></xsl:attribute>
135							<xsl:attribute name="字:名称"><xsl:value-of select="@style:name"/></xsl:attribute>
136							<xsl:attribute name="字:多级编号">true</xsl:attribute>
137							<xsl:for-each select="./* ">
138							<xsl:if test="number(@text:level) &lt; 10">
139								<xsl:element name="字:级别">
140									<xsl:attribute name="uof:locID">t0159</xsl:attribute>
141									<xsl:attribute name="uof:attrList">级别值 编号对齐方式 尾随字符</xsl:attribute>
142									<xsl:attribute name="字:级别值"><xsl:value-of select="number(@text:level)"/></xsl:attribute>
143									<xsl:if test="style:list-level-properties/@fo:text-align">
144									<xsl:attribute name="字:编号对齐方式"><xsl:value-of select="style:list-level-properties/@fo:text-align"/></xsl:attribute>
145									</xsl:if>
146									<xsl:variable name="level">
147										<xsl:value-of select="@text:level"/>
148									</xsl:variable>
149									<xsl:if test="office:binary-data">
150										<xsl:element name="字:图片符号引用" uof:locID="t0164" uof:attrList="宽度 高度">
151											<xsl:attribute name="字:宽度"><xsl:value-of select="substring-before(style:list-level-properties/@fo:width,$uofUnit)"/></xsl:attribute>
152											<xsl:attribute name="字:高度"><xsl:value-of select="substring-before(style:list-level-properties/@fo:height,$uofUnit)"/></xsl:attribute>
153											<xsl:value-of select="concat('image_numbering_',count(preceding::text:list-level-style-image))"/>
154										</xsl:element>
155									</xsl:if>
156									<xsl:if test="@text:bullet-char">
157										<xsl:element name="字:项目符号">
158											<xsl:attribute name="uof:locID">t0171</xsl:attribute>
159											<xsl:value-of select="@text:bullet-char"/>
160										</xsl:element>
161									</xsl:if>
162									<xsl:element name="字:符号字体">
163										<xsl:attribute name="uof:locID">t0160</xsl:attribute>
164										<xsl:attribute name="uof:attrList">式样引用</xsl:attribute>
165										<xsl:call-template name="字:句属性"/>
166									</xsl:element>
167									<xsl:if test="@style:num-format">
168										<xsl:choose>
169											<xsl:when test="string(@style:num-format)='a'">
170												<xsl:element name="字:编号格式" uof:locID="t0162">lower-letter</xsl:element>
171											</xsl:when>
172											<xsl:when test="string(@style:num-format)='A'">
173												<xsl:element name="字:编号格式" uof:locID="t0162">upper-letter</xsl:element>
174											</xsl:when>
175											<xsl:when test="string(@style:num-format)='i'">
176												<xsl:element name="字:编号格式" uof:locID="t0162">lower-roman</xsl:element>
177											</xsl:when>
178											<xsl:when test="string(@style:num-format)='I'">
179												<xsl:element name="字:编号格式" uof:locID="t0162">upper-roman</xsl:element>
180											</xsl:when>
181											<xsl:when test="string(@style:num-format)='①, ②, ③, ...'">
182												<xsl:element name="字:编号格式" uof:locID="t0162">decimal-enclosed-circle</xsl:element>
183											</xsl:when>
184											<xsl:when test="string(@style:num-format)='甲, 乙, 丙, ...'">
185												<xsl:element name="字:编号格式" uof:locID="t0162">ideograph-traditional</xsl:element>
186											</xsl:when>
187											<xsl:when test="string(@style:num-format)='子, 丑, 寅, ...'">
188												<xsl:element name="字:编号格式" uof:locID="t0162">ideograph-zodiac</xsl:element>
189											</xsl:when>
190											<xsl:when test="string(@style:num-format)='一, 二, 三, ...'">
191												<xsl:element name="字:编号格式" uof:locID="t0162">chinese-counting</xsl:element>
192											</xsl:when>
193											<xsl:when test="string(@style:num-format)='壹, 贰, 叁, ...'">
194												<xsl:element name="字:编号格式" uof:locID="t0162">chinese-legal-simplified</xsl:element>
195											</xsl:when>
196											<xsl:otherwise>
197												<xsl:element name="字:编号格式" uof:locID="t0162">decimal</xsl:element>
198											</xsl:otherwise>
199										</xsl:choose>
200									</xsl:if>
201									<xsl:variable name="jibie">
202										<xsl:value-of select="position()"/>
203									</xsl:variable>
204									<xsl:variable name="xianshijibie">
205										<xsl:choose>
206											<xsl:when test="@text:display-levels">
207												<xsl:value-of select="@text:display-levels"/>
208											</xsl:when>
209											<xsl:otherwise>1</xsl:otherwise>
210										</xsl:choose>
211									</xsl:variable>
212									<字:编号格式表示 uof:locID="t0163">
213										<xsl:call-template name="字:编号格式表示">
214											<xsl:with-param name="bubianjibie" select="$jibie"/>
215											<xsl:with-param name="jibie" select="$jibie"/>
216											<xsl:with-param name="xianshijibie" select="$xianshijibie"/>
217											<xsl:with-param name="biaoshi" select="concat(string(@style:num-prefix),'%',$jibie,string(@style:num-suffix))"/>
218										</xsl:call-template>
219									</字:编号格式表示>
220									<xsl:element name="字:缩进">
221										<xsl:attribute name="uof:locID">t0165</xsl:attribute>
222										<xsl:call-template name="字:缩进类型"/>
223									</xsl:element>
224									<xsl:element name="字:制表符位置">
225									<xsl:attribute name="uof:locID">t0166</xsl:attribute>
226										<xsl:value-of select="substring-before(style:list-level-properties/@text:min-label-width,$uofUnit)"/>
227									</xsl:element>
228									<xsl:if test="@text:start-value">
229										<xsl:element name="字:起始编号">
230											<xsl:value-of select="@text:start-value"/>
231										</xsl:element>
232									</xsl:if>
233									<xsl:if test="@text:num-regular-exp">
234										<xsl:element name="字:正规格式" uof:locID="t0168" uof:attrList="值">
235											<xsl:attribute name="值"><xsl:value-of select="@text:num-regular-exp"/></xsl:attribute>
236										</xsl:element>
237									</xsl:if>
238								</xsl:element>
239								</xsl:if>
240							</xsl:for-each>
241						</xsl:element>
242					</xsl:for-each>
243				</xsl:element>
244				<xsl:for-each select="/office:document//text:list-style/*">
245					<xsl:if test="style:text-properties/@fo:font-family">
246						<xsl:element name="uof:句式样">
247							<xsl:attribute name="uof:locID">u0043</xsl:attribute>
248							<xsl:attribute name="uof:attrList">标识符 名称 类型 别名 基式样引用</xsl:attribute>
249							<xsl:variable name="count"><xsl:value-of select="count(preceding::node())"/></xsl:variable>
250							<xsl:attribute name="字:标识符"><xsl:value-of select="concat('ID',$count)"/></xsl:attribute>
251							<xsl:attribute name="字:名称"><xsl:value-of select="concat(ancestor::style:style/@style:name,@text:level)"/></xsl:attribute>
252							<xsl:attribute name="字:类型">auto</xsl:attribute>
253							<xsl:if test="ancestor::style:style/@style:parent-style-name">
254								<xsl:attribute name="字:基式样引用"><xsl:value-of select="ancestor::style:style/@style:parent-style-name"/></xsl:attribute>
255							</xsl:if>
256							<xsl:call-template name="字:句属性"/>
257						</xsl:element>
258					</xsl:if>
259				</xsl:for-each>
260				<xsl:apply-templates select="office:styles | office:automatic-styles" mode="style"/>
261				<xsl:for-each select="/office:document/office:master-styles/style:master-page">
262					<xsl:for-each select="child::draw:frame">
263						<xsl:variable name="stylename" select="@presentation:style-name"/>
264						<xsl:variable name="parent" select="/office:document/office:automatic-styles/style:style[@style:name=$stylename]/@style:parent-style-name"/>
265						<xsl:for-each select="/office:document/*/style:style[@style:name=$parent]">
266							<xsl:if test="not(contains(@style:name,'outline'))">
267								<xsl:call-template name="段落式样"/>
268							</xsl:if>
269						</xsl:for-each>
270					</xsl:for-each>
271				</xsl:for-each>
272				<xsl:for-each select="/office:document/office:styles/style:style[contains(@style:name,'outline')]">
273					<xsl:call-template name="段落式样"/>
274				</xsl:for-each>
275			</uof:式样集>
276			<uof:演示文稿 uof:locID="u0048">
277				<演:公用处理规则 uof:locID="p0000">
278					<xsl:element name="演:度量单位">
279						<xsl:attribute name="uof:locID">p0055</xsl:attribute>
280						<xsl:value-of select="$uofUnit"/>
281					</xsl:element>
282					<演:页面设置集 uof:locID="p0001">
283						<xsl:apply-templates select="office:automatic-styles/style:page-layout"/>
284					</演:页面设置集>
285					<演:配色方案集 uof:locID="p0007">
286					        <xsl:for-each select="/office:document/office:master-styles/*[@draw:style-name]">
287					           <xsl:call-template name="配色方案"/>
288					        </xsl:for-each>
289					    <xsl:for-each select="/office:document/office:body/office:presentation/draw:page">
290					      <xsl:call-template name="配色方案"/>
291						</xsl:for-each>
292					</演:配色方案集>
293					<演:页面版式集 uof:locID="p0017">
294						<xsl:apply-templates select="office:styles/style:presentation-page-layout" mode="pagestyle"/>
295					</演:页面版式集>
296					<xsl:if test="office:styles/style:style='标准-title' or office:styles/style:style='标准-outline'" >
297					<演:文本式样集 uof:locID="p0131">
298					    <xsl:for-each select="office:styles/style:style">
299					    <xsl:variable name="name"><xsl:value-of select="@style:name"/></xsl:variable>
300					    <xsl:if test="$name='标准-title' or contains($name,'标准-outline')">
301						<演:文本式样 uof:locID="p0132" uof:attrList="标识符 名称">
302                           <xsl:attribute name="演:标识符">text-style</xsl:attribute>
303							<xsl:attribute name="演:名称">文本式样</xsl:attribute>
304							<xsl:element name="演:段落式样">
305						       <xsl:attribute name="字:标识符"><xsl:value-of select="@style:name"/></xsl:attribute>
306						       <xsl:attribute name="字:类型">auto</xsl:attribute>
307						      <xsl:if test="@style:parent-style-name">
308							   <xsl:attribute name="字:基式样引用"><xsl:value-of select="@style:parent-style-name"/></xsl:attribute>
309						      </xsl:if>
310						      <xsl:attribute name="字:名称"><xsl:value-of select="@style:name"/></xsl:attribute>
311						      <xsl:attribute name="字:别名"><xsl:value-of select="@style:class"/></xsl:attribute>
312						<xsl:call-template name="ParaAttribute">
313 						  <xsl:with-param name="text-style-name" select="@text:style-name"/>
314						</xsl:call-template>
315						<xsl:call-template name="字:句属性"/>
316					</xsl:element>
317						</演:文本式样>
318						</xsl:if>
319					</xsl:for-each>
320					</演:文本式样集>
321					</xsl:if>
322					<演:显示比例 uof:locID="p0020">
323						<xsl:variable name="VisibleAreaWidth">
324							<xsl:value-of select="/office:document/office:settings/config:config-item-set/config:config-item-map-indexed/config:config-item-map-entry/config:config-item[@config:name='VisibleAreaWidth']"/>
325						</xsl:variable>
326						<xsl:value-of select="substring-before((13997 div $VisibleAreaWidth)*100,'.')"/>
327					</演:显示比例>
328					<演:放映设置 uof:locID="p0021">
329						<演:幻灯片序列 uof:locID="p0022" uof:attrList="标识符 名称 自定义">
330							<xsl:attribute name="演:标识符">customList</xsl:attribute>
331							<xsl:attribute name="演:名称">幻灯片序列</xsl:attribute>
332							<xsl:attribute name="演:自定义">true</xsl:attribute>
333							<xsl:choose>
334								<xsl:when test="office:body/office:presentation/presentation:settings/@presentation:start-page">
335									<xsl:variable name="start-page">
336										<xsl:value-of select="office:body/office:presentation/presentation:settings/@presentation:start-page"/>
337									</xsl:variable>
338									<xsl:variable name="before-slides">
339										<xsl:call-template name="幻灯片序列">
340											<xsl:with-param name="start-node" select="office:body/office:presentation/draw:page[@draw:name=$start-page]"/>
341											<xsl:with-param name="end-node" select="office:body/office:presentation/draw:page[last()]"/>
342											<xsl:with-param name="value"/>
343										</xsl:call-template>
344									</xsl:variable>
345									<xsl:variable name="after-slides">
346										<xsl:for-each select="office:body/office:presentation/draw:page[@draw:name=$start-page]">
347											<xsl:call-template name="幻灯片序列">
348												<xsl:with-param name="start-node" select="/office:document/office:body/office:presentation/draw:page[1]"/>
349												<xsl:with-param name="end-node" select="preceding-sibling::node()[1]"/>
350												<xsl:with-param name="value"/>
351											</xsl:call-template>
352										</xsl:for-each>
353									</xsl:variable>
354									<xsl:value-of select="concat($before-slides,' ',$after-slides)"/>
355								</xsl:when>
356								<xsl:otherwise>
357									<xsl:call-template name="幻灯片序列">
358										<xsl:with-param name="start-node" select="office:body/office:presentation/draw:page[1]"/>
359										<xsl:with-param name="end-node" select="office:body/office:presentation/draw:page[last()]"/>
360										<xsl:with-param name="value"/>
361									</xsl:call-template>
362								</xsl:otherwise>
363							</xsl:choose>
364						</演:幻灯片序列>
365						<演:放映顺序 uof:locID="p0023" uof:attrList="名称 序列引用">
366							<xsl:attribute name="演:名称">放映顺序</xsl:attribute>
367							<xsl:attribute name="演:序列引用">customList</xsl:attribute>
368						</演:放映顺序>
369						<演:全屏放映 uof:locID="p0024">
370							<xsl:choose>
371								<xsl:when test="office:body/office:presentation/presentation:settings/@presentation:full-screen='false'">false</xsl:when>
372								<xsl:otherwise>true</xsl:otherwise>
373							</xsl:choose>
374						</演:全屏放映>
375						<演:循环放映 uof:locID="p0025">
376							<xsl:choose>
377								<xsl:when test="office:body/office:presentation/presentation:settings/@presentation:endless='true'">true</xsl:when>
378								<xsl:otherwise>false</xsl:otherwise>
379							</xsl:choose>
380						</演:循环放映>
381						<xsl:if test="office:body/office:presentation/presentation:settings/@presentation:pause">
382							<演:放映间隔 uof:locID="p0026">
383								<xsl:variable name="hms">
384									<xsl:value-of select="substring-after(office:body/office:presentation/presentation:settings/@presentation:pause,'PT')"/>
385								</xsl:variable>
386								<xsl:value-of select="concat('P0Y0M0DT',$hms)"/>
387							</演:放映间隔>
388						</xsl:if>
389						<演:手动方式 uof:locID="p0027">
390							<xsl:choose>
391								<xsl:when test="office:body/office:presentation/presentation:settings/@presentation:force-manual='true'">true</xsl:when>
392								<xsl:otherwise>false</xsl:otherwise>
393							</xsl:choose>
394						</演:手动方式>
395						<演:导航帮助 uof:locID="p0029">
396							<xsl:choose>
397								<xsl:when test="office:body/office:presentation/presentation:settings/@presentation:start-with-navigator='true'">true</xsl:when>
398								<xsl:otherwise>false</xsl:otherwise>
399							</xsl:choose>
400						</演:导航帮助>
401						<演:放映动画 uof:locID="p0030">
402							<xsl:choose>
403								<xsl:when test="office:body/office:presentation/presentation:settings/@presentation:animations='disabled'">false</xsl:when>
404								<xsl:otherwise>true</xsl:otherwise>
405							</xsl:choose>
406						</演:放映动画>
407						<演:前端显示 uof:locID="p0031">
408							<xsl:choose>
409								<xsl:when test="office:body/office:presentation/presentation:settings/@presentation:stay-on-top='true'">true</xsl:when>
410								<xsl:otherwise>false</xsl:otherwise>
411							</xsl:choose>
412						</演:前端显示>
413					</演:放映设置>
414				</演:公用处理规则>
415				<演:主体 uof:locID="p0034">
416					<演:母版集 uof:locID="p0035">
417						<xsl:apply-templates select="office:master-styles"/>
418					</演:母版集>
419					<演:幻灯片集 uof:locID="p0039">
420						<xsl:apply-templates select="office:body/office:presentation/draw:page"/>
421					</演:幻灯片集>
422				</演:主体>
423			</uof:演示文稿>
424		</uof:UOF>
425	</xsl:template>
426<xsl:template name="配色方案">
427   <xsl:variable name="page-name"><xsl:value-of select="@draw:style-name"/></xsl:variable>
428							<演:配色方案 uof:locID="p0008" uof:attrList="标识符 名称 类型">
429								<xsl:attribute name="演:标识符">
430								   <xsl:choose>
431												<xsl:when test="@draw:name"><xsl:value-of select="@draw:name"/></xsl:when>
432												<xsl:otherwise><xsl:value-of select="@draw:style-name"/></xsl:otherwise>
433											</xsl:choose>
434
435								</xsl:attribute>
436								<xsl:for-each select="/office:document/office:automatic-styles/style:style[@style:name = $page-name]">
437								<xsl:attribute name="演:名称"><xsl:value-of select="@style:name"/></xsl:attribute>
438								<xsl:attribute name="演:类型"><xsl:choose><xsl:when test="not(contains(@style:name,'color'))">custom</xsl:when><xsl:otherwise>standard</xsl:otherwise></xsl:choose></xsl:attribute>
439								<xsl:if test="style:drawing-page-properties/@draw:fill-color">
440									<演:背景色 uof:locID="p0009">
441										<xsl:value-of select="style:drawing-page-properties/@draw:fill-color"/>
442									</演:背景色>
443								</xsl:if>
444								<xsl:if test="style:drawing-page-properties/@svg:stroke-color">
445									<演:文本和线条 uof:locID="p0010">
446										<xsl:value-of select="style:drawing-page-properties/@svg:stroke-color"/>
447									</演:文本和线条>
448								</xsl:if>
449								<xsl:if test="style:drawing-page-properties/@draw:shadow-color">
450									<演:阴影 uof:locID="p0011">
451										<xsl:value-of select="style:drawing-page-properties/@draw:shadow-color"/>
452									</演:阴影>
453								</xsl:if>
454								<xsl:if test="style:drawing-page-properties/@svg:stroke-color">
455								<演:标题文本 uof:locID="p0012">
456									<xsl:value-of select="style:drawing-page-properties/@svg:stroke-color"/>
457								</演:标题文本>
458								</xsl:if>
459								<xsl:if test="style:drawing-page-properties/@draw:fill-color">
460									<演:填充 uof:locID="p0013">
461										<xsl:value-of select="style:drawing-page-properties/@draw:fill-color"/>
462									</演:填充>
463								</xsl:if>
464								<演:强调 uof:locID="p0014">#FFFFFF</演:强调>
465								<演:强调和超级链接 uof:locID="p0015">#FF0000</演:强调和超级链接>
466								<演:强调和尾随超级链接 uof:locID="p0016">#FF00FF</演:强调和尾随超级链接>
467								</xsl:for-each>
468							</演:配色方案>
469</xsl:template>
470	<xsl:template name="幻灯片序列">
471		<xsl:param name="start-node"/>
472		<xsl:param name="end-node"/>
473		<xsl:param name="value"/>
474		<xsl:choose>
475			<xsl:when test="not($start-node/@draw:name = $end-node/@draw:name)">
476				<xsl:for-each select="$start-node">
477					<xsl:variable name="value1">
478						<xsl:value-of select="concat($value,@draw:name,'_',@draw:style-name,' ')"/>
479					</xsl:variable>
480					<xsl:call-template name="幻灯片序列">
481						<xsl:with-param name="start-node" select="following-sibling::node()[1]"/>
482						<xsl:with-param name="end-node" select="$end-node"/>
483						<xsl:with-param name="value" select="$value1"/>
484					</xsl:call-template>
485				</xsl:for-each>
486			</xsl:when>
487			<xsl:otherwise>
488				<xsl:value-of select="concat($value,$start-node/@draw:name)"/>
489			</xsl:otherwise>
490		</xsl:choose>
491	</xsl:template>
492	<xsl:template name="字:编号格式表示">
493		<xsl:param name="bubianjibie"/>
494		<xsl:param name="jibie"/>
495		<xsl:param name="xianshijibie"/>
496		<xsl:param name="biaoshi"/>
497		<xsl:choose>
498			<xsl:when test="number($xianshijibie)= 1">
499				<xsl:value-of select="$biaoshi"/>
500			</xsl:when>
501			<xsl:otherwise>
502				<xsl:variable name="num-prefix">
503					<xsl:value-of select="preceding-sibling::*[number($bubianjibie -$jibie +1)]/@style:num-prefix"/>
504				</xsl:variable>
505				<xsl:variable name="num-suffix">
506					<xsl:value-of select="preceding-sibling::*[number($bubianjibie -$jibie +1)]/@style:num-suffix"/>
507				</xsl:variable>
508				<xsl:call-template name="字:编号格式表示">
509					<xsl:with-param name="bubianjibie" select="$bubianjibie"/>
510					<xsl:with-param name="jibie" select="$jibie -1"/>
511					<xsl:with-param name="xianshijibie" select="$xianshijibie -1"/>
512					<xsl:with-param name="biaoshi" select="concat($num-prefix,'%',number($jibie -1),$num-suffix,'.',$biaoshi)"/>
513				</xsl:call-template>
514			</xsl:otherwise>
515		</xsl:choose>
516	</xsl:template>
517	<xsl:template name="字:句属性">
518		<xsl:element name="字:字体">
519			<xsl:attribute name="uof:locID">t0088</xsl:attribute>
520			<xsl:attribute name="uof:attrList">西文字体引用 中文字体引用 特殊字体引用 西文绘制 字号 相对字号 颜色</xsl:attribute>
521			<xsl:if test=".//@fo:font-size or .//@style:font-size-asian or  .//@style:font-size-complex">
522				<xsl:choose>
523					<xsl:when test="contains(.//@fo:font-size,'%') or contains(.//@style:font-size-asian,'%')">
524						<xsl:attribute name="字:相对字号"><xsl:choose><xsl:when test=".//@fo:font-size"><xsl:value-of select="substring-before(.//@fo:font-size,'%')"/></xsl:when><xsl:when test=".//@style:font-size-asian"><xsl:value-of select="substring-before(.//@style:font-size-asian,'%')"/></xsl:when></xsl:choose></xsl:attribute>
525					</xsl:when>
526					<xsl:otherwise>
527						<xsl:attribute name="字:字号"><xsl:choose><xsl:when test=".//@fo:font-size"><xsl:value-of select="substring-before(.//@fo:font-size,'pt')"/></xsl:when><xsl:when test=".//@style:font-size-asian"><xsl:value-of select="substring-before(.//@style:font-size-asian,'pt')"/></xsl:when><xsl:when test=".//@style:font-size-complex"><xsl:value-of select="substring-before(.//@style:font-size-complex,'pt')"/></xsl:when></xsl:choose></xsl:attribute>
528					</xsl:otherwise>
529				</xsl:choose>
530			</xsl:if>
531			<xsl:if test=".//@style:font-name">
532				<xsl:attribute name="字:西文字体引用"><xsl:value-of select=".//@style:font-name"/></xsl:attribute>
533			</xsl:if>
534			<xsl:if test=".//@style:font-name-asian">
535				<xsl:attribute name="字:中文字体引用"><xsl:value-of select=".//@style:font-name-asian"/></xsl:attribute>
536			</xsl:if>
537			<xsl:if test=".//@fo:color">
538				<xsl:attribute name="字:颜色"><xsl:value-of select=".//@fo:color"/></xsl:attribute>
539			</xsl:if>
540		</xsl:element>
541		<xsl:if test=".//@style:text-background-color and not(.//@style:text-background-color='transparent')">
542			<xsl:element name="字:填充">
543				<xsl:element name="图:图案">
544					<xsl:attribute name="uof:locID">g0036</xsl:attribute>
545					<xsl:attribute name="uof:attrList">类型 图形引用 前景色 背景色</xsl:attribute>
546					<xsl:if test=".//@style:text-background-color">
547						<xsl:attribute name="图:前景色"><xsl:value-of select=".//@style:text-background-color"/></xsl:attribute>
548					</xsl:if>
549				</xsl:element>
550			</xsl:element>
551		</xsl:if>
552		<xsl:if test=".//@fo:font-weight or .//@style:font-weight-asian">
553			<xsl:element name="字:粗体">
554				<xsl:attribute name="uof:locID">t0089</xsl:attribute>
555				<xsl:attribute name="uof:attrList">值</xsl:attribute>
556				<xsl:attribute name="字:值"><xsl:choose><xsl:when test=".//@style:font-weight-asian='bold' or .//@fo:font-weight='bold'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
557			</xsl:element>
558		</xsl:if>
559		<xsl:if test=".//@fo:font-style or .//@style:font-style-asian">
560			<xsl:element name="字:斜体">
561				<xsl:attribute name="uof:locID">t0090</xsl:attribute>
562				<xsl:attribute name="uof:attrList">值</xsl:attribute>
563				<xsl:attribute name="字:值"><xsl:choose><xsl:when test=".//@fo:font-style='italic' or .//@style:font-style-asian='italic'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
564			</xsl:element>
565		</xsl:if>
566		<xsl:if test=".//@style:text-crossing-out">
567			<xsl:element name="字:删除线">
568				<xsl:attribute name="uof:locID">t0094</xsl:attribute>
569				<xsl:attribute name="uof:attrList">类型</xsl:attribute>
570				<xsl:attribute name="字:类型"><xsl:call-template name="uof:线型类型"><xsl:with-param name="lineType" select=".//@style:text-crossing-out"/></xsl:call-template></xsl:attribute>
571			</xsl:element>
572		</xsl:if>
573		<xsl:if test=".//@style:text-underline">
574			<xsl:element name="字:下划线">
575				<xsl:attribute name="字:类型"><xsl:call-template name="uof:线型类型"><xsl:with-param name="lineType" select=".//@style:text-underline"/></xsl:call-template></xsl:attribute>
576				<xsl:attribute name="uof:locID">t0095</xsl:attribute>
577				<xsl:attribute name="uof:attrList">类型</xsl:attribute>
578				<xsl:if test=".//@style:text-underline-color">
579					<xsl:attribute name="字:颜色"><xsl:value-of select=".//@style:text-underline-color"/></xsl:attribute>
580				</xsl:if>
581			</xsl:element>
582		</xsl:if>
583		<xsl:if test=".//@fo:text-shadow and not(.//@fo:text-shadow='none')">
584			<xsl:element name="字:阴影">
585				<xsl:attribute name="uof:locID">t0100</xsl:attribute>
586				<xsl:attribute name="uof:attrList">值</xsl:attribute>
587				<xsl:attribute name="字:值"><xsl:choose><xsl:when test=".//@fo:text-shadow='none'">false</xsl:when><xsl:otherwise>true</xsl:otherwise></xsl:choose></xsl:attribute>
588			</xsl:element>
589		</xsl:if>
590		<xsl:if test=".//@style:text-emphasize">
591			<xsl:element name="字:着重号">
592				<xsl:attribute name="uof:locID">t0096</xsl:attribute>
593				<xsl:attribute name="uof:attrList">类型 颜色 字着重号</xsl:attribute>
594				<xsl:choose>
595					<xsl:when test=".//@style:text-emphasize='none'">
596						<xsl:attribute name="字:字着重号">false</xsl:attribute>
597						<xsl:attribute name="字:类型">none</xsl:attribute>
598					</xsl:when>
599					<xsl:otherwise>
600						<xsl:attribute name="字:字着重号">true</xsl:attribute>
601						<xsl:attribute name="字:类型">dot</xsl:attribute>
602					</xsl:otherwise>
603				</xsl:choose>
604				<xsl:if test=".//@fo:color">
605					<xsl:attribute name="字:颜色"><xsl:value-of select=".//@fo:color"/></xsl:attribute>
606				</xsl:if>
607			</xsl:element>
608		</xsl:if>
609		<xsl:if test=".//@text:display and not(.//@text:display='none')">
610			<xsl:element name="字:隐藏文字">
611				<xsl:attribute name="uof:locID">t0097</xsl:attribute>
612				<xsl:attribute name="uof:attrList">值</xsl:attribute>
613				<xsl:attribute name="字:值">true</xsl:attribute>
614			</xsl:element>
615		</xsl:if>
616		<xsl:if test=".//@style:text-outline and not(.//@style:text-outline='none')">
617			<xsl:element name="字:空心">
618				<xsl:attribute name="uof:locID">t0098</xsl:attribute>
619				<xsl:attribute name="uof:attrList">值</xsl:attribute>
620				<xsl:attribute name="字:值"><xsl:value-of select=".//@style:text-outline"/></xsl:attribute>
621			</xsl:element>
622		</xsl:if>
623		<xsl:if test=".//@style:font-relief and not(.//@style:font-relief='none')">
624			<xsl:element name="字:浮雕">
625				<xsl:attribute name="uof:locID">t0099</xsl:attribute>
626				<xsl:attribute name="uof:attrList">类型</xsl:attribute>
627				<xsl:attribute name="字:类型"><xsl:choose><xsl:when test=".//@style:font-relief='embossed'">emboss</xsl:when><xsl:when test=".//@style:font-relief='engraved'">engrave</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
628			</xsl:element>
629		</xsl:if>
630		<xsl:if test=".//@fo:text-transform or .//@fo:font-variant">
631			<xsl:element name="字:醒目字体">
632				<xsl:attribute name="uof:locID">t0101</xsl:attribute>
633				<xsl:attribute name="uof:attrList">类型</xsl:attribute>
634				<xsl:attribute name="字:类型"><xsl:choose><xsl:when test=".//@fo:text-transform='uppercase'">uppercase</xsl:when><xsl:when test=".//@fo:text-transform='lowercase'">lowercase</xsl:when><xsl:when test=".//@fo:text-transform='capitalize'">capital</xsl:when><xsl:when test=".//@fo:font-variant='small-caps'">small-caps</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
635			</xsl:element>
636		</xsl:if>
637		<xsl:if test=".//@style:text-position">
638			<xsl:element name="字:位置">
639				<xsl:attribute name="uof:locID">t0102</xsl:attribute>
640				<xsl:value-of select=".//@style:text-position"/>
641			</xsl:element>
642			<字:上下标 uof:locID="t0205" uof:attrList="值">
643				<xsl:attribute name="字:值">none</xsl:attribute>
644			</字:上下标>
645		</xsl:if>
646		<xsl:if test=".//@style:text-scale">
647			<xsl:element name="字:缩放">
648				<xsl:attribute name="uof:locID">t0103</xsl:attribute>
649				<xsl:value-of select=".//@style:text-scale"/>
650			</xsl:element>
651		</xsl:if>
652		<xsl:if test=".//@fo:letter-spacing">
653			<xsl:element name="字:字符间距">
654				<xsl:attribute name="uof:locID">t0104</xsl:attribute>
655				<xsl:value-of select=".//@fo:letter-spacing"/>
656			</xsl:element>
657		</xsl:if>
658		<xsl:if test=".//@style:letter-kerning">
659			<xsl:element name="字:调整字间距">
660				<xsl:attribute name="uof:locID">t015</xsl:attribute>
661				<xsl:value-of select=".//@style:letter-kerning"/>
662			</xsl:element>
663		</xsl:if>
664		<xsl:element name="字:字符对齐网格">
665			<xsl:attribute name="字:值">false</xsl:attribute>
666			<xsl:attribute name="uof:locID">t0106</xsl:attribute>
667			<xsl:attribute name="uof:attrList">值</xsl:attribute>
668		</xsl:element>
669	</xsl:template>
670	<xsl:template match="style:presentation-page-layout" mode="pagestyle">
671		<演:页面版式 uof:locID="p0018" uof:attrList="标识符 名称">
672			<xsl:attribute name="演:标识符"><xsl:value-of select="@style:name"/></xsl:attribute>
673			<xsl:attribute name="演:名称"><xsl:value-of select="@style:name"/></xsl:attribute>
674			<演:布局 uof:locID="p0129" uof:attrList="类型">
675				<xsl:attribute name="演:类型">
676				<xsl:variable name="layout" select="substring-after(@style:name,'T')"/>
677				<xsl:choose>
678				<xsl:when test="$layout='0'">title-subtitle</xsl:when><xsl:when test="$layout='1'">title-body</xsl:when><xsl:when test="$layout='19'">title-only</xsl:when><xsl:when test="$layout='12'">column-2-rows</xsl:when><xsl:when test="$layout='15'">2-rows-column</xsl:when><xsl:when test="$layout='16'">2-columns-row</xsl:when><xsl:when test="$layout='17'">2-rows</xsl:when><xsl:when test="$layout='18'">4-objects</xsl:when><xsl:when test="$layout='27'">v-2-rows</xsl:when><xsl:when test="$layout='28'">v-title-body</xsl:when><xsl:when test="$layout='29'">big-object</xsl:when><xsl:when test="$layout='30'">2-columns</xsl:when>
679					<xsl:otherwise>title-only</xsl:otherwise>
680				</xsl:choose></xsl:attribute>
681			</演:布局>
682			<xsl:apply-templates select="presentation:placeholder" mode="anchor"/>
683		</演:页面版式>
684	</xsl:template>
685	<xsl:template match="presentation:placeholder" mode="anchor">
686		<演:占位符 uof:locID="p0130" uof:attrList="类型">
687			<xsl:attribute name="演:类型"><xsl:choose><xsl:when test="@presentation:object = 'vertical_outline'">vertical_text</xsl:when><xsl:when test="@presentation:object = 'date-time'">date</xsl:when><xsl:when test="@presentation:object = 'page_number'">number</xsl:when><xsl:otherwise><xsl:value-of select="@presentation:object"/></xsl:otherwise></xsl:choose></xsl:attribute>
688			<uof:锚点 uof:locID="u0064" uof:attrList="x坐标 y坐标 宽度 高度 图形引用 随动方式 缩略图 占位符">
689				<xsl:attribute name="uof:x坐标"><xsl:value-of select="substring-before(@svg:x,$uofUnit)"/></xsl:attribute>
690				<xsl:attribute name="uof:y坐标"><xsl:value-of select="substring-before(@svg:y,$uofUnit)"/></xsl:attribute>
691				<xsl:attribute name="uof:宽度"><xsl:value-of select="substring-before(@svg:width,$uofUnit)"/></xsl:attribute>
692				<xsl:attribute name="uof:高度"><xsl:value-of select="substring-before(@svg:height,$uofUnit)"/></xsl:attribute>
693				<xsl:attribute name="uof:图形引用"><xsl:variable name="number"><xsl:value-of select="concat('_',count(preceding-sibling::presentation:placeholder))"/></xsl:variable><xsl:value-of select="concat(parent::style:presentation-page-layout/@style:name,$number)"/></xsl:attribute>
694			</uof:锚点>
695		</演:占位符>
696	</xsl:template>
697	<xsl:template match="presentation:placeholder" mode="graphic">
698		<图:图形 uof:locID="g0000" uof:attrList="层次 标识符 组合列表 其他对象" 图:层次="3">
699			<xsl:attribute name="图:标识符"><xsl:variable name="number"><xsl:value-of select="concat('_',count(preceding-sibling::presentation:placeholder))"/></xsl:variable><xsl:value-of select="concat(parent::style:presentation-page-layout/@style:name,$number)"/></xsl:attribute>
700		</图:图形>
701	</xsl:template>
702	<xsl:template match="office:master-styles">
703		<xsl:apply-templates select="style:handout-master"/>
704		<xsl:apply-templates select="style:master-page"/>
705		<xsl:if test="style:master-page/presentation:notes">
706			<xsl:apply-templates select="style:master-page/presentation:notes"/>
707		</xsl:if>
708	</xsl:template>
709	<xsl:template match="style:handout-master">
710		<演:母版 uof:locID="p0036" uof:attrList="标识符 名称 类型 页面设置引用 配色方案引用 页面版式引用 文本式样引用" 演:名称="handout母版" 演:类型="handout">
711			<xsl:attribute name="演:页面设置引用"><xsl:value-of select="@style:page-layout-name"/></xsl:attribute>
712			<xsl:if test="@draw:style-name">
713				<xsl:attribute name="演:配色方案引用"><xsl:value-of select="@draw:style-name"/></xsl:attribute>
714			</xsl:if>
715			<xsl:if test="@presentation:presentation-page-layout-name">
716				<xsl:attribute name="演:页面版式引用"><xsl:value-of select="@presentation:presentation-page-layout-name"/></xsl:attribute>
717			</xsl:if>
718			<xsl:call-template name="产生锚点"/>
719		</演:母版>
720	</xsl:template>
721	<xsl:template match="style:master-page">
722		<演:母版 uof:locID="p0036" uof:attrList="标识符 名称 类型 页面设置引用 配色方案引用 页面版式引用 文本式样引用" 演:名称="slide母版" 演:类型="slide">
723			<xsl:attribute name="演:标识符"><xsl:value-of select="@style:name"/></xsl:attribute>
724			<xsl:attribute name="演:页面设置引用"><xsl:value-of select="@style:page-layout-name"/></xsl:attribute>
725			<xsl:if test="@draw:style-name">
726				<xsl:attribute name="演:配色方案引用"><xsl:value-of select="@draw:style-name"/></xsl:attribute>
727			</xsl:if>
728			<xsl:if test="@presentation:presentation-page-layout-name">
729				<xsl:attribute name="演:页面版式引用"><xsl:value-of select="@presentation:presentation-page-layout-name"/></xsl:attribute>
730			</xsl:if>
731			<xsl:call-template name="产生锚点"/>
732			<xsl:variable name="stylename">
733				<xsl:value-of select="@draw:style-name"/>
734			</xsl:variable>
735			<xsl:variable name="name">
736				<xsl:value-of select="name(.)"/>
737			</xsl:variable>
738			<xsl:for-each select="/office:document/*/style:style[@style:name=$stylename]/style:drawing-page-properties">
739				<xsl:if test="@draw:fill and not(@draw:fill='none')">
740					<演:背景 uof:locID="p0057">
741						<xsl:call-template name="填充">
742							<xsl:with-param name="picname" select="$stylename"/>
743							<xsl:with-param name="nodename" select="$name"/>
744						</xsl:call-template>
745					</演:背景>
746				</xsl:if>
747			</xsl:for-each>
748		</演:母版>
749	</xsl:template>
750	<xsl:template match="presentation:notes">
751		<演:母版 uof:locID="p0036" uof:attrList="标识符 名称 类型 页面设置引用 配色方案引用 页面版式引用 文本式样引用" 演:名称="notes母版" 演:类型="notes">
752			<xsl:attribute name="演:标识符"><xsl:value-of select="concat('note-',parent::style:master-page/@style:name)"/></xsl:attribute>
753			<xsl:attribute name="演:页面设置引用"><xsl:value-of select="@style:page-layout-name"/></xsl:attribute>
754			<xsl:if test="@draw:style-name">
755				<xsl:attribute name="演:配色方案引用"><xsl:value-of select="@draw:style-name"/></xsl:attribute>
756			</xsl:if>
757			<xsl:if test="@presentation:presentation-page-layout-name">
758				<xsl:attribute name="演:页面版式引用"><xsl:value-of select="@presentation:presentation-page-layout-name"/></xsl:attribute>
759			</xsl:if>
760			<xsl:call-template name="产生锚点"/>
761		</演:母版>
762	</xsl:template>
763	<xsl:template match="draw:page">
764		<演:幻灯片 uof:locID="p0040" uof:attrList="名称 标识符 母版引用 配色方案引用 页面版式引用 显示 显示背景 显示背景对象">
765			<xsl:attribute name="演:标识符"><xsl:value-of select="concat(@draw:name,'_',@draw:style-name)"/></xsl:attribute>
766			<xsl:attribute name="演:名称"><xsl:value-of select="@draw:name"/></xsl:attribute>
767			<xsl:attribute name="演:母版引用"><xsl:value-of select="@draw:master-page-name"/></xsl:attribute>
768			<xsl:if test="@presentation:presentation-page-layout-name">
769				<xsl:attribute name="演:页面版式引用"><xsl:value-of select="@presentation:presentation-page-layout-name"/></xsl:attribute>
770			</xsl:if>
771			<xsl:call-template name="产生锚点"/>
772			<xsl:apply-templates select="presentation:notes" mode="page"/>
773			<xsl:variable name="stylename">
774				<xsl:value-of select="@draw:style-name"/>
775			</xsl:variable>
776			<xsl:variable name="name">
777				<xsl:value-of select="name(.)"/>
778			</xsl:variable>
779			<xsl:for-each select="/office:document/*/style:style[@style:name=$stylename]/style:drawing-page-properties">
780				<xsl:if test="@draw:fill and not(@draw:fill='none')">
781					<演:背景 uof:locID="p0057">
782						<xsl:call-template name="填充">
783							<xsl:with-param name="picname" select="$stylename"/>
784							<xsl:with-param name="nodename" select="$name"/>
785						</xsl:call-template>
786					</演:背景>
787				</xsl:if>
788			</xsl:for-each>
789			<演:切换 uof:locID="p0058" uof:attrList="效果 速度">
790				<xsl:for-each select="key('graphicset',$stylename)/style:drawing-page-properties">
791					<xsl:attribute name="演:速度"><xsl:choose><xsl:when test="@presentation:transition-speed='slow'">slow</xsl:when><xsl:otherwise>fast</xsl:otherwise></xsl:choose></xsl:attribute>
792					<xsl:attribute name="演:效果"><xsl:variable name="type"><xsl:value-of select="@smil:type"/></xsl:variable><xsl:variable name="subtype"><xsl:value-of select="@smil:subtype"/></xsl:variable><xsl:choose><xsl:when test="$type='irisWipe' and $subtype='rectangle' and @smil:direction='reverse'">box in</xsl:when><xsl:when test="$type='irisWipe' and $subtype='rectangle'">box out</xsl:when><xsl:when test="$type='checkerBoardWipe' and $subtype='across'">checkerboard across</xsl:when><xsl:when test="$type='checkerBoardWipe' and $subtype='down'">checkerboard down</xsl:when><xsl:when test="$type='pushWipe' and $subtype='combHorizontal'">comb horizontal</xsl:when><xsl:when test="$type='pushWipe' and $subtype='combVertical'">comb vertical</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromTop' and @smil:direction='reverse'">uncover down</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromRight' and @smil:direction='reverse'">uncover left</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromLeft' and @smil:direction='reverse'">uncover right</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromBottom' and @smil:direction='reverse'">uncover up</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromTopRight' and @smil:direction='reverse'">uncover left-down</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromBottomRight' and @smil:direction='reverse'">uncover left-up</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromTopLeft' and @smil:direction='reverse'">uncover right-down</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromBottomLeft' and @smil:direction='reverse'">uncover right-up</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromTop'">cover down</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromRight'">cover left</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromLeft'">cover right</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromBottom'">cover up</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromTopRight'">cover left-down</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromBottomRight'">cover left-up</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromTopLeft'">cover right-down</xsl:when><xsl:when test="$type='slideWipe' and $subtype='fromBottomLeft'">cover right-up</xsl:when><xsl:when test="$type='fade' and $subtype='fadeOverColor'">fade through black</xsl:when><xsl:when test="$type='pushWipe' and $subtype='fromTop'">push down</xsl:when><xsl:when test="$type='pushWipe' and $subtype='fromRight'">push left</xsl:when><xsl:when test="$type='pushWipe' and $subtype='fromLeft'">push right</xsl:when><xsl:when test="$type='pushWipe' and $subtype='fromBottom'">push up</xsl:when><xsl:when test="$type='randomBarWipe' and $subtype='horizontal'">random bars horizontal</xsl:when><xsl:when test="$type='randomBarWipe' and $subtype='vertical'">random bars vertical</xsl:when><xsl:when test="$type='ellipseWipe' and $subtype='circle'">shape circle</xsl:when><xsl:when test="$type='irisWipe' and $subtype='diamond'">shape diamond</xsl:when><xsl:when test="$type='fourBoxWipe' and $subtype='cornersOut'">shape plus</xsl:when><xsl:when test="$type='barnDoorWipe' and $subtype='horizontal' and @smil:direction='reverse'">split horizontal in</xsl:when><xsl:when test="$type='barnDoorWipe' and $subtype='horizontal'">split horizontal out</xsl:when><xsl:when test="$type='barnDoorWipe' and $subtype='vertical' and @smil:direction='reverse'">split vertical in</xsl:when><xsl:when test="$type='barnDoorWipe' and $subtype='vertical'">split vertical out</xsl:when><xsl:when test="$type='fanWipe' and $subtype='centerTop'">wedge</xsl:when><xsl:when test="$type='pinWheelWipe' and $subtype='oneBlade'">wheel clockwise – 1 spoke</xsl:when><xsl:when test="$type='pinWheelWipe' and $subtype='twoBladeVertical'">wheel clockwise – 2 spoke</xsl:when><xsl:when test="$type='pinWheelWipe' and $subtype='threeBlade'">wheel clockwise – 3 spoke</xsl:when><xsl:when test="$type='pinWheelWipe' and $subtype='fourBlade'">wheel clockwise – 4 spoke</xsl:when><xsl:when test="$type='pinWheelWipe' and $subtype='eightBlade'">wheel clockwise – 8 spoke</xsl:when><xsl:when test="$type='barWipe' and $subtype='leftToRight' and @smil:direction='reverse'">wipe left</xsl:when><xsl:when test="$type='barWipe' and $subtype='leftToRight'">wipe right</xsl:when><xsl:when test="$type='barWipe' and $subtype='topToBottom' and @smil:direction='reverse'">wipe up</xsl:when><xsl:when test="$type='barWipe' and $subtype='topToBottom'">wipe down</xsl:when><xsl:when test="$type='blindsWipe' and $subtype='vertical'">blinds vertical</xsl:when><xsl:when test="$type='blindsWipe' and $subtype='horizontal'">blinds horizontal</xsl:when><xsl:when test="$type='dissolve'">dissolve</xsl:when><xsl:when test="$type='random'">random transition</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
793					<演:声音 uof:locID="p0061" uof:attrList="预定义声音 自定义声音">
794						<xsl:choose>
795							<xsl:when test="not(presentation:sound)">
796								<xsl:attribute name="演:预定义声音">none</xsl:attribute>
797							</xsl:when>
798							<xsl:otherwise>
799								<xsl:variable name="lujing">
800									<xsl:value-of select="substring-after(presentation:sound/@xlink:href,'share/gallery/sounds/')"/>
801								</xsl:variable>
802								<xsl:variable name="ming">
803									<xsl:value-of select="substring-before($lujing,'.wav')"/>
804								</xsl:variable>
805								<xsl:choose>
806									<xsl:when test="$ming='applause'">
807										<xsl:attribute name="演:预定义声音">applause</xsl:attribute>
808									</xsl:when>
809									<xsl:when test="$ming='explos'">
810										<xsl:attribute name="演:预定义声音">explosion</xsl:attribute>
811									</xsl:when>
812									<xsl:when test="$ming='laser'">
813										<xsl:attribute name="演:预定义声音">laser</xsl:attribute>
814									</xsl:when>
815									<xsl:otherwise>
816										<xsl:attribute name="演:自定义声音"><xsl:value-of select="presentation:sound/@xlink:href"/></xsl:attribute>
817									</xsl:otherwise>
818								</xsl:choose>
819							</xsl:otherwise>
820						</xsl:choose>
821					</演:声音>
822					<演:方式 uof:locID="p0062">
823						<演:单击鼠标 uof:locID="p0065">
824							<xsl:choose>
825								<xsl:when test="@presentation:transition-type='automatic'">false</xsl:when>
826								<xsl:otherwise>true</xsl:otherwise>
827							</xsl:choose>
828						</演:单击鼠标>
829						<xsl:if test="@presentation:duration">
830							<演:时间间隔 uof:locID="p0066">
831								<xsl:variable name="hms">
832									<xsl:value-of select="substring-after(@presentation:duration,'PT')"/>
833								</xsl:variable>
834								<xsl:variable name="h">
835									<xsl:value-of select="number(substring-before($hms,'H'))"/>
836								</xsl:variable>
837								<xsl:variable name="ms">
838									<xsl:value-of select="substring-after($hms,'H')"/>
839								</xsl:variable>
840								<xsl:variable name="m">
841									<xsl:value-of select="number(substring-before($ms,'M'))"/>
842								</xsl:variable>
843								<xsl:variable name="s">
844									<xsl:value-of select="number(substring-before(substring-after($ms,'M'),'S'))"/>
845								</xsl:variable>
846								<xsl:value-of select="$h *3600 + $m * 60 + $s"/>
847							</演:时间间隔>
848						</xsl:if>
849					</演:方式>
850				</xsl:for-each>
851			</演:切换>
852		</演:幻灯片>
853	</xsl:template>
854	<xsl:template match="presentation:notes" mode="page">
855		<演:幻灯片备注 uof:locID="p0054" uof:attrList="备注母版引用">
856			<xsl:attribute name="演:备注母版引用"><xsl:variable name="cute"><xsl:value-of select="parent::node()/@draw:master-page-name"/></xsl:variable><xsl:value-of select="concat('note-',$cute)"/></xsl:attribute>
857			<xsl:call-template name="产生锚点"/>
858			<演:背景 uof:locID="p0057">
859			   <图:颜色 uof:locID="g0034">#ffffff</图:颜色>
860			</演:背景>
861		</演:幻灯片备注>
862	</xsl:template>
863	<xsl:template name="产生锚点">
864		<xsl:for-each select="child::node( )">
865			<xsl:choose>
866				<xsl:when test="substring-before(name(),':')='draw'">
867					<uof:锚点 uof:locID="u0064" uof:attrList="x坐标 y坐标 宽度 高度 图形引用 随动方式 缩略图 占位符">
868						<xsl:variable name="nodename">
869							<xsl:value-of select="name(.)"/>
870						</xsl:variable>
871						<xsl:variable name="refpicname">
872							<xsl:choose>
873								<xsl:when test="@draw:style-name">
874									<xsl:value-of select="@draw:style-name"/>
875								</xsl:when>
876								<xsl:otherwise>
877									<xsl:value-of select="@presentation:style-name"/>
878								</xsl:otherwise>
879							</xsl:choose>
880						</xsl:variable>
881						<xsl:variable name="picnumber">
882							<xsl:choose>
883								<xsl:when test="@draw:style-name">
884									<xsl:value-of select="count(preceding::*[@draw:style-name=$refpicname])"/>
885								</xsl:when>
886								<xsl:otherwise>
887									<xsl:value-of select="count(preceding::*[@presentation:style-name=$refpicname])"/>
888								</xsl:otherwise>
889							</xsl:choose>
890						</xsl:variable>
891						<xsl:attribute name="uof:x坐标"><xsl:choose><xsl:when test="name(.)='draw:g'"><xsl:call-template name="groupminx"><xsl:with-param name="value" select="number(substring-before(descendant::node()[@svg:x][1]/@svg:x,$uofUnit))"/><xsl:with-param name="pos" select="2"/></xsl:call-template></xsl:when><xsl:otherwise><xsl:choose><xsl:when test="@svg:x"><xsl:value-of select="substring-before(@svg:x,$uofUnit)"/></xsl:when><xsl:when test="@svg:x1"><xsl:value-of select="substring-before(@svg:x1,$uofUnit)"/></xsl:when></xsl:choose></xsl:otherwise></xsl:choose></xsl:attribute>
892						<xsl:attribute name="uof:y坐标"><xsl:choose><xsl:when test="name(.)='draw:g'"><xsl:call-template name="groupminx"><xsl:with-param name="value" select="number(substring-before(descendant::node()[@svg:y][1]/@svg:y,$uofUnit))"/><xsl:with-param name="pos" select="2"/></xsl:call-template></xsl:when><xsl:otherwise><xsl:choose><xsl:when test="@svg:y"><xsl:value-of select="substring-before(@svg:y,$uofUnit)"/></xsl:when><xsl:when test="@svg:y1"><xsl:value-of select="substring-before(@svg:y1,$uofUnit)"/></xsl:when></xsl:choose></xsl:otherwise></xsl:choose></xsl:attribute>
893						<xsl:attribute name="uof:宽度"><xsl:choose><xsl:when test="@svg:width"><xsl:value-of select="substring-before(@svg:width,$uofUnit)"/></xsl:when><xsl:when test="@svg:x1"><xsl:value-of select="substring-before(@svg:x2,$uofUnit) - substring-before(@svg:x1,$uofUnit)"/></xsl:when><xsl:when test="name(.)='draw:g'"><xsl:variable name="minx"><xsl:call-template name="groupminx"><xsl:with-param name="value" select="number(substring-before(descendant::node()[@svg:x][1]/@svg:x,$uofUnit))"/><xsl:with-param name="pos" select="2"/></xsl:call-template></xsl:variable><xsl:variable name="svgx"><xsl:value-of select="number(substring-before(descendant::node()[@svg:x][1]/@svg:x,$uofUnit))"/></xsl:variable><xsl:variable name="width"><xsl:value-of select="number(substring-before(descendant::node()[@svg:x][1]/@svg:width,$uofUnit))"/></xsl:variable><xsl:variable name="maxx"><xsl:call-template name="groupmaxx"><xsl:with-param name="value" select="$svgx + $width"/><xsl:with-param name="pos" select="2"/></xsl:call-template></xsl:variable><xsl:value-of select="$maxx - $minx"/></xsl:when></xsl:choose></xsl:attribute>
894						<xsl:attribute name="uof:高度"><xsl:choose><xsl:when test="@svg:height"><xsl:value-of select="substring-before(@svg:height,$uofUnit)"/></xsl:when><xsl:when test="@svg:x1"><xsl:value-of select="substring-before(@svg:y2,$uofUnit) - substring-before(@svg:y1,$uofUnit)"/></xsl:when><xsl:when test="name(.)='draw:g'"><xsl:variable name="miny"><xsl:call-template name="groupminy"><xsl:with-param name="value" select="number(substring-before(descendant::node()[@svg:y][1]/@svg:y,$uofUnit))"/><xsl:with-param name="pos" select="2"/></xsl:call-template></xsl:variable><xsl:variable name="svgy"><xsl:value-of select="number(substring-before(descendant::node()[@svg:y][1]/@svg:y,$uofUnit))"/></xsl:variable><xsl:variable name="height"><xsl:value-of select="number(substring-before(descendant::node()[@svg:y][1]/@svg:height,$uofUnit))"/></xsl:variable><xsl:variable name="maxy"><xsl:call-template name="groupmaxy"><xsl:with-param name="value" select="$svgy + $height"/><xsl:with-param name="pos" select="2"/></xsl:call-template></xsl:variable><xsl:value-of select="$maxy - $miny"/></xsl:when></xsl:choose></xsl:attribute>
895						<xsl:attribute name="uof:图形引用"><xsl:choose><xsl:when test="@draw:id"><xsl:value-of select="@draw:id"/></xsl:when><xsl:when test="not(@draw:style-name) and name()='draw:g'"><xsl:value-of select="concat(child::node()[1]/@draw:style-name,'_',$picnumber)"/></xsl:when><xsl:otherwise><xsl:value-of select="concat($refpicname,'_',$picnumber)"/></xsl:otherwise></xsl:choose></xsl:attribute>
896						<xsl:attribute name="uof:随动方式"><xsl:choose><xsl:when test="key('graphicset',$refpicname)/node()/@style:protect"><xsl:for-each select="key('graphicset',$refpicname)/node()"><xsl:choose><xsl:when test="@style:protect='size'">move</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:for-each></xsl:when><xsl:otherwise>movesize</xsl:otherwise></xsl:choose></xsl:attribute>
897						<xsl:if test="name(.)='draw:page-thumbnail'">
898							<xsl:attribute name="uof:缩略图">true</xsl:attribute>
899						</xsl:if>
900						<xsl:if test="not(name(parent::node())='style:handout-master')">
901						<xsl:attribute name="uof:占位符"><xsl:choose><xsl:when test="@presentation:object"><xsl:value-of select="@presentation:object"/></xsl:when><xsl:when test=".//draw:image">graphic</xsl:when></xsl:choose></xsl:attribute>
902						<xsl:if test="@presentation:class">
903							<xsl:attribute name="uof:占位符"><xsl:value-of select="@presentation:class"/></xsl:attribute>
904						</xsl:if>
905						</xsl:if>
906					</uof:锚点>
907				</xsl:when>
908				<xsl:when test="name()= 'anim:par'">
909					<演:动画 uof:locID="p0042">
910						<xsl:apply-templates select="anim:seq"/>
911					</演:动画>
912				</xsl:when>
913			</xsl:choose>
914		</xsl:for-each>
915	</xsl:template>
916	<xsl:template match="anim:seq">
917		<xsl:apply-templates select="anim:par/anim:par/anim:par"/>
918		<xsl:apply-templates select="anim:par/anim:par/anim:iterate"/>
919	</xsl:template>
920	<xsl:template match="anim:par | anim:iterate">
921		<演:序列 uof:locID="p0043" uof:attrList="段落引用 动画对象">
922			<xsl:attribute name="演:动画对象"><xsl:choose>
923			<xsl:when test=".//@smil:targetElement"><xsl:value-of select=".//@smil:targetElement"/></xsl:when><xsl:when test="@anim:id"><xsl:value-of select="@anim:id"/></xsl:when><xsl:otherwise><xsl:value-of select="../@smil:targetElement"/></xsl:otherwise></xsl:choose></xsl:attribute>
924
925			<演:定时 uof:locID="p0067" uof:attrList="事件 延时 速度 重复 回卷">
926				<xsl:attribute name="演:事件">
927				<xsl:choose>
928					<xsl:when test="@presentation:node-type='on-click'">on click</xsl:when>
929					<xsl:when test="@presentation:node-type='with-previous'">with previous</xsl:when>
930					<xsl:otherwise><xsl:value-of select="@presentation:node-type"/></xsl:otherwise>
931				</xsl:choose>
932				</xsl:attribute>
933				<xsl:attribute name="演:延时"><xsl:value-of select="substring-before(@smil:begin,'s')"/></xsl:attribute>
934				<xsl:attribute name="演:速度"><xsl:choose><xsl:when test="anim:animate/@smil:dur='0.5s'">very fast</xsl:when><xsl:when test="anim:animate/@smil:dur='1s'">fast</xsl:when><xsl:when test="anim:animate/@smil:dur='2s'">medium</xsl:when><xsl:when test="anim:animate/@smil:dur='3s'">slow</xsl:when><xsl:when test="anim:animate/@smil:dur='5s'">very slow</xsl:when><xsl:otherwise>medium</xsl:otherwise></xsl:choose></xsl:attribute>
935				<xsl:attribute name="演:重复"><xsl:choose><xsl:when test="@smil:repeatCount = 'indefinite' "><xsl:choose><xsl:when test="@smil:end='next'">until next click</xsl:when><xsl:otherwise>until next slide</xsl:otherwise></xsl:choose></xsl:when><xsl:when test="@smil:repeatCount ='2' or @smil:repeatCount ='3' or @smil:repeatCount ='4' or @smil:repeatCount ='5' or @smil:repeatCount ='10' "><xsl:value-of select="@smil:repeatCount"/></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
936				<xsl:attribute name="演:回卷"><xsl:choose><xsl:when test="@smil:fill='remove'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
937			</演:定时>
938			<演:增强 uof:locID="p0068">
939				<演:动画播放后 uof:locID="p0070" uof:attrList="颜色 变暗 播放后隐藏 单击后隐藏">
940					<xsl:if test="../anim:animateColor">
941						<xsl:attribute name="演:颜色"><xsl:value-of select="../anim:animateColor/@smil:to"/></xsl:attribute>
942					</xsl:if>
943					<xsl:choose>
944						<xsl:when test="../anim:animateColor">
945							<xsl:attribute name="演:变暗">true</xsl:attribute>
946						</xsl:when>
947						<xsl:otherwise>
948							<xsl:attribute name="演:变暗">false</xsl:attribute>
949						</xsl:otherwise>
950					</xsl:choose>
951					<xsl:choose>
952						<xsl:when test="@presentation:preset-property='Direction;Accelerate;Decelerate' ">
953							<xsl:attribute name="演:播放后隐藏">true</xsl:attribute>
954						</xsl:when>
955						<xsl:otherwise>
956							<xsl:attribute name="演:播放后隐藏">false</xsl:attribute>
957						</xsl:otherwise>
958					</xsl:choose>
959					<xsl:choose>
960						<xsl:when test="../anim:set/@smil:to">
961							<xsl:attribute name="演:单击后隐藏">true</xsl:attribute>
962						</xsl:when>
963						<xsl:otherwise>
964							<xsl:attribute name="演:单击后隐藏">false</xsl:attribute>
965						</xsl:otherwise>
966					</xsl:choose>
967				</演:动画播放后>
968					<演:动画文本 uof:locID="p0071" uof:attrList="发送 间隔 动画形状 相反顺序">
969						<xsl:attribute name="演:发送"><xsl:choose><xsl:when test="@anim:iterate-type = 'by-word' ">by word</xsl:when><xsl:when test="@anim:iterate-type = 'by-letter' ">by letter</xsl:when><xsl:otherwise>all at once</xsl:otherwise></xsl:choose></xsl:attribute>
970						<xsl:attribute name="演:间隔"><xsl:choose><xsl:when test="@anim:iterate-interval"><xsl:value-of select="substring-before(@anim:iterate-interval,'s')"/>
971</xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:attribute>
972						<xsl:attribute name="演:动画形状">false</xsl:attribute>
973						<xsl:attribute name="演:相反顺序">false</xsl:attribute>
974					</演:动画文本>
975				<xsl:if test="anim:audio">
976					<演:声音 uof:locID="p0061" uof:attrList="预定义声音 自定义声音">
977						<xsl:variable name="audioname">
978							<xsl:value-of select="substring-after(anim:audio/@xlink:href,'gallery/sounds/')"/>
979						</xsl:variable>
980						<xsl:choose>
981							<xsl:when test="not($audioname='')">
982								<xsl:attribute name="演:预定义声音"><xsl:choose><xsl:when test="anim:audio/@xlink:href"><xsl:value-of select="anim:audio/@xlink:href"/></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
983							</xsl:when>
984							<xsl:otherwise>
985								<xsl:attribute name="演:自定义声音"><xsl:value-of select="anim:audio/@xlink:href"/></xsl:attribute>
986							</xsl:otherwise>
987						</xsl:choose>
988					</演:声音>
989				</xsl:if>
990			</演:增强>
991			<演:效果 uof:locID="p0069">
992				<xsl:choose>
993					<xsl:when test="./@presentation:preset-class = 'entrance'">
994						<演:进入 uof:locID="p0073">
995							<xsl:apply-templates select="@presentation:preset-id"/>
996						</演:进入>
997					</xsl:when>
998					<xsl:when test="./@presentation:preset-class = 'exit'">
999						<演:退出 uof:locID="p0074">
1000							<xsl:apply-templates select="@presentation:preset-id"/>
1001						</演:退出>
1002					</xsl:when>
1003					<xsl:when test="./@presentation:preset-class = 'emphasis' ">
1004						<演:强调 uof:locID="p0075">
1005							<xsl:apply-templates select="@presentation:preset-id"/>
1006						</演:强调>
1007					</xsl:when>
1008					<xsl:otherwise>
1009						<演:动作路径 uof:locID="p0133" uof:attrList="路径">
1010							<xsl:attribute name="演:路径">
1011								<xsl:value-of select="anim:animateMotion/@svg:path"/>
1012							</xsl:attribute>
1013						</演:动作路径>
1014					</xsl:otherwise>
1015				</xsl:choose>
1016			</演:效果>
1017		</演:序列>
1018	</xsl:template>
1019	<xsl:template name="anim_speed">
1020		<xsl:param name="speed"/>
1021		<xsl:choose>
1022			<xsl:when test="$speed='0.5s' or $speed='0.25s'">very fast</xsl:when>
1023			<xsl:when test="$speed='1s'">fast</xsl:when>
1024			<xsl:when test="$speed='2s'">medium</xsl:when>
1025			<xsl:when test="$speed='3s'">slow</xsl:when>
1026			<xsl:when test="$speed='5s'">very slow</xsl:when>
1027			<xsl:otherwise>medium</xsl:otherwise>
1028		</xsl:choose>
1029	</xsl:template>
1030	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-venetian-blinds']">
1031		<演:百叶窗 uof:locID="p0080" uof:attrList="速度 方向">
1032			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1033			<xsl:attribute name="演:方向"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
1034		</演:百叶窗>
1035	</xsl:template>
1036	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-appear']">
1037		<演:出现 uof:locID="p0081">
1038    </演:出现>
1039	</xsl:template>
1040	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-box']">
1041		<演:盒状 uof:locID="p0082" uof:attrList="速度 方向">
1042			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1043			<xsl:attribute name="演:方向"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
1044		</演:盒状>
1045	</xsl:template>
1046	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-diagonal-squares']">
1047		<演:阶梯状 uof:locID="p0083" uof:attrList="速度 方向">
1048			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1049			<xsl:attribute name="演:方向"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'left-to-bottom' ">left down</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'left-to-top' ">left up</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'right-to-bottom' ">right down</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'right-to-top' ">right up</xsl:when></xsl:choose></xsl:attribute>
1050		</演:阶梯状>
1051	</xsl:template>
1052	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-wheel']">
1053		<演:轮子 uof:locID="p0084" uof:attrList="速度 辐射状">
1054			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1055			<xsl:attribute name="演:辐射状"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
1056		</演:轮子>
1057	</xsl:template>
1058	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-checkerboard']">
1059		<演:棋盘 uof:locID="p0085" uof:attrList="速度 方向">
1060			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1061			<xsl:attribute name="演:方向"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:subtype"/></xsl:attribute>
1062		</演:棋盘>
1063	</xsl:template>
1064	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-flash-once']">
1065		<演:闪烁一次 uof:locID="p0086" uof:attrList="速度">
1066			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:set/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1067		</演:闪烁一次>
1068	</xsl:template>
1069	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-plus']">
1070		<演:十字形扩展 uof:locID="p0087" uof:attrList="速度 方向">
1071			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1072			<xsl:attribute name="演:方向"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
1073		</演:十字形扩展>
1074	</xsl:template>
1075	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-random']">
1076		<演:随机效果 uof:locID="p0088">
1077		</演:随机效果>
1078	</xsl:template>
1079	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-circle']">
1080		<演:圆形扩展 uof:locID="p0089" uof:attrList="速度 方向">
1081			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1082			<xsl:attribute name="演:方向"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
1083		</演:圆形扩展>
1084	</xsl:template>
1085		<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-wipe']">
1086		<演:擦除 uof:locID="p0090" uof:attrList="速度 方向">
1087			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1088			<xsl:attribute name="演:方向"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-right'">from right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">from left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">from top</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">from bottom</xsl:when></xsl:choose></xsl:attribute>
1089		</演:擦除>
1090	</xsl:template>
1091		<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-fly-in']">
1092		<演:飞入 uof:locID="p0091" uof:attrList="速度 方向">
1093			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:animate/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1094			<xsl:attribute name="演:方向"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">from bottom</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top-right'">from top-right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top-left'">from top-left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom-left'">from bottom-left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom-right'">from bottom-right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-right'">from right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">from left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">from top</xsl:when></xsl:choose></xsl:attribute>
1095		</演:飞入>
1096	</xsl:template>
1097	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-fly-in-slow']">
1098		<演:缓慢飞入 uof:locID="p0092" uof:attrList="速度 方向">
1099			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:animate/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1100			<xsl:attribute name="演:方向"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-right'">from right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">from left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">from top</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">from bottom</xsl:when></xsl:choose></xsl:attribute>
1101		</演:缓慢飞入>
1102	</xsl:template>
1103	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-diamond']">
1104		<演:菱形 uof:locID="p0093" uof:attrList="速度 方向">
1105			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1106			<xsl:attribute name="演:方向"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
1107		</演:菱形>
1108	</xsl:template>
1109		<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-split']">
1110		<演:劈裂 uof:locID="p0094" uof:attrList="速度 方向">
1111			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1112			<xsl:attribute name="演:方向"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'horizontal-out'">horizontal out</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'horizontal-in'">horizontal in</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'vertical-in'">vertical in</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'vertical-out'">vertical out</xsl:when></xsl:choose></xsl:attribute>
1113		</演:劈裂>
1114	</xsl:template>
1115	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-peek-in']">
1116		<演:切入 uof:locID="p0095" uof:attrList="速度 方向">
1117			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1118			<xsl:attribute name="演:方向"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-right'">from right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">from left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">from top</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">from bottom</xsl:when></xsl:choose></xsl:attribute>
1119		</演:切入>
1120	</xsl:template>
1121		<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-wedge']">
1122		<演:扇形展开 uof:locID="p0096" uof:attrList="速度">
1123			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1124		</演:扇形展开>
1125	</xsl:template>
1126	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-random-bars']">
1127		<演:随机线条 uof:locID="p0097" uof:attrList="速度 方向">
1128			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1129			<xsl:attribute name="演:方向"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
1130		</演:随机线条>
1131	</xsl:template>
1132	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-dissolve-in']">
1133		<演:向内溶解 uof:locID="p0098" uof:attrList="速度">
1134			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1135		</演:向内溶解>
1136	</xsl:template>
1137	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-boomerang']">
1138		<演:其他 uof:locID="p0099">
1139			<xsl:copy-of select="parent::node()"/>
1140		</演:其他>
1141	</xsl:template>
1142	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-bounce']">
1143		<演:其他 uof:locID="p0099">
1144			<xsl:copy-of select="parent::node()"/>
1145		</演:其他>
1146	</xsl:template>
1147	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-curve-up']">
1148		<演:其他 uof:locID="p0099">
1149			<xsl:copy-of select="parent::node()"/>
1150		</演:其他>
1151	</xsl:template>
1152	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-falling-in']">
1153		<演:其他 uof:locID="p0099">
1154			<xsl:copy-of select="parent::node()"/>
1155		</演:其他>
1156	</xsl:template>
1157	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-flip']">
1158		<演:其他 uof:locID="p0099">
1159			<xsl:copy-of select="parent::node()"/>
1160		</演:其他>
1161	</xsl:template>
1162	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-float']">
1163		<演:其他 uof:locID="p0099">
1164			<xsl:copy-of select="parent::node()"/>
1165		</演:其他>
1166	</xsl:template>
1167	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-fold']">
1168		<演:其他 uof:locID="p0099">
1169			<xsl:copy-of select="parent::node()"/>
1170		</演:其他>
1171	</xsl:template>
1172	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-glide']">
1173		<演:其他 uof:locID="p0099">
1174			<xsl:copy-of select="parent::node()"/>
1175		</演:其他>
1176	</xsl:template>
1177	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-magnify']">
1178		<演:其他 uof:locID="p0099">
1179			<xsl:copy-of select="parent::node()"/>
1180		</演:其他>
1181	</xsl:template>
1182	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-movie-credits']">
1183		<演:其他 uof:locID="p0099">
1184			<xsl:copy-of select="parent::node()"/>
1185		</演:其他>
1186	</xsl:template>
1187	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-pinwheel']">
1188		<演:其他 uof:locID="p0099">
1189			<xsl:copy-of select="parent::node()"/>
1190		</演:其他>
1191	</xsl:template>
1192	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-breaks']">
1193		<演:其他 uof:locID="p0099">
1194			<xsl:copy-of select="parent::node()"/>
1195		</演:其他>
1196	</xsl:template>
1197	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-sling']">
1198		<演:其他 uof:locID="p0099">
1199			<xsl:copy-of select="parent::node()"/>
1200		</演:其他>
1201	</xsl:template>
1202	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-spiral-in']">
1203		<演:其他 uof:locID="p0099">
1204			<xsl:copy-of select="parent::node()"/>
1205		</演:其他>
1206	</xsl:template>
1207	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-swivel']">
1208		<演:其他 uof:locID="p0099">
1209			<xsl:copy-of select="parent::node()"/>
1210		</演:其他>
1211	</xsl:template>
1212	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-thread']">
1213		<演:其他 uof:locID="p0099">
1214			<xsl:copy-of select="parent::node()"/>
1215		</演:其他>
1216	</xsl:template>
1217	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-whip']">
1218		<演:其他 uof:locID="p0099">
1219			<xsl:copy-of select="parent::node()"/>
1220		</演:其他>
1221	</xsl:template>
1222	<xsl:template match="@presentation:preset-id[. = 'oooo-entrance-ascend']">
1223		<演:其他 uof:locID="p0099">
1224			<xsl:copy-of select="parent::node()"/>
1225		</演:其他>
1226	</xsl:template>
1227	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-center-revolve']">
1228		<演:其他 uof:locID="p0099">
1229			<xsl:copy-of select="parent::node()"/>
1230		</演:其他>
1231	</xsl:template>
1232	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-colored-lettering']">
1233		<演:其他 uof:locID="p0099">
1234			<xsl:copy-of select="parent::node()"/>
1235		</演:其他>
1236	</xsl:template>
1237	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-compress']">
1238		<演:其他 uof:locID="p0099">
1239			<xsl:copy-of select="parent::node()"/>
1240		</演:其他>
1241	</xsl:template>
1242	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-descend']">
1243		<演:其他 uof:locID="p0099">
1244			<xsl:copy-of select="parent::node()"/>
1245		</演:其他>
1246	</xsl:template>
1247	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-ease-in']">
1248		<演:其他 uof:locID="p0099">
1249			<xsl:copy-of select="parent::node()"/>
1250		</演:其他>
1251	</xsl:template>
1252	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-rise-up']">
1253		<演:其他 uof:locID="p0099">
1254			<xsl:copy-of select="parent::node()"/>
1255		</演:其他>
1256	</xsl:template>
1257	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-spin-in']">
1258		<演:其他 uof:locID="p0099">
1259			<xsl:copy-of select="parent::node()"/>
1260		</演:其他>
1261	</xsl:template>
1262	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-stretchy']">
1263		<演:其他 uof:locID="p0099">
1264			<xsl:copy-of select="parent::node()"/>
1265		</演:其他>
1266	</xsl:template>
1267	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-turn-and-grow']">
1268		<演:其他 uof:locID="p0099">
1269			<xsl:copy-of select="parent::node()"/>
1270		</演:其他>
1271	</xsl:template>
1272	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-unfold']">
1273		<演:其他 uof:locID="p0099">
1274			<xsl:copy-of select="parent::node()"/>
1275		</演:其他>
1276	</xsl:template>
1277	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-colored-lettering']">
1278		<演:其他 uof:locID="p0099">
1279			<xsl:copy-of select="parent::node()"/>
1280		</演:其他>
1281	</xsl:template>
1282	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-expand']">
1283		<演:其他 uof:locID="p0099">
1284			<xsl:copy-of select="parent::node()"/>
1285		</演:其他>
1286	</xsl:template>
1287	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-fade-in']">
1288		<演:其他 uof:locID="p0099">
1289			<xsl:copy-of select="parent::node()"/>
1290		</演:其他>
1291	</xsl:template>
1292	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-fade-in-and-swivel']">
1293		<演:其他 uof:locID="p0099">
1294			<xsl:copy-of select="parent::node()"/>
1295		</演:其他>
1296	</xsl:template>
1297	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-fade-in-and-zoom']">
1298		<演:其他 uof:locID="p0099">
1299			<xsl:copy-of select="parent::node()"/>
1300		</演:其他>
1301	</xsl:template>
1302	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-fill-color']">
1303		<演:更改填充颜色 uof:locID="p0124" uof:attrList="速度 颜色">
1304			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animateColor/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1305			<xsl:attribute name="演:颜色"><xsl:value-of select="../anim:animateColor/@smil:to"/></xsl:attribute>
1306		</演:更改填充颜色>
1307	</xsl:template>
1308	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-font-color']">
1309		<演:更改字体颜色 uof:locID="p0126" uof:attrList="速度 颜色">
1310			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animateColor/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1311			<xsl:attribute name="演:颜色"><xsl:value-of select="../anim:animateColor/@smil:to"/></xsl:attribute>
1312		</演:更改字体颜色>
1313	</xsl:template>
1314	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-grow-and-shrink']">
1315		<演:缩放 uof:locID="p0120" uof:attrList="速度 方向 预定义尺寸 自定义尺寸">
1316			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animateTransform/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1317			<xsl:attribute name="演:方向">horizontal</xsl:attribute>
1318			<xsl:choose>
1319				<xsl:when test="../anim:animateTransform/@smil:to='0.25,1' ">
1320					<xsl:attribute name="演:预定义尺寸">tiny</xsl:attribute>
1321				</xsl:when>
1322				<xsl:when test="../anim:animateTransform/@smil:to='0.5,1' ">
1323					<xsl:attribute name="演:预定义尺寸">smaller</xsl:attribute>
1324				</xsl:when>
1325				<xsl:when test="../anim:animateTransform/@smil:to='1.5,1' ">
1326					<xsl:attribute name="演:预定义尺寸">larger</xsl:attribute>
1327				</xsl:when>
1328				<xsl:when test="../anim:animateTransform/@smil:to='4,1' ">
1329					<xsl:attribute name="演:预定义尺寸">huge</xsl:attribute>
1330				</xsl:when>
1331				<xsl:otherwise>
1332					<xsl:attribute name="演:自定义尺寸"><xsl:choose><xsl:when test="../anim:animateTransform/@smil:to"><xsl:value-of select="../anim:animateTransform/@smil:to"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:attribute>
1333				</xsl:otherwise>
1334			</xsl:choose>
1335		</演:缩放>
1336	</xsl:template>
1337	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-font-size']">
1338		<演:更改字号 uof:locID="p0125" uof:attrList="速度 预定义尺寸 自定义尺寸">
1339			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animate/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1340			<xsl:choose>
1341				<xsl:when test="parent::anim:par/anim:animate/@smil:to='0.25,1' ">
1342					<xsl:attribute name="演:预定义尺寸">tiny</xsl:attribute>
1343				</xsl:when>
1344				<xsl:when test="parent::anim:par/anim:animate/@smil:to='0.5,1' ">
1345					<xsl:attribute name="演:预定义尺寸">smaller</xsl:attribute>
1346				</xsl:when>
1347				<xsl:when test="parent::anim:par/anim:animate/@smil:to='1.5,1' ">
1348					<xsl:attribute name="演:预定义尺寸">larger</xsl:attribute>
1349				</xsl:when>
1350				<xsl:when test="parent::anim:par/anim:animate/@smil:to='4,1' ">
1351					<xsl:attribute name="演:预定义尺寸">huge</xsl:attribute>
1352				</xsl:when>
1353				<xsl:otherwise>
1354					<xsl:attribute name="演:自定义尺寸"><xsl:choose><xsl:when test="parent::anim:par/anim:animate/@smil:to"><xsl:value-of select="parent::anim:par/anim:animate/@smil:to"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:attribute>
1355				</xsl:otherwise>
1356			</xsl:choose>
1357		</演:更改字号>
1358	</xsl:template>
1359	<xsl:template name="getfontstyle_emphasis">
1360		<xsl:value-of select="concat(@smil:to,' ')"/>
1361	</xsl:template>
1362	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-font-style']">
1363		<演:更改字形 uof:locID="p0122" uof:attrList="字形 期间">
1364			<xsl:attribute name="演:字形"><xsl:variable name="fontstyle"><xsl:for-each select="../anim:set"><xsl:call-template name="getfontstyle_emphasis"/></xsl:for-each></xsl:variable><xsl:value-of select="$fontstyle"/></xsl:attribute>
1365			<xsl:attribute name="演:期间"><xsl:choose><xsl:when test="../@smil:repeatCount = 'indefinite' "><xsl:choose><xsl:when test="../@smil:end='next'">until next click</xsl:when><xsl:otherwise>until next slide</xsl:otherwise></xsl:choose></xsl:when><xsl:when test="../@smil:repeatCount ='2' or ../@smil:repeatCount ='3' or ../@smil:repeatCount ='4' or ../@smil:repeatCount ='5' or ../@smil:repeatCount ='10'"><xsl:value-of select="../@smil:repeatCount"/></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
1366		</演:更改字形>
1367	</xsl:template>
1368	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-line-color']">
1369		<演:更改线条颜色 uof:locID="p0121" uof:attrList="速度 颜色">
1370			<xsl:attribute name="演:速度">medium</xsl:attribute>
1371			<xsl:attribute name="演:颜色"><xsl:value-of select="../anim:animateColor/@smil:to"/></xsl:attribute>
1372		</演:更改线条颜色>
1373	</xsl:template>
1374	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-spin']">
1375		<演:陀螺旋 uof:locID="p0123" uof:attrList="速度 顺时针方向 预定义角度 自定义角度">
1376			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:animateTransform/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1377			<xsl:attribute name="演:顺时针方向">true</xsl:attribute>
1378			<xsl:choose>
1379				<xsl:when test="parent::anim:par/anim:animateTransform/@smil:by='90'">
1380					<xsl:attribute name="演:预定义角度">quarter spin</xsl:attribute>
1381				</xsl:when>
1382				<xsl:when test="parent::anim:par/anim:animateTransform/@smil:by='180'">
1383					<xsl:attribute name="演:预定义角度">half spin</xsl:attribute>
1384				</xsl:when>
1385				<xsl:when test="parent::anim:par/anim:animateTransform/@smil:by='360'">
1386					<xsl:attribute name="演:预定义角度">full spin</xsl:attribute>
1387				</xsl:when>
1388				<xsl:when test="parent::anim:par/anim:animateTransform/@smil:by='720'">
1389					<xsl:attribute name="演:预定义角度">two spins</xsl:attribute>
1390				</xsl:when>
1391				<xsl:otherwise>
1392					<xsl:attribute name="演:自定义角度"><xsl:value-of select="parent::anim:par/anim:animateTransform/@smil:by"/></xsl:attribute>
1393				</xsl:otherwise>
1394			</xsl:choose>
1395		</演:陀螺旋>
1396	</xsl:template>
1397	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-transparency']">
1398		<演:透明 uof:locID="p0127" uof:attrList="预定义透明度 自定义透明度 期间">
1399			<xsl:choose>
1400				<xsl:when test="../anim:set/@smil:to='0.25' ">
1401					<xsl:attribute name="演:预定义透明度">25</xsl:attribute>
1402				</xsl:when>
1403				<xsl:when test="../anim:set/@smil:to='0.5' ">
1404					<xsl:attribute name="演:预定义透明度">50</xsl:attribute>
1405				</xsl:when>
1406				<xsl:when test="../anim:set/@smil:to='0.75' ">
1407					<xsl:attribute name="演:预定义透明度">75</xsl:attribute>
1408				</xsl:when>
1409				<xsl:when test="../anim:set/@smil:to='1' ">
1410					<xsl:attribute name="演:预定义透明度">100</xsl:attribute>
1411				</xsl:when>
1412				<xsl:otherwise>
1413					<xsl:attribute name="演:自定义透明度"><xsl:value-of select="../anim:set/@smil:to"/></xsl:attribute>
1414				</xsl:otherwise>
1415			</xsl:choose>
1416			<xsl:attribute name="演:期间"><xsl:choose><xsl:when test="../@smil:repeatCount = 'indefinite' "><xsl:choose><xsl:when test="../@smil:end='next'">until next click</xsl:when><xsl:otherwise>until next slide</xsl:otherwise></xsl:choose></xsl:when><xsl:when test="../@smil:repeatCount ='2' or ../@smil:repeatCount ='3' or ../@smil:repeatCount ='4' or ../@smil:repeatCount ='5' or ../@smil:repeatCount ='10'"><xsl:value-of select="../@smil:repeatCount"/></xsl:when><xsl:otherwise>until next click</xsl:otherwise></xsl:choose></xsl:attribute>
1417		</演:透明>
1418	</xsl:template>
1419	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-font']">
1420		<演:其他 uof:locID="p0128">
1421			<xsl:copy-of select="parent::node()"/>
1422		</演:其他>
1423	</xsl:template>
1424	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-blast']">
1425		<演:其他 uof:locID="p0128">
1426			<xsl:copy-of select="parent::node()"/>
1427		</演:其他>
1428	</xsl:template>
1429	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-blink']">
1430		<演:其他 uof:locID="p0128">
1431			<xsl:copy-of select="parent::node()"/>
1432		</演:其他>
1433	</xsl:template>
1434	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-bold-reveal']">
1435		<演:其他 uof:locID="p0128">
1436			<xsl:copy-of select="parent::node()"/>
1437		</演:其他>
1438	</xsl:template>
1439	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-style-emphasis']">
1440		<演:其他 uof:locID="p0128">
1441			<xsl:copy-of select="parent::node()"/>
1442		</演:其他>
1443	</xsl:template>
1444	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-wave']">
1445		<演:其他 uof:locID="p0128">
1446			<xsl:copy-of select="parent::node()"/>
1447		</演:其他>
1448	</xsl:template>
1449	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-flicker']">
1450		<演:其他 uof:locID="p0128">
1451			<xsl:copy-of select="parent::node()"/>
1452		</演:其他>
1453	</xsl:template>
1454	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-grow-with-color']">
1455		<演:其他 uof:locID="p0128">
1456			<xsl:copy-of select="parent::node()"/>
1457		</演:其他>
1458	</xsl:template>
1459	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-shimmer']">
1460		<演:其他 uof:locID="p0128">
1461			<xsl:copy-of select="parent::node()"/>
1462		</演:其他>
1463	</xsl:template>
1464	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-teeter']">
1465		<演:其他 uof:locID="p0128">
1466			<xsl:copy-of select="parent::node()"/>
1467		</演:其他>
1468	</xsl:template>
1469	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-bold-flash']">
1470		<演:其他 uof:locID="p0128">
1471			<xsl:copy-of select="parent::node()"/>
1472		</演:其他>
1473	</xsl:template>
1474	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-color-blend']">
1475		<演:其他 uof:locID="p0128">
1476			<xsl:copy-of select="parent::node()"/>
1477		</演:其他>
1478	</xsl:template>
1479	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-color-over-by-letter']">
1480		<演:其他 uof:locID="p0128">
1481			<xsl:copy-of select="parent::node()"/>
1482		</演:其他>
1483	</xsl:template>
1484	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-color-over-by-word']">
1485		<演:其他 uof:locID="p0128">
1486			<xsl:copy-of select="parent::node()"/>
1487		</演:其他>
1488	</xsl:template>
1489	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-complementary-color']">
1490		<演:其他 uof:locID="p0128">
1491			<xsl:copy-of select="parent::node()"/>
1492		</演:其他>
1493	</xsl:template>
1494	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-complementary-color-2']">
1495		<演:其他 uof:locID="p0128">
1496			<xsl:copy-of select="parent::node()"/>
1497		</演:其他>
1498	</xsl:template>
1499	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-contrasting-color']">
1500		<演:其他 uof:locID="p0128">
1501			<xsl:copy-of select="parent::node()"/>
1502		</演:其他>
1503	</xsl:template>
1504	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-darken']">
1505		<演:其他 uof:locID="p0128">
1506			<xsl:copy-of select="parent::node()"/>
1507		</演:其他>
1508	</xsl:template>
1509	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-desaturate']">
1510		<演:其他 uof:locID="p0128">
1511			<xsl:copy-of select="parent::node()"/>
1512		</演:其他>
1513	</xsl:template>
1514	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-flash-bulb']">
1515		<演:其他 uof:locID="p0128">
1516			<xsl:copy-of select="parent::node()"/>
1517		</演:其他>
1518	</xsl:template>
1519	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-lighten']">
1520		<演:其他 uof:locID="p0128">
1521			<xsl:copy-of select="parent::node()"/>
1522		</演:其他>
1523	</xsl:template>
1524	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-reveal-underline']">
1525		<演:其他 uof:locID="p0128">
1526			<xsl:copy-of select="parent::node()"/>
1527		</演:其他>
1528	</xsl:template>
1529	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-box']">
1530		<演:盒状 uof:locID="p0111" uof:attrList="速度 方向">
1531			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1532			<xsl:attribute name="演:方向"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
1533		</演:盒状>
1534	</xsl:template>
1535	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-checkerboard']">
1536		<演:棋盘 uof:locID="p0114" uof:attrList="速度 方向">
1537			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1538			<xsl:attribute name="演:方向"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:subtype"/></xsl:attribute>
1539		</演:棋盘>
1540	</xsl:template>
1541	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-circle']">
1542		<演:圆形扩展 uof:locID="p0109" uof:attrList="速度 方向">
1543			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1544			<xsl:attribute name="演:方向"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
1545		</演:圆形扩展>
1546	</xsl:template>
1547	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-crawl-out']">
1548		<演:缓慢移出 uof:locID="p0102" uof:attrList="速度 方向">
1549			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animate/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1550			<xsl:attribute name="演:方向"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-right'">to right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">to left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">to top</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">to bottom</xsl:when></xsl:choose></xsl:attribute>
1551		</演:缓慢移出>
1552	</xsl:template>
1553	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-diagonal-squares']">
1554		<演:阶梯状 uof:locID="p0112" uof:attrList="速度 方向">
1555			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1556			<xsl:attribute name="演:方向"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'left-to-bottom' ">left down</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'left-to-top' ">left up</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'right-to-bottom' ">right down</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'right-to-top' ">right up</xsl:when></xsl:choose></xsl:attribute>
1557		</演:阶梯状>
1558	</xsl:template>
1559	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-diamond']">
1560		<演:菱形 uof:locID="p0103" uof:attrList="速度 方向">
1561			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1562			<xsl:attribute name="演:方向"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
1563		</演:菱形>
1564	</xsl:template>
1565	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-disappear']">
1566		<演:消失 uof:locID="p0118">
1567    	 </演:消失>
1568	</xsl:template>
1569	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-dissolve']">
1570		<演:向外溶解 uof:locID="p0108" uof:attrList="速度">
1571			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1572		</演:向外溶解>
1573	</xsl:template>
1574	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-flash-once']">
1575		<演:闪烁一次 uof:locID="p0115" uof:attrList="速度 方向">
1576			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animate/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1577		</演:闪烁一次>
1578	</xsl:template>
1579	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-fly-out']">
1580		<演:飞出 uof:locID="p0101" uof:attrList="速度 方向">
1581			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animate/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1582			<xsl:attribute name="演:方向"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">to bottom</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top-right'">to top-right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top-left'">to top-left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom-left'">to bottom-left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom-right'">to bottom-right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-right'">to right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">to left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">to top</xsl:when></xsl:choose></xsl:attribute>
1583		</演:飞出>
1584	</xsl:template>
1585	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-peek-out']">
1586		<演:切出 uof:locID="p0105" uof:attrList="速度 方向">
1587			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1588			<xsl:attribute name="演:方向"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-right'">to right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">to left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">to top</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">to bottom</xsl:when></xsl:choose></xsl:attribute>
1589		</演:切出>
1590	</xsl:template>
1591	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-plus']">
1592		<演:十字形扩展 uof:locID="p0116" uof:attrList="速度 方向">
1593			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1594			<xsl:attribute name="演:方向"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
1595		</演:十字形扩展>
1596	</xsl:template>
1597	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-random-bars']">
1598		<演:随机线条 uof:locID="p0107" uof:attrList="速度 方向">
1599			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1600			<xsl:attribute name="演:方向"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
1601		</演:随机线条>
1602	</xsl:template>
1603	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-random']">
1604		<演:随机效果 uof:locID="p0117">
1605			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:choose><xsl:when test="parent::anim:par/anim:transitionFilter/@smil:dur"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:when><xsl:otherwise><xsl:value-of select="../anim:animate/@smil:dur"/></xsl:otherwise></xsl:choose></xsl:with-param></xsl:call-template></xsl:attribute>
1606		</演:随机效果>
1607	</xsl:template>
1608	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-split']">
1609		<演:劈裂 uof:locID="p0104" uof:attrList="速度 方向">
1610			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1611			<xsl:attribute name="演:方向"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'horizontal-out'">horizontal out</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'horizontal-in'">horizontal in</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'vertical-in'">vertical in</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'vertical-out'">vertical out</xsl:when></xsl:choose></xsl:attribute>
1612		</演:劈裂>
1613	</xsl:template>
1614	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-venetian-blinds']">
1615		<演:百叶窗 uof:locID="p0100" uof:attrList="速度 方向">
1616			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1617			<xsl:attribute name="演:方向"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
1618		</演:百叶窗>
1619	</xsl:template>
1620	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-wedge']">
1621		<演:扇形展开 uof:locID="p0106" uof:attrList="速度">
1622			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1623		</演:扇形展开>
1624	</xsl:template>
1625	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-wheel']">
1626		<演:轮子 uof:locID="p0113" uof:attrList="速度 轮辐">
1627			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1628			<xsl:attribute name="演:轮辐"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
1629		</演:轮子>
1630	</xsl:template>
1631	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-wipe']">
1632		<演:擦除 uof:locID="p0110" uof:attrList="速度 方向">
1633			<xsl:attribute name="演:速度"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
1634			<xsl:attribute name="演:方向"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-right'">from right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">from left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">from top</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">from bottom</xsl:when></xsl:choose></xsl:attribute>
1635		</演:擦除>
1636	</xsl:template>
1637	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-boomerang']">
1638		<演:其他 uof:locID="p0119">
1639			<xsl:copy-of select="parent::node()"/>
1640		</演:其他>
1641	</xsl:template>
1642	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-bounce']">
1643		<演:其他 uof:locID="p0119">
1644			<xsl:copy-of select="parent::node()"/>
1645		</演:其他>
1646	</xsl:template>
1647	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-curve-down']">
1648		<演:其他 uof:locID="p0119">
1649			<xsl:copy-of select="parent::node()"/>
1650		</演:其他>
1651	</xsl:template>
1652	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-flip']">
1653		<演:其他 uof:locID="p0119">
1654			<xsl:copy-of select="parent::node()"/>
1655		</演:其他>
1656	</xsl:template>
1657	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-float']">
1658		<演:其他 uof:locID="p0119">
1659			<xsl:copy-of select="parent::node()"/>
1660		</演:其他>
1661	</xsl:template>
1662	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-fold']">
1663		<演:其他 uof:locID="p0119">
1664			<xsl:copy-of select="parent::node()"/>
1665		</演:其他>
1666	</xsl:template>
1667	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-glide']">
1668		<演:其他 uof:locID="p0119">
1669			<xsl:copy-of select="parent::node()"/>
1670		</演:其他>
1671	</xsl:template>
1672	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-magnify']">
1673		<演:其他 uof:locID="p0119">
1674			<xsl:copy-of select="parent::node()"/>
1675		</演:其他>
1676	</xsl:template>
1677	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-movie-credits']">
1678		<演:其他 uof:locID="p0119">
1679			<xsl:copy-of select="parent::node()"/>
1680		</演:其他>
1681	</xsl:template>
1682	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-pinwheel']">
1683		<演:其他 uof:locID="p0119">
1684			<xsl:copy-of select="parent::node()"/>
1685		</演:其他>
1686	</xsl:template>
1687	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-breaks']">
1688		<演:其他 uof:locID="p0119">
1689			<xsl:copy-of select="parent::node()"/>
1690		</演:其他>
1691	</xsl:template>
1692	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-sling']">
1693		<演:其他 uof:locID="p0119">
1694			<xsl:copy-of select="parent::node()"/>
1695		</演:其他>
1696	</xsl:template>
1697	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-swish']">
1698		<演:其他 uof:locID="p0119">
1699			<xsl:copy-of select="parent::node()"/>
1700		</演:其他>
1701	</xsl:template>
1702	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-swivel']">
1703		<演:其他 uof:locID="p0119">
1704			<xsl:copy-of select="parent::node()"/>
1705		</演:其他>
1706	</xsl:template>
1707	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-thread']">
1708		<演:其他 uof:locID="p0119">
1709			<xsl:copy-of select="parent::node()"/>
1710		</演:其他>
1711	</xsl:template>
1712	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-whip']">
1713		<演:其他 uof:locID="p0119">
1714			<xsl:copy-of select="parent::node()"/>
1715		</演:其他>
1716	</xsl:template>
1717	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-ascend']">
1718		<演:其他 uof:locID="p0119">
1719			<xsl:copy-of select="parent::node()"/>
1720		</演:其他>
1721	</xsl:template>
1722	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-center-revolve']">
1723		<演:其他 uof:locID="p0119">
1724			<xsl:copy-of select="parent::node()"/>
1725		</演:其他>
1726	</xsl:template>
1727	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-collapse']">
1728		<演:其他 uof:locID="p0119">
1729			<xsl:copy-of select="parent::node()"/>
1730		</演:其他>
1731	</xsl:template>
1732	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-colored-lettering']">
1733		<演:其他 uof:locID="p0119">
1734			<xsl:copy-of select="parent::node()"/>
1735		</演:其他>
1736	</xsl:template>
1737	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-descend']">
1738		<演:其他 uof:locID="p0119">
1739			<xsl:copy-of select="parent::node()"/>
1740		</演:其他>
1741	</xsl:template>
1742	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-ease-out']">
1743		<演:其他 uof:locID="p0119">
1744			<xsl:copy-of select="parent::node()"/>
1745		</演:其他>
1746	</xsl:template>
1747	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-sink-down']">
1748		<演:其他 uof:locID="p0119">
1749			<xsl:copy-of select="parent::node()"/>
1750		</演:其他>
1751	</xsl:template>
1752	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-spin-out']">
1753		<演:其他 uof:locID="p0119">
1754			<xsl:copy-of select="parent::node()"/>
1755		</演:其他>
1756	</xsl:template>
1757	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-stretchy']">
1758		<演:其他 uof:locID="p0119">
1759			<xsl:copy-of select="parent::node()"/>
1760		</演:其他>
1761	</xsl:template>
1762	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-turn-and-grow ']">
1763		<演:其他 uof:locID="p0119">
1764			<xsl:copy-of select="parent::node()"/>
1765		</演:其他>
1766	</xsl:template>
1767	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-unfold']">
1768		<演:其他 uof:locID="p0119">
1769			<xsl:copy-of select="parent::node()"/>
1770		</演:其他>
1771	</xsl:template>
1772	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-zoom']">
1773		<演:其他 uof:locID="p0119">
1774			<xsl:copy-of select="parent::node()"/>
1775		</演:其他>
1776	</xsl:template>
1777	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-contract']">
1778		<演:其他 uof:locID="p0119">
1779			<xsl:copy-of select="parent::node()"/>
1780		</演:其他>
1781	</xsl:template>
1782	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-fade-out']">
1783		<演:其他 uof:locID="p0119">
1784			<xsl:copy-of select="parent::node()"/>
1785		</演:其他>
1786	</xsl:template>
1787	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-fade-out-and-swivel']">
1788		<演:其他 uof:locID="p0119">
1789			<xsl:copy-of select="parent::node()"/>
1790		</演:其他>
1791	</xsl:template>
1792	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-fade-out-and-zoom']">
1793		<演:其他 uof:locID="p0119">
1794			<xsl:copy-of select="parent::node()"/>
1795		</演:其他>
1796	</xsl:template>
1797	<xsl:template match="draw:page" mode="styles">
1798		<xsl:call-template name="creategraphicstyles"/>
1799	</xsl:template>
1800	<xsl:template match="style:handout-master" mode="styles">
1801		<xsl:call-template name="creategraphicstyles"/>
1802	</xsl:template>
1803	<xsl:template match="style:master-page" mode="styles">
1804		<xsl:apply-templates select="presentation:notes" mode="styles"/>
1805		<xsl:call-template name="creategraphicstyles"/>
1806	</xsl:template>
1807	<xsl:template match="presentation:notes" mode="styles">
1808		<xsl:call-template name="creategraphicstyles"/>
1809	</xsl:template>
1810	<xsl:template name="creategraphicstyles">
1811		<xsl:for-each select="node()">
1812			<xsl:variable name="nodename1">
1813				<xsl:value-of select="name()"/>
1814			</xsl:variable>
1815			<xsl:if test="(substring-before($nodename1,':') = 'draw')">
1816				<xsl:call-template name="draw">
1817					<xsl:with-param name="nodename1" select="$nodename1"/>
1818				</xsl:call-template>
1819			</xsl:if>
1820		</xsl:for-each>
1821	</xsl:template>
1822	<xsl:template name="draw">
1823		<xsl:param name="nodename1"/>
1824		<xsl:choose>
1825			<xsl:when test="substring-after($nodename1,':') = 'a'">
1826				<xsl:for-each select="child::*">
1827					<xsl:call-template name="draw">
1828						<xsl:with-param name="nodename">
1829							<xsl:value-of select="name()"/>
1830						</xsl:with-param>
1831					</xsl:call-template>
1832				</xsl:for-each>
1833			</xsl:when>
1834			<xsl:when test="substring-after($nodename1,':') = 'g'">
1835				<xsl:call-template name="draw:g"/>
1836			</xsl:when>
1837			<xsl:otherwise>
1838				<xsl:call-template name="creategraphic"/>
1839			</xsl:otherwise>
1840		</xsl:choose>
1841	</xsl:template>
1842	<xsl:template name="draw:g">
1843		<xsl:for-each select="child::*">
1844			<xsl:choose>
1845				<xsl:when test="name()='draw:g'">
1846					<xsl:call-template name="draw:g"/>
1847				</xsl:when>
1848				<xsl:otherwise>
1849					<xsl:call-template name="creategraphic"/>
1850				</xsl:otherwise>
1851			</xsl:choose>
1852		</xsl:for-each>
1853		<xsl:call-template name="creategraphic"/>
1854	</xsl:template>
1855	<xsl:template name="zuheliebiao">
1856		<xsl:param name="allnode"/>
1857		<xsl:param name="pos"/>
1858		<xsl:choose>
1859			<xsl:when test="../child::*[$pos]">
1860				<xsl:for-each select="../child::*[$pos]">
1861					<xsl:variable name="nodepos">
1862						<xsl:value-of select="@draw:style-name"/>
1863					</xsl:variable>
1864					<xsl:variable name="picnumber1">
1865						<xsl:value-of select="count(preceding::*[@draw:style-name=$nodepos])"/>
1866					</xsl:variable>
1867					<xsl:variable name="pic-name1">
1868						<xsl:value-of select="concat($nodepos,'_',$picnumber1)"/>
1869					</xsl:variable>
1870					<xsl:variable name="allnode1">
1871						<xsl:value-of select="concat($allnode,',',$pic-name1)"/>
1872					</xsl:variable>
1873					<xsl:call-template name="zuheliebiao">
1874						<xsl:with-param name="allnode" select="$allnode1"/>
1875						<xsl:with-param name="pos" select="$pos+1"/>
1876					</xsl:call-template>
1877				</xsl:for-each>
1878			</xsl:when>
1879			<xsl:otherwise>
1880				<xsl:value-of select="$allnode"/>
1881			</xsl:otherwise>
1882		</xsl:choose>
1883	</xsl:template>
1884	<xsl:template name="creategraphic">
1885		<xsl:variable name="nodename">
1886			<xsl:value-of select="name()"/>
1887		</xsl:variable>
1888		<xsl:choose>
1889			<xsl:when test="@draw:style-name or name()='draw:g'">
1890				<xsl:variable name="pic-name">
1891					<xsl:value-of select="@draw:style-name"/>
1892				</xsl:variable>
1893				<xsl:variable name="pic-num">
1894					<xsl:value-of select="count(/descendant::*[@draw:style-name=$pic-name])"/>
1895				</xsl:variable>
1896				<xsl:variable name="picnumber">
1897					<xsl:value-of select="count(preceding::*[@draw:style-name=$pic-name])"/>
1898				</xsl:variable>
1899				<xsl:call-template name="pic-process">
1900					<xsl:with-param name="pic-name" select="$pic-name"/>
1901					<xsl:with-param name="nodename" select="$nodename"/>
1902					<xsl:with-param name="picnumber" select="$picnumber"/>
1903				</xsl:call-template>
1904			</xsl:when>
1905			<xsl:when test="@presentation:style-name">
1906				<xsl:variable name="pic-name">
1907					<xsl:value-of select="@presentation:style-name"/>
1908				</xsl:variable>
1909				<xsl:variable name="pic-num">
1910					<xsl:value-of select="count(/descendant::*[@presentation:style-name=$pic-name])"/>
1911				</xsl:variable>
1912				<xsl:variable name="picnumber">
1913					<xsl:value-of select="count(preceding::*[@presentation:style-name=$pic-name])"/>
1914				</xsl:variable>
1915				<xsl:call-template name="pic-process">
1916					<xsl:with-param name="pic-name" select="$pic-name"/>
1917					<xsl:with-param name="picnumber" select="$picnumber"/>
1918					<xsl:with-param name="nodename" select="$nodename"/>
1919				</xsl:call-template>
1920			</xsl:when>
1921		</xsl:choose>
1922	</xsl:template>
1923	<xsl:template name="pic-process">
1924		<xsl:param name="pic-name"/>
1925		<xsl:param name="nodename"/>
1926		<xsl:param name="picnumber"/>
1927		<图:图形 uof:locID="g0000" uof:attrList="层次 标识符 组合列表 其他对象">
1928			<xsl:attribute name="图:标识符"><xsl:choose><xsl:when test="@draw:id"><xsl:value-of select="@draw:id"/></xsl:when><xsl:when test="not(@draw:style-name) and name()='draw:g'"><xsl:value-of select="concat(child::node()[1]/@draw:style-name,'-',$picnumber)"/></xsl:when><xsl:otherwise><xsl:value-of select="concat($pic-name,'_',$picnumber)"/></xsl:otherwise></xsl:choose></xsl:attribute>
1929			<xsl:attribute name="图:层次"><xsl:choose><xsl:when test="name(parent::node())='draw:g'"><xsl:value-of select="position()"/></xsl:when><xsl:when test="@draw:z-index"><xsl:value-of select="@draw:z-index"/></xsl:when>
1930				<xsl:otherwise><xsl:value-of select="position()"/></xsl:otherwise>
1931			</xsl:choose></xsl:attribute>
1932			<xsl:if test="$nodename='draw:g'">
1933				<xsl:attribute name="图:组合列表"><xsl:for-each select="child::*[1]"><xsl:variable name="node1"><xsl:value-of select="@draw:style-name"/></xsl:variable><xsl:variable name="picnumber2"><xsl:value-of select="count(preceding::*[@draw:style-name=$node1])"/></xsl:variable><xsl:call-template name="zuheliebiao"><xsl:with-param name="allnode"><xsl:value-of select="concat($node1,'_',$picnumber2)"/></xsl:with-param><xsl:with-param name="pos" select="2"/></xsl:call-template></xsl:for-each></xsl:attribute>
1934			</xsl:if>
1935			<xsl:if test=".//office:binary-data">
1936				<xsl:attribute name="图:其他对象"><xsl:choose><xsl:when test="@draw:name"><xsl:value-of select="@draw:name"/></xsl:when><xsl:otherwise><xsl:value-of select="concat($pic-name,'_b1')"/></xsl:otherwise></xsl:choose></xsl:attribute>
1937			</xsl:if>
1938			<xsl:variable name="arrow-sign">
1939				<xsl:choose>
1940					<xsl:when test="key('graphicset',$pic-name)/style:graphic-properties/@draw:marker-start or key('graphicset',$pic-name)/style:graphic-properties/@draw:marker-end">
1941						<xsl:value-of select="'1'"/>
1942					</xsl:when>
1943					<xsl:otherwise>0</xsl:otherwise>
1944				</xsl:choose>
1945			</xsl:variable>
1946			<xsl:choose>
1947				<xsl:when test="$nodename='draw:line' or $nodename='draw:rect' or $nodename='draw:circle' or $nodename='draw:polygon' or $nodename='draw:polyline' or $nodename='draw:ellipse' or $nodename='draw:page-thumbnail' or $nodename='draw:frame' or $nodename='draw:path'or $nodename='draw:g'">
1948					<图:预定义图形 uof:locID="g0005">
1949						<图:类别 uof:locID="g0006">
1950							<xsl:choose>
1951								<xsl:when test="$nodename='draw:rect'">11</xsl:when>
1952								<xsl:when test="$nodename='draw:line'">61</xsl:when>
1953								<xsl:when test="$nodename='draw:circle'">19</xsl:when>
1954								<xsl:when test="$nodename='draw:polygon'">65</xsl:when>
1955								<xsl:when test="$nodename='draw:polyline'">66</xsl:when>
1956								<xsl:when test="$nodename='draw:ellipse'">19</xsl:when>
1957								<xsl:when test="$nodename='draw:page-thumbnail'">67</xsl:when>
1958								<xsl:when test="$nodename='draw:frame'">3</xsl:when>
1959								<xsl:when test="$nodename='draw:path'">64</xsl:when>
1960								<xsl:when test="$nodename='draw:g'">4</xsl:when>
1961							</xsl:choose>
1962						</图:类别>
1963						<图:名称 uof:locID="g0007">
1964							<xsl:choose>
1965								<xsl:when test="$nodename='draw:rect'">Rectangle</xsl:when>
1966								<xsl:when test="$nodename='draw:line'">Line</xsl:when>
1967								<xsl:when test="$nodename='draw:circle'">Oval</xsl:when>
1968								<xsl:when test="$nodename='draw:polygon'">Freeform</xsl:when>
1969								<xsl:when test="$nodename='draw:polyline'">Scribble</xsl:when>
1970								<xsl:when test="$nodename='draw:ellipse'">Oval</xsl:when>
1971								<xsl:when test="$nodename='draw:page-thumbnail'">缩略图</xsl:when>
1972								<xsl:when test="$nodename='draw:frame'">文本框</xsl:when>
1973								<xsl:when test="$nodename='draw:path'">Curve</xsl:when>
1974								<xsl:when test="$nodename='draw:g'">group</xsl:when>
1975							</xsl:choose>
1976						</图:名称>
1977						<图:生成软件 uof:locID="g0008">PNG</图:生成软件>
1978						<xsl:if test="./@draw:points or ./@svg:d">
1979							<图:关键点坐标 uof:locID="g0009" uofattrList="路径">
1980								<xsl:attribute name="图:路径"><xsl:choose><xsl:when test="@svg:d"><xsl:value-of select="@svg:d"/></xsl:when><xsl:when test="@draw:points"><xsl:call-template name="draw:points"><xsl:with-param name="point" select="@draw:points"/><xsl:with-param name="lujing"/></xsl:call-template></xsl:when></xsl:choose></xsl:attribute>
1981							</图:关键点坐标>
1982						</xsl:if>
1983						<图:属性 uof:locID="g0011">
1984							<xsl:for-each select="(/office:document/office:styles/descendant::*[@style:name=$pic-name]) | (/office:document/*/style:style[@style:name=$pic-name]) ">
1985								<xsl:for-each select="style:graphic-properties">
1986									<xsl:if test="not(@draw:fill='none')">
1987										<图:填充 uof:locID="g0012">
1988											<xsl:call-template name="填充">
1989												<xsl:with-param name="nodename" select="$nodename"/>
1990												<xsl:with-param name="picname" select="$pic-name"/>
1991											</xsl:call-template>
1992										</图:填充>
1993									</xsl:if>
1994								</xsl:for-each>
1995								<xsl:if test="style:graphic-properties/@svg:stroke-color">
1996									<图:线颜色 uof:locID="g0013">
1997										<xsl:value-of select="style:graphic-properties/@svg:stroke-color"/>
1998									</图:线颜色>
1999								</xsl:if>
2000								<图:线型 uof:locID="g0014">
2001									<xsl:variable name="linetype" select="style:graphic-properties/@draw:stroke-dash"/>
2002									<xsl:choose>
2003										<xsl:when test="not(style:graphic-properties/@draw:stroke)">
2004											<xsl:choose>
2005												<xsl:when test="not(style:graphic-properties/@svg:stroke-width)">single</xsl:when>
2006												<xsl:otherwise>thick</xsl:otherwise>
2007											</xsl:choose>
2008										</xsl:when>
2009										<xsl:otherwise>
2010											<xsl:choose>
2011												<xsl:when test="style:graphic-properties/@draw:stroke = 'none'">none</xsl:when>
2012												<xsl:otherwise>
2013													<xsl:choose>
2014														<xsl:when test="$linetype='Fine_20_Dashed' and style:graphic-properties/@svg:stroke-width">dash-long-heavy</xsl:when>
2015														<xsl:when test="$linetype='Fine_20_Dashed'">dash-long</xsl:when>
2016														<xsl:when test="$linetype='_32__20_Dots_20_1_20_Dash' and style:graphic-properties/@svg:stroke-width">dash-dot-dot-heavy</xsl:when>
2017														<xsl:when test="$linetype='_32__20_Dots_20_1_20_Dash'">dot-dot-dash</xsl:when>
2018														<xsl:when test="$linetype='Ultrafine_20_Dashed' and style:graphic-properties/@svg:stroke-width">dashed-heavy</xsl:when>
2019														<xsl:when test="$linetype='Ultrafine_20_Dotted_20__28_var_29_'and style:graphic-properties/@svg:stroke-width">dotted-heavy</xsl:when>
2020														<xsl:when test="$linetype='Ultrafine_20_Dotted_20__28_var_29_'">dotted</xsl:when>
2021														<xsl:when test="$linetype='Line_20_with_20_Fine_20_Dots'">double</xsl:when>
2022														<xsl:when test="$linetype='_33__20_Dashes_20_3_20_Dots_20__28_var_29_' and style:graphic-properties/@svg:stroke-width">dash-dot-heavy</xsl:when>
2023														<xsl:when test="$linetype='_33__20_Dashes_20_3_20_Dots_20__28_var_29_'">dot-dash</xsl:when>
2024														<xsl:when test="$linetype='Ultrafine_20_2_20_Dots_20_3_20_Dashes'and style:graphic-properties/@svg:stroke-width">wavy-heavy</xsl:when>
2025														<xsl:when test="$linetype='Ultrafine_20_2_20_Dots_20_3_20_Dashes'">wave</xsl:when>
2026														<xsl:when test="$linetype='Fine_20_Dashed_20__28_var_29_'">wavy-double</xsl:when>
2027														<xsl:otherwise>dash</xsl:otherwise>
2028													</xsl:choose>
2029												</xsl:otherwise>
2030											</xsl:choose>
2031										</xsl:otherwise>
2032									</xsl:choose>
2033								</图:线型>
2034								<xsl:if test="style:graphic-properties/@svg:stroke-width">
2035									<图:线粗细 uof:locID="g0016">
2036										<xsl:value-of select="substring-before(style:graphic-properties/@svg:stroke-width,$uofUnit)"/>
2037									</图:线粗细>
2038								</xsl:if>
2039								<xsl:if test="style:graphic-properties/@draw:marker-start and string-length(style:graphic-properties/@draw:marker-start)&gt;0">
2040									<图:前端箭头 uof:locID="g0017">
2041										<图:式样 uof:locID="g0018">
2042											<xsl:choose>
2043												<xsl:when test="style:graphic-properties/@draw:marker-start='Arrow'">normal</xsl:when>
2044												<xsl:when test="style:graphic-properties/@draw:marker-start='Line_20_Arrow'">open</xsl:when>
2045												<xsl:when test="style:graphic-properties/@draw:marker-start='Arrow_20_concave'">stealth</xsl:when>
2046												<xsl:when test="style:graphic-properties/@draw:marker-start='Circle'">oval</xsl:when>
2047												<xsl:when test="style:graphic-properties/@draw:marker-start='Square_20_45'">diamond</xsl:when>
2048												<xsl:otherwise>normal</xsl:otherwise>
2049											</xsl:choose>
2050										</图:式样>
2051										<xsl:if test="style:graphic-properties/@draw:marker-start-width">
2052											<图:大小 uof:locID="g0019">
2053												<xsl:variable name="width">
2054													<xsl:value-of select="substring-before(style:graphic-properties/@draw:marker-start-width,$uofUnit)"/>
2055												</xsl:variable>
2056												<xsl:choose>
2057													<xsl:when test="($width&lt;0.05 and 0&lt;$width) or $width=0.05">1</xsl:when>
2058													<xsl:when test="($width&lt;0.10 and 0.05&lt;$width) or $width=0.10">2</xsl:when>
2059													<xsl:when test="($width&lt;0.15 and 0.10&lt;$width) or $width=0.15">3</xsl:when>
2060													<xsl:when test="($width&lt;0.20 and 0.15&lt;$width) or $width=0.20">4</xsl:when>
2061													<xsl:when test="($width&lt;0.25 and 0.20&lt;$width) or $width=0.25">5</xsl:when>
2062													<xsl:when test="($width&lt;0.30 and 0.25&lt;$width) or $width=0.30">6</xsl:when>
2063													<xsl:when test="($width&lt;0.35 and 0.30&lt;$width) or $width=0.35">7</xsl:when>
2064													<xsl:when test="($width&lt;0.40 and 0.35&lt;$width) or $width=0.40">8</xsl:when>
2065													<xsl:otherwise>9</xsl:otherwise>
2066												</xsl:choose>
2067											</图:大小>
2068										</xsl:if>
2069									</图:前端箭头>
2070								</xsl:if>
2071								<xsl:if test="style:graphic-properties/@draw:marker-end">
2072									<图:后端箭头 uof:locID="g0020">
2073										<图:式样 uof:locID="g0021">
2074											<xsl:choose>
2075												<xsl:when test="style:graphic-properties/@draw:marker-end='Arrow'">normal</xsl:when>
2076												<xsl:when test="style:graphic-properties/@draw:marker-end='Line_20_Arrow'">open</xsl:when>
2077												<xsl:when test="style:graphic-properties/@draw:marker-end='Arrow_20_concave'">stealth</xsl:when>
2078												<xsl:when test="style:graphic-properties/@draw:marker-end='Circle'">oval</xsl:when>
2079												<xsl:when test="style:graphic-properties/@draw:marker-end='Square_20_45'">diamond</xsl:when>
2080												<xsl:otherwise>normal</xsl:otherwise>
2081											</xsl:choose>
2082										</图:式样>
2083										<xsl:if test="style:graphic-properties/@draw:marker-end-width">
2084											<图:大小 uof:locID="g0022">
2085												<xsl:variable name="width">
2086													<xsl:value-of select="number(substring-before(style:graphic-properties/@draw:marker-end-width,$uofUnit))"/>
2087												</xsl:variable>
2088												<xsl:choose>
2089													<xsl:when test="($width&lt;0.05 and 0&lt;$width) or $width=0.05">1</xsl:when>
2090													<xsl:when test="($width&lt;0.10 and 0.05&lt;$width) or $width=0.10">2</xsl:when>
2091													<xsl:when test="($width&lt;0.15 and 0.10&lt;$width) or $width=0.15">3</xsl:when>
2092													<xsl:when test="($width&lt;0.20 and 0.15&lt;$width) or $width=0.20">4</xsl:when>
2093													<xsl:when test="($width&lt;0.25 and 0.20&lt;$width) or $width=0.25">5</xsl:when>
2094													<xsl:when test="($width&lt;0.30 and 0.25&lt;$width) or $width=0.30">6</xsl:when>
2095													<xsl:when test="($width&lt;0.35 and 0.30&lt;$width) or $width=0.35">7</xsl:when>
2096													<xsl:when test="($width&lt;0.40 and 0.35&lt;$width) or $width=0.40">8</xsl:when>
2097													<xsl:otherwise>9</xsl:otherwise>
2098												</xsl:choose>
2099											</图:大小>
2100										</xsl:if>
2101									</图:后端箭头>
2102								</xsl:if>
2103								<xsl:if test="style:graphic-properties/@draw:opacity or style:graphic-properties/@svg:stroke-opacity or style:graphic-properties/@svg:stroke-opacity">
2104									<图:透明度 uof:locID="g0038">
2105									<xsl:choose>
2106										<xsl:when test="style:graphic-properties/@draw:opacity">
2107										<xsl:variable name="transparency">
2108											<xsl:value-of select="substring-before(style:graphic-properties/@draw:opacity,'%')"/>
2109										</xsl:variable>
2110										<xsl:value-of select="(100 - $transparency) div 100"/>
2111										</xsl:when>
2112										<xsl:when test="style:graphic-properties/@svg:stroke-opacity">
2113										<xsl:variable name="transparency">
2114											<xsl:value-of select="substring-before(style:graphic-properties/@svg:stroke-opacity,'%')"/>
2115										</xsl:variable>
2116										<xsl:value-of select="(100 - $transparency) div 100"/>
2117										</xsl:when>
2118										<xsl:when test="style:properties/@svg:stroke-opacity">
2119											<xsl:value-of select="substring-before(style:properties/@svg:stroke-opacity,'%')"/>
2120										</xsl:when>
2121									</xsl:choose>
2122									</图:透明度>
2123								</xsl:if>
2124							</xsl:for-each>
2125							<xsl:choose>
2126								<xsl:when test="@svg:x1">
2127									<图:宽度 uof:locID="g0023">
2128										<xsl:value-of select="substring-before(@svg:x2,$uofUnit) - substring-before(@svg:x1,$uofUnit)"/>
2129									</图:宽度>
2130									<图:高度 uof:locID="g0024">
2131										<xsl:value-of select="substring-before(@svg:y2,$uofUnit) - substring-before(@svg:y1,$uofUnit)"/>
2132									</图:高度>
2133								</xsl:when>
2134								<xsl:when test="@svg:x">
2135									<图:宽度 uof:locID="g0023">
2136										<xsl:value-of select="substring-before(@svg:width,$uofUnit)"/>
2137									</图:宽度>
2138									<图:高度 uof:locID="g0024">
2139										<xsl:value-of select="substring-before(@svg:height,$uofUnit)"/>
2140									</图:高度>
2141								</xsl:when>
2142								<xsl:when test="@svg:width">
2143									<图:宽度 uof:locID="g0023">
2144										<xsl:value-of select="substring-before(@svg:width,$uofUnit)"/>
2145									</图:宽度>
2146									<图:高度 uof:locID="g0024">
2147										<xsl:value-of select="substring-before(@svg:height,$uofUnit)"/>
2148									</图:高度>
2149								</xsl:when>
2150							</xsl:choose>
2151							<图:旋转角度 uof:locID="g0025">
2152								<xsl:choose>
2153									<xsl:when test="@draw:transform">
2154										<xsl:variable name="rotate-angle">
2155											<xsl:value-of select="@draw:transform"/>
2156										</xsl:variable>
2157										<xsl:variable name="rotate-temp">
2158											<xsl:value-of select="substring-before(substring-after($rotate-angle,'rotate ('),')')"/>
2159										</xsl:variable>
2160										<xsl:value-of select="($rotate-temp * 360) div (2 * 3.14159265)"/>
2161									</xsl:when>
2162									<xsl:otherwise>0.0</xsl:otherwise>
2163								</xsl:choose>
2164							</图:旋转角度>
2165							<图:X-缩放比例 uof:locID="g0026">1</图:X-缩放比例>
2166							<图:Y-缩放比例 uof:locID="g0027">1</图:Y-缩放比例>
2167							<图:锁定纵横比 uof:locID="g0028">0</图:锁定纵横比>
2168							<图:相对原始比例 uof:locID="g0029">1</图:相对原始比例>
2169							<图:打印对象 uof:locID="g0032">true</图:打印对象>
2170							<图:Web文字 uof:locID="g0033"/>
2171						</图:属性>
2172					</图:预定义图形>
2173				</xsl:when>
2174			</xsl:choose>
2175			<xsl:if test="./text:p or ./draw:text-box">
2176				<图:文本内容 uof:locID="g0002" uof:attrList="文本框 左边距 右边距 上边距 下边距 水平对齐 垂直对齐 文字排列方向 自动换行 大小适应文字 前一链接 后一链接">
2177					<xsl:if test="$nodename='draw:text-box'">
2178						<xsl:attribute name="图:文本框">true</xsl:attribute>
2179						<xsl:if test="./@draw:name = /office:document/office:body
2180//draw:text-box/@draw:chain-next-name">
2181							<xsl:attribute name="图:前一链接"><xsl:variable name="drawname"><xsl:value-of select="./@draw:name"/></xsl:variable><xsl:variable name="befor-link-name"><xsl:value-of select="/office:document/office:body
2182//draw:text-box[@draw:name=$drawname]/@draw:style-name"/></xsl:variable><xsl:value-of select="concat($befor-link-name,'_',$picnumber)"/></xsl:attribute>
2183						</xsl:if>
2184						<xsl:if test="./@draw:chain-next-name">
2185							<xsl:attribute name="图:后一链接"><xsl:variable name="next-link"><xsl:value-of select="./@draw:chain-next-name"/></xsl:variable><xsl:variable name="link-name"><xsl:value-of select="/office:document/office:body
2186//draw:text-box[@draw:name=$next-link]/@draw:style-name"/></xsl:variable><xsl:value-of select="concat($link-name,'_',$picnumber)"/></xsl:attribute>
2187						</xsl:if>
2188					</xsl:if>
2189					<xsl:for-each select="(/office:document/office:styles/descendant::*[@style:name=$pic-name]) | (/office:document/office:automatic-styles/descendant::*[@style:name=$pic-name]) ">
2190						<xsl:if test="style:graphic-properties/@fo:padding-left">
2191							<xsl:attribute name="图:左边距"><xsl:value-of select="substring-before(style:graphic-properties/@fo:padding-left,$uofUnit)"/></xsl:attribute>
2192							<xsl:attribute name="图:右边距"><xsl:value-of select="substring-before(style:graphic-properties/@fo:padding-right,$uofUnit)"/></xsl:attribute>
2193							<xsl:attribute name="图:上边距"><xsl:value-of select="substring-before(style:graphic-properties/@fo:padding-top,$uofUnit)"/></xsl:attribute>
2194							<xsl:attribute name="图:下边距"><xsl:value-of select="substring-before(style:graphic-properties/@fo:padding-bottom,$uofUnit)"/></xsl:attribute>
2195						</xsl:if>
2196						<xsl:attribute name="图:文字排列方向">
2197							<xsl:choose>
2198								<xsl:when test="style:paragraph-properties/@style:writing-mode">
2199									<xsl:choose>
2200										<xsl:when test="style:paragraph-properties/@style:writing-mode='tb-rl' and style:graphic-properties/@draw:textarea-vertical-align='bottom'">vert-l2r</xsl:when>
2201										<xsl:when test="style:paragraph-properties/@style:writing-mode='tb-rl'">vert-r2l</xsl:when>
2202									</xsl:choose>
2203								</xsl:when>
2204								<xsl:when test="style:graphic-properties/@draw:textarea-horizontal-align='right'">hori-r2l</xsl:when>
2205								<xsl:otherwise>hori-l2r</xsl:otherwise>
2206							</xsl:choose>
2207						</xsl:attribute>
2208						<xsl:if test="style:graphic-properties/@fo:wrap-option">
2209							<xsl:attribute name="图:自动换行">true</xsl:attribute>
2210						</xsl:if>
2211						<xsl:if test="style:graphic-properties/@draw:auto-grow-width='true'">
2212							<xsl:attribute name="图:大小适应文字">true</xsl:attribute>
2213						</xsl:if>
2214					</xsl:for-each>
2215					<xsl:if test="./draw:text-box">
2216						<xsl:for-each select="draw:text-box/node( )">
2217							<xsl:choose>
2218								<xsl:when test="name()='text:list'">
2219									<xsl:call-template name="unordered-ordered-list">
2220										<xsl:with-param name="currlistlvl" select="number('1')"/>
2221										<xsl:with-param name="liststylename" select="@text:style-name"/>
2222									</xsl:call-template>
2223								</xsl:when>
2224								<xsl:when test="name()='text:p'or name()='text:h'">
2225									<xsl:call-template name="execParagraph">
2226										<xsl:with-param name="currlistlvl" select="number('0')"/>
2227										<xsl:with-param name="liststylename" select="string('00000')"/>
2228									</xsl:call-template>
2229								</xsl:when>
2230							</xsl:choose>
2231						</xsl:for-each>
2232					</xsl:if>
2233					<xsl:if test="./text:p">
2234						<xsl:call-template name="execParagraph">
2235							<xsl:with-param name="currlistlvl" select="number('0')"/>
2236							<xsl:with-param name="liststylename" select="string('00000')"/>
2237						</xsl:call-template>
2238					</xsl:if>
2239				</图:文本内容>
2240			</xsl:if>
2241			<图:控制点 uof:locID="g0003" uof:attrList="x坐标 y坐标">
2242				<xsl:attribute name="图:x坐标"><xsl:value-of select="substring-before(@svg:x,$uofUnit)"/></xsl:attribute>
2243				<xsl:attribute name="图:y坐标"><xsl:value-of select="substring-before(@svg:y,$uofUnit)"/></xsl:attribute>
2244			</图:控制点>
2245               <图:翻转 uof:locID="g0040" uof:attrList="方向" 图:方向="x"/>
2246		</图:图形>
2247		<xsl:if test="name(..)='draw:g'">
2248			<图:组合位置 uof:locID="g0041" uof:attrList="x坐标 y坐标">
2249				<xsl:attribute name="图:x坐标"><xsl:variable name="minx"><xsl:for-each select="parent::node()"><xsl:call-template name="groupminx"><xsl:with-param name="value" select="number(substring-before(descendant::node()[@svg:x][1]/@svg:x,$uofUnit))"/><xsl:with-param name="pos" select="2"/></xsl:call-template></xsl:for-each></xsl:variable><xsl:choose><xsl:when test="name(.)='draw:g'"><xsl:variable name="current-minx"><xsl:call-template name="groupminx"><xsl:with-param name="value" select="number(substring-before(descendant::node()[@svg:x][1]/@svg:x,$uofUnit))"/><xsl:with-param name="pos" select="2"/></xsl:call-template></xsl:variable><xsl:value-of select="$current-minx - $minx"/></xsl:when><xsl:otherwise><xsl:variable name="current-x" select="number(substring-before(@svg:x,$uofUnit))"/><xsl:value-of select="$current-x - $minx"/></xsl:otherwise></xsl:choose></xsl:attribute>
2250				<xsl:attribute name="图:y坐标"><xsl:variable name="miny"><xsl:for-each select="parent::node()"><xsl:call-template name="groupminy"><xsl:with-param name="value" select="number(substring-before(descendant::node()[@svg:y][1]/@svg:y,$uofUnit))"/><xsl:with-param name="pos" select="2"/></xsl:call-template></xsl:for-each></xsl:variable><xsl:choose><xsl:when test="name(.)='draw:g'"><xsl:variable name="current-miny"><xsl:call-template name="groupminy"><xsl:with-param name="value" select="number(substring-before(descendant::node()[@svg:y][1]/@svg:y,$uofUnit))"/><xsl:with-param name="pos" select="2"/></xsl:call-template></xsl:variable><xsl:value-of select="$current-miny - $miny"/></xsl:when><xsl:otherwise><xsl:variable name="current-y" select="number(substring-before(@svg:y,$uofUnit))"/><xsl:value-of select="$current-y - $miny"/></xsl:otherwise></xsl:choose></xsl:attribute>
2251			</图:组合位置>
2252		</xsl:if>
2253		<xsl:if test="name()='draw:frame' and ./draw:image">
2254			<uof:其他对象 uof:locID="u0036" uof:attrList="标识符 内嵌 公共类型 私有类型">
2255				<xsl:attribute name="uof:标识符"><xsl:choose><xsl:when test="@draw:id"><xsl:value-of select="@draw:id"/></xsl:when><xsl:otherwise><xsl:value-of select="concat($pic-name,'_',$picnumber)"/></xsl:otherwise></xsl:choose></xsl:attribute>
2256				<xsl:attribute name="uof:内嵌">true</xsl:attribute>
2257				<xsl:attribute name="uof:公共类型">jpg</xsl:attribute>
2258				<xsl:if test="./draw:image/office:binary-data">
2259					<uof:数据 uof:locID="u0037">
2260						<xsl:value-of select="./draw:image/office:binary-data"/>
2261					</uof:数据>
2262				</xsl:if>
2263				<xsl:if test="./draw:image/@xlink:href">
2264					<uof:路径 uof:locID="u0038">
2265						<xsl:value-of select="./draw:image/@xlink:href"/>
2266					</uof:路径>
2267				</xsl:if>
2268			</uof:其他对象>
2269		</xsl:if>
2270		<xsl:for-each select="(/office:document/office:styles/descendant::*[@style:name=$pic-name]) | (/office:document/office:automatic-styles/descendant::*[@style:name=$pic-name]) ">
2271			<xsl:if test="style:graphic-properties/@draw:fill-image-name and @draw:fill='bitmap'">
2272				<uof:其他对象 uof:locID="u0036" uof:attrList="标识符 内嵌 公共类型 私有类型">
2273					<xsl:attribute name="uof:标识符"><xsl:choose><xsl:when test="@draw:id"><xsl:value-of select="@draw:id"/></xsl:when><xsl:otherwise><xsl:value-of select="concat($pic-name,'_',$picnumber)"/></xsl:otherwise></xsl:choose></xsl:attribute>
2274					<xsl:attribute name="uof:公共类型">jpg</xsl:attribute>
2275					<xsl:attribute name="uof:内嵌">true</xsl:attribute>
2276					<xsl:variable name="fill-name">
2277						<xsl:value-of select="style:graphic-properties/@draw:fill-image-name"/>
2278					</xsl:variable>
2279					<uof:数据 uof:locID="u0037">
2280						<xsl:for-each select="/office:document/office:styles/draw:fill-image[@draw:name=$fill-name]">
2281							<xsl:value-of select="office:binary-data"/>
2282						</xsl:for-each>
2283					</uof:数据>
2284					<uof:路径 uof:locID="u0038">
2285						<xsl:value-of select="@xlink:href"/>
2286					</uof:路径>
2287				</uof:其他对象>
2288			</xsl:if>
2289		</xsl:for-each>
2290	</xsl:template>
2291	<xsl:template name="unordered-ordered-list">
2292		<xsl:param name="currlistlvl"/>
2293		<xsl:param name="liststylename"/>
2294		<xsl:for-each select="text:list-item">
2295			<xsl:if test="text:p">
2296				<xsl:for-each select="text:p">
2297					<xsl:call-template name="execParagraph">
2298						<xsl:with-param name="currlistlvl" select="$currlistlvl"/>
2299						<xsl:with-param name="liststylename" select="$liststylename"/>
2300					</xsl:call-template>
2301				</xsl:for-each>
2302			</xsl:if>
2303			<xsl:for-each select="node( )">
2304				<xsl:if test="name()='text:list'">
2305					<xsl:call-template name="unordered-ordered-list">
2306						<xsl:with-param name="currlistlvl" select="$currlistlvl +1"/>
2307						<xsl:with-param name="liststylename" select="$liststylename"/>
2308					</xsl:call-template>
2309				</xsl:if>
2310			</xsl:for-each>
2311		</xsl:for-each>
2312	</xsl:template>
2313	<xsl:template name="groupminx">
2314		<xsl:param name="value"/>
2315		<xsl:param name="pos"/>
2316		<xsl:choose>
2317			<xsl:when test="descendant::node()[@svg:x][position()=$pos]">
2318				<xsl:variable name="othervalue" select="number(substring-before(descendant::node()[@svg:x][position()=$pos]/@svg:x,$uofUnit))"/>
2319				<xsl:call-template name="groupminx">
2320					<xsl:with-param name="value">
2321						<xsl:choose>
2322							<xsl:when test="$value&gt;$othervalue">
2323								<xsl:value-of select="$othervalue"/>
2324							</xsl:when>
2325							<xsl:otherwise>
2326								<xsl:value-of select="$value"/>
2327							</xsl:otherwise>
2328						</xsl:choose>
2329					</xsl:with-param>
2330					<xsl:with-param name="pos" select="$pos+1"/>
2331				</xsl:call-template>
2332			</xsl:when>
2333			<xsl:otherwise>
2334				<xsl:value-of select="$value"/>
2335			</xsl:otherwise>
2336		</xsl:choose>
2337	</xsl:template>
2338	<xsl:template name="groupminy">
2339		<xsl:param name="value"/>
2340		<xsl:param name="pos"/>
2341		<xsl:choose>
2342			<xsl:when test="descendant::node()[@svg:y][position()=$pos]">
2343				<xsl:variable name="othervalue" select="number(substring-before(descendant::node()[@svg:y][position()=$pos]/@svg:y,$uofUnit))"/>
2344				<xsl:call-template name="groupminy">
2345					<xsl:with-param name="value">
2346						<xsl:choose>
2347							<xsl:when test="$value&gt;$othervalue">
2348								<xsl:value-of select="$othervalue"/>
2349							</xsl:when>
2350							<xsl:otherwise>
2351								<xsl:value-of select="$value"/>
2352							</xsl:otherwise>
2353						</xsl:choose>
2354					</xsl:with-param>
2355					<xsl:with-param name="pos" select="$pos+1"/>
2356				</xsl:call-template>
2357			</xsl:when>
2358			<xsl:otherwise>
2359				<xsl:value-of select="$value"/>
2360			</xsl:otherwise>
2361		</xsl:choose>
2362	</xsl:template>
2363	<xsl:template name="groupmaxx">
2364		<xsl:param name="value"/>
2365		<xsl:param name="pos"/>
2366		<xsl:choose>
2367			<xsl:when test="descendant::node()[@svg:x][position()=$pos]">
2368				<xsl:variable name="svgx">
2369					<xsl:value-of select="number(substring-before(descendant::node()[@svg:x][position()=$pos]/@svg:x,$uofUnit))"/>
2370				</xsl:variable>
2371				<xsl:variable name="width">
2372					<xsl:value-of select="number(substring-before(descendant::node()[@svg:x][position()=$pos]/@svg:width,$uofUnit))"/>
2373				</xsl:variable>
2374				<xsl:variable name="othervalue" select="$svgx + $width"/>
2375				<xsl:call-template name="groupminx">
2376					<xsl:with-param name="value">
2377						<xsl:choose>
2378							<xsl:when test="$value&gt;$othervalue">
2379								<xsl:value-of select="$value"/>
2380							</xsl:when>
2381							<xsl:otherwise>
2382								<xsl:value-of select="$othervalue"/>
2383							</xsl:otherwise>
2384						</xsl:choose>
2385					</xsl:with-param>
2386					<xsl:with-param name="pos" select="$pos+1"/>
2387				</xsl:call-template>
2388			</xsl:when>
2389			<xsl:otherwise>
2390				<xsl:value-of select="$value"/>
2391			</xsl:otherwise>
2392		</xsl:choose>
2393	</xsl:template>
2394	<xsl:template name="groupmaxy">
2395		<xsl:param name="value"/>
2396		<xsl:param name="pos"/>
2397		<xsl:choose>
2398			<xsl:when test="descendant::node()[@svg:y][position()=$pos]">
2399				<xsl:variable name="svgy">
2400					<xsl:value-of select="number(substring-before(descendant::node()[@svg:y][position()=$pos]/@svg:y,$uofUnit))"/>
2401				</xsl:variable>
2402				<xsl:variable name="height">
2403					<xsl:value-of select="number(substring-before(descendant::node()[@svg:y][position()=$pos]/@svg:height,$uofUnit))"/>
2404				</xsl:variable>
2405				<xsl:variable name="othervalue" select="$svgy + $height"/>
2406				<xsl:call-template name="groupminy">
2407					<xsl:with-param name="value">
2408						<xsl:choose>
2409							<xsl:when test="$value&gt;$othervalue">
2410								<xsl:value-of select="$value"/>
2411							</xsl:when>
2412							<xsl:otherwise>
2413								<xsl:value-of select="$othervalue"/>
2414							</xsl:otherwise>
2415						</xsl:choose>
2416					</xsl:with-param>
2417					<xsl:with-param name="pos" select="$pos+1"/>
2418				</xsl:call-template>
2419			</xsl:when>
2420			<xsl:otherwise>
2421				<xsl:value-of select="$value"/>
2422			</xsl:otherwise>
2423		</xsl:choose>
2424	</xsl:template>
2425	<xsl:template name="draw:points">
2426		<xsl:param name="point"/>
2427		<xsl:param name="lujing"/>
2428		<xsl:choose>
2429			<xsl:when test="contains($point,' ' )">
2430				<xsl:variable name="first-point" select="substring-before($point,' ')"/>
2431				<xsl:variable name="other-point" select="substring-after($point,' ')"/>
2432				<xsl:variable name="xzuobiao">
2433					<xsl:value-of select="substring-before($first-point,',') div 1000"/>
2434				</xsl:variable>
2435				<xsl:variable name="yzuobiao">
2436					<xsl:value-of select="substring-after($first-point,',') div 1000"/>
2437				</xsl:variable>
2438				<xsl:call-template name="draw:points">
2439					<xsl:with-param name="point" select="$other-point"/>
2440					<xsl:with-param name="lujing" select="concat($lujing,$xzuobiao,' ',$yzuobiao,'lineto')"/>
2441				</xsl:call-template>
2442			</xsl:when>
2443			<xsl:otherwise>
2444				<xsl:variable name="xzuobiao">
2445					<xsl:value-of select="substring-before($point,',') div 1000"/>
2446				</xsl:variable>
2447				<xsl:variable name="yzuobiao">
2448					<xsl:value-of select="substring-after($point,',') div 1000"/>
2449				</xsl:variable>
2450				<xsl:value-of select="concat($lujing,$xzuobiao,' ',$yzuobiao)"/>
2451			</xsl:otherwise>
2452		</xsl:choose>
2453	</xsl:template>
2454	<xsl:template name="execParagraph">
2455		<xsl:param name="currlistlvl"/>
2456		<xsl:param name="liststylename"/>
2457		<字:段落 uof:locID="t0051" uof:attrList="标识符">
2458		<xsl:if test="@text:id">
2459				<xsl:attribute name="字:动画标识"><xsl:value-of select="@text:id"/></xsl:attribute>
2460			</xsl:if>
2461			<xsl:element name="字:段落属性">
2462				<xsl:attribute name="uof:locID">t0052</xsl:attribute>
2463				<xsl:attribute name="uof:attrList">式样引用</xsl:attribute>
2464				<xsl:attribute name="字:式样引用"><xsl:choose><xsl:when test="@text:id"><xsl:value-of select="@text:id"/></xsl:when><xsl:otherwise><xsl:value-of select="@text:style-name"/></xsl:otherwise></xsl:choose></xsl:attribute>
2465				<xsl:if test="not(number($currlistlvl) =number('0'))">
2466					<xsl:variable name="parent-position">
2467						<xsl:number from="/office:document/office:body/text:ordered-list" level="any" count="text:list-item/text:p" format="1"/>
2468					</xsl:variable>
2469					<xsl:element name="字:自动编号信息">
2470						<xsl:attribute name="uof:locID">t0059</xsl:attribute>
2471						<xsl:attribute name="uof:attrList">编号引用 编号级别 重新编号 起始编号</xsl:attribute>
2472						<xsl:attribute name="字:编号引用"><xsl:value-of select="$liststylename"/></xsl:attribute>
2473						<xsl:attribute name="字:编号级别"><xsl:value-of select="$currlistlvl"/></xsl:attribute>
2474						<xsl:attribute name="字:重新编号"><xsl:choose><xsl:when test="number($parent-position)=number('1')">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
2475						<xsl:attribute name="字:起始编号"><xsl:for-each select="//text:list-style[$liststylename=@style:name]/*[number($currlistlvl)=number(@text:level)]"><xsl:choose><xsl:when test="@text:start-value"><xsl:value-of select="@text:start-value"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:for-each></xsl:attribute>
2476					</xsl:element>
2477				</xsl:if>
2478				<xsl:variable name="stylename">
2479					<xsl:value-of select="@text:style-name"/>
2480				</xsl:variable>
2481				<xsl:for-each select="(//style:style[@style:name=$stylename])">
2482					<xsl:call-template name="ParaAttribute">
2483						<xsl:with-param name="text-style-name" select="@text:style-name"/>
2484					</xsl:call-template>
2485				</xsl:for-each>
2486			</xsl:element>
2487			<xsl:for-each select="node( )">
2488				<xsl:choose>
2489					<xsl:when test="self::node( )[name(.)='text:span']">
2490						<xsl:call-template name="textspan"/>
2491					</xsl:when>
2492					<xsl:when test="self::node()[name(.)='text:time']">
2493						<xsl:apply-templates select="."/>
2494					</xsl:when>
2495					<xsl:when test="self::node()[name(.)='text:s']">
2496						<xsl:apply-templates select="."/>
2497					</xsl:when>
2498					<xsl:when test="substring-before(name(.),':')='draw' and not(name(.)='draw:a')">
2499					</xsl:when>
2500					<xsl:when test="name(.)='text:a'">
2501						<字:句 uof:locID="t0085">
2502							<xsl:element name="字:句属性">
2503								<xsl:attribute name="uof:locID">t0086</xsl:attribute>
2504								<xsl:attribute name="uof:attrList">式样引用</xsl:attribute>
2505								<字:字体 uof:locID="t0088" uof:attrList="西文字体引用 中文字体引用 字号 颜色" 字:颜色="#0000ff"/>
2506								<字:下划线 uof:locID="t0095" 字:类型="single" 字:颜色="#0000ff" uof:attrList="类型 颜色 字下划线"/>
2507							</xsl:element>
2508							<xsl:element name="字:区域开始">
2509								<xsl:attribute name="字:标识符">hlnk<xsl:number from="/office:document/office:body" level="any" count="text:p[text:a]"/></xsl:attribute>
2510								<xsl:attribute name="字:名称">Hyperlink</xsl:attribute>
2511								<xsl:attribute name="字:类型">hyperlink</xsl:attribute>
2512								<xsl:attribute name="uof:locID">t0121</xsl:attribute>
2513								<xsl:attribute name="uof:attrList">标识符 名称 类型</xsl:attribute>
2514							</xsl:element>
2515							<字:文本串 uof:locID="t0109" uof:attrList="udsPath">
2516								<xsl:value-of select="."/>
2517							</字:文本串>
2518							<xsl:element name="字:区域结束">
2519								<xsl:attribute name="字:标识符引用">hlnk<xsl:number from="/office:document/office:body" level="any" count="text:p[text:a]"/></xsl:attribute>
2520								<xsl:attribute name="uof:locID">t0122</xsl:attribute>
2521								<xsl:attribute name="uof:attrList">标识符引用</xsl:attribute>
2522							</xsl:element>
2523						</字:句>
2524					</xsl:when>
2525					<xsl:otherwise>
2526						<xsl:call-template name="字:句"/>
2527					</xsl:otherwise>
2528				</xsl:choose>
2529			</xsl:for-each>
2530		</字:段落>
2531	</xsl:template>
2532	<xsl:template name="字:句">
2533		<xsl:if test="not(name(.)='text:bookmark-start' or name(.)='text:bookmark-end' or  name(.)='draw:image' or name(.)='office:binary-data')">
2534			<字:句 uof:locID="t0085">
2535				<字:句属性 uof:locID="t0086" uof:attrList="式样引用">
2536					<xsl:choose>
2537						<xsl:when test="@text:style-name">
2538							<xsl:attribute name="字:式样引用"><xsl:value-of select="@text:style-name"/></xsl:attribute>
2539						</xsl:when>
2540						<xsl:otherwise>
2541							<xsl:attribute name="字:式样引用"><xsl:value-of select="parent::node( )/@text:style-name"/></xsl:attribute>
2542						</xsl:otherwise>
2543					</xsl:choose>
2544				</字:句属性>
2545				<xsl:choose>
2546					<xsl:when test="(preceding-sibling::text:bookmark-start) and (following-sibling::text:bookmark-end)">
2547						<字:区域开始 uof:locID="t0121" uof:attrList="标识符 名称 类型">
2548							<xsl:attribute name="字:标识符"><xsl:value-of select="preceding-sibling::text:bookmark-start/@text:name"/></xsl:attribute>
2549							<xsl:attribute name="字:名称">Bookmark</xsl:attribute>
2550							<xsl:attribute name="字:类型">bookmark</xsl:attribute>
2551						</字:区域开始>
2552						<字:文本串 uof:locID="t0109" uof:attrList="udsPath">
2553							<xsl:value-of select="string(.)"/>
2554						</字:文本串>
2555						<字:区域结束 uof:locID="t0122" uof:attrList="标识符引用">
2556							<xsl:attribute name="字:标识符引用"><xsl:value-of select="following-sibling::text:bookmark-end/@text:name"/></xsl:attribute>
2557						</字:区域结束>
2558					</xsl:when>
2559					<xsl:when test="preceding-sibling::text:bookmark">
2560						<字:区域开始 uof:locID="t0121" uof:attrList="标识符 名称 类型">
2561							<xsl:attribute name="字:标识符"><xsl:value-of select="preceding-sibling::text:bookmark/@text:name"/></xsl:attribute>
2562							<xsl:attribute name="字:名称">Bookmark</xsl:attribute>
2563							<xsl:attribute name="字:类型">bookmark</xsl:attribute>
2564						</字:区域开始>
2565						<字:区域结束 uof:locID="t0122" uof:attrList="标识符引用">
2566							<xsl:attribute name="字:标识符引用"><xsl:value-of select="preceding-sibling::text:bookmark/@text:name"/></xsl:attribute>
2567						</字:区域结束>
2568						<字:文本串 uof:locID="t0109" uof:attrList="udsPath">
2569							<xsl:value-of select="string(.)"/>
2570						</字:文本串>
2571					</xsl:when>
2572					<xsl:when test="name(.)='draw:a'">
2573						<xsl:variable name="link-name">
2574							<xsl:value-of select="substring-after(@xlink:href,'#')"/>
2575						</xsl:variable>
2576						<字:区域开始 uof:locID="t0121" uof:attrList="标识符 名称 类型">
2577							<xsl:attribute name="字:标识符"><xsl:value-of select="$link-name"/></xsl:attribute>
2578							<xsl:attribute name="字:名称">Bookmark</xsl:attribute>
2579							<xsl:attribute name="字:类型">bookmark</xsl:attribute>
2580						</字:区域开始>
2581						<字:区域结束 uof:locID="t0122" uof:attrList="标识符引用">
2582							<xsl:attribute name="字:标识符引用"><xsl:value-of select="$link-name"/></xsl:attribute>
2583						</字:区域结束>
2584					</xsl:when>
2585					<xsl:when test="self::node( )[name(.)='text:tab-stop']">
2586						<xsl:element name="字:制表符">
2587							<xsl:attribute name="uof:locID">t0123</xsl:attribute>
2588						</xsl:element>
2589					</xsl:when>
2590					<xsl:when test="name(.)='text:bookmark-start' or name(.)='text:bookmark-end' or  name(.)='draw:image' or name(.)='office:binary-data'">
2591						</xsl:when>
2592					<xsl:otherwise>
2593						<字:文本串 uof:locID="t0109" uof:attrList="udsPath">
2594							<xsl:value-of select="string(.)"/>
2595						</字:文本串>
2596					</xsl:otherwise>
2597				</xsl:choose>
2598			</字:句>
2599		</xsl:if>
2600	</xsl:template>
2601	<xsl:template name="jiaozhu">
2602		<字:脚注 uof:locID="t0107" uof:attrList="引文体">
2603			<xsl:call-template name="execParagraph">
2604				<xsl:with-param name="currlistlvl" select="number('0')"/>
2605				<xsl:with-param name="liststylename" select="string('00000')"/>
2606			</xsl:call-template>
2607		</字:脚注>
2608	</xsl:template>
2609	<xsl:template match="text:s">
2610		<xsl:param name="bText"/>
2611		<xsl:choose>
2612			<xsl:when test="$bText='0'">
2613				<xsl:variable name="count">
2614					<xsl:choose>
2615						<xsl:when test="not(@text:c)">1</xsl:when>
2616						<xsl:otherwise>
2617							<xsl:value-of select="@text:c+1"/>
2618						</xsl:otherwise>
2619					</xsl:choose>
2620				</xsl:variable>
2621				<字:句 uof:locID="t0085">
2622					<字:空格符 uof:locID="t0126" uof:attrList="个数" 字:个数="{$count}"/>
2623				</字:句>
2624			</xsl:when>
2625			<xsl:otherwise>
2626				<字:空格符 uof:locID="t0126" uof:attrList="个数" 字:个数="{@text:c}"/>
2627			</xsl:otherwise>
2628		</xsl:choose>
2629	</xsl:template>
2630	<xsl:template name="weizhu">
2631		<字:尾注 uof:locID="t0108" uof:attrList="引文体">
2632			<xsl:call-template name="execParagraph">
2633				<xsl:with-param name="currlistlvl" select="number('0')"/>
2634				<xsl:with-param name="liststylename" select="string('00000')"/>
2635			</xsl:call-template>
2636		</字:尾注>
2637	</xsl:template>
2638	<xsl:template match="text:time">
2639		<xsl:element name="字:域开始">
2640			<xsl:attribute name="字:类型"><xsl:value-of select="'TIME'"/></xsl:attribute>
2641			<xsl:choose>
2642				<xsl:when test="text:fixed='1'">
2643					<xsl:attribute name="字:锁定">true</xsl:attribute>
2644				</xsl:when>
2645				<xsl:otherwise>
2646					<xsl:attribute name="字:锁定">false</xsl:attribute>
2647				</xsl:otherwise>
2648			</xsl:choose>
2649			<xsl:attribute name="uof:locID">t0079</xsl:attribute>
2650			<xsl:attribute name="uof:attrList">类型 锁定</xsl:attribute>
2651		</xsl:element>
2652		<xsl:element name="字:域代码">
2653			<字:段落 uof:locID="t0051">
2654				<字:句 uof:locID="t0085">
2655					<字:句属性 uof:locID="t0086" uof:attrList="式样引用"/>
2656					<xsl:variable name="timefmt">
2657						<xsl:variable name="aa" select="@style:data-style-name"/>
2658						<xsl:for-each select="key('geshi',$aa)/number:hours | key('geshi',$aa)/number:minutes | key('geshi',$aa)/number:am-pm | key('geshi',$aa)/number:seconds | key('geshi',$aa)/number:text">
2659							<xsl:choose>
2660								<xsl:when test="@number:style='long' ">
2661									<xsl:if test="self::node( )[name(.)='number:hours']">HH</xsl:if>
2662									<xsl:if test="self::node( )[name(.)='number:minutes']">MM</xsl:if>
2663									<xsl:if test="self::node( )[name(.)='number:seconds']">SS</xsl:if>
2664								</xsl:when>
2665								<xsl:otherwise>
2666									<xsl:if test="self::node( )[name(.)='number:text']">
2667										<xsl:value-of select="."/>
2668									</xsl:if>
2669									<xsl:if test="self::node( )[name(.)='number:hours']">H</xsl:if>
2670									<xsl:if test="self::node( )[name(.)='number:minutes']">M</xsl:if>
2671									<xsl:if test="self::node( )[name(.)='number:seconds']">S</xsl:if>
2672									<xsl:if test="self::node( )[name(.)='number:am-pm']">AMPM</xsl:if>
2673								</xsl:otherwise>
2674							</xsl:choose>
2675						</xsl:for-each>
2676					</xsl:variable>
2677					<xsl:variable name="quote">"</xsl:variable>
2678					<字:文本串 uof:locID="t0109" uof:attrList="udsPath">
2679						<xsl:value-of select="concat('TIME \@ ',$quote,$timefmt,$quote,' \* MERGEFORMAT ')"/>
2680					</字:文本串>
2681				</字:句>
2682			</字:段落>
2683		</xsl:element>
2684		<字:句 uof:locID="t0085">
2685			<字:文本串 uof:locID="t0109" uof:attrList="udsPath">
2686				<xsl:value-of select="."/>
2687			</字:文本串>
2688		</字:句>
2689		<xsl:element name="字:域结束">
2690			<xsl:attribute name="uof:locID">t0081</xsl:attribute>
2691		</xsl:element>
2692	</xsl:template>
2693	<xsl:template name="ParaAttribute">
2694		<xsl:param name="text-style-name"/>
2695		<xsl:for-each select="/office:document/office:styles/style:style">
2696			<xsl:if test="@style:name=$text-style-name and not($text-style-name='Standard')">
2697				<xsl:element name="字:格式修订">
2698					<xsl:attribute name="uof:locID">t0053</xsl:attribute>
2699					<xsl:attribute name="uof:attrList">修订信息引用</xsl:attribute>
2700					<xsl:attribute name="字:修订信息引用"><xsl:value-of select="@style:name"/></xsl:attribute>
2701					<xsl:element name="字:段落属性">
2702						<xsl:attribute name="uof:locID">t0052</xsl:attribute>
2703						<xsl:attribute name="uof:attrList">式样引用</xsl:attribute>
2704						<xsl:attribute name="字:式样引用"><xsl:value-of select="@style:name"/></xsl:attribute>
2705					</xsl:element>
2706				</xsl:element>
2707			</xsl:if>
2708		</xsl:for-each>
2709		<xsl:if test="@style:name='Heading'">
2710			<xsl:element name="字:大纲级别">
2711				<xsl:attribute name="uof:locID">t0054</xsl:attribute>
2712				<xsl:value-of select="substring-after(@style:name,'Heading')"/>
2713			</xsl:element>
2714		</xsl:if>
2715		<xsl:if test=".//@fo:text-align or .//@style:vertical-align">
2716			<xsl:element name="字:对齐">
2717				<xsl:attribute name="uof:locID">t0055</xsl:attribute>
2718				<xsl:attribute name="uof:attrList">水平对齐 文字对齐</xsl:attribute>
2719				<xsl:attribute name="字:水平对齐"><xsl:choose><xsl:when test=".//@fo:text-align='end'">right</xsl:when><xsl:when test=".//@fo:text-align='center'">center</xsl:when><xsl:when test=".//@fo:text-align='justify' and not(.//@fo:text-align-last='justify')">justified</xsl:when><xsl:when test=".//@fo:text-align='justify' and .//@fo:text-align-last='justify'">distributed</xsl:when><xsl:otherwise>left</xsl:otherwise></xsl:choose></xsl:attribute>
2720				<xsl:attribute name="字:文字对齐"><xsl:choose><xsl:when test=".//@style:vertical-align='baseline'">base</xsl:when><xsl:when test=".//@style:vertical-align='top'">top</xsl:when><xsl:when test=".//@style:vertical-align='middle'">center</xsl:when><xsl:when test=".//@style:vertical-align='bottom'">bottom</xsl:when><xsl:otherwise>auto</xsl:otherwise></xsl:choose></xsl:attribute>
2721			</xsl:element>
2722		</xsl:if>
2723		<xsl:if test=".//@fo:margin-left or .//@fo:margin-right or .//@fo:text-indent">
2724			<xsl:element name="字:缩进">
2725				<xsl:attribute name="uof:locID">t0056</xsl:attribute>
2726				<xsl:call-template name="字:缩进类型"/>
2727			</xsl:element>
2728		</xsl:if>
2729		<xsl:element name="字:行距">
2730			<xsl:attribute name="uof:locID">t0057</xsl:attribute>
2731			<xsl:attribute name="uof:attrList">类型 值</xsl:attribute>
2732			<xsl:choose>
2733				<xsl:when test="contains(.//@fo:line-height,$uofUnit)">
2734					<xsl:attribute name="字:类型">fixed</xsl:attribute>
2735					<xsl:attribute name="字:值"><xsl:value-of select="substring-before(.//@fo:line-height,$uofUnit)"/></xsl:attribute>
2736				</xsl:when>
2737				<xsl:when test="contains(.//@fo:line-height,'%')">
2738					<xsl:attribute name="字:类型">multi-lines</xsl:attribute>
2739					<xsl:attribute name="字:值"><xsl:value-of select="substring-before(.//@fo:line-height,'%') div 100"/></xsl:attribute>
2740				</xsl:when>
2741				<xsl:when test=".//@style:line-height-at-least">
2742					<xsl:attribute name="字:类型">at-least</xsl:attribute>
2743					<xsl:attribute name="字:值"><xsl:value-of select="substring-before(.//@style:line-height-at-least,$uofUnit)"/></xsl:attribute>
2744				</xsl:when>
2745				<xsl:when test=".//@style:line-spacing">
2746					<xsl:attribute name="字:类型">line-space</xsl:attribute>
2747					<xsl:attribute name="字:值"><xsl:value-of select="substring-before(.//@style:line-spacing,$uofUnit)"/></xsl:attribute>
2748				</xsl:when>
2749				<xsl:otherwise>
2750					<xsl:attribute name="字:类型">multi-lines</xsl:attribute>
2751					<xsl:attribute name="字:值">1.0</xsl:attribute>
2752				</xsl:otherwise>
2753			</xsl:choose>
2754		</xsl:element>
2755		<xsl:if test=".//@fo:orphans">
2756			<xsl:element name="字:孤行控制">
2757				<xsl:attribute name="uof:locID">t0060</xsl:attribute>
2758				<xsl:value-of select=".//@fo:orphans"/>
2759			</xsl:element>
2760		</xsl:if>
2761		<xsl:if test=".//@fo:widows">
2762			<xsl:element name="字:寡行控制">
2763				<xsl:attribute name="uof:locID">t0061</xsl:attribute>
2764				<xsl:value-of select=".//@fo:widows"/>
2765			</xsl:element>
2766		</xsl:if>
2767		<xsl:if test=".//@style:break-inside">
2768			<xsl:element name="字:段中不分页">
2769				<xsl:attribute name="uof:locID">t0062</xsl:attribute>
2770				<xsl:attribute name="uof:attrList">值</xsl:attribute>
2771				<xsl:attribute name="字:值">true</xsl:attribute>
2772			</xsl:element>
2773		</xsl:if>
2774		<xsl:if test=".//@fo:keep-with-next">
2775			<xsl:element name="字:与下段同页">
2776				<xsl:attribute name="uof:locID">t0063</xsl:attribute>
2777				<xsl:attribute name="uof:attrList">值</xsl:attribute>
2778				<xsl:attribute name="字:值">true</xsl:attribute>
2779			</xsl:element>
2780		</xsl:if>
2781		<xsl:if test=".//@fo:break-before">
2782			<xsl:element name="字:段前分页">
2783				<xsl:attribute name="uof:locID">t0064</xsl:attribute>
2784				<xsl:attribute name="uof:attrList">值</xsl:attribute>
2785				<xsl:attribute name="字:值">true</xsl:attribute>
2786			</xsl:element>
2787		</xsl:if>
2788		<xsl:if test=".//@style:snap-to-layout-grid">
2789			<xsl:element name="字:对齐网格">
2790				<xsl:attribute name="uof:locID">t0069</xsl:attribute>
2791				<xsl:attribute name="uof:attrList">值</xsl:attribute>
2792				<xsl:attribute name="字:值"><xsl:choose><xsl:when test=".//@style:snap-to-layout-grid='true'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
2793			</xsl:element>
2794		</xsl:if>
2795		<xsl:if test=".//style:drop-cap">
2796			<xsl:element name="字:首字下沉">
2797				<xsl:attribute name="uof:locID">t0070</xsl:attribute>
2798				<xsl:attribute name="uof:attrList">类型 字体引用 字符数 行数 间距</xsl:attribute>
2799				<xsl:attribute name="字:类型">dropped</xsl:attribute>
2800				<xsl:if test=".//style:drop-cap/@style:style-name">
2801					<xsl:attribute name="字:字体引用"><xsl:value-of select=".//style:drop-cap/@style:style-name"/></xsl:attribute>
2802				</xsl:if>
2803				<xsl:if test=".//style:drop-cap/@style:distance">
2804					<xsl:attribute name="字:间距"><xsl:value-of select="substring-before(.//style:drop-cap/@style:distance,$uofUnit)"/></xsl:attribute>
2805				</xsl:if>
2806				<xsl:if test=".//style:drop-cap/@style:length">
2807					<xsl:attribute name="字:字符数"><xsl:value-of select=".//style:drop-cap/@style:length"/></xsl:attribute>
2808				</xsl:if>
2809				<xsl:if test=".//style:drop-cap/@style:lines">
2810					<xsl:attribute name="字:行数"><xsl:value-of select=".//style:drop-cap/@style:lines"/></xsl:attribute>
2811				</xsl:if>
2812			</xsl:element>
2813		</xsl:if>
2814		<xsl:if test=".//@fo:hyphenate">
2815			<xsl:element name="字:取消断字">
2816				<xsl:attribute name="uof:locID">t0071</xsl:attribute>
2817				<xsl:attribute name="uof:attrList">值</xsl:attribute>
2818				<xsl:attribute name="字:值"><xsl:value-of select=".//@fo:hyphenate"/></xsl:attribute>
2819			</xsl:element>
2820		</xsl:if>
2821		<xsl:if test=".//@text:number-lines">
2822			<xsl:element name="字:取消行号">
2823				<xsl:attribute name="字:值"><xsl:value-of select=".//@text:number-lines"/></xsl:attribute>
2824				<xsl:attribute name="uof:locID">t0072</xsl:attribute>
2825				<xsl:attribute name="uof:attrList">值</xsl:attribute>
2826			</xsl:element>
2827		</xsl:if>
2828		<xsl:element name="字:允许单词断字">
2829			<xsl:attribute name="字:值">true</xsl:attribute>
2830			<xsl:attribute name="uof:locID">t0073</xsl:attribute>
2831			<xsl:attribute name="uof:attrList">值</xsl:attribute>
2832		</xsl:element>
2833		<xsl:if test=".//@style:punctuation-wrap">
2834			<xsl:element name="字:行首尾标点控制">
2835				<xsl:attribute name="uof:locID">t0074</xsl:attribute>
2836				<xsl:attribute name="uof:attrList">值</xsl:attribute>
2837				<xsl:attribute name="字:值"><xsl:choose><xsl:when test=".//@style:punctuation-wrap='hanging'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
2838			</xsl:element>
2839		</xsl:if>
2840		<xsl:element name="字:是否行首标点压缩">
2841			<xsl:attribute name="uof:locID">t0075</xsl:attribute>
2842			<xsl:attribute name="uof:attrList">值</xsl:attribute>
2843			<xsl:attribute name="字:值">false</xsl:attribute>
2844		</xsl:element>
2845		<xsl:if test=".//@style:line-break  ">
2846			<xsl:element name="字:中文习惯首尾字符">
2847				<xsl:attribute name="字:值"><xsl:choose><xsl:when test=".//@style:line-break='strict'">true</xsl:when><xsl:when test=".//@style:line-break='normal'">false</xsl:when></xsl:choose></xsl:attribute>
2848				<xsl:attribute name="uof:locID">t0076</xsl:attribute>
2849				<xsl:attribute name="uof:attrList">值</xsl:attribute>
2850			</xsl:element>
2851		</xsl:if>
2852		<xsl:if test=".//@style:text-autospace">
2853			<xsl:element name="字:自动调整中英文字符间距">
2854				<xsl:attribute name="字:值"><xsl:choose><xsl:when test=".//@style:text-autospace='ideograph-alpha'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
2855				<xsl:attribute name="uof:locID">t0077</xsl:attribute>
2856				<xsl:attribute name="uof:attrList">值</xsl:attribute>
2857			</xsl:element>
2858		</xsl:if>
2859		<xsl:if test=".//@style:text-autospace">
2860			<xsl:element name="字:自动调整中文与数字间距">
2861				<xsl:attribute name="字:值"><xsl:choose><xsl:when test=".//@style:text-autospace='ideograph-alpha'">true  </xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
2862				<xsl:attribute name="uof:locID">t0078</xsl:attribute>
2863				<xsl:attribute name="uof:attrList">值</xsl:attribute>
2864			</xsl:element>
2865		</xsl:if>
2866		<xsl:element name="字:有网格自动调整右缩进">
2867			<xsl:attribute name="字:值">false</xsl:attribute>
2868			<xsl:attribute name="uof:locID">t0195</xsl:attribute>
2869			<xsl:attribute name="uof:attrList">值</xsl:attribute>
2870		</xsl:element>
2871		<xsl:if test=".//@fo:border or .//@fo:border-top or .//@fo:border-bottom or .//@fo:border-left or .//@fo:border-right or .//@style:shadow[.!='none']">
2872			<xsl:element name="字:边框">
2873				<xsl:attribute name="uof:locID">t0065</xsl:attribute>
2874			</xsl:element>
2875		</xsl:if>
2876		<xsl:if test=".//@fo:background-color">
2877			<xsl:element name="字:填充">
2878				<xsl:attribute name="uof:locID">t0066</xsl:attribute>
2879			</xsl:element>
2880		</xsl:if>
2881		<xsl:if test=".//@fo:margin-top or .//@fo:margin-bottom">
2882			<字:段间距 uof:locID="t0058">
2883				<xsl:if test=".//@fo:margin-top">
2884					<字:段前距 uof:locID="t0196">
2885						<字:绝对值 uof:locID="t0199" uof:attrList="值">
2886							<xsl:attribute name="字:值"><xsl:value-of select="substring-before(.//@fo:margin-top,$uofUnit)"/></xsl:attribute>
2887						</字:绝对值>
2888					</字:段前距>
2889				</xsl:if>
2890				<xsl:if test=".//@fo:margin-bottom">
2891					<字:段后距 uof:locID="t0196">
2892						<字:绝对值 uof:locID="t0202" uof:attrList="值">
2893							<xsl:attribute name="字:值"><xsl:value-of select="substring-before(.//@fo:margin-bottom,$uofUnit)"/></xsl:attribute>
2894						</字:绝对值>
2895					</字:段后距>
2896				</xsl:if>
2897			</字:段间距>
2898		</xsl:if>
2899		<xsl:if test=".//style:tab-stops">
2900			<xsl:element name="字:制表位设置">
2901				<xsl:attribute name="uof:locID">t0067</xsl:attribute>
2902				<xsl:for-each select=".//style:tab-stops/style:tab-stop">
2903					<xsl:element name="字:制表位">
2904						<xsl:attribute name="uof:locID">t0068</xsl:attribute>
2905						<xsl:attribute name="uof:attrList">位置 类型 前导符</xsl:attribute>
2906						<xsl:attribute name="字:位置"><xsl:value-of select="@style:position"/></xsl:attribute>
2907						<xsl:variable name="aa">
2908							<xsl:value-of select="@style:type"/>
2909						</xsl:variable>
2910						<xsl:variable name="zbflx">
2911							<xsl:choose>
2912								<xsl:when test="$aa='right'">right</xsl:when>
2913								<xsl:when test="$aa='center'">center</xsl:when>
2914								<xsl:when test="$aa='char'and @style:char!=''">decimal</xsl:when>
2915								<xsl:otherwise>left</xsl:otherwise>
2916							</xsl:choose>
2917						</xsl:variable>
2918						<xsl:attribute name="字:类型"><xsl:value-of select="$zbflx"/></xsl:attribute>
2919						<xsl:if test="$zbflx='decimal'">
2920							<xsl:attribute name="字:制表位字符"><xsl:value-of select="@style:char"/></xsl:attribute>
2921						</xsl:if>
2922						<xsl:if test="@style:leader-char">
2923							<xsl:attribute name="字:前导符"><xsl:value-of select="@style:leader-char"/></xsl:attribute>
2924						</xsl:if>
2925					</xsl:element>
2926				</xsl:for-each>
2927			</xsl:element>
2928		</xsl:if>
2929	</xsl:template>
2930	<xsl:template name="textspan">
2931		<字:句 uof:locID="t0085">
2932			<xsl:choose>
2933				<xsl:when test="./text:footnote">
2934					<xsl:call-template name="jiaozhu"/>
2935				</xsl:when>
2936				<xsl:when test="./text:endnote">
2937					<xsl:call-template name="weizhu"/>
2938				</xsl:when>
2939				<xsl:otherwise>
2940					<xsl:element name="字:句属性">
2941						<xsl:attribute name="uof:locID">t0086</xsl:attribute>
2942						<xsl:attribute name="uof:attrList">式样引用</xsl:attribute>
2943						<xsl:variable name="textstyle">
2944							<xsl:value-of select="@text:style-name"/>
2945						</xsl:variable>
2946						<xsl:attribute name="字:式样引用"><xsl:value-of select="@text:style-name"/></xsl:attribute>
2947						<xsl:for-each select="/office:document/office:automatic-styles//style:style[@style:family='text']">
2948							<xsl:if test="@style:name=$textstyle and not(@style:parent-style-name='Standard')">
2949								<xsl:if test="@style:parent-style-name=/office:document/office:styles/style:style/@style:name">
2950									<xsl:call-template name="SentenceXD">
2951										<xsl:with-param name="Sentencestyle" select="@style:parent-style-name"/>
2952									</xsl:call-template>
2953								</xsl:if>
2954							</xsl:if>
2955						</xsl:for-each>
2956						<xsl:for-each select="/office:document/office:styles//style:style[@style:family='text']">
2957							<xsl:if test="@style:name=$textstyle">
2958								<xsl:call-template name="SentenceXD">
2959									<xsl:with-param name="Sentencestyle" select="@style:name"/>
2960								</xsl:call-template>
2961							</xsl:if>
2962						</xsl:for-each>
2963					</xsl:element>
2964					<字:文本串 uof:locID="t0109" uof:attrList="udsPath">
2965						<xsl:value-of select="string(.)"/>
2966					</字:文本串>
2967				</xsl:otherwise>
2968			</xsl:choose>
2969		</字:句>
2970	</xsl:template>
2971	<xsl:template name="SentenceXD">
2972		<xsl:param name="Sentencestyle"/>
2973		<xsl:element name="字:格式修订">
2974			<xsl:attribute name="uof:locID">t0087</xsl:attribute>
2975			<xsl:attribute name="uof:attrList">修订信息引用</xsl:attribute>
2976			<xsl:attribute name="字:修订信息引用"><xsl:value-of select="$Sentencestyle"/></xsl:attribute>
2977			<xsl:element name="字:句属性">
2978				<xsl:attribute name="uof:locID">t0086</xsl:attribute>
2979				<xsl:attribute name="uof:attrList">式样引用</xsl:attribute>
2980				<xsl:attribute name="字:式样引用"><xsl:value-of select="$Sentencestyle"/></xsl:attribute>
2981			</xsl:element>
2982		</xsl:element>
2983	</xsl:template>
2984	<xsl:template name="add-space">
2985		<xsl:param name="number"/>
2986		<xsl:if test="$number &gt; 1">
2987			<xsl:call-template name="add-space">
2988				<xsl:with-param name="number" select="$number - 1"/>
2989			</xsl:call-template>
2990			<xsl:text> </xsl:text>
2991		</xsl:if>
2992	</xsl:template>
2993	<xsl:template match="office:styles | office:automatic-styles" mode="style">
2994		<xsl:for-each select="style:style[@style:family= 'paragraph' or @style:family= 'text']">
2995			<xsl:choose>
2996			<xsl:when test="@style:family = 'text'">
2997					<xsl:call-template name="句式样"/>
2998				</xsl:when>
2999				<xsl:when test="@style:family = 'paragraph'">
3000					<xsl:call-template name="段落式样"/>
3001				</xsl:when>
3002			</xsl:choose>
3003		</xsl:for-each>
3004	</xsl:template>
3005	<xsl:template name="段落式样">
3006		<xsl:element name="uof:段落式样">
3007			<xsl:attribute name="uof:locID">u0044</xsl:attribute>
3008			<xsl:attribute name="uof:attrList">标识符 名称 类型 别名 基式样引用</xsl:attribute>
3009			<xsl:variable name="count"><xsl:value-of select="count(preceding::style:style)"/></xsl:variable>
3010			<xsl:attribute name="字:标识符"><xsl:value-of select="concat(@style:name,$count)"/></xsl:attribute>
3011			<xsl:attribute name="字:类型">default</xsl:attribute>
3012			<xsl:attribute name="字:基式样引用"><xsl:variable name="stylename" select="@style:name"/><xsl:variable name="frame-parent"><xsl:choose><xsl:when test="/office:document/office:master-styles/style:master-page/draw:frame[draw:text-box//text:p/@text:style-name = $stylename]"><xsl:for-each select="/office:document/office:master-styles/style:master-page/draw:frame[draw:text-box//text:p/@text:style-name = $stylename][1]"><xsl:variable name="frame-style" select="@presentation:style-name"/><xsl:value-of select="/office:document/*/style:style[@style:name=$frame-style]/@style:parent-style-name"/></xsl:for-each></xsl:when><xsl:otherwise>not-master</xsl:otherwise></xsl:choose></xsl:variable><xsl:choose><xsl:when test="@style:parent-style-name"><xsl:value-of select="@style:parent-style-name"/></xsl:when><xsl:when test="not($frame-parent='not-master')"><xsl:value-of select="$frame-parent"/></xsl:when></xsl:choose></xsl:attribute>
3013			<xsl:attribute name="字:名称"><xsl:value-of select="@style:name"/></xsl:attribute>
3014			<xsl:apply-templates select="style:paragraph-properties"/>
3015			<xsl:for-each select="style:text-properties">
3016			<xsl:element name="字:句属性">
3017								<xsl:attribute name="uof:locID">t0086</xsl:attribute>
3018								<xsl:attribute name="uof:attrList">式样引用</xsl:attribute>
3019				<xsl:call-template name="字:句属性"/>
3020				</xsl:element>
3021			</xsl:for-each>
3022		</xsl:element>
3023	</xsl:template>
3024	<xsl:template match="style:paragraph-properties">
3025		<xsl:element name="字:缩进">
3026			<xsl:attribute name="uof:locID">t0056</xsl:attribute>
3027			<xsl:call-template name="字:缩进类型"/>
3028			</xsl:element>
3029		<xsl:if test="@fo:text-align | @fotext-align-last">
3030			<xsl:element name="字:对齐">
3031				<xsl:attribute name="uof:locID">t0055</xsl:attribute>
3032				<xsl:if test="@fo:text-align">
3033				<xsl:attribute name="字:水平对齐"><xsl:choose><xsl:when test=".//@fo:text-align='end'">right</xsl:when><xsl:when test=".//@fo:text-align='center'">center</xsl:when><xsl:when test=".//@fo:text-align='justify' and not(.//@fo:text-align-last='justify')">justified</xsl:when><xsl:when test=".//@fo:text-align='justify' and .//@fo:text-align-last='justify'">distributed</xsl:when><xsl:otherwise>left</xsl:otherwise></xsl:choose></xsl:attribute>
3034				</xsl:if>
3035				<xsl:if test="@style:vertical-align">
3036				<xsl:attribute name="字:文字对齐"><xsl:choose><xsl:when test=".//@style:vertical-align='baseline'">base</xsl:when><xsl:when test=".//@style:vertical-align='top'">top</xsl:when><xsl:when test=".//@style:vertical-align='middle'">center</xsl:when><xsl:when test=".//@style:vertical-align='bottom'">bottom</xsl:when><xsl:otherwise>auto</xsl:otherwise></xsl:choose></xsl:attribute>
3037				</xsl:if>
3038				<xsl:attribute name="uof:attrList">水平对齐 文字对齐</xsl:attribute>
3039			</xsl:element>
3040		</xsl:if>
3041	</xsl:template>
3042	<xsl:template name="句式样">
3043		<xsl:element name="uof:句式样">
3044			<xsl:attribute name="uof:locID">u0043</xsl:attribute>
3045			<xsl:attribute name="uof:attrList">标识符 名称 类型 别名 基式样引用</xsl:attribute>
3046			<xsl:attribute name="字:标识符"><xsl:value-of select="@style:name"/></xsl:attribute>
3047			<xsl:attribute name="字:名称"><xsl:value-of select="@style:name"/></xsl:attribute>
3048			<xsl:attribute name="字:类型">auto</xsl:attribute>
3049			<xsl:call-template name="字:句属性"/>
3050		</xsl:element>
3051	</xsl:template>
3052	<xsl:template match="style:text-properties">
3053		<xsl:element name="字:字体">
3054			<xsl:attribute name="uof:locID">t0088</xsl:attribute>
3055			<xsl:attribute name="uof:attrList">西文字体引用 中文字体引用 特殊字体引用 西文绘制 字号 相对字号 颜色</xsl:attribute>
3056			<xsl:if test=".//@fo:font-size or .//@style:font-size-asian or  .//@style:font-size-complex">
3057				<xsl:choose>
3058					<xsl:when test="contains(.//@fo:font-size,'%') or contains(.//@style:font-size-asian,'%')">
3059						<xsl:attribute name="字:相对字号"><xsl:choose><xsl:when test=".//@fo:font-size"><xsl:value-of select="substring-before(.//@fo:font-size,'%')"/></xsl:when><xsl:when test=".//@style:font-size-asian"><xsl:value-of select="substring-before(.//@style:font-size-asian,'%')"/></xsl:when></xsl:choose></xsl:attribute>
3060					</xsl:when>
3061					<xsl:otherwise>
3062						<xsl:attribute name="字:字号"><xsl:choose><xsl:when test=".//@fo:font-size"><xsl:value-of select="substring-before(.//@fo:font-size,'pt')"/></xsl:when><xsl:when test=".//@style:font-size-asian"><xsl:value-of select="substring-before(.//@style:font-size-asian,'pt')"/></xsl:when><xsl:when test=".//@style:font-size-complex"><xsl:value-of select="substring-before(.//@style:font-size-complex,'pt')"/></xsl:when></xsl:choose></xsl:attribute>
3063					</xsl:otherwise>
3064				</xsl:choose>
3065			</xsl:if>
3066			<xsl:if test=".//@style:font-name">
3067				<xsl:attribute name="字:西文字体引用"><xsl:value-of select=".//@style:font-name"/></xsl:attribute>
3068			</xsl:if>
3069			<xsl:if test=".//@style:font-name-asian">
3070				<xsl:attribute name="字:中文字体引用"><xsl:value-of select=".//@style:font-name-asian"/></xsl:attribute>
3071			</xsl:if>
3072			<xsl:if test=".//@fo:color">
3073				<xsl:attribute name="字:颜色"><xsl:value-of select=".//@fo:color"/></xsl:attribute>
3074			</xsl:if>
3075		</xsl:element>
3076		<xsl:if test="(@fo:font-weight='bold') or (@fo:font-weight-asian='bold') or (@style:font-weight-asian='bold') or (@style:font-weight-complex='bold')">
3077			<xsl:element name="字:粗体">
3078				<xsl:attribute name="字:值">1</xsl:attribute>
3079				<xsl:attribute name="uof:locID">t0089</xsl:attribute>
3080				<xsl:attribute name="uof:attrList">值</xsl:attribute>
3081			</xsl:element>
3082		</xsl:if>
3083		<xsl:if test="(@style:font-style-asian='italic') or (@style:font-style-complex='italic') or (@fo:font-style-asian='italic') or (@fo:font-style='italic')">
3084			<xsl:element name="字:斜体">
3085				<xsl:attribute name="字:值">1</xsl:attribute>
3086				<xsl:attribute name="uof:locID">t0090</xsl:attribute>
3087				<xsl:attribute name="uof:attrList">值</xsl:attribute>
3088			</xsl:element>
3089		</xsl:if>
3090	</xsl:template>
3091	<xsl:template match="style:page-layout">
3092		<xsl:element name="演:页面设置">
3093			<xsl:attribute name="uof:locID">p0002</xsl:attribute>
3094			<xsl:attribute name="uof:attrList">标识符 名称</xsl:attribute>
3095			<xsl:attribute name="演:名称"><xsl:value-of select="@style:name"/></xsl:attribute>
3096			<xsl:attribute name="演:标识符"><xsl:value-of select="@style:name"/></xsl:attribute>
3097			<xsl:attribute name="演:名称">页面设置</xsl:attribute>
3098			<xsl:element name="演:纸张">
3099				<xsl:attribute name="uof:locID">p0003</xsl:attribute>
3100				<xsl:attribute name="uof:attrList">宽度 高度 纸型</xsl:attribute>
3101				<xsl:attribute name="uof:宽度"><xsl:value-of select="substring-before(style:page-layout-properties/@fo:page-width,$uofUnit)"/></xsl:attribute>
3102				<xsl:attribute name="uof:高度"><xsl:value-of select="substring-before(style:page-layout-properties/@fo:page-height,$uofUnit)"/></xsl:attribute>
3103				<xsl:attribute name="uof:纸型"><xsl:variable name="height"><xsl:value-of select="style:page-layout-properties/@fo:page-height"/></xsl:variable><xsl:variable name="width"><xsl:value-of select="style:page-layout-properties/@fo:page-width"/></xsl:variable><xsl:choose><xsl:when test="$height='29.7cm' and $width='42cm'">A3</xsl:when><xsl:when test="$height='21cm' and $width='29.7cm'">A4</xsl:when><xsl:when test="$height='14.8cm' and $width='21cm'">A5</xsl:when><xsl:when test="$height='25cm' and $width='35.3cm'">B4</xsl:when><xsl:when test="$height='17.6cm' and $width='25cm'">B5</xsl:when><xsl:when test="$height='12.5cm' and $width='17.6cm'">B6</xsl:when><xsl:otherwise>使用者</xsl:otherwise></xsl:choose></xsl:attribute>
3104			</xsl:element>
3105			<xsl:element name="演:页边距">
3106				<xsl:attribute name="uof:locID">p0004</xsl:attribute>
3107				<xsl:attribute name="uof:attrList">左 上 右 下</xsl:attribute>
3108				<xsl:attribute name="uof:左"><xsl:value-of select="substring-before(style:page-layout-properties/@fo:margin-left,$uofUnit)"/></xsl:attribute>
3109				<xsl:attribute name="uof:上"><xsl:value-of select="substring-before(style:page-layout-properties/@fo:margin-top,$uofUnit)"/></xsl:attribute>
3110				<xsl:attribute name="uof:右"><xsl:value-of select="substring-before(style:page-layout-properties/@fo:margin-right,$uofUnit)"/></xsl:attribute>
3111				<xsl:attribute name="uof:下"><xsl:value-of select="substring-before(style:page-layout-properties/@fo:margin-bottom,$uofUnit)"/></xsl:attribute>
3112			</xsl:element>
3113			<xsl:variable name="PageNumberFormat">
3114				<xsl:value-of select="/office:document/office:settings/config:config-item-set/config:config-item[@config:name='PageNumberFormat']"/>
3115			</xsl:variable>
3116			<xsl:if test="not($PageNumberFormat='5')">
3117				<xsl:element name="演:页码格式">
3118					<xsl:attribute name="uof:locID">p0005</xsl:attribute>
3119					<xsl:choose>
3120						<xsl:when test="$PageNumberFormat='0'">upper-letter</xsl:when>
3121						<xsl:when test="$PageNumberFormat='1'">lower-letter</xsl:when>
3122						<xsl:when test="$PageNumberFormat='2'">upper-roman</xsl:when>
3123						<xsl:when test="$PageNumberFormat='3'">lower-letter</xsl:when>
3124						<xsl:when test="$PageNumberFormat='4'">decimal</xsl:when>
3125					</xsl:choose>
3126				</xsl:element>
3127			</xsl:if>
3128			<xsl:element name="演:纸张方向">
3129				<xsl:attribute name="uof:locID">p0006</xsl:attribute>
3130				<xsl:choose>
3131					<xsl:when test="style:page-layout-properties/@style:print-orientation">
3132						<xsl:value-of select="style:page-layout-properties/@style:print-orientation"/>
3133					</xsl:when>
3134					<xsl:otherwise>portrait</xsl:otherwise>
3135				</xsl:choose>
3136			</xsl:element>
3137		</xsl:element>
3138	</xsl:template>
3139	<xsl:template name="obtain_anim_type">
3140		<xsl:param name="flytype"/>
3141		<xsl:variable name="flytypestr" select="substring-after($flytype,'from-')"/>
3142		<xsl:choose>
3143			<xsl:when test="contains($flytypestr,'-')">
3144				<xsl:value-of select="concat(substring-before($flytypestr,'-'),substring-after($flytypestr,'-'))"/>
3145			</xsl:when>
3146			<xsl:otherwise>
3147				<xsl:value-of select="$flytypestr"/>
3148			</xsl:otherwise>
3149		</xsl:choose>
3150	</xsl:template>
3151	<xsl:template name="cm2pt">
3152		<xsl:param name="cmval"/>
3153		<xsl:value-of select="substring-before($cmval,$uofUnit)* $cm-to-other "/>
3154	</xsl:template>
3155	<xsl:template match="office:font-face-decls">
3156		<uof:字体集 uof:locID="u0040">
3157			<uof:默认字体 uof:ascii="Times New Roman" uof:fareast="宋体" uof:h-ansi="宋体" uof:cs="宋体"/>
3158			<xsl:for-each select="style:font-face">
3159				<xsl:element name="uof:字体声明">
3160					<xsl:attribute name="uof:attrList">标识符 名称 字体族</xsl:attribute>
3161					<xsl:attribute name="uof:locID">u0041</xsl:attribute>
3162					<xsl:attribute name="uof:名称"><xsl:value-of select="@style:name"/></xsl:attribute>
3163					<xsl:attribute name="uof:字体族"><xsl:value-of select="@svg:font-family"/></xsl:attribute>
3164					<xsl:if test="@style:font-charset= '02'">
3165						<xsl:attribute name="uof:字符集">x-symbol</xsl:attribute>
3166					</xsl:if>
3167					<xsl:if test="@style:font-family-generic">
3168						<xsl:choose>
3169							<xsl:when test="@style:font-family-generic = 'swiss'">
3170								<xsl:attribute name="uof:字体族">Swiss</xsl:attribute>
3171							</xsl:when>
3172							<xsl:when test="@style:font-family-generic ='modern'">
3173								<xsl:attribute name="uof:字符集">Modern</xsl:attribute>
3174							</xsl:when>
3175							<xsl:when test="@style:font-family-generic='roman'">
3176								<xsl:attribute name="uof:字符集">Roman</xsl:attribute>
3177							</xsl:when>
3178							<xsl:when test="@style:font-family-generic ='script'">
3179								<xsl:attribute name="uof:字符集">Script</xsl:attribute>
3180							</xsl:when>
3181							<xsl:when test="@style:font-family-generic ='decorative'">
3182								<xsl:attribute name="uof:字符集">Decorative</xsl:attribute>
3183							</xsl:when>
3184							<xsl:when test="@style:font-family-generic ='system'">
3185								<xsl:attribute name="uof:字符集">System</xsl:attribute>
3186							</xsl:when>
3187							<xsl:otherwise>
3188								<xsl:attribute name="uof:字符集">System</xsl:attribute>
3189							</xsl:otherwise>
3190						</xsl:choose>
3191					</xsl:if>
3192				</xsl:element>
3193			</xsl:for-each>
3194			<xsl:apply-templates select="style:font-decl"/>
3195		</uof:字体集>
3196	</xsl:template>
3197	<xsl:template match="office:meta">
3198		<uof:元数据 uof:locID="u0001">
3199			<uof:标题 uof:locID="u0002">
3200				<xsl:value-of select="dc:title"/>
3201			</uof:标题>
3202			<uof:创建应用程序 uof:locID="u0011">
3203				<xsl:value-of select="meta:generator"/>
3204			</uof:创建应用程序>
3205			<uof:摘要 uof:locID="u0007">
3206				<xsl:value-of select="dc:description"/>
3207			</uof:摘要>
3208			<uof:主题 uof:locID="u0003">
3209				<xsl:value-of select="dc:subject"/>
3210			</uof:主题>
3211			<uof:创建者 uof:locID="u0004"/>
3212			<uof:作者 uof:locID="u0005">
3213				<xsl:value-of select="meta:initial-creator"/>
3214			</uof:作者>
3215			<uof:创建日期 uof:locID="u0008">
3216				<xsl:value-of select="meta:creation-date"/>
3217			</uof:创建日期>
3218			<uof:最后作者 uof:locID="u0006">
3219				<xsl:value-of select="dc:creator"/>
3220			</uof:最后作者>
3221			<uof:关键字集 uof:locID="u0014">
3222				<xsl:for-each select=".">
3223					<uof:关键字 uof:locID="u0015">
3224						<xsl:value-of select="meta:keywords/@meta:keyword"/>
3225					</uof:关键字>
3226				</xsl:for-each>
3227			</uof:关键字集>
3228			<uof:编辑次数 uof:locID="u0009">
3229				<xsl:value-of select="meta:editing-cycles"/>
3230			</uof:编辑次数>
3231			<xsl:if test="meta:editing-duration">
3232				<uof:编辑时间 uof:locID="u0010">
3233					<xsl:value-of select="meta:editing-duration"/>
3234				</uof:编辑时间>
3235			</xsl:if>
3236			<xsl:if test="meta:template/@xlink:href">
3237				<uof:文档模板 uof:locID="u0013">
3238					<xsl:value-of select="meta:template/@xlink:href"/>
3239				</uof:文档模板>
3240			</xsl:if>
3241			<xsl:if test="meta:user-defined/@meta:name">
3242				<uof:用户自定义元数据集 uof:locID="u0016">
3243					<xsl:for-each select="meta:user-defined">
3244						<uof:用户自定义元数据 uof:locID="u0017" uof:attrList="名称 类型">
3245							<xsl:attribute name="uof:名称"><xsl:value-of select="@meta:name"/></xsl:attribute>
3246							<xsl:attribute name="uof:类型"><xsl:value-of select="'string'"/></xsl:attribute>
3247						</uof:用户自定义元数据>
3248					</xsl:for-each>
3249				</uof:用户自定义元数据集>
3250			</xsl:if>
3251			<xsl:if test="meta:document-statistic/@meta:page-count">
3252			<uof:页数 uof:locID="u0020">
3253				<xsl:value-of select="meta:document-statistic/@meta:page-count"/>
3254			</uof:页数>
3255			</xsl:if>
3256			<xsl:if test="meta:document-statistic/@meta:paragraph-count">
3257			<uof:段落数 uof:locID="u0025">
3258				<xsl:value-of select="meta:document-statistic/@meta:paragraph-count"/>
3259			</uof:段落数>
3260			</xsl:if>
3261			<xsl:if test="meta:document-statistic/@meta:object-count">
3262			<uof:对象数 uof:locID="u0026">
3263				<xsl:value-of select="meta:document-statistic/@meta:object-count"/>
3264			</uof:对象数>
3265			</xsl:if>
3266			<xsl:if test="meta:document-statistic/@meta:character-count">
3267			<uof:字数 uof:locID="u0021">
3268				<xsl:value-of select="meta:document-statistic/@meta:character-count"/>
3269			</uof:字数>
3270			</xsl:if>
3271			<xsl:if test="meta:document-statistic/@meta:word-count">
3272			<uof:中文字符数 uof:locID="u0023">
3273				<xsl:value-of select="meta:document-statistic/@meta:word-count"/>
3274			</uof:中文字符数>
3275			</xsl:if>
3276					</uof:元数据>
3277	</xsl:template>
3278	<xsl:template name="填充">
3279		<xsl:param name="picname"/>
3280		<xsl:param name="nodename"/>
3281		<xsl:choose>
3282			<xsl:when test="@draw:fill='gradient'">
3283				<xsl:variable name="gradient-name">
3284					<xsl:value-of select="@draw:fill-gradient-name"/>
3285				</xsl:variable>
3286				<xsl:for-each select="/descendant::draw:gradient[@draw:name=$gradient-name]">
3287					<图:渐变 uof:locID="g0037" uof:attrList="起始色 终止色 种子类型 起始浓度 终止浓度 渐变方向 边界 种子X位置 种子Y位置 类型">
3288						<xsl:attribute name="图:起始色"><xsl:value-of select="@draw:start-color"/></xsl:attribute>
3289						<xsl:attribute name="图:终止色"><xsl:value-of select="@draw:end-color"/></xsl:attribute>
3290						<xsl:attribute name="图:种子类型"><xsl:choose><xsl:when test="@draw:style='linear' or @draw:style='axial'">linear</xsl:when><xsl:when test="@draw:style='radial'">radar</xsl:when><xsl:when test="@draw:style='ellipsoid'">oval</xsl:when><xsl:when test="@draw:style='square'">square</xsl:when><xsl:when test="@draw:style='rectangular'">rectangle</xsl:when></xsl:choose></xsl:attribute>
3291						<xsl:attribute name="图:起始浓度"><xsl:value-of select="substring-before(@draw:start-intensity,'%')"/></xsl:attribute>
3292						<xsl:attribute name="图:终止浓度"><xsl:value-of select="substring-before(@draw:end-intensity,'%')"/></xsl:attribute>
3293						<xsl:variable name="angle">
3294							<xsl:value-of select="@draw:angle div 10"/>
3295						</xsl:variable>
3296						<xsl:attribute name="图:渐变方向"><xsl:choose><xsl:when test="0&lt;$angle and $angle&lt;25">0</xsl:when><xsl:when test="25&lt;$angle and $angle&lt;70">45</xsl:when><xsl:when test="70&lt;$angle and $angle&lt;115">90</xsl:when><xsl:when test="115&lt;$angle and $angle&lt;160">135</xsl:when><xsl:when test="160&lt;$angle and $angle&lt;205">180</xsl:when><xsl:when test="205&lt;$angle and $angle&lt;250">225</xsl:when><xsl:when test="250&lt;$angle and $angle&lt;295">270</xsl:when><xsl:when test="295&lt;$angle and $angle&lt;340">315</xsl:when><xsl:when test="340&lt;$angle and $angle&lt;360">360</xsl:when></xsl:choose></xsl:attribute>
3297						<xsl:attribute name="图:边界"><xsl:value-of select="substring-before(@draw:border,'%')"/></xsl:attribute>
3298						<xsl:if test="@draw:cx">
3299							<xsl:attribute name="图:种子X位置"><xsl:value-of select="substring-before(@draw:cx,'%')"/></xsl:attribute>
3300						</xsl:if>
3301						<xsl:if test="@draw:cy">
3302							<xsl:attribute name="图:种子Y位置"><xsl:value-of select="substring-before(@draw:cy,'%')"/></xsl:attribute>
3303						</xsl:if>
3304						<xsl:attribute name="图:类型">-2</xsl:attribute>
3305					</图:渐变>
3306				</xsl:for-each>
3307			</xsl:when>
3308			<xsl:when test="@draw:fill='bitmap'">
3309				<图:图片 uof:locID="g0035" uof:attrList="位置 图形引用 类型 名称">
3310					<xsl:attribute name="图:位置"><xsl:choose><xsl:when test="not(@style:repeat)">title</xsl:when><xsl:otherwise><xsl:choose><xsl:when test="@style:repeat = 'stretch'">stretch</xsl:when><xsl:when test="@style:repeat = 'repeat'">title</xsl:when><xsl:when test="@style:repeat = 'no-repeat'">center</xsl:when></xsl:choose></xsl:otherwise></xsl:choose></xsl:attribute>
3311					<xsl:attribute name="图:图形引用"><xsl:value-of select="@draw:fill-image-name"/></xsl:attribute>
3312					<xsl:attribute name="图:类型">png</xsl:attribute>
3313					<xsl:attribute name="图:名称"><xsl:value-of select="concat($picname,'_b1')"/></xsl:attribute>
3314				</图:图片>
3315			</xsl:when>
3316			<xsl:when test="@draw:fill='hatch'">
3317				<图:图案 uof:locID="g0036" uof:attrList="类型 图形引用 前景色 背景色">
3318					<xsl:attribute name="图:类型"><xsl:value-of select="/office:document/office:styles/draw:hatch/@draw:name"/></xsl:attribute>
3319					<xsl:attribute name="图:图形引用"/>
3320					<xsl:attribute name="图:前景色"><xsl:value-of select="/office:document/office:styles/draw:hatch/@draw:color"/></xsl:attribute>
3321					<xsl:attribute name="图:背景色"><xsl:choose><xsl:when test="@draw:fill-color"><xsl:value-of select="@draw:fill-color"/></xsl:when><xsl:otherwise>#ffffff</xsl:otherwise></xsl:choose></xsl:attribute>
3322				</图:图案>
3323			</xsl:when>
3324			<xsl:otherwise>
3325				<xsl:choose>
3326					<xsl:when test="$nodename='draw:frame'">
3327						<xsl:if test="@draw:fill='solid'">
3328							<图:颜色 uof:locID="g0034">
3329								<xsl:value-of select="@draw:fill-color"/>
3330							</图:颜色>
3331						</xsl:if>
3332					</xsl:when>
3333					<xsl:otherwise>
3334						<图:颜色 uof:locID="g0034">
3335							<xsl:choose>
3336								<xsl:when test="@draw:fill-color">
3337									<xsl:value-of select="@draw:fill-color"/>
3338								</xsl:when>
3339								<xsl:otherwise>#99ccff</xsl:otherwise>
3340							</xsl:choose>
3341						</图:颜色>
3342					</xsl:otherwise>
3343				</xsl:choose>
3344			</xsl:otherwise>
3345		</xsl:choose>
3346	</xsl:template>
3347	<xsl:template name="字:缩进类型">
3348		<xsl:if test="style:list-level-properties/@text:space-before">
3349			<字:左 uof:locID="t0182">
3350				<字:绝对  uof:locID="t0185" uof:attrList="值">
3351					<xsl:attribute name="字:值"><xsl:value-of select="substring-before(style:list-level-properties/@text:space-before,$uofUnit)"/></xsl:attribute>
3352				</字:绝对>
3353			</字:左>
3354		</xsl:if>
3355		<xsl:if test="style:list-level-properties/@text:min-label-width">
3356			<字:右 uof:locID="t0183">
3357				<字:绝对 uof:locID="t0187" uof:attrList="值">
3358					<xsl:attribute name="字:值"><xsl:value-of select="substring-before(style:list-level-properties/@text:min-label-width,$uofUnit)"/></xsl:attribute>
3359         </字:绝对>
3360				</字:右>
3361		</xsl:if>
3362		<xsl:if test="style:list-level-properties/@text:min-label-distance">
3363			<字:首行 uof:locID="t0184">
3364				<字:绝对 uof:locID="t0189" uof:attrList="值">
3365					<xsl:attribute name="字:值"><xsl:value-of select="substring-before(style:list-level-properties/@text:min-label-distance,$uofUnit)"/></xsl:attribute>
3366        </字:绝对>
3367				</字:首行>
3368		</xsl:if>
3369	</xsl:template>
3370	<xsl:template name="uof:线型类型">
3371		<xsl:param name="lineType"/>
3372		<xsl:choose>
3373			<xsl:when test="$lineType='single-line'">single</xsl:when>
3374			<xsl:when test="$lineType='double-line'">double</xsl:when>
3375			<xsl:when test="$lineType='single'">single</xsl:when>
3376			<xsl:when test="$lineType='double'">double</xsl:when>
3377			<xsl:when test="$lineType='dash'">dash</xsl:when>
3378			<xsl:when test="$lineType='long-dash'">dash-long</xsl:when>
3379			<xsl:when test="$lineType='dot-dash'">dot-dash</xsl:when>
3380			<xsl:when test="$lineType='dot-dot-dash'">dot-dot-dash</xsl:when>
3381			<xsl:when test="$lineType='wave'">wave</xsl:when>
3382			<xsl:when test="$lineType='bold-dotted'">dotted-heavy</xsl:when>
3383			<xsl:when test="$lineType='bold-dash'">dashed-heavy</xsl:when>
3384			<xsl:when test="$lineType='bold-long-dash'">dash-long-heavy</xsl:when>
3385			<xsl:when test="$lineType='bold-dot-dash'">dash-dot-heavy</xsl:when>
3386			<xsl:when test="$lineType='bold-dot-dot-dash'">dash-dot-dot-heavy</xsl:when>
3387			<xsl:when test="$lineType='bold-wave'">wavy-heavy</xsl:when>
3388			<xsl:when test="$lineType='double-wave'">wavy-double</xsl:when>
3389			<xsl:when test="$lineType='bold'">bold</xsl:when>
3390			<xsl:when test="$lineType='small-wave'">wave</xsl:when>
3391			<xsl:when test="$lineType='dotted'">dotted</xsl:when>
3392			<xsl:when test="$lineType='none'">none</xsl:when>
3393		</xsl:choose>
3394	</xsl:template>
3395</xsl:stylesheet>
3396