1<?xml version="1.0" encoding="UTF-8"?>
2<!--/************************************************************** *
3* Licensed to the Apache Software Foundation (ASF) under one
4* or more contributor license agreements.  See the NOTICE file
5* distributed with this work for additional information
6* regarding copyright ownership.  The ASF licenses this file
7* to you under the Apache License, Version 2.0 (the
8* "License"); you may not use this file except in compliance
9* with the License.  You may obtain a copy of the License at
10*
11*   http://www.apache.org/licenses/LICENSE-2.0
12*
13* Unless required by applicable law or agreed to in writing,
14* software distributed under the License is distributed on an
15* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16* KIND, either express or implied.  See the License for the
17* specific language governing permissions and limitations
18* under the License. *
19*************************************************************/-->
20 <!--MARKER(update_precomp.py): autogen include statement, do not remove-->
21 <!--//This file is about the conversion of the UOF v2.0 and ODF document format-->
22<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:anim="urn:oasis:names:tc:opendocument:xmlns:animation:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:nsof="http://neoshineoffice.com" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" xmlns:pzip="urn:cleverage:xmlns:post-processings:zip" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:smil="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:uof="http://schemas.uof.org/cn/2009/uof" xmlns:书签="http://schemas.uof.org/cn/2009/bookmarks" xmlns:元="http://schemas.uof.org/cn/2009/metadata" xmlns:公式="http://schemas.uof.org/cn/2009/equations" xmlns:图="http://schemas.uof.org/cn/2009/graph" xmlns:图形="http://schemas.uof.org/cn/2009/graphics" xmlns:图表="http://schemas.uof.org/cn/2009/chart" xmlns:字="http://schemas.uof.org/cn/2009/wordproc" xmlns:对象="http://schemas.uof.org/cn/2009/objects" xmlns:式样="http://schemas.uof.org/cn/2009/styles" xmlns:扩展="http://schemas.uof.org/cn/2009/extend" xmlns:数="http://www.w3.org/1998/Math/MathML" xmlns:数据="http://schemas.uof.org/cn/2009/usd" xmlns:演="http://schemas.uof.org/cn/2009/presentation" xmlns:表="http://schemas.uof.org/cn/2009/spreadsheet" xmlns:规则="http://schemas.uof.org/cn/2009/rules" xmlns:超链="http://schemas.uof.org/cn/2009/hyperlinks" exclude-result-prefixes="uof 表 演 字 图 数 pzip 元 超链 图形 对象 公式 书签 数据 扩展 规则 式样">
23	<xsl:output omit-xml-declaration="no" encoding="utf-8" version="1.0" method="xml" standalone="yes" indent="no"/>
24	<xsl:strip-space elements="*"/>
25	<xsl:variable name="document_type">
26		<xsl:choose>
27			<xsl:when test="/uof:UOF_0000/演:演示文稿文档_6C10">presentation</xsl:when>
28			<xsl:when test="/uof:UOF_0000/字:文字处理文档_4225">text</xsl:when>
29			<xsl:when test="/uof:UOF_0000/表:电子表格文档_E826">spreadsheet</xsl:when>
30			<xsl:when test="/uof:UOF_0000/@mimetype_0001='vnd.uof.text'">text</xsl:when>
31			<xsl:when test="/uof:UOF_0000/@mimetype_0001='vnd.uof.presentation'">presentation</xsl:when>
32			<xsl:when test="/uof:UOF_0000/@mimetype_0001='vnd.uof.spreadsheet'">spreadsheet</xsl:when>
33			<xsl:otherwise>text</xsl:otherwise>
34		</xsl:choose>
35	</xsl:variable>
36	<xsl:variable name="uofUnit">
37		<xsl:variable name="uu" select="/uof:UOF_0000/规则:公用处理规则_B665/规则:长度单位_B666"/>
38		<xsl:choose>
39			<xsl:when test="$uu='cm'">cm</xsl:when>
40			<xsl:when test="$uu='mm'">mm</xsl:when>
41			<xsl:when test="$uu='pt'">pt</xsl:when>
42			<xsl:when test="contains($uu,'in')">in</xsl:when>
43			<xsl:otherwise>pt</xsl:otherwise>
44		</xsl:choose>
45	</xsl:variable>
46	<xsl:variable name="other-to-cm-conversion-factor">
47		<xsl:choose>
48			<xsl:when test="$uofUnit='cm'">1</xsl:when>
49			<xsl:when test="$uofUnit='mm'">0.1</xsl:when>
50			<xsl:when test="$uofUnit='pt'">0.03527</xsl:when>
51			<xsl:when test="$uofUnit='inch'">2.54</xsl:when>
52			<xsl:when test="$uofUnit='pica'">0.4233</xsl:when>
53			<xsl:otherwise>0.03527</xsl:otherwise>
54		</xsl:choose>
55	</xsl:variable>
56	<xsl:variable name="isRCCellAddress">
57		<xsl:choose>
58			<xsl:when test="($document_type='spreadsheet') and (/uof:UOF_0000/规则:公用处理规则_B665/规则:电子表格_B66C/规则:是否RC引用_B634 = 'true')">true</xsl:when>
59			<xsl:otherwise>false</xsl:otherwise>
60		</xsl:choose>
61	</xsl:variable>
62	<xsl:variable name="gvar_ChartsIndexes">
63		<xsl:for-each select="//图表:图表_E837">
64			<xsl:element name="ChartIndex">
65				<xsl:attribute name="GenerateID" select="generate-id()"/>
66				<xsl:attribute name="Index" select="position()"/>
67			</xsl:element>
68		</xsl:for-each>
69	</xsl:variable>
70	<xsl:key name="CellStyle" match="/uof:UOF_0000/式样:式样集_990B/式样:单元格式样集_9915/式样:单元格式样_9916" use="@标识符_E7AC"/>
71	<xsl:key name="MasterTextStyle" match="/uof:UOF_0000/式样:式样集_990B/式样:文本式样集_9913/式样:文本式样_9914" use="@标识符_9909"/>
72	<xsl:key name="uof-paragraph-styles" match="/uof:UOF_0000/式样:式样集_990B/式样:段落式样集_9911/式样:段落式样_9912 | /uof:UOF_0000/式样:式样集_990B/式样:文本式样集_9913/式样:文本式样_9914/式样:段落式样_9912" use="@标识符_4100"/>
73	<xsl:key name="uof-text-styles" match="/uof:UOF_0000/式样:式样集_990B/式样:句式样集_990F/式样:句式样_9910" use="@标识符_4100"/>
74	<xsl:key name="uof-table-styles" match="/uof:UOF_0000/式样:式样集_990B/式样:文字表式样集_9917/式样:文字表式样_9918" use="@标识符_4100"/>
75	<xsl:key name="hyperlink" match="/uof:UOF_0000/超链:链接集_AA0B/超链:超级链接_AA0C" use="超链:链源_AA00"/>
76	<xsl:key name="hyperlinkID" match="/uof:UOF_0000/超链:链接集_AA0B/超链:超级链接_AA0C" use="@标识符_AA0A"/>
77	<xsl:key name="bookmark" match="/uof:UOF_0000/书签:书签集_9104/书签:书签_9105" use="@名称_9103"/>
78	<xsl:key name="uof-number-styles" match="/uof:UOF_0000/式样:段落式样集_9911/式样:自动编号集_990E/字:自动编号_4124/字:级别_4112" use="字:链接式样引用_4118"/>
79	<xsl:key name="AutoNumber" match="/uof:UOF_0000/式样:段落式样集_9911/式样:自动编号集_990E/字:自动编号_4124" use="@标识符_4100"/>
80	<xsl:key name="rel_graphic_name" match="/uof:UOF_0000/演:演示文稿文档_6C10//uof:锚点_C644 | /uof:UOF_0000/字:文字处理文档_4225//uof:锚点_C644 | /uof:UOF_0000/表:电子表格文档_E826//uof:锚点_C644 | /uof:UOF_0000/图形:图形集_7C00/图:图形_8062/图:文本_803C/图:内容_8043/字:段落_416B//uof:锚点_C644" use="@图形引用_C62E"/>
81	<xsl:key name="graph-styles" match="/uof:UOF_0000/图形:图形集_7C00/图:图形_8062" use="@标识符_804B"/>
82	<xsl:key name="graph4chart" match="/uof:UOF_0000/图形:图形集_7C00/图:图形_8062" use="图:图表数据引用_8065"/>
83	<xsl:key name="math-styles" match="/uof:UOF_0000/公式:公式集_C200" use="@标识符_C202"/>
84	<xsl:key name="other-styles" match="/uof:UOF_0000/对象:对象数据集_D700/对象:对象数据_D701" use="@标识符_D704"/>
85	<xsl:key name="HeaderFooterP" match="/uof:UOF_0000/规则:公用处理规则_B665/规则:演示文稿_B66D/规则:页眉页脚集_B640/*" use="name()"/>
86	<xsl:key name="Slide" match="/uof:UOF_0000/演:演示文稿文档_6C10/演:幻灯片集_6C0E/演:幻灯片_6C0F" use="@母版引用_6B26"/>
87	<xsl:key name="SlideMaster" match="/uof:UOF_0000/演:演示文稿文档_6C10/演:母版集_6C0C/演:母版_6C0D" use="@标识符_6BE8"/>
88	<xsl:key name="graphicsextension" match="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201" use="扩展:扩展内容_B204/扩展:路径_B205"/>
89	<xsl:key name="textTable" match="/uof:UOF_0000/uof:文字处理文档_4225/字:文字表_416C" use="字:文字表属性_41CC/@式样引用_419C"/>
90	<xsl:template match="uof:UOF_0000">
91		<office:document>
92			<xsl:variable name="mimetype">
93				<xsl:choose>
94					<xsl:when test="$document_type = 'text'">application/vnd.oasis.opendocument.text</xsl:when>
95					<xsl:when test="$document_type = 'presentation'">application/vnd.oasis.opendocument.presentation</xsl:when>
96					<xsl:when test="$document_type = 'spreadsheet'">application/vnd.oasis.opendocument.spreadsheet</xsl:when>
97				</xsl:choose>
98			</xsl:variable>
99			<xsl:attribute name="office:mimetype" select="$mimetype"/>
100			<xsl:attribute name="office:version" select="1.2"/>
101			<xsl:apply-templates select="/uof:UOF_0000/元:元数据_5200"/>
102			<office:settings>
103				<xsl:choose>
104					<xsl:when test="$document_type = 'text'">
105						<xsl:call-template name="OfficeSettingsText"/>
106					</xsl:when>
107					<xsl:when test="$document_type = 'presentation'">
108						<xsl:call-template name="OfficeSettingsPresentation"/>
109					</xsl:when>
110					<xsl:when test="$document_type = 'spreadsheet'">
111						<xsl:call-template name="OfficeSettingsSpreadsheet"/>
112					</xsl:when>
113				</xsl:choose>
114			</office:settings>
115			<!--<xsl:call-template name="SetMetricUnit"/>-->
116			<xsl:if test="$document_type != 'presentation'">
117				<office:font-face-decls>
118					<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:字体集_990C">
119						<xsl:call-template name="UOFFonts"/>
120					</xsl:for-each>
121				</office:font-face-decls>
122			</xsl:if>
123			<xsl:choose>
124				<xsl:when test="$document_type = 'text'">
125					<xsl:apply-templates select="/uof:UOF_0000/字:文字处理文档_4225"/>
126				</xsl:when>
127				<xsl:when test="$document_type = 'presentation'">
128					<xsl:apply-templates select="/uof:UOF_0000/演:演示文稿文档_6C10"/>
129				</xsl:when>
130				<xsl:when test="$document_type = 'spreadsheet'">
131					<xsl:apply-templates select="/uof:UOF_0000/表:电子表格文档_E826"/>
132				</xsl:when>
133			</xsl:choose>
134			<office:automatic-styles>
135				<!-- number:time-style and number:date-style -->
136				<xsl:if test="//字:域开始_419E[@类型_416E='createdate'] | //字:域开始_419E[@类型_416E='time'] | //字:域开始_419E[@类型_416E='savedate'] | //字:域开始_419E[@类型_416E='date']">
137					<xsl:call-template name="TimeDateNumberStyle"/>
138				</xsl:if>
139				<xsl:apply-templates select="演:演示文稿文档_6C10/演:幻灯片集_6C0E/演:幻灯片_6C0F" mode="AutoStyle"/>
140				<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:句式样集_990F/式样:句式样_9910[@类型_4102='auto']">
141					<xsl:apply-templates select=".">
142						<xsl:with-param name="Type" select="string('auto')"/>
143					</xsl:apply-templates>
144				</xsl:for-each>
145				<!--xsl:call-template name="BodyTextProperties"/-->
146				<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:段落式样集_9911/式样:段落式样_9912[@类型_4102='auto']">
147					<xsl:apply-templates select=".">
148						<xsl:with-param name="Type" select="string('auto')"/>
149					</xsl:apply-templates>
150				</xsl:for-each>
151				<!-- 母版用到的段落式样写在style.xml下,其他段落式样写在content.xml下 -->
152				<xsl:choose>
153					<xsl:when test="not($document_type = 'presentation')">
154						<xsl:for-each select="/uof:UOF_0000/规则:公用处理规则_B665/规则:批注集_B669/规则:批注_B66A//字:段落_416B | /uof:UOF_0000/字:文字处理文档_4225//字:段落_416B | /uof:UOF_0000/图形:图形集_7C00/图:图形_8062/图:文本_803C/图:内容_8043//字:段落_416B | /uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825//字:段落_416B">
155							<xsl:call-template name="BodyParagraphProperties"/>
156							<xsl:for-each select="字:句_419D/字:句属性_4158">
157								<xsl:call-template name="BodyTextProperties"/>
158							</xsl:for-each>
159						</xsl:for-each>
160						<xsl:for-each select="/uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825/表:工作表内容_E80E/表:行_E7F1/表:单元格_E7F2/表:数据_E7B3/字:句_419D/字:句属性_4158">
161							<xsl:call-template name="BodyTextProperties"/>
162						</xsl:for-each>
163					</xsl:when>
164					<xsl:otherwise>
165						<xsl:for-each select="/uof:UOF_0000/规则:公用处理规则_B665/规则:批注集_B669/规则:批注_B66A//字:段落_416B | /uof:UOF_0000/图形:图形集_7C00/图:图形_8062/图:文本_803C/图:内容_8043//字:段落_416B">
166							<xsl:if test="name(key('rel_graphic_name',ancestor::图:图形_8062/@标识符_804B)[1]/..)!='演:母版_6C0D'">
167								<xsl:call-template name="BodyParagraphProperties"/>
168								<xsl:for-each select="字:句_419D/字:句属性_4158">
169									<xsl:call-template name="BodyTextProperties"/>
170								</xsl:for-each>
171							</xsl:if>
172						</xsl:for-each>
173					</xsl:otherwise>
174				</xsl:choose>
175				<xsl:choose>
176					<xsl:when test="$document_type = 'spreadsheet'">
177						<xsl:call-template name="BodyTableStyle"/>
178						<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:单元格式样集_9915/式样:单元格式样_9916[@类型_E7AE='auto']">
179							<xsl:apply-templates select=".">
180								<xsl:with-param name="Type" select="string('auto')"/>
181							</xsl:apply-templates>
182						</xsl:for-each>
183					</xsl:when>
184					<xsl:otherwise>
185						<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:文字表式样集_9917/式样:文字表式样_9918[@类型_4102='auto']">
186							<xsl:apply-templates select=".">
187								<xsl:with-param name="Type" select="string('auto')"/>
188							</xsl:apply-templates>
189						</xsl:for-each>
190					</xsl:otherwise>
191				</xsl:choose>
192				<!-- 相对于_C647 -->
193				<xsl:if test="/uof:UOF_0000/字:文字处理文档_4225/字:文字表_416C/字:文字表属性_41CC/字:位置_41C7/uof:垂直_410D[@相对于_C647 = 'margin']/uof:相对_4109[@参考点_410B = 'bottom']">
194					<xsl:apply-templates select="/uof:UOF_0000/字:文字处理文档_4225/字:文字表_416C/字:文字表属性_41CC" mode="embeded_into_frame"/>
195				</xsl:if>
196				<xsl:apply-templates select="/uof:UOF_0000/式样:式样集_990B/式样:自动编号集_990E/字:自动编号_4124" mode="liststyle"/>
197				<xsl:call-template name="BodyTextTableStyle"/>
198				<xsl:call-template name="GraphicStyle"/>
199			</office:automatic-styles>
200			<!--xsl:if test="$document_type != 'presentation'"-->
201			<office:font-face-decls>
202				<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:字体集_990C">
203					<xsl:call-template name="UOFFonts"/>
204				</xsl:for-each>
205			</office:font-face-decls>
206			<!--/xsl:if-->
207			<office:automatic-styles>
208				<xsl:choose>
209					<xsl:when test="$document_type = 'text'">
210						<xsl:call-template name="PageLayoutStyle"/>
211						<!-- 页码式样 starting -->
212						<xsl:for-each select="/uof:UOF_0000/字:文字处理文档_4225/字:分节_416A/字:节属性_421B/字:页脚_41F7//字:段落_416B">
213							<xsl:call-template name="BodyParagraphProperties"/>
214							<xsl:for-each select="字:句_419D/字:句属性_4158">
215								<xsl:call-template name="BodyTextProperties"/>
216							</xsl:for-each>
217						</xsl:for-each>
218						<!-- 页码式样 ending. -->
219					</xsl:when>
220					<xsl:when test="$document_type = 'spreadsheet'">
221						<xsl:call-template name="ScPageLayoutStyle"/>
222					</xsl:when>
223					<xsl:when test="$document_type = 'presentation'">
224						<!-- 母版用到的段落式样写在style.xml下,其他段落式样写在content.xml下 -->
225						<xsl:for-each select="/uof:UOF_0000/规则:公用处理规则_B665/规则:批注集_B669/规则:批注_B66A//字:段落_416B | /uof:UOF_0000/图形:图形集_7C00/图:图形_8062/图:文本_803C/图:内容_8043//字:段落_416B">
226							<xsl:if test="name(key('rel_graphic_name',ancestor::图:图形_8062/@标识符_804B)[1]/..)='演:母版_6C0D'">
227								<xsl:call-template name="BodyParagraphProperties"/>
228								<xsl:if test="(./字:段落属性_419B/字:自动编号信息_4186) or (count(./字:段落属性_419B/child::*) = 0)">
229									<xsl:for-each select="key('uof-paragraph-styles',字:段落属性_419B/@式样引用_419C)[name(..)='式样:段落式样集_9911']">
230										<xsl:apply-templates select=".">
231											<xsl:with-param name="Type" select="string('auto')"/>
232										</xsl:apply-templates>
233									</xsl:for-each>
234								</xsl:if>
235								<xsl:for-each select="字:句_419D/字:句属性_4158">
236									<xsl:call-template name="BodyTextProperties"/>
237									<xsl:if test="count(*)=0">
238										<xsl:for-each select="key('uof-text-styles',@式样引用_417B)">
239											<xsl:apply-templates select=".">
240												<xsl:with-param name="Type" select="string('auto')"/>
241											</xsl:apply-templates>
242										</xsl:for-each>
243									</xsl:if>
244								</xsl:for-each>
245							</xsl:if>
246						</xsl:for-each>
247						<xsl:call-template name="AutoStylePresentation"/>
248						<xsl:call-template name="SpecialHolderTextStyle"/>
249						<xsl:call-template name="MasterGraphicStyle"/>
250					</xsl:when>
251				</xsl:choose>
252			</office:automatic-styles>
253			<office:master-styles>
254				<xsl:choose>
255					<xsl:when test="$document_type = 'text'">
256						<xsl:call-template name="MasterStyleText"/>
257					</xsl:when>
258					<xsl:when test="$document_type = 'spreadsheet'">
259						<xsl:call-template name="MasterStyleSpreadsheet"/>
260					</xsl:when>
261					<xsl:when test="$document_type = 'presentation'">
262						<xsl:call-template name="MasterStylePresentation"/>
263					</xsl:when>
264				</xsl:choose>
265			</office:master-styles>
266			<office:styles>
267				<xsl:for-each select="//图:渐变_800D/..">
268					<xsl:call-template name="GradientStyle"/>
269				</xsl:for-each>
270				<xsl:call-template name="HatchSetStyle"/>
271				<xsl:if test="$document_type = 'text'">
272					<xsl:call-template name="CallExpandHatch"/>
273					<!--xsl:call-template name="CallExpandMarker"/-->
274					<xsl:call-template name="CallExpandStroke"/>
275				</xsl:if>
276				<xsl:call-template name="GraphicSetStyle"/>
277				<xsl:call-template name="GraphicDefinition"/>
278				<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:句式样集_990F/式样:句式样_9910[@类型_4102='default'][1]">
279					<xsl:apply-templates select=".">
280						<xsl:with-param name="Type" select="string('default')"/>
281					</xsl:apply-templates>
282				</xsl:for-each>
283				<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:段落式样集_9911/式样:段落式样_9912[@类型_4102='default'][1]">
284					<xsl:apply-templates select=".">
285						<xsl:with-param name="Type" select="string('default')"/>
286					</xsl:apply-templates>
287				</xsl:for-each>
288				<xsl:if test="$document_type = 'presentation'">
289					<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:段落式样集_9911/式样:段落式样_9912[@类型_4102='default'][1]">
290						<xsl:apply-templates select="." mode="presentation-default"/>
291					</xsl:for-each>
292				</xsl:if>
293				<xsl:choose>
294					<xsl:when test="$document_type = 'spreadsheet'">
295						<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:单元格式样集_9915/式样:单元格式样_9916[@类型_E7AE='default'][1]">
296							<xsl:apply-templates select=".">
297								<xsl:with-param name="Type" select="string('default')"/>
298							</xsl:apply-templates>
299						</xsl:for-each>
300					</xsl:when>
301					<xsl:otherwise>
302						<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:文字表式样集_9917/式样:文字表式样_9918[@类型_4102='default'][1]">
303							<xsl:apply-templates select=".">
304								<xsl:with-param name="Type" select="string('default')"/>
305							</xsl:apply-templates>
306						</xsl:for-each>
307					</xsl:otherwise>
308				</xsl:choose>
309				<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:句式样集_990F/式样:句式样_9910[@类型_4102='custom']">
310					<xsl:apply-templates select=".">
311						<xsl:with-param name="Type" select="string('custom')"/>
312					</xsl:apply-templates>
313				</xsl:for-each>
314				<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:段落式样集_9911/式样:段落式样_9912[@类型_4102='custom']">
315					<xsl:apply-templates select=".">
316						<xsl:with-param name="Type" select="string('custom')"/>
317					</xsl:apply-templates>
318				</xsl:for-each>
319				<xsl:choose>
320					<xsl:when test="$document_type = 'spreadsheet'">
321						<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:单元格式样集_9915/式样:单元格式样_9916[@类型_E7AE='custom']">
322							<xsl:apply-templates select=".">
323								<xsl:with-param name="Type" select="string('custom')"/>
324							</xsl:apply-templates>
325						</xsl:for-each>
326					</xsl:when>
327					<xsl:otherwise>
328						<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:文字表式样集_9917/式样:文字表式样_9918[@类型_4102='custom']">
329							<xsl:apply-templates select=".">
330								<xsl:with-param name="Type" select="string('custom')"/>
331							</xsl:apply-templates>
332						</xsl:for-each>
333					</xsl:otherwise>
334				</xsl:choose>
335				<!--xsl:call-template name="BodyTextProperties">
336					<xsl:with-param name="Type" select="'symbol'"/>
337				</xsl:call-template-->
338				<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:自动编号集_990E//字:符号字体_4116">
339					<xsl:if test="count(./child::*)!=0">
340						<xsl:call-template name="BodyTextProperties"/>
341					</xsl:if>
342				</xsl:for-each>
343				<xsl:if test="$document_type = 'text'">
344					<xsl:call-template name="FootnoteSetting"/>
345					<xsl:call-template name="EndnoteSetting"/>
346					<xsl:call-template name="LineNumbering"/>
347					<style:default-page-layout>
348						<style:page-layout-properties style:layout-grid-standard-mode="true"/>
349					</style:default-page-layout>
350				</xsl:if>
351				<xsl:if test="$document_type = 'presentation'">
352					<xsl:call-template name="OfficeStylePresentation"/>
353				</xsl:if>
354			</office:styles>
355			<xsl:for-each select="//图表:图表_E837">
356				<xsl:apply-templates select="." />
357			</xsl:for-each>
358		</office:document>
359	</xsl:template>
360	<xsl:template match="图表:图表_E837">
361				<!--<office:meta>
362					<meta:generator>NeoShineOffice/6.0$Win32 OpenOffice.org_project/300M39$Build-9402</meta:generator>
363				</office:meta>-->
364				<xsl:call-template name="图表:固定式样式样集"/>
365				<xsl:call-template name="OfficeAutomaticStyles4chart"/>
366				<xsl:call-template name="OfficeBody4chart"/>
367	</xsl:template>
368	<xsl:template name="GetODFMetric">
369		<xsl:choose>
370			<xsl:when test="$uofUnit = 'mm'">[1]</xsl:when>
371			<xsl:when test="$uofUnit = 'cm'">[2]</xsl:when>
372			<xsl:when test="$uofUnit = 'pt'">[6]</xsl:when>
373			<xsl:when test="$uofUnit = 'in'">[8]</xsl:when>
374		</xsl:choose>
375	</xsl:template>
376	<!--<xsl:template name="SetMetricUnit">
377		<xsl:choose>
378			<xsl:when test="$document_type = 'presentation'">
379				<office:scripts/>
380			</xsl:when>
381			<xsl:otherwise>
382				<office:scripts>
383					<office:script script:language="ooo:Basic">
384						<ooo:libraries>
385							<ooo:library-embedded ooo:name="Standard"/>
386						</ooo:libraries>
387					</office:script>
388					<office:event-listeners>
389						<script:event-listener script:language="ooo:script" script:event-name="dom:load" xlink:href="vnd.sun.star.script:Tools.Misc.NeoShineOfficeSetMetricUnit?language=Basic&amp;location=application"/>
390					</office:event-listeners>
391				</office:scripts>
392			</xsl:otherwise>
393		</xsl:choose>
394	</xsl:template>-->
395	<xsl:template match="元:元数据_5200">
396		<office:meta>
397			<xsl:if test="元:标题_5201">
398				<dc:title>
399					<xsl:value-of select="元:标题_5201"/>
400				</dc:title>
401			</xsl:if>
402			<xsl:if test="元:主题_5202">
403				<dc:subject>
404					<xsl:value-of select="元:主题_5202"/>
405				</dc:subject>
406			</xsl:if>
407			<xsl:if test="元:创建者_5203">
408				<meta:initial-creator>
409					<xsl:value-of select="元:创建者_5203"/>
410				</meta:initial-creator>
411			</xsl:if>
412			<!--xsl:if test="元:作者">
413					</xsl:if-->
414			<xsl:if test="元:最后作者_5205 or 元:作者_5204">
415				<dc:creator>
416					<xsl:value-of select="元:最后作者_5205"/>
417					<xsl:value-of select="元:作者_5204"/>
418				</dc:creator>
419			</xsl:if>
420			<dc:date>
421				<xsl:value-of select="current-dateTime()"/>
422			</dc:date>
423			<!--背景音乐信息存放在第二个dc:description元素中-->
424			<xsl:if test="元:摘要_5206">
425				<dc:description>
426					<xsl:value-of select="元:摘要_5206"/>
427				</dc:description>
428				<xsl:if test="/uof:UOF_0000/uof:演示文稿/演:公用处理规则/演:放映设置/演:声音">
429					<dc:description>backgroudvoice</dc:description>
430				</xsl:if>
431			</xsl:if>
432			<xsl:if test="not(元:摘要_5206) and /uof:UOF_0000/uof:演示文稿/演:公用处理规则/演:放映设置/演:声音">
433				<dc:description/>
434				<dc:description>backgroudvoice</dc:description>
435			</xsl:if>
436			<xsl:if test="元:创建日期_5207">
437				<meta:creation-date>
438					<xsl:value-of select="元:创建日期_5207"/>
439				</meta:creation-date>
440			</xsl:if>
441			<xsl:if test="元:编辑次数_5208">
442				<meta:editing-cycles>
443					<xsl:value-of select="元:编辑次数_5208"/>
444				</meta:editing-cycles>
445			</xsl:if>
446			<dc:date>
447				<xsl:value-of select="current-date()"/>
448			</dc:date>
449			<xsl:if test="元:编辑时间_5209">
450				<meta:editing-duration>
451					<xsl:choose>
452						<xsl:when test="contains(元:编辑时间_5209,'P0Y0')">
453							<xsl:variable name="hour" select="substring-after(substring-before(元:编辑时间_5209,'H'),'T')"/>
454							<xsl:variable name="minute" select="substring-before(substring-after(元:编辑时间_5209,'H'),'M')"/>
455							<xsl:variable name="second" select="substring-after(substring-after(substring-before(元:编辑时间_5209,'S'),'H'),'M')"/>
456							<xsl:value-of select="concat('PT',$hour,'H',$minute,'M',$second,'S')"/>
457						</xsl:when>
458						<xsl:otherwise>
459							<xsl:value-of select="元:编辑时间_5209"/>
460						</xsl:otherwise>
461					</xsl:choose>
462				</meta:editing-duration>
463			</xsl:if>
464			<xsl:variable name="ODFMetricUnit">
465				<xsl:call-template name="GetODFMetric"/>
466			</xsl:variable>
467			<xsl:choose>
468				<xsl:when test="元:创建应用程序_520A">
469					<meta:generator>
470						<xsl:value-of select="concat(元:创建应用程序_520A, $ODFMetricUnit)"/>
471					</meta:generator>
472				</xsl:when>
473				<xsl:otherwise>
474					<meta:generator>
475						<xsl:value-of select="concat('NeoShineOffice-Build', $ODFMetricUnit)"/>
476					</meta:generator>
477				</xsl:otherwise>
478			</xsl:choose>
479			<xsl:if test="元:文档模板_520C">
480				<meta:template xlink:type="simple" xlink:actuate="onRequest">
481					<xsl:attribute name="xlink:title"><xsl:value-of select="元:文档模板_520C"/></xsl:attribute>
482				</meta:template>
483			</xsl:if>
484			<xsl:if test="元:关键字集_520D">
485				<xsl:for-each select="元:关键字集_520D/元:关键字_520E">
486					<meta:keyword>
487						<xsl:value-of select="."/>
488					</meta:keyword>
489				</xsl:for-each>
490			</xsl:if>
491			<xsl:if test="元:分类_520B">
492				<dc:category>
493					<xsl:value-of select="元:分类_520B"/>
494				</dc:category>
495			</xsl:if>
496			<xsl:if test="元:公司名称_5213">
497				<dc:company>
498					<xsl:value-of select="元:公司名称_5213"/>
499				</dc:company>
500			</xsl:if>
501			<xsl:if test="元:经理名称_5214">
502				<dc:manager>
503					<xsl:value-of select="元:经理名称_5214"/>
504				</dc:manager>
505			</xsl:if>
506			<meta:document-statistic>
507				<xsl:if test="元:页数_5215">
508					<xsl:attribute name="meta:page-count"><xsl:value-of select="元:页数_5215"/></xsl:attribute>
509				</xsl:if>
510				<xsl:if test="元:段落数_521A">
511					<xsl:attribute name="meta:paragraph-count"><xsl:value-of select="元:段落数_521A"/></xsl:attribute>
512				</xsl:if>
513				<xsl:if test="元:字数_5216">
514					<xsl:attribute name="meta:word-count"><xsl:value-of select="元:字数_5216"/></xsl:attribute>
515				</xsl:if>
516				<xsl:if test="元:对象数_521B">
517					<xsl:attribute name="meta:object-count"><xsl:value-of select="元:对象数_521B"/></xsl:attribute>
518				</xsl:if>
519				<xsl:if test="元:行数_5219">
520					<xsl:attribute name="meta:row-count"><xsl:value-of select="元:行数_5219"/></xsl:attribute>
521				</xsl:if>
522				<xsl:if test="元:英文字符数_5217 | 元:中文字符数_5218">
523					<xsl:attribute name="meta:character-count"><xsl:value-of select="元:英文字符数_5217 + 元:中文字符数_5218"/></xsl:attribute>
524				</xsl:if>
525			</meta:document-statistic>
526			<xsl:if test="元:用户自定义元数据集_520F">
527				<xsl:for-each select="元:用户自定义元数据集_520F/元:用户自定义元数据_5210">
528					<meta:user-defined meta:name="{@名称_5211}">
529						<xsl:if test="@类型_5212">
530							<xsl:attribute name="meta:type"><xsl:value-of select="@类型_5212"/></xsl:attribute>
531						</xsl:if>
532						<xsl:value-of select="."/>
533					</meta:user-defined>
534				</xsl:for-each>
535				<xsl:if test="元:作者_5204">
536					<meta:user-defined meta:name="作者">
537						<xsl:if test="@类型_5212">
538							<xsl:attribute name="meta:type"><xsl:value-of select="元:作者_5204"/></xsl:attribute>
539						</xsl:if>
540						<xsl:value-of select="元:作者_5204"/>
541					</meta:user-defined>
542				</xsl:if>
543			</xsl:if>
544			<xsl:if test="$isRCCellAddress = 'true'">
545				<meta:user-defined meta:name="isRCCellAddress">true</meta:user-defined>
546			</xsl:if>
547		</office:meta>
548	</xsl:template>
549	<xsl:template name="UOFFonts">
550		<xsl:variable name="ss">&apos;</xsl:variable>
551		<xsl:for-each select="式样:字体声明_990D">
552			<xsl:element name="style:font-face">
553				<xsl:for-each select="@*">
554					<xsl:choose>
555						<xsl:when test="name(.)='标识符_9902'">
556							<xsl:attribute name="style:name"><xsl:value-of select="."/></xsl:attribute>
557						</xsl:when>
558						<xsl:when test="name(.)='名称_9903'">
559							<xsl:attribute name="svg:font-family"><xsl:choose><xsl:when test="contains(.,' ')"><xsl:value-of select="concat($ss,.,$ss)"/></xsl:when><xsl:otherwise><xsl:value-of select="."/></xsl:otherwise></xsl:choose></xsl:attribute>
560						</xsl:when>
561						<xsl:when test="name(.)='式样:字体族_9900'">
562							<xsl:choose>
563								<xsl:when test="string(.) = 'swiss'">
564									<xsl:attribute name="style:font-family-generic">swiss</xsl:attribute>
565								</xsl:when>
566								<xsl:when test="string(.) = 'modern'">
567									<xsl:attribute name="style:font-family-generic">modern</xsl:attribute>
568								</xsl:when>
569								<xsl:when test="string(.) = 'roman'">
570									<xsl:attribute name="style:font-family-generic">roman</xsl:attribute>
571								</xsl:when>
572								<xsl:when test="string(.) = 'script'">
573									<xsl:attribute name="style:font-family-generic">script</xsl:attribute>
574								</xsl:when>
575								<xsl:when test="string(.) = 'decorative'">
576									<xsl:attribute name="style:font-family-generic">decorative</xsl:attribute>
577								</xsl:when>
578								<xsl:when test="string(.) = 'auto'">
579									<xsl:attribute name="style:font-family-generic">system</xsl:attribute>
580								</xsl:when>
581								<xsl:otherwise>
582									<xsl:attribute name="style:font-family-generic">system</xsl:attribute>
583								</xsl:otherwise>
584							</xsl:choose>
585						</xsl:when>
586						<!--xsl:when test="name(.)='替换字体_9904'">
587						</xsl:when-->
588					</xsl:choose>
589				</xsl:for-each>
590			</xsl:element>
591		</xsl:for-each>
592	</xsl:template>
593	<xsl:template name="convertOthers2cm">
594		<xsl:param name="value"/>
595		<xsl:param name="rounding-factor" select="10000"/>
596		<xsl:param name="dpi" select="111"/>
597		<xsl:param name="centimeter-in-mm" select="10"/>
598		<xsl:param name="inch-in-mm" select="25.4"/>
599		<xsl:param name="didot-point-in-mm" select="0.376065"/>
600		<xsl:param name="pica-in-mm" select="4.2333333"/>
601		<xsl:param name="point-in-mm" select="0.3527778"/>
602		<xsl:param name="twip-in-mm" select="0.017636684"/>
603		<xsl:param name="pixel-in-mm" select="$inch-in-mm div $dpi"/>
604		<xsl:choose>
605			<xsl:when test="contains($value, 'mm')">
606				<xsl:value-of select="round(number($rounding-factor) * number(substring-before($value, 'mm') div number($centimeter-in-mm))) div number($rounding-factor)"/>
607			</xsl:when>
608			<xsl:when test="contains($value, 'in')">
609				<xsl:value-of select="round($rounding-factor * number(substring-before($value, 'in') div $centimeter-in-mm * $inch-in-mm)) div $rounding-factor"/>
610			</xsl:when>
611			<xsl:when test="contains($value, 'pt')">
612				<xsl:value-of select="round(number($rounding-factor) * number(substring-before($value, 'pt')) div number($centimeter-in-mm) * number($point-in-mm)) div number($rounding-factor)"/>
613			</xsl:when>
614			<xsl:when test="contains($value, 'dpt')">
615				<xsl:value-of select="round($rounding-factor * number(substring-before($value, 'dpt') div $centimeter-in-mm * $didot-point-in-mm)) div $rounding-factor"/>
616			</xsl:when>
617			<xsl:when test="contains($value, 'pica')">
618				<xsl:value-of select="round($rounding-factor * number(substring-before($value, 'pica') div $centimeter-in-mm * $pica-in-mm)) div $rounding-factor"/>
619			</xsl:when>
620			<xsl:when test="contains($value, 'twip')">
621				<xsl:value-of select="round($rounding-factor * number(substring-before($value, 'twip') div $centimeter-in-mm * $twip-in-mm)) div $rounding-factor"/>
622			</xsl:when>
623			<xsl:when test="contains($value, 'px')">
624				<xsl:value-of select="round($rounding-factor * number(substring-before($value, 'px') div $centimeter-in-mm * $pixel-in-mm)) div $rounding-factor"/>
625			</xsl:when>
626			<xsl:otherwise>
627				<xsl:value-of select="substring-before($value, 'cm')"/>
628			</xsl:otherwise>
629		</xsl:choose>
630	</xsl:template>
631	<xsl:template name="convert2cm">
632		<xsl:param name="value"/>
633		<xsl:param name="rounding-factor" select="10000"/>
634		<xsl:param name="dpi" select="111"/>
635		<xsl:param name="centimeter-in-mm" select="10"/>
636		<xsl:param name="inch-in-mm" select="25.4"/>
637		<xsl:param name="didot-point-in-mm" select="0.376065"/>
638		<xsl:param name="pica-in-mm" select="4.2333333"/>
639		<xsl:param name="point-in-mm" select="0.3527778"/>
640		<xsl:param name="twip-in-mm" select="0.017636684"/>
641		<xsl:param name="pixel-in-mm" select="$inch-in-mm div $dpi"/>
642		<xsl:choose>
643			<xsl:when test="contains($value, 'mm')">
644				<xsl:value-of select="round(number($rounding-factor) * number(substring-before($value, 'mm') div number($centimeter-in-mm))) div number($rounding-factor)"/>
645			</xsl:when>
646			<xsl:when test="contains($value, $uofUnit)">
647				<xsl:value-of select="substring-before($value, $uofUnit)"/>
648			</xsl:when>
649			<xsl:when test="contains($value, 'in')">
650				<xsl:value-of select="round($rounding-factor * number(substring-before($value, 'in') div $centimeter-in-mm * $inch-in-mm)) div $rounding-factor"/>
651			</xsl:when>
652			<xsl:when test="contains($value, 'pt')">
653				<xsl:value-of select="round(number($rounding-factor) * number(substring-before($value, 'pt')) div number($centimeter-in-mm) * number($point-in-mm)) div number($rounding-factor)"/>
654			</xsl:when>
655			<xsl:when test="contains($value, 'dpt')">
656				<xsl:value-of select="round($rounding-factor * number(substring-before($value, 'dpt') div $centimeter-in-mm * $didot-point-in-mm)) div $rounding-factor"/>
657			</xsl:when>
658			<xsl:when test="contains($value, 'pica')">
659				<xsl:value-of select="round($rounding-factor * number(substring-before($value, 'pica') div $centimeter-in-mm * $pica-in-mm)) div $rounding-factor"/>
660			</xsl:when>
661			<xsl:when test="contains($value, 'twip')">
662				<xsl:value-of select="round($rounding-factor * number(substring-before($value, 'twip') div $centimeter-in-mm * $twip-in-mm)) div $rounding-factor"/>
663			</xsl:when>
664			<xsl:when test="contains($value, 'px')">
665				<xsl:value-of select="round($rounding-factor * number(substring-before($value, 'px') div $centimeter-in-mm * $pixel-in-mm)) div $rounding-factor"/>
666			</xsl:when>
667			<xsl:otherwise>
668				<xsl:message>measure_conversion.xsl: Find no conversion for <xsl:value-of select="$value"/> to 'cm'!</xsl:message>
669				<xsl:value-of select="$value"/>
670			</xsl:otherwise>
671		</xsl:choose>
672	</xsl:template>
673	<xsl:template name="UOFCommBorder">
674		<xsl:param name="lineType"/>
675		<xsl:param name="width"/>
676		<xsl:param name="color"/>
677		<xsl:choose>
678			<xsl:when test="$lineType='none' or $lineType = ' '">none</xsl:when>
679			<xsl:otherwise>
680				<xsl:choose>
681					<xsl:when test="substring-before($width,$uofUnit) != ''">
682						<xsl:value-of select="$width"/>
683					</xsl:when>
684					<xsl:otherwise>0.5pt </xsl:otherwise>
685				</xsl:choose>
686				<xsl:choose>
687					<xsl:when test="$lineType='double' or $lineType='thin-thick' or $lineType='thick-thin' or $lineType='thick-between-thin'">double </xsl:when>
688					<xsl:otherwise>solid </xsl:otherwise>
689				</xsl:choose>
690				<xsl:choose>
691					<xsl:when test="$color='auto' or $color='none' or $color=''">#808080</xsl:when>
692					<xsl:when test="$color!=''">
693						<xsl:value-of select="$color"/>
694					</xsl:when>
695					<xsl:otherwise>#000000</xsl:otherwise>
696				</xsl:choose>
697			</xsl:otherwise>
698		</xsl:choose>
699	</xsl:template>
700	<xsl:template name="BorderLineWidth">
701		<xsl:param name="aType"/>
702		<xsl:param name="aSize"/>
703		<xsl:choose>
704			<!-- alert starting
705			<xsl:when test="$aType = 'double' or $aType = 'thick-between-thin'">
706                <xsl:variable name="widths" select="number($aSize) div 3"/>
707				<xsl:value-of select="concat(format-number($widths, '#.000'), $uofUnit, ' ', format-number($widths, '#.000'), $uofUnit, ' ', format-number($widths, '#.000'),  $uofUnit)"/>
708			</xsl:when>-->
709			<xsl:when test="$aType = 'double'">
710				<xsl:value-of select="concat(format-number(number($aSize) * 0.01, '#.000'), $uofUnit, ' ', format-number(number($aSize) * 0.75, '#.000'), $uofUnit, ' ', format-number(number($aSize) * 0.24, '#.000'), $uofUnit)"/>
711			</xsl:when>
712			<xsl:when test="$aType = 'thick-between-thin'">
713				<xsl:variable name="widths" select="number($aSize) div 3"/>
714				<xsl:value-of select="concat(format-number($widths, '#.000'), $uofUnit, ' ', format-number($widths, '#.000'), $uofUnit, ' ', format-number($widths, '#.000'),  $uofUnit)"/>
715			</xsl:when>
716			<!-- alert ending. -->
717			<xsl:when test="$aType = 'thick-thin'">
718				<xsl:value-of select="concat(format-number(number($aSize) * 0.5, '#.000'), $uofUnit, ' ', format-number(number($aSize) * 0.4, '#.000'), $uofUnit, ' ', format-number(number($aSize) * 0.1, '#.000'), $uofUnit)"/>
719			</xsl:when>
720			<xsl:when test="$aType = 'thin-thick'">
721				<xsl:value-of select="concat(format-number(number($aSize) * 0.1, '#.000'), $uofUnit, ' ', format-number(number($aSize) * 0.4, '#.000'), $uofUnit, ' ', format-number(number($aSize) * 0.5, '#.000'), $uofUnit)"/>
722			</xsl:when>
723			<!--<xsl:when test="$aType = 'thick-between-thin'">
724				<xsl:value-of select="concat(format-number(number($aSize) * 0.44, '#.000'), $uofUnit, ' ', format-number(number($aSize) * 0.28, '#.000'), $uofUnit, ' ', format-number(number($aSize) * 0.28, '#.000'), $uofUnit)"/>
725			</xsl:when>-->
726		</xsl:choose>
727	</xsl:template>
728	<xsl:template name="CommonBorder">
729		<xsl:param name="pUp"/>
730		<xsl:param name="pDown"/>
731		<xsl:param name="pLeft"/>
732		<xsl:param name="pRight"/>
733		<xsl:param name="pDiagon1"/>
734		<xsl:param name="pDiagon2"/>
735		<xsl:if test="$pUp">
736			<!--
737			<xsl:variable name="type" select="$pUp/@uof:线型"/>-->
738			<xsl:variable name="type">
739				<xsl:choose>
740					<xsl:when test="$pUp/@线型_C60D">
741						<xsl:value-of select="$pUp/@线型_C60D"/>
742					</xsl:when>
743					<!--xsl:when test="$pUp/@uof:类型">
744						<xsl:value-of select="$pUp/@uof:类型"/>
745					</xsl:when-->
746				</xsl:choose>
747			</xsl:variable>
748			<xsl:variable name="size" select="concat($pUp/@宽度_C60F,$uofUnit,' ')"/>
749			<xsl:variable name="clr" select="$pUp/@颜色_C611"/>
750			<!-- alert staring
751			<xsl:attribute name="fo:padding-top"><xsl:value-of select="concat(string($pUp/@边距_C610),$uofUnit)"/></xsl:attribute>-->
752			<xsl:if test="$pUp/@边距_C610">
753				<xsl:attribute name="fo:padding-top"><xsl:value-of select="concat(string($pUp/@边距_C610),$uofUnit)"/></xsl:attribute>
754			</xsl:if>
755			<!-- alert ending. -->
756			<xsl:attribute name="fo:border-top"><xsl:call-template name="UOFCommBorder"><xsl:with-param name="lineType" select="$type"/><xsl:with-param name="width" select="$size"/><xsl:with-param name="color" select="$clr"/></xsl:call-template></xsl:attribute>
757			<xsl:if test="$type != 'none' and $type != 'single'">
758				<xsl:attribute name="style:border-line-width-top"><xsl:call-template name="BorderLineWidth"><xsl:with-param name="aType" select="$type"/><xsl:with-param name="aSize" select="$pUp/@宽度_C60F"/></xsl:call-template></xsl:attribute>
759			</xsl:if>
760		</xsl:if>
761		<xsl:if test="$pDown">
762			<xsl:variable name="type">
763				<xsl:choose>
764					<xsl:when test="$pDown/@线型_C60D">
765						<xsl:value-of select="$pDown/@线型_C60D"/>
766					</xsl:when>
767					<!--xsl:when test="$pDown/@uof:类型">
768						<xsl:value-of select="$pDown/@uof:类型"/>
769					</xsl:when-->
770				</xsl:choose>
771			</xsl:variable>
772			<xsl:variable name="size" select="concat(normalize-space(string($pDown/@宽度_C60F)),$uofUnit,' ')"/>
773			<xsl:variable name="clr" select="$pDown/@颜色_C611"/>
774			<xsl:attribute name="fo:padding-bottom"><xsl:value-of select="concat(string($pDown/@边距_C610),$uofUnit)"/></xsl:attribute>
775			<xsl:attribute name="fo:border-bottom"><xsl:call-template name="UOFCommBorder"><xsl:with-param name="lineType" select="$type"/><xsl:with-param name="width" select="$size"/><xsl:with-param name="color" select="$clr"/></xsl:call-template></xsl:attribute>
776			<xsl:if test="$type != 'none' and $type != 'single'">
777				<xsl:attribute name="style:border-line-width-bottom"><xsl:call-template name="BorderLineWidth"><xsl:with-param name="aType" select="$type"/><xsl:with-param name="aSize" select="$pDown/@宽度_C60F"/></xsl:call-template></xsl:attribute>
778			</xsl:if>
779		</xsl:if>
780		<xsl:if test="$pLeft">
781			<xsl:variable name="type">
782				<xsl:choose>
783					<xsl:when test="$pLeft/@线型_C60D">
784						<xsl:value-of select="$pLeft/@线型_C60D"/>
785					</xsl:when>
786					<!--xsl:when test="$pLeft/@uof:类型">
787						<xsl:value-of select="$pLeft/@uof:类型"/>
788					</xsl:when-->
789				</xsl:choose>
790			</xsl:variable>
791			<xsl:variable name="size" select="concat($pLeft/@宽度_C60F,$uofUnit,' ')"/>
792			<xsl:variable name="clr" select="$pLeft/@颜色_C611"/>
793			<xsl:attribute name="fo:padding-left"><xsl:value-of select="concat(string($pLeft/@边距_C610),$uofUnit)"/></xsl:attribute>
794			<xsl:attribute name="fo:border-left"><xsl:call-template name="UOFCommBorder"><xsl:with-param name="lineType" select="$type"/><xsl:with-param name="width" select="$size"/><xsl:with-param name="color" select="$clr"/></xsl:call-template></xsl:attribute>
795			<xsl:if test="$type != 'none' and $type != 'single'">
796				<xsl:attribute name="style:border-line-width-left"><xsl:call-template name="BorderLineWidth"><xsl:with-param name="aType" select="$type"/><xsl:with-param name="aSize" select="$pLeft/@宽度_C60F"/></xsl:call-template></xsl:attribute>
797			</xsl:if>
798		</xsl:if>
799		<xsl:if test="$pRight">
800			<xsl:variable name="type">
801				<xsl:choose>
802					<xsl:when test="$pRight/@线型_C60D">
803						<xsl:value-of select="$pRight/@线型_C60D"/>
804					</xsl:when>
805					<!--xsl:when test="$pRight/@uof:类型">
806						<xsl:value-of select="$pRight/@uof:类型"/>
807					</xsl:when-->
808				</xsl:choose>
809			</xsl:variable>
810			<xsl:variable name="size" select="concat($pRight/@宽度_C60F,$uofUnit,' ')"/>
811			<xsl:variable name="clr" select="$pRight/@颜色_C611"/>
812			<xsl:attribute name="fo:padding-right"><xsl:value-of select="concat(string($pRight/@边距_C610),$uofUnit)"/></xsl:attribute>
813			<xsl:attribute name="fo:border-right"><xsl:call-template name="UOFCommBorder"><xsl:with-param name="lineType" select="$type"/><xsl:with-param name="width" select="$size"/><xsl:with-param name="color" select="$clr"/></xsl:call-template></xsl:attribute>
814			<xsl:if test="$type != 'none' and $type != 'single'">
815				<xsl:attribute name="style:border-line-width-right"><xsl:call-template name="BorderLineWidth"><xsl:with-param name="aType" select="$type"/><xsl:with-param name="aSize" select="$pRight/@宽度_C60F"/></xsl:call-template></xsl:attribute>
816			</xsl:if>
817		</xsl:if>
818		<xsl:if test="$pDiagon1">
819			<xsl:variable name="type">
820				<xsl:choose>
821					<xsl:when test="$pDiagon1/@线型_C60D">
822						<xsl:value-of select="$pDiagon1/@线型_C60D"/>
823					</xsl:when>
824					<!--xsl:when test="$pDiagon1/@uof:类型">
825						<xsl:value-of select="$pDiagon1/@uof:类型"/>
826					</xsl:when-->
827				</xsl:choose>
828			</xsl:variable>
829			<xsl:variable name="size" select="concat($pDiagon1/@宽度_C60F,$uofUnit,' ')"/>
830			<xsl:variable name="clr" select="$pDiagon1/@颜色_C611"/>
831			<xsl:attribute name="style:diagonal-tl-br"><xsl:call-template name="UOFCommBorder"><xsl:with-param name="lineType" select="$type"/><xsl:with-param name="width" select="$size"/><xsl:with-param name="color" select="$clr"/></xsl:call-template></xsl:attribute>
832			<xsl:if test="$type != 'none' and $type != 'single'">
833				<xsl:attribute name="style:diagonal-tl-br-width"><xsl:call-template name="BorderLineWidth"><xsl:with-param name="aType" select="$type"/><xsl:with-param name="aSize" select="$pDiagon1/@宽度_C60F"/></xsl:call-template></xsl:attribute>
834			</xsl:if>
835		</xsl:if>
836		<xsl:if test="$pDiagon2">
837			<xsl:variable name="type">
838				<xsl:choose>
839					<xsl:when test="$pDiagon2/@线型_C60D">
840						<xsl:value-of select="$pDiagon2/@线型_C60D"/>
841					</xsl:when>
842					<!--xsl:when test="$pDiagon2/@uof:类型">
843						<xsl:value-of select="$pDiagon2/@uof:类型"/>
844					</xsl:when-->
845				</xsl:choose>
846			</xsl:variable>
847			<xsl:variable name="size" select="concat($pDiagon2/@宽度_C60F,$uofUnit,' ')"/>
848			<xsl:variable name="clr" select="$pDiagon2/@颜色_C611"/>
849			<xsl:attribute name="style:diagonal-bl-tr"><xsl:call-template name="UOFCommBorder"><xsl:with-param name="lineType" select="$type"/><xsl:with-param name="width" select="$size"/><xsl:with-param name="color" select="$clr"/></xsl:call-template></xsl:attribute>
850			<xsl:if test="$type != 'none' and $type != 'single'">
851				<xsl:attribute name="style:diagonal-bl-tr-width"><xsl:call-template name="BorderLineWidth"><xsl:with-param name="aType" select="$type"/><xsl:with-param name="aSize" select="$pDiagon2/@宽度_C60F"/></xsl:call-template></xsl:attribute>
852			</xsl:if>
853		</xsl:if>
854		<!--兼容错误案例,案例将字符串'true'写为'ture'-->
855		<xsl:if test="$pUp/@是否加阴影_C612='true'or $pUp/@是否加阴影_C612='1'">
856			<xsl:if test="$pLeft/@是否加阴影_C612='true'or $pLeft/@是否加阴影_C612='1' or $pLeft/@是否加阴影_C612='ture'">
857				<xsl:attribute name="style:shadow">#808080 -0.18cm -0.18cm</xsl:attribute>
858			</xsl:if>
859		</xsl:if>
860		<xsl:if test="$pUp/@是否加阴影_C612='true'or $pUp/@是否加阴影_C612='1' or $pUp/@是否加阴影_C612='ture'">
861			<xsl:if test="$pRight/@是否加阴影_C612='true'or $pRight/@是否加阴影_C612='1' or $pRight/@是否加阴影_C612='ture'">
862				<xsl:attribute name="style:shadow">#808080 0.18cm -0.18cm</xsl:attribute>
863			</xsl:if>
864		</xsl:if>
865		<xsl:if test="$pDown/@是否加阴影_C612='true'or $pDown/@是否加阴影_C612='1' or $pDown/@是否加阴影_C612='ture'">
866			<xsl:if test="$pLeft/@是否加阴影_C612='true'or $pLeft/@是否加阴影_C612='1' or $pLeft/@是否加阴影_C612='ture'">
867				<xsl:attribute name="style:shadow">#808080 -0.18cm 0.18cm</xsl:attribute>
868			</xsl:if>
869		</xsl:if>
870		<xsl:if test="$pDown/@是否加阴影_C612='true'or $pDown/@是否加阴影_C612='1' or $pDown/@是否加阴影_C612='ture'">
871			<xsl:if test="$pRight/@是否加阴影_C612='true'or $pRight/@是否加阴影_C612='1' or $pRight/@是否加阴影_C612='ture'">
872				<xsl:attribute name="style:shadow">#808080 0.18cm 0.18cm</xsl:attribute>
873			</xsl:if>
874		</xsl:if>
875	</xsl:template>
876	<xsl:template name="CommonFillAttr">
877		<xsl:choose>
878			<xsl:when test="图:颜色_8004">
879				<xsl:attribute name="fo:background-color"><xsl:value-of select="string(图:颜色_8004)"/></xsl:attribute>
880			</xsl:when>
881			<xsl:when test="图:图片_8005">
882				<xsl:attribute name="fo:background-color"><xsl:value-of select="string('transprent')"/></xsl:attribute>
883			</xsl:when>
884		</xsl:choose>
885	</xsl:template>
886	<xsl:template name="CommonFillElement">
887		<xsl:choose>
888			<xsl:when test="图:图案_800A">
889				<style:background-image>
890					<xsl:for-each select="图:图案_800A">
891						<xsl:call-template name="BinaryData"/>
892					</xsl:for-each>
893				</style:background-image>
894			</xsl:when>
895			<xsl:when test="图:渐变_800D">
896				<xsl:element name="style:background-gradient">
897					<xsl:attribute name="draw:name">Background-Gradient</xsl:attribute>
898					<xsl:attribute name="draw:style"><xsl:choose><xsl:when test="图:渐变_800D/@种子类型_8010='linear'"><xsl:value-of select="'linear'"/></xsl:when><xsl:when test="图:渐变_800D/@种子类型_8010='radar'"><xsl:value-of select="'radial'"/></xsl:when><xsl:when test="图:渐变_800D/@种子类型_8010='oval'"><xsl:value-of select="'ellipsoid'"/></xsl:when><xsl:when test="图:渐变_800D/@种子类型_8010='square'"><xsl:value-of select="'square'"/></xsl:when><xsl:when test="图:渐变_800D/@种子类型_8010='rectangle'"><xsl:value-of select="'rectangular'"/></xsl:when></xsl:choose></xsl:attribute>
899					<xsl:attribute name="draw:start-color"><xsl:value-of select="图:渐变_800D/@起始色_800E"/></xsl:attribute>
900					<xsl:attribute name="draw:end-color"><xsl:value-of select="图:渐变_800D/@终止色_800F"/></xsl:attribute>
901					<xsl:attribute name="draw:start-intensity"><xsl:value-of select="concat(图:渐变_800D/@起始浓度_8011,'%')"/></xsl:attribute>
902					<xsl:attribute name="draw:end-intensity"><xsl:value-of select="concat(图:渐变_800D/@终止浓度_8012,'%')"/></xsl:attribute>
903					<xsl:attribute name="draw:angle"><xsl:value-of select="number(图:渐变_800D/@渐变方向_8013) * 10"/></xsl:attribute>
904					<xsl:attribute name="draw:border"><xsl:value-of select="concat(图:渐变_800D/@边界_8014,'%')"/></xsl:attribute>
905					<xsl:if test="图:渐变_800D/@种子X位置_8015">
906						<xsl:attribute name="draw:cx"><xsl:value-of select="concat(图:渐变_800D/@种子X位置_8015,'%')"/></xsl:attribute>
907					</xsl:if>
908					<xsl:if test="图:渐变_800D/@种子Y位置_8016">
909						<xsl:attribute name="draw:cy"><xsl:value-of select="concat(图:渐变_800D/@种子Y位置_8016,'%')"/></xsl:attribute>
910					</xsl:if>
911				</xsl:element>
912			</xsl:when>
913			<xsl:when test="图:图片_8005">
914				<xsl:element name="style:background-image">
915					<xsl:variable name="gid">
916						<xsl:value-of select="图:图片_8005/@图形引用_8007"/>
917					</xsl:variable>
918					<xsl:if test="图:图片_8005/@位置_8006 and not(图:图片_8005/@位置_8006='tile')">
919						<xsl:if test="图:图片_8005/@位置_8006='stretch'">
920							<xsl:attribute name="style:repeat">stretch</xsl:attribute>
921						</xsl:if>
922						<xsl:if test="图:图片_8005/@位置_8006='center'">
923							<xsl:attribute name="style:position"><xsl:value-of select="'center'"/></xsl:attribute>
924							<xsl:attribute name="style:repeat">no-repeat</xsl:attribute>
925						</xsl:if>
926					</xsl:if>
927					<!--<xsl:choose>
928						<xsl:when test="/uof:UOF_0000/对象:对象数据集_D700/对象:对象数据集_D701[@uof:标识符=$gid]/对象:数据_D702">
929							<xsl:element name="office:binary-data">
930								<xsl:value-of select="/uof:UOF_0000/对象:对象数据集_D700/对象:对象数据集_D701[@uof:标识符=$gid]/对象:数据_D702"/>
931							</xsl:element>
932						</xsl:when>
933						<xsl:otherwise>
934							<xsl:attribute name="xlink:href"><xsl:value-of select="/uof:UOF_0000/对象:对象数据集_D700/对象:对象数据集_D701[@uof:标识符=$gid]/对象:路径_D703"/></xsl:attribute>
935							<xsl:attribute name="xlink:type">simple</xsl:attribute>
936							<xsl:attribute name="xlink:actuate">onLoad</xsl:attribute>
937						</xsl:otherwise>
938					</xsl:choose>-->
939					<xsl:if test="图:图片_8005/@图形引用_8007">
940						<xsl:choose>
941							<xsl:when test="key('other-styles',图:图片_8005/@图形引用_8007)/对象:路径_D703">
942								<xsl:attribute name="xlink:href"><xsl:value-of select="concat('Pictures/',substring-after(key('other-styles',图:图片_8005/@图形引用_8007)/对象:路径_D703,'/'))"/></xsl:attribute>
943							</xsl:when>
944							<xsl:when test="key('other-styles',图:图片_8005/@图形引用_8007)/对象:数据_D702">
945								<xsl:element name="office:binary-data">
946									<xsl:value-of select="key('other-styles',图:图片_8005/@图形引用_8007)/对象:数据_D702"/>
947								</xsl:element>
948								<!--<xsl:call-template name="BinaryGraphic">
949									<xsl:with-param name="refGraphic" select="图:图片_8005/@图形引用_8007"/>
950								</xsl:call-template>-->
951							</xsl:when>
952						</xsl:choose>
953					</xsl:if>
954				</xsl:element>
955			</xsl:when>
956		</xsl:choose>
957	</xsl:template>
958	<xsl:template name="CommonFill">
959		<xsl:call-template name="CommonFillAttr"/>
960		<xsl:call-template name="CommonFillElement"/>
961	</xsl:template>
962	<!--<xsl:template name="FindMasterColorSetName">
963		<xsl:for-each select="..">
964			<xsl:choose>
965				<xsl:when test="name(.) = '演:幻灯片'">
966					<xsl:variable name="mastername" select="@演:母版引用"/>
967					<xsl:value-of select="key('SlideMaster',$mastername)/@演:配色方案引用"/>
968				</xsl:when>
969				<xsl:when test="name(.) = '演:母版'">
970					<xsl:value-of select="@演:配色方案引用"/>
971				</xsl:when>
972				<xsl:when test="name(.) = '演:主体'">
973					<xsl:value-of select="'none'"/>
974				</xsl:when>
975				<xsl:when test="name(.) = 'uof:UOF_0000'">
976					<xsl:value-of select="'none'"/>
977				</xsl:when>
978				<xsl:otherwise>
979					<xsl:call-template name="FindMasterColorSetName"/>
980				</xsl:otherwise>
981			</xsl:choose>
982		</xsl:for-each>
983	</xsl:template>-->
984	<xsl:template name="PresentationColorSet">
985		<xsl:if test="$document_type = 'presentation'">
986			<xsl:variable name="colorsetname">
987				<xsl:for-each select="key('rel_graphic_name',../../../@标识符_804B)">
988					<xsl:choose>
989						<xsl:when test="ancestor::演:幻灯片_6C0F">
990							<xsl:variable name="mastername" select="ancestor::演:幻灯片_6C0F/@母版引用_6B26"/>
991							<xsl:value-of select="key('SlideMaster',$mastername)/@配色方案引用_6C12"/>
992						</xsl:when>
993						<xsl:when test="ancestor::演:母版_6C0D">
994							<xsl:value-of select="ancestor::演:母版_6C0D/@配色方案引用_6C12"/>
995						</xsl:when>
996						<xsl:otherwise>none</xsl:otherwise>
997					</xsl:choose>
998					<!--<xsl:call-template name="FindMasterColorSetName"/>-->
999				</xsl:for-each>
1000			</xsl:variable>
1001			<xsl:variable name="colorset" select="/uof:UOF_0000/演:演示文稿文档_6C10/演:母版集_6C0C/演:母版_6C0D/演:配色方案集/演:配色方案[@演:标识符 = $colorsetname]"/>
1002			<xsl:if test="$colorset != ''">
1003				<xsl:choose>
1004					<xsl:when test="name(.) = '图:填充'">
1005						<xsl:attribute name="draw:fill">solid</xsl:attribute>
1006						<xsl:attribute name="draw:fill-color"><xsl:value-of select="$colorset/演:填充"/></xsl:attribute>
1007					</xsl:when>
1008					<xsl:when test="name(.) = '演:背景'">
1009						<xsl:attribute name="draw:fill">solid</xsl:attribute>
1010						<xsl:attribute name="draw:fill-color"><xsl:value-of select="$colorset/演:背景色"/></xsl:attribute>
1011					</xsl:when>
1012					<xsl:when test="name(.) = '表:填充'">
1013					</xsl:when>
1014				</xsl:choose>
1015			</xsl:if>
1016		</xsl:if>
1017	</xsl:template>
1018	<xsl:template name="FillGraph">
1019		<xsl:param name="par_DefaultColor" select="''"/>
1020		<xsl:choose>
1021			<xsl:when test="图:颜色_8004">
1022				<xsl:if test="图:颜色_8004 = 'auto'">
1023					<xsl:choose>
1024						<xsl:when test="$document_type = 'presentation'">
1025							<xsl:call-template name="PresentationColorSet"/>
1026						</xsl:when>
1027						<xsl:when test="$document_type = 'spreadsheet'">
1028							<xsl:if test="string($par_DefaultColor) != ''">
1029								<xsl:attribute name="draw:fill">solid</xsl:attribute>
1030								<xsl:attribute name="draw:fill-color" select="$par_DefaultColor"/>
1031							</xsl:if>
1032						</xsl:when>
1033						<xsl:otherwise>
1034							<xsl:attribute name="draw:fill">solid</xsl:attribute>
1035							<!--xsl:attribute name="draw:fill-color">#005998</xsl:attribute-->
1036						</xsl:otherwise>
1037					</xsl:choose>
1038				</xsl:if>
1039				<xsl:if test="图:颜色_8004 != 'auto'">
1040					<xsl:attribute name="draw:fill">solid</xsl:attribute>
1041					<xsl:attribute name="draw:fill-color"><xsl:value-of select="图:颜色_8004"/></xsl:attribute>
1042					<xsl:attribute name="fo:background-color"><xsl:value-of select="图:颜色_8004"/></xsl:attribute>
1043				</xsl:if>
1044			</xsl:when>
1045			<xsl:when test="图:图案_800A">
1046				<xsl:variable name="isprename">
1047					<xsl:variable name="prefix" select="substring(图:图案_800A/@类型_8008,1,4)"/>
1048					<xsl:choose>
1049						<xsl:when test="$prefix= 'ptn0'">true</xsl:when>
1050						<xsl:otherwise>
1051							<xsl:value-of select="false"/>
1052						</xsl:otherwise>
1053					</xsl:choose>
1054				</xsl:variable>
1055				<xsl:choose>
1056					<xsl:when test="$isprename='true'">
1057						<xsl:variable name="hatchname">
1058							<xsl:choose>
1059								<xsl:when test="图:图案_800A/@类型_8008 = 'ptn001' and 图:图案_800A/@前景色_800B = '#ff78bd'">ptn001_5f_ff78db</xsl:when>
1060								<xsl:when test="图:图案_800A/@类型_8008 = 'ptn001' and 图:图案_800A/@前景色_800B = '#0000ff'">Bitmape_20_2</xsl:when>
1061								<xsl:when test="图:图案_800A/@类型_8008 = 'ptn043' and 图:图案_800A/@前景色_800B = '#ffffff' and 图:图案_800A/@背景色_800C = '#ff0000'">ptn043_red</xsl:when>
1062								<xsl:when test="图:图案_800A/@类型_8008 = 'ptn044' and 图:图案_800A/@前景色_800B = '#ffffff' and 图:图案_800A/@背景色_800C = '#ff0000'">ptn044_red</xsl:when>
1063								<xsl:when test="substring('图:图案_800A/@类型_8008',1,4) = 'ptn0'">图:图案_800A/@类型_8008</xsl:when>
1064								<xsl:otherwise>
1065									<xsl:value-of select="图:图案_800A/@类型_8008"/>
1066								</xsl:otherwise>
1067							</xsl:choose>
1068						</xsl:variable>
1069						<xsl:attribute name="draw:fill-image-name"><xsl:value-of select="$hatchname"/></xsl:attribute>
1070						<xsl:attribute name="draw:fill">bitmap</xsl:attribute>
1071					</xsl:when>
1072					<xsl:otherwise>
1073						<!--<xsl:attribute name="draw:fill-hatch-name"><xsl:value-of select="图:图案_800A/@类型_8008"/></xsl:attribute>
1074						<xsl:attribute name="draw:fill">hatch</xsl:attribute>
1075						<xsl:attribute name="draw:fill-color"><xsl:value-of select="图:图案_800A/@背景色_800C"/></xsl:attribute>
1076						<xsl:attribute name="draw:fill-hatch-solid"><xsl:choose><xsl:when test="图:图案_800A/@背景色_800C">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>-->
1077						<xsl:attribute name="draw:fill-image-name"><xsl:value-of select="'ptnwrong'"/></xsl:attribute>
1078						<xsl:attribute name="draw:fill">bitmap</xsl:attribute>
1079					</xsl:otherwise>
1080				</xsl:choose>
1081			</xsl:when>
1082			<xsl:when test="图:渐变_800D">
1083				<xsl:attribute name="draw:fill">gradient</xsl:attribute>
1084				<xsl:attribute name="draw:fill-color"><xsl:value-of select="图:渐变_800D/@起始色_800E"/></xsl:attribute>
1085				<!--
1086				<xsl:choose>
1087					<xsl:when test="图:渐变_800D/@类型_8008">
1088						<xsl:attribute name="draw:fill-gradient-name"><xsl:value-of select="图:渐变_800D/@类型_8008"/></xsl:attribute>
1089					</xsl:when>
1090					<xsl:otherwise>
1091						<xsl:attribute name="draw:fill-gradient-name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
1092					</xsl:otherwise>
1093				</xsl:choose>
1094				-->
1095				<xsl:attribute name="draw:fill-gradient-name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
1096			</xsl:when>
1097			<xsl:when test="图:图片_8005">
1098				<xsl:attribute name="draw:fill">bitmap</xsl:attribute>
1099				<xsl:attribute name="draw:fill-image-name"><xsl:value-of select="图:图片_8005/@图形引用_8007"/></xsl:attribute>
1100				<xsl:if test="图:图片_8005/@位置_8006">
1101					<xsl:attribute name="style:repeat"><xsl:choose><xsl:when test="图:图片_8005/@位置_8006='center'">no-repeat</xsl:when><xsl:when test="图:图片_8005/@位置_8006='stretch'">stretch</xsl:when><xsl:otherwise>repeat</xsl:otherwise></xsl:choose></xsl:attribute>
1102				</xsl:if>
1103			</xsl:when>
1104			<xsl:otherwise>
1105				<xsl:attribute name="draw:fill">none</xsl:attribute>
1106			</xsl:otherwise>
1107		</xsl:choose>
1108	</xsl:template>
1109	<!--xsl:template name="IsPrecedeType">
1110		<xsl:param name="nodename"/>
1111		<xsl:param name="pos"/>
1112		<xsl:for-each select="preceding-sibling::node()[1]">
1113			<xsl:choose>
1114				<xsl:when test="self::node()[name(.) = $nodename] and 字:节属性/字:节类型 != 'continuous'">
1115					<xsl:value-of select="$pos+1"/>
1116				</xsl:when>
1117				<xsl:when test="self::*[name(.)='']">
1118					<xsl:call-template name="IsPrecedeType">
1119						<xsl:with-param name="nodename" select="$nodename"/>
1120						<xsl:with-param name="pos" select="$pos+1"/>
1121					</xsl:call-template>
1122				</xsl:when>
1123				<xsl:otherwise>
1124					<xsl:value-of select="number('0')"/>
1125				</xsl:otherwise>
1126			</xsl:choose>
1127		</xsl:for-each>
1128	</xsl:template-->
1129	<xsl:template name="NumberFormat">
1130		<xsl:param name="oo_format"/>
1131		<xsl:choose>
1132			<xsl:when test="$oo_format='upper-roman'">I</xsl:when>
1133			<xsl:when test="$oo_format='lower-roman'">i</xsl:when>
1134			<xsl:when test="$oo_format='upper-letter'">A</xsl:when>
1135			<xsl:when test="$oo_format='lower-letter'">a</xsl:when>
1136			<xsl:when test="$oo_format='decimal-full-width' or $oo_format='decimal-enclosed-fullstop'">1, 2, 3, ...</xsl:when>
1137			<xsl:when test="$oo_format='decimal-enclosed-circle'">①, ②, ③, ...</xsl:when>
1138			<xsl:when test="$oo_format='chinese-counting'">一, 二, 三, ...</xsl:when>
1139			<xsl:when test="$oo_format='chinese-legal-simplified'">壹, 贰, 叁, ...</xsl:when>
1140			<xsl:when test="$oo_format='ideograph-traditional'">甲, 乙, 丙, ...</xsl:when>
1141			<xsl:when test="$oo_format='ideograph-zodiac'">子, 丑, 寅, ...</xsl:when>
1142			<xsl:when test="$oo_format='ordinal'">1st</xsl:when>
1143			<xsl:when test="$oo_format='cardinal-text'">one</xsl:when>
1144			<xsl:when test="$oo_format='ordinal-text'">first</xsl:when>
1145			<xsl:when test="$oo_format='decimal-enclosed-circle-chinese'">①, ②, ③, ...</xsl:when>
1146			<xsl:when test="$oo_format='ideograph-enclosed-circle'">㈠, ㈡, ㈢, ...</xsl:when>
1147			<!--otherwise中包含decimal,decimal-enclosed-paren-->
1148			<xsl:otherwise>1</xsl:otherwise>
1149		</xsl:choose>
1150	</xsl:template>
1151	<xsl:template name="NumStyleElementAttribute">
1152		<xsl:param name="number-format-code"/>
1153		<xsl:if test="contains($number-format-code,'[hh]')">
1154			<xsl:attribute name="number:truncate-on-overflow">false</xsl:attribute>
1155		</xsl:if>
1156		<xsl:if test="starts-with($number-format-code,'[natnum1]')">
1157			<xsl:attribute name="number:transliteration-format">一</xsl:attribute>
1158			<xsl:attribute name="number:transliteration-style">short</xsl:attribute>
1159		</xsl:if>
1160		<xsl:if test="starts-with($number-format-code,'[natnum2]')">
1161			<xsl:attribute name="number:transliteration-format">壹</xsl:attribute>
1162			<xsl:attribute name="number:transliteration-style">short</xsl:attribute>
1163		</xsl:if>
1164		<xsl:if test="starts-with($number-format-code,'[natnum3]')">
1165			<xsl:attribute name="number:transliteration-format">1</xsl:attribute>
1166			<xsl:attribute name="number:transliteration-style">short</xsl:attribute>
1167		</xsl:if>
1168		<xsl:if test="starts-with($number-format-code,'[natnum4]')">
1169			<xsl:attribute name="number:transliteration-format">一</xsl:attribute>
1170			<xsl:attribute name="number:transliteration-style">long</xsl:attribute>
1171		</xsl:if>
1172		<xsl:if test="starts-with($number-format-code,'[natnum5]')">
1173			<xsl:attribute name="number:transliteration-format">壹</xsl:attribute>
1174			<xsl:attribute name="number:transliteration-style">long</xsl:attribute>
1175		</xsl:if>
1176		<xsl:if test="starts-with($number-format-code,'[natnum6]')">
1177			<xsl:attribute name="number:transliteration-format">1</xsl:attribute>
1178			<xsl:attribute name="number:transliteration-style">long</xsl:attribute>
1179		</xsl:if>
1180		<xsl:if test="starts-with($number-format-code,'[natnum7]')">
1181			<xsl:attribute name="number:transliteration-format">一</xsl:attribute>
1182			<xsl:attribute name="number:transliteration-style">medium</xsl:attribute>
1183		</xsl:if>
1184		<xsl:if test="starts-with($number-format-code,'[natnum8]')">
1185			<xsl:attribute name="number:transliteration-format">壹</xsl:attribute>
1186			<xsl:attribute name="number:transliteration-style">medium</xsl:attribute>
1187		</xsl:if>
1188		<xsl:if test="starts-with($number-format-code,'[natnum0]')">
1189			<xsl:attribute name="number:transliteration-format">1</xsl:attribute>
1190			<xsl:attribute name="number:transliteration-style">short</xsl:attribute>
1191		</xsl:if>
1192		<xsl:if test="starts-with($number-format-code,'[dbnum1]')">
1193			<xsl:attribute name="number:transliteration-format">一</xsl:attribute>
1194			<xsl:attribute name="number:transliteration-style">long</xsl:attribute>
1195			<xsl:attribute name="number:transliteration-language">zh</xsl:attribute>
1196			<xsl:attribute name="number:transliteration-country">CN</xsl:attribute>
1197		</xsl:if>
1198		<xsl:if test="starts-with($number-format-code,'[dbnum2]')">
1199			<xsl:attribute name="number:transliteration-format">壹</xsl:attribute>
1200			<xsl:attribute name="number:transliteration-style">long</xsl:attribute>
1201			<xsl:attribute name="number:transliteration-language">zh</xsl:attribute>
1202			<xsl:attribute name="number:transliteration-country">CN</xsl:attribute>
1203		</xsl:if>
1204		<xsl:if test="contains($number-format-code,'[$-804]')">
1205			<xsl:attribute name="number:transliteration-language">zh</xsl:attribute>
1206			<xsl:attribute name="number:transliteration-country">CN</xsl:attribute>
1207		</xsl:if>
1208		<xsl:if test="contains($number-format-code,'上午/下午')">
1209			<xsl:attribute name="number:language">zh</xsl:attribute>
1210			<xsl:attribute name="number:country">CN</xsl:attribute>
1211		</xsl:if>
1212		<xsl:if test="contains($number-format-code,'am/pm')">
1213			<xsl:attribute name="number:language">en</xsl:attribute>
1214			<xsl:attribute name="number:country">US</xsl:attribute>
1215		</xsl:if>
1216	</xsl:template>
1217	<xsl:template name="StyleMap">
1218		<xsl:param name="number-format-name"/>
1219		<xsl:param name="number-format-code"/>
1220		<xsl:param name="style-id"/>
1221		<xsl:param name="total-unit"/>
1222		<xsl:param name="current-unit"/>
1223		<xsl:if test="$current-unit &lt; ($total-unit -1)">
1224			<xsl:variable name="stylecondition">
1225				<xsl:choose>
1226					<xsl:when test="$total-unit &gt;= 3">
1227						<xsl:if test="$current-unit = 0">
1228							<xsl:value-of select="'value()&gt;0'"/>
1229						</xsl:if>
1230						<xsl:if test="$current-unit = 1">
1231							<xsl:value-of select="'value()&lt;0'"/>
1232						</xsl:if>
1233						<xsl:if test="$current-unit = 2">
1234							<xsl:value-of select="'value()=0'"/>
1235						</xsl:if>
1236					</xsl:when>
1237					<xsl:when test="$total-unit = 2">
1238						<xsl:value-of select="'value()&gt;=0'"/>
1239					</xsl:when>
1240				</xsl:choose>
1241			</xsl:variable>
1242			<style:map style:condition="{$stylecondition}" style:apply-style-name="{concat( $style-id, 'P',$current-unit)}"/>
1243			<xsl:call-template name="StyleMap">
1244				<xsl:with-param name="number-format-name" select="$number-format-name"/>
1245				<xsl:with-param name="number-format-code" select="substring-after($number-format-code,';')"/>
1246				<xsl:with-param name="style-id" select="$style-id"/>
1247				<xsl:with-param name="total-unit" select="$total-unit"/>
1248				<xsl:with-param name="current-unit" select="$current-unit +1"/>
1249			</xsl:call-template>
1250		</xsl:if>
1251	</xsl:template>
1252	<xsl:template name="DecimalIntExponentFraction">
1253		<xsl:param name="digits-part"/>
1254		<xsl:variable name="decimal-digits">
1255			<xsl:choose>
1256				<xsl:when test="contains($digits-part,'.')">
1257					<xsl:choose>
1258						<xsl:when test="contains($digits-part,' ') and not(contains($digits-part,'_'))">
1259							<xsl:value-of select="string-length(substring-before(substring-after($digits-part,'.'),' '))"/>
1260						</xsl:when>
1261						<xsl:when test="contains(substring-after($digits-part,'.'),',')">
1262							<xsl:value-of select="string-length(substring-before(substring-after($digits-part,'.'),','))"/>
1263						</xsl:when>
1264						<xsl:when test="contains($digits-part,'e')">
1265							<xsl:value-of select="string-length(substring-before(substring-after($digits-part,'.'),'e'))"/>
1266						</xsl:when>
1267						<xsl:when test="contains(substring-after($digits-part,'.'),'_')">
1268							<xsl:value-of select="string-length(substring-before(substring-after($digits-part,'.'),'_'))"/>
1269						</xsl:when>
1270						<xsl:otherwise>
1271							<xsl:choose>
1272								<xsl:when test="contains($digits-part,'%')">
1273									<xsl:value-of select="string-length(substring-after($digits-part,'.')) - 1"/>
1274								</xsl:when>
1275								<xsl:otherwise>
1276									<xsl:value-of select="string-length(substring-after($digits-part,'.'))"/>
1277								</xsl:otherwise>
1278							</xsl:choose>
1279						</xsl:otherwise>
1280					</xsl:choose>
1281				</xsl:when>
1282				<xsl:otherwise>0</xsl:otherwise>
1283			</xsl:choose>
1284		</xsl:variable>
1285		<xsl:variable name="decimal-replacement">
1286			<xsl:choose>
1287				<xsl:when test="contains($digits-part,'.')">
1288					<xsl:choose>
1289						<xsl:when test="contains($digits-part,' ') and contains(substring-before(substring-after($digits-part,'.'),' '),'#')">true</xsl:when>
1290						<xsl:when test="contains($digits-part,'e') and contains(substring-before(substring-after($digits-part,'.'),'e'),'#')">true</xsl:when>
1291						<xsl:otherwise>
1292							<xsl:choose>
1293								<xsl:when test="contains(substring-after($digits-part,'.'),'#')">true</xsl:when>
1294								<xsl:otherwise>false</xsl:otherwise>
1295							</xsl:choose>
1296						</xsl:otherwise>
1297					</xsl:choose>
1298				</xsl:when>
1299				<xsl:otherwise>false</xsl:otherwise>
1300			</xsl:choose>
1301		</xsl:variable>
1302		<xsl:variable name="integer-digits">
1303			<xsl:choose>
1304				<xsl:when test="contains($digits-part,'.')">
1305					<xsl:value-of select="string-length(substring-before($digits-part,'.')) - string-length(translate(substring-before($digits-part,'.'),'0',''))"/>
1306				</xsl:when>
1307				<xsl:otherwise>
1308					<xsl:value-of select="string-length($digits-part) - string-length(translate($digits-part,'0',''))"/>
1309				</xsl:otherwise>
1310			</xsl:choose>
1311		</xsl:variable>
1312		<xsl:variable name="factor-digits">
1313			<xsl:call-template name="DisplayFactorDigits">
1314				<xsl:with-param name="digits-part" select="$digits-part"/>
1315				<xsl:with-param name="count" select="0"/>
1316			</xsl:call-template>
1317		</xsl:variable>
1318		<xsl:variable name="grouping">
1319			<xsl:choose>
1320				<xsl:when test="(string-length($digits-part) - string-length(translate($digits-part,',',''))) &gt;$factor-digits">true</xsl:when>
1321				<xsl:otherwise>false</xsl:otherwise>
1322			</xsl:choose>
1323		</xsl:variable>
1324		<xsl:variable name="exponent-digits">
1325			<xsl:choose>
1326				<xsl:when test="contains($digits-part,'e')">
1327					<xsl:value-of select="string-length(substring-after($digits-part,'e')) -1"/>
1328				</xsl:when>
1329				<xsl:otherwise>0</xsl:otherwise>
1330			</xsl:choose>
1331		</xsl:variable>
1332		<xsl:variable name="numerator-digits">
1333			<xsl:choose>
1334				<xsl:when test="contains($digits-part,' ')">
1335					<xsl:value-of select="string-length(substring-before(substring-after($digits-part,' '),'/'))"/>
1336				</xsl:when>
1337				<xsl:otherwise>0</xsl:otherwise>
1338			</xsl:choose>
1339		</xsl:variable>
1340		<xsl:variable name="denominator-digits">
1341			<xsl:choose>
1342				<xsl:when test="contains($digits-part,' ')">
1343					<xsl:value-of select="string-length(substring-after(substring-after($digits-part,' '),'/'))"/>
1344				</xsl:when>
1345				<xsl:otherwise>0</xsl:otherwise>
1346			</xsl:choose>
1347		</xsl:variable>
1348		<xsl:variable name="number-type">
1349			<xsl:choose>
1350				<xsl:when test="$exponent-digits &gt;0">number:scientific-number</xsl:when>
1351				<xsl:when test="($numerator-digits &gt;0) or ($denominator-digits &gt;0)">number:fraction</xsl:when>
1352				<xsl:otherwise>number:number</xsl:otherwise>
1353			</xsl:choose>
1354		</xsl:variable>
1355		<xsl:element name="{$number-type}">
1356			<xsl:if test="$decimal-digits &gt;=0">
1357				<xsl:attribute name="number:decimal-places"><xsl:value-of select="$decimal-digits"/></xsl:attribute>
1358			</xsl:if>
1359			<xsl:if test="$decimal-replacement='true'">
1360				<xsl:attribute name="number:decimal-replacement"/>
1361			</xsl:if>
1362			<xsl:if test="$integer-digits &gt;=0">
1363				<xsl:attribute name="number:min-integer-digits"><xsl:value-of select="$integer-digits"/></xsl:attribute>
1364			</xsl:if>
1365			<xsl:if test="$grouping='true'">
1366				<xsl:attribute name="number:grouping"><xsl:value-of select="$grouping"/></xsl:attribute>
1367			</xsl:if>
1368			<xsl:if test="$factor-digits &gt;0">
1369				<xsl:attribute name="number:display-factor"><xsl:choose><xsl:when test="$factor-digits=1">1000</xsl:when><xsl:when test="$factor-digits=2">1000000</xsl:when><xsl:when test="$factor-digits=3">1000000000</xsl:when><xsl:when test="$factor-digits=4">1000000000000</xsl:when><xsl:when test="$factor-digits=5">1000000000000000</xsl:when><xsl:when test="$factor-digits=6">1000000000000000000</xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:attribute>
1370			</xsl:if>
1371			<xsl:if test="$exponent-digits &gt;0">
1372				<xsl:attribute name="number:min-exponent-digits"><xsl:value-of select="$exponent-digits"/></xsl:attribute>
1373			</xsl:if>
1374			<xsl:if test="$numerator-digits &gt;0">
1375				<xsl:attribute name="number:min-numerator-digits"><xsl:value-of select="$numerator-digits"/></xsl:attribute>
1376			</xsl:if>
1377			<xsl:if test="$denominator-digits &gt;0">
1378				<xsl:attribute name="number:min-denominator-digits"><xsl:value-of select="$denominator-digits"/></xsl:attribute>
1379			</xsl:if>
1380		</xsl:element>
1381	</xsl:template>
1382	<xsl:template name="DisplayFactorDigits">
1383		<xsl:param name="digits-part"/>
1384		<xsl:param name="count"/>
1385		<xsl:choose>
1386			<xsl:when test="not(substring($digits-part,string-length($digits-part),1) =',')">
1387				<xsl:value-of select="$count"/>
1388			</xsl:when>
1389			<xsl:otherwise>
1390				<xsl:call-template name="DisplayFactorDigits">
1391					<xsl:with-param name="digits-part" select="substring($digits-part,1,string-length($digits-part) -1)"/>
1392					<xsl:with-param name="count" select="$count + 1"/>
1393				</xsl:call-template>
1394			</xsl:otherwise>
1395		</xsl:choose>
1396	</xsl:template>
1397	<xsl:template name="GeneralNumberStyle">
1398		<xsl:param name="number-format-code"/>
1399		<xsl:param name="month-minute"/>
1400		<!--xsl:choose-->
1401		<xsl:if test="string-length($number-format-code) != 0">
1402			<xsl:choose>
1403				<xsl:when test="starts-with($number-format-code,'[')">
1404					<xsl:call-template name="ProcessSquareBracket">
1405						<xsl:with-param name="number-format-code" select="substring($number-format-code,2)"/>
1406					</xsl:call-template>
1407				</xsl:when>
1408				<xsl:when test="starts-with($number-format-code,'g/通用格式') or starts-with($number-format-code,'general')">
1409					<number:number number:min-integer-digits="1" number:decimal-places="6" number:decimal-replacement=""/>
1410				</xsl:when>
1411				<xsl:when test="starts-with($number-format-code,'&quot;')">
1412					<number:text>
1413						<xsl:value-of select="substring-before(substring-after($number-format-code,'&quot;'),'&quot;')"/>
1414					</number:text>
1415				</xsl:when>
1416				<xsl:when test="starts-with($number-format-code,'@')">
1417					<number:text-content/>
1418				</xsl:when>
1419				<xsl:when test="starts-with($number-format-code,'yyyy')">
1420					<number:year number:style="long"/>
1421				</xsl:when>
1422				<xsl:when test="starts-with($number-format-code,'yy')">
1423					<number:year number:style="short"/>
1424				</xsl:when>
1425				<xsl:when test="starts-with($number-format-code,'kkkkro')">
1426					<number:year number:style="rolong"/>
1427				</xsl:when>
1428				<xsl:when test="starts-with($number-format-code,'mmmm')">
1429					<number:month number:style="long" number:textual="true"/>
1430				</xsl:when>
1431				<xsl:when test="starts-with($number-format-code,'mmm')">
1432					<number:month number:style="rolong" number:textual="true"/>
1433				</xsl:when>
1434				<xsl:when test="starts-with($number-format-code,'mro')">
1435					<number:month number:style="rolong" number:textual="true"/>
1436				</xsl:when>
1437				<xsl:when test="starts-with($number-format-code,'mm')">
1438					<xsl:choose>
1439						<xsl:when test="contains($number-format-code,'s') or starts-with($month-minute,'min')">
1440							<number:minutes number:style="long"/>
1441						</xsl:when>
1442						<xsl:otherwise>
1443							<number:month number:style="long"/>
1444						</xsl:otherwise>
1445					</xsl:choose>
1446				</xsl:when>
1447				<xsl:when test="starts-with($number-format-code,'m')">
1448					<xsl:choose>
1449						<xsl:when test="contains($number-format-code,'s') or starts-with($month-minute,'min')">
1450							<number:minutes number:style="short"/>
1451						</xsl:when>
1452						<xsl:otherwise>
1453							<number:month number:style="short"/>
1454						</xsl:otherwise>
1455					</xsl:choose>
1456				</xsl:when>
1457				<xsl:when test="starts-with($number-format-code,'dro')">
1458					<number:day number:style="rolong"/>
1459				</xsl:when>
1460				<xsl:when test="starts-with($number-format-code,'dd')">
1461					<number:day number:style="long"/>
1462				</xsl:when>
1463				<xsl:when test="starts-with($number-format-code,'d')">
1464					<number:day number:style="short"/>
1465				</xsl:when>
1466				<xsl:when test="starts-with($number-format-code,'hh')">
1467					<number:hours number:style="long"/>
1468				</xsl:when>
1469				<xsl:when test="starts-with($number-format-code,'h')">
1470					<number:hours/>
1471				</xsl:when>
1472				<xsl:when test="starts-with($number-format-code,'ss.00')">
1473					<number:seconds number:style="long" number:decimal-places="2"/>
1474				</xsl:when>
1475				<xsl:when test="starts-with($number-format-code,'ss')">
1476					<number:seconds number:style="long"/>
1477				</xsl:when>
1478				<xsl:when test="starts-with($number-format-code,'s')">
1479					<number:seconds/>
1480				</xsl:when>
1481				<xsl:when test="starts-with($number-format-code,'am/pm') or starts-with($number-format-code,'上午/下午')">
1482					<number:am-pm/>
1483				</xsl:when>
1484				<xsl:when test="starts-with($number-format-code,'nnnn')">
1485					<number:day-of-week number:style="long"/>
1486				</xsl:when>
1487				<xsl:when test="starts-with($number-format-code,'nnn')">
1488					<number:day-of-week/>
1489				</xsl:when>
1490				<xsl:when test="starts-with($number-format-code,'qq')">
1491					<number:quarter number:style="long"/>
1492				</xsl:when>
1493				<xsl:when test="starts-with($number-format-code,'q')">
1494					<number:quarter/>
1495				</xsl:when>
1496				<xsl:when test="starts-with($number-format-code,'ww')">
1497					<number:week-of-year/>
1498				</xsl:when>
1499				<xsl:when test="starts-with($number-format-code,'cny')">
1500					<number:currency-symbol>CNY</number:currency-symbol>
1501				</xsl:when>
1502				<xsl:when test="starts-with($number-format-code,'ccc')">
1503					<number:currency-symbol>CCC</number:currency-symbol>
1504				</xsl:when>
1505				<xsl:when test="starts-with($number-format-code,'#') or starts-with($number-format-code,'0') or starts-with($number-format-code,'?')">
1506					<xsl:variable name="digits-part">
1507						<xsl:choose>
1508							<xsl:when test="contains($number-format-code,'&quot;')">
1509								<xsl:value-of select="substring-before($number-format-code,'&quot;')"/>
1510							</xsl:when>
1511							<xsl:when test="contains($number-format-code,')')">
1512								<xsl:value-of select="substring-before($number-format-code,')')"/>
1513							</xsl:when>
1514							<xsl:when test="contains($number-format-code,'_') and substring(substring-after($number-format-code,'_'),2,1) != 'e'">
1515								<xsl:value-of select="substring-before($number-format-code,'_')"/>
1516							</xsl:when>
1517							<xsl:otherwise>
1518								<xsl:value-of select="$number-format-code"/>
1519							</xsl:otherwise>
1520						</xsl:choose>
1521					</xsl:variable>
1522					<xsl:call-template name="DecimalIntExponentFraction">
1523						<xsl:with-param name="digits-part" select="$digits-part"/>
1524					</xsl:call-template>
1525				</xsl:when>
1526				<xsl:when test="starts-with($number-format-code,'_')">
1527					<xsl:if test="substring($number-format-code,2,1) != '¥'">
1528						<number:text>
1529							<xsl:value-of select="' '"/>
1530						</number:text>
1531					</xsl:if>
1532				</xsl:when>
1533				<xsl:otherwise>
1534					<xsl:if test="not(starts-with($number-format-code,'_')) and not(starts-with($number-format-code,'*'))">
1535						<number:text>
1536							<xsl:value-of select="substring($number-format-code,1,1)"/>
1537						</number:text>
1538					</xsl:if>
1539				</xsl:otherwise>
1540			</xsl:choose>
1541			<xsl:variable name="unit-length">
1542				<xsl:choose>
1543					<xsl:when test="starts-with($number-format-code,'[')">
1544						<xsl:value-of select="string-length(substring-before($number-format-code,']')) + 2"/>
1545					</xsl:when>
1546					<xsl:when test="starts-with($number-format-code,'g/通用格式')">
1547						<xsl:value-of select="7"/>
1548					</xsl:when>
1549					<xsl:when test="starts-with($number-format-code,'&quot;')">
1550						<xsl:value-of select="string-length(substring-before(substring-after($number-format-code,'&quot;'),'&quot;')) +3"/>
1551					</xsl:when>
1552					<xsl:when test="starts-with($number-format-code,'yyyy')">5</xsl:when>
1553					<xsl:when test="starts-with($number-format-code,'yy')">3</xsl:when>
1554					<xsl:when test="starts-with($number-format-code,'kkkkro')">7</xsl:when>
1555					<xsl:when test="starts-with($number-format-code,'mmmm')">5</xsl:when>
1556					<xsl:when test="starts-with($number-format-code,'mmm')">4</xsl:when>
1557					<xsl:when test="starts-with($number-format-code,'mm')">3</xsl:when>
1558					<xsl:when test="starts-with($number-format-code,'mro')">4</xsl:when>
1559					<xsl:when test="starts-with($number-format-code,'dd')">3</xsl:when>
1560					<xsl:when test="starts-with($number-format-code,'dro')">4</xsl:when>
1561					<xsl:when test="starts-with($number-format-code,'hh')">3</xsl:when>
1562					<xsl:when test="starts-with($number-format-code,'ss.00')">6</xsl:when>
1563					<xsl:when test="starts-with($number-format-code,'ss')">3</xsl:when>
1564					<xsl:when test="starts-with($number-format-code,'am/pm')">6</xsl:when>
1565					<xsl:when test="starts-with($number-format-code,'上午/下午')">6</xsl:when>
1566					<xsl:when test="starts-with($number-format-code,'nnnn')">5</xsl:when>
1567					<xsl:when test="starts-with($number-format-code,'nnn')">4</xsl:when>
1568					<xsl:when test="starts-with($number-format-code,'qqro')">5</xsl:when>
1569					<xsl:when test="starts-with($number-format-code,'qq')">3</xsl:when>
1570					<xsl:when test="starts-with($number-format-code,'ww')">3</xsl:when>
1571					<xsl:when test="starts-with($number-format-code,'cny')">4</xsl:when>
1572					<xsl:when test="starts-with($number-format-code,'ccc')">4</xsl:when>
1573					<xsl:when test="starts-with($number-format-code,'#') or starts-with($number-format-code,'0') or starts-with($number-format-code,'?')">
1574						<xsl:choose>
1575							<xsl:when test="contains($number-format-code,'&quot;')">
1576								<xsl:value-of select="string-length(substring-before($number-format-code,'&quot;')) + 1"/>
1577							</xsl:when>
1578							<xsl:when test="contains($number-format-code,'_') and substring(substring-after($number-format-code,'_'),2,1) != 'e'">
1579								<xsl:value-of select="string-length(substring-before($number-format-code,'_')) + 1"/>
1580							</xsl:when>
1581							<xsl:when test="contains($number-format-code,')')">
1582								<xsl:value-of select="string-length(substring-before($number-format-code,')')) + 1"/>
1583							</xsl:when>
1584							<xsl:when test="contains($number-format-code,'%')">
1585								<xsl:value-of select="string-length(substring-before($number-format-code,'%')) + 1"/>
1586							</xsl:when>
1587							<xsl:otherwise>
1588								<xsl:value-of select="string-length($number-format-code) + 1"/>
1589							</xsl:otherwise>
1590						</xsl:choose>
1591					</xsl:when>
1592					<xsl:when test="starts-with($number-format-code,'_')">
1593						<xsl:if test="substring($number-format-code,2,1) != '¥'">
1594							<xsl:value-of select="3"/>
1595						</xsl:if>
1596					</xsl:when>
1597					<xsl:when test="$number-format-code= 'general'">1</xsl:when>
1598					<xsl:otherwise>2</xsl:otherwise>
1599				</xsl:choose>
1600			</xsl:variable>
1601			<xsl:variable name="monthORminute">
1602				<xsl:choose>
1603					<xsl:when test="starts-with($number-format-code,'h') or starts-with($number-format-code,'[h') or $month-minute = 'minute'">
1604						<xsl:value-of select="'minute'"/>
1605					</xsl:when>
1606					<xsl:otherwise>
1607						<xsl:value-of select="'month'"/>
1608					</xsl:otherwise>
1609				</xsl:choose>
1610			</xsl:variable>
1611			<xsl:if test="$unit-length &gt; 1">
1612				<xsl:call-template name="GeneralNumberStyle">
1613					<xsl:with-param name="number-format-code" select="substring($number-format-code,$unit-length)"/>
1614					<xsl:with-param name="month-minute" select="string($monthORminute)"/>
1615				</xsl:call-template>
1616			</xsl:if>
1617		</xsl:if>
1618		<!--xsl:otherwise>
1619				<number:number number:min-integer-digits="1" number:decimal-places="6" number:decimal-replacement=""/>
1620			</xsl:otherwise>
1621		</xsl:choose-->
1622	</xsl:template>
1623	<xsl:template name="ProcessSquareBracket">
1624		<xsl:param name="number-format-code"/>
1625		<xsl:choose>
1626			<xsl:when test="starts-with($number-format-code,'$')">
1627				<xsl:choose>
1628					<xsl:when test="starts-with($number-format-code,'$¥-804')">
1629						<number:currency-symbol number:language="zh" number:country="CN">¥</number:currency-symbol>
1630					</xsl:when>
1631					<xsl:when test="starts-with($number-format-code,'$us$-804')">
1632						<number:currency-symbol number:language="zh" number:country="CN">US$</number:currency-symbol>
1633					</xsl:when>
1634					<xsl:when test="starts-with($number-format-code,'$$-409')">
1635						<number:currency-symbol number:language="en" number:country="US">$</number:currency-symbol>
1636					</xsl:when>
1637					<xsl:when test="starts-with($number-format-code,'$$-2c0a')">
1638						<number:currency-symbol number:language="es" number:country="AR">$</number:currency-symbol>
1639					</xsl:when>
1640					<xsl:when test="starts-with($number-format-code,'$$-c0c')">
1641						<number:currency-symbol number:language="fr" number:country="CA">$</number:currency-symbol>
1642					</xsl:when>
1643					<xsl:when test="starts-with($number-format-code,'$cny')">
1644						<number:currency-symbol>CNY</number:currency-symbol>
1645					</xsl:when>
1646					<xsl:when test="starts-with($number-format-code,'$afa')">
1647						<number:currency-symbol>AFA</number:currency-symbol>
1648					</xsl:when>
1649				</xsl:choose>
1650			</xsl:when>
1651			<xsl:otherwise>
1652				<xsl:choose>
1653					<xsl:when test="starts-with($number-format-code,'black') or starts-with($number-format-code,'黑色')">
1654						<style:text-properties fo:color="#000000"/>
1655					</xsl:when>
1656					<xsl:when test="starts-with($number-format-code,'blue') or starts-with($number-format-code,'蓝色')">
1657						<style:text-properties fo:color="#0000ff"/>
1658					</xsl:when>
1659					<xsl:when test="starts-with($number-format-code,'cyan') or starts-with($number-format-code,'蓝绿色')">
1660						<style:text-properties fo:color="#00ffff"/>
1661					</xsl:when>
1662					<xsl:when test="starts-with($number-format-code,'green') or starts-with($number-format-code,'绿色')">
1663						<style:text-properties fo:color="#00ff00"/>
1664					</xsl:when>
1665					<xsl:when test="starts-with($number-format-code,'magenta') or starts-with($number-format-code,'洋红色')">
1666						<style:text-properties fo:color="#ff00ff"/>
1667					</xsl:when>
1668					<xsl:when test="starts-with($number-format-code,'red') or starts-with($number-format-code,'红色')">
1669						<style:text-properties fo:color="#ff0000"/>
1670					</xsl:when>
1671					<xsl:when test="starts-with($number-format-code,'white') or starts-with($number-format-code,'白色')">
1672						<style:text-properties fo:color="#ffffff"/>
1673					</xsl:when>
1674					<xsl:when test="starts-with($number-format-code,'yellow') or starts-with($number-format-code,'黄色')">
1675						<style:text-properties fo:color="#ffff00"/>
1676					</xsl:when>
1677					<xsl:when test="starts-with($number-format-code,'hh')">
1678						<number:hours number:style="long"/>
1679					</xsl:when>
1680					<xsl:when test="starts-with($number-format-code,'h')">
1681						<number:hours/>
1682					</xsl:when>
1683				</xsl:choose>
1684			</xsl:otherwise>
1685		</xsl:choose>
1686	</xsl:template>
1687	<xsl:template name="ProcessNumberStyle">
1688		<xsl:param name="number-format-name"/>
1689		<xsl:param name="number-format-code"/>
1690		<xsl:param name="style-id"/>
1691		<xsl:param name="total-unit"/>
1692		<xsl:param name="current-unit"/>
1693		<xsl:choose>
1694			<xsl:when test="$current-unit &lt; ($total-unit -1)">
1695				<xsl:element name="{concat('number:',$number-format-name,'-style')}">
1696					<xsl:attribute name="style:name"><xsl:value-of select="concat( $style-id, 'P',$current-unit)"/></xsl:attribute>
1697					<xsl:attribute name="style:volatile">true</xsl:attribute>
1698					<xsl:call-template name="GeneralNumberStyle">
1699						<xsl:with-param name="number-format-code" select="substring-before($number-format-code,';')"/>
1700					</xsl:call-template>
1701				</xsl:element>
1702				<xsl:call-template name="ProcessNumberStyle">
1703					<xsl:with-param name="number-format-name" select="$number-format-name"/>
1704					<xsl:with-param name="number-format-code" select="substring-after($number-format-code,';')"/>
1705					<xsl:with-param name="style-id" select="$style-id"/>
1706					<xsl:with-param name="total-unit" select="$total-unit"/>
1707					<xsl:with-param name="current-unit" select="$current-unit + 1"/>
1708				</xsl:call-template>
1709			</xsl:when>
1710			<xsl:otherwise>
1711				<xsl:element name="{concat('number:',$number-format-name,'-style')}">
1712					<xsl:attribute name="style:name"><xsl:value-of select="$style-id"/></xsl:attribute>
1713					<xsl:call-template name="NumStyleElementAttribute">
1714						<xsl:with-param name="number-format-code" select="string($number-format-code)"/>
1715					</xsl:call-template>
1716					<xsl:call-template name="GeneralNumberStyle">
1717						<xsl:with-param name="number-format-code" select="string($number-format-code)"/>
1718					</xsl:call-template>
1719					<xsl:call-template name="StyleMap">
1720						<xsl:with-param name="number-format-name" select="@分类名称_E740"/>
1721						<xsl:with-param name="number-format-code" select="@格式码_E73F"/>
1722						<xsl:with-param name="style-id" select="$style-id"/>
1723						<xsl:with-param name="total-unit" select="$total-unit"/>
1724						<xsl:with-param name="current-unit" select="0"/>
1725					</xsl:call-template>
1726				</xsl:element>
1727			</xsl:otherwise>
1728		</xsl:choose>
1729	</xsl:template>
1730	<xsl:template name="NumberStyle">
1731		<xsl:param name="style-id"/>
1732		<xsl:variable name="unit-count" select="string-length(@格式码_E73F) - string-length(translate(@格式码_E73F,';','')) + 1"/>
1733		<xsl:variable name="number-format-name">
1734			<xsl:choose>
1735				<xsl:when test="@分类名称_E740='number'">number</xsl:when>
1736				<xsl:when test="@分类名称_E740='currency' or @分类名称_E740='accounting'">currency</xsl:when>
1737				<xsl:when test="@分类名称_E740='date'">date</xsl:when>
1738				<xsl:when test="@分类名称_E740='time'">time</xsl:when>
1739				<xsl:when test="@分类名称_E740='percentage'">percentage</xsl:when>
1740				<xsl:when test="@分类名称_E740='text'">text</xsl:when>
1741				<xsl:otherwise>
1742					<xsl:value-of select="'number'"/>
1743				</xsl:otherwise>
1744			</xsl:choose>
1745		</xsl:variable>
1746		<xsl:call-template name="ProcessNumberStyle">
1747			<xsl:with-param name="number-format-name" select="$number-format-name"/>
1748			<xsl:with-param name="number-format-code" select="fn:lower-case(@格式码_E73F)"/>
1749			<xsl:with-param name="style-id" select="concat($style-id,'F')"/>
1750			<xsl:with-param name="total-unit" select="$unit-count"/>
1751			<xsl:with-param name="current-unit" select="0"/>
1752		</xsl:call-template>
1753	</xsl:template>
1754	<xsl:template name="character-to-number">
1755		<xsl:param name="character"/>
1756		<xsl:choose>
1757			<xsl:when test="$character = 'A'">1</xsl:when>
1758			<xsl:when test="$character = 'B'">2</xsl:when>
1759			<xsl:when test="$character = 'C'">3</xsl:when>
1760			<xsl:when test="$character = 'D'">4</xsl:when>
1761			<xsl:when test="$character = 'E'">5</xsl:when>
1762			<xsl:when test="$character = 'F'">6</xsl:when>
1763			<xsl:when test="$character = 'G'">7</xsl:when>
1764			<xsl:when test="$character = 'H'">8</xsl:when>
1765			<xsl:when test="$character = 'I'">9</xsl:when>
1766			<xsl:when test="$character = 'J'">10</xsl:when>
1767			<xsl:when test="$character = 'K'">11</xsl:when>
1768			<xsl:when test="$character = 'L'">12</xsl:when>
1769			<xsl:when test="$character = 'M'">13</xsl:when>
1770			<xsl:when test="$character = 'N'">14</xsl:when>
1771			<xsl:when test="$character = 'O'">15</xsl:when>
1772			<xsl:when test="$character = 'P'">16</xsl:when>
1773			<xsl:when test="$character = 'Q'">17</xsl:when>
1774			<xsl:when test="$character = 'R'">18</xsl:when>
1775			<xsl:when test="$character = 'S'">19</xsl:when>
1776			<xsl:when test="$character = 'T'">20</xsl:when>
1777			<xsl:when test="$character = 'U'">21</xsl:when>
1778			<xsl:when test="$character = 'V'">22</xsl:when>
1779			<xsl:when test="$character = 'W'">23</xsl:when>
1780			<xsl:when test="$character = 'X'">24</xsl:when>
1781			<xsl:when test="$character = 'Y'">25</xsl:when>
1782			<xsl:when test="$character = 'Z'">26</xsl:when>
1783			<xsl:otherwise/>
1784		</xsl:choose>
1785	</xsl:template>
1786	<xsl:template name="number-to-character">
1787		<xsl:param name="number"/>
1788		<xsl:choose>
1789			<xsl:when test="$number = 0"/>
1790			<xsl:when test="$number = 1">A</xsl:when>
1791			<xsl:when test="$number = 2">B</xsl:when>
1792			<xsl:when test="$number = 3">C</xsl:when>
1793			<xsl:when test="$number = 4">D</xsl:when>
1794			<xsl:when test="$number = 5">E</xsl:when>
1795			<xsl:when test="$number = 6">F</xsl:when>
1796			<xsl:when test="$number = 7">G</xsl:when>
1797			<xsl:when test="$number = 8">H</xsl:when>
1798			<xsl:when test="$number = 9">I</xsl:when>
1799			<xsl:when test="$number = 10">J</xsl:when>
1800			<xsl:when test="$number = 11">K</xsl:when>
1801			<xsl:when test="$number = 12">L</xsl:when>
1802			<xsl:when test="$number = 13">M</xsl:when>
1803			<xsl:when test="$number = 14">N</xsl:when>
1804			<xsl:when test="$number = 15">O</xsl:when>
1805			<xsl:when test="$number = 16">P</xsl:when>
1806			<xsl:when test="$number = 17">Q</xsl:when>
1807			<xsl:when test="$number = 18">R</xsl:when>
1808			<xsl:when test="$number = 19">S</xsl:when>
1809			<xsl:when test="$number = 20">T</xsl:when>
1810			<xsl:when test="$number = 21">U</xsl:when>
1811			<xsl:when test="$number = 22">V</xsl:when>
1812			<xsl:when test="$number = 23">W</xsl:when>
1813			<xsl:when test="$number = 24">X</xsl:when>
1814			<xsl:when test="$number = 25">Y</xsl:when>
1815			<xsl:when test="$number = 26">Z</xsl:when>
1816			<xsl:otherwise/>
1817		</xsl:choose>
1818	</xsl:template>
1819	<xsl:template match="字:字体_4128" mode="sentence">
1820		<xsl:if test="@西文字体引用_4129">
1821			<xsl:variable name="westfontref" select="@西文字体引用_4129"/>
1822			<xsl:variable name="sdwestfontref">
1823				<xsl:choose>
1824					<xsl:when test="/uof:UOF_0000/式样:式样集_990B/式样:字体集_990C/式样:字体声明_990D[@标识符_9902 = $westfontref]">
1825						<xsl:value-of select="/uof:UOF_0000/式样:式样集_990B/式样:字体集_990C/式样:字体声明_990D[@标识符_9902 = $westfontref]/@名称_9903"/>
1826					</xsl:when>
1827					<xsl:otherwise>
1828						<xsl:value-of select="$westfontref"/>
1829					</xsl:otherwise>
1830				</xsl:choose>
1831			</xsl:variable>
1832			<xsl:variable name="westFamilyref">
1833				<xsl:choose>
1834					<xsl:when test="/uof:UOF_0000/式样:式样集_990B/式样:字体集_990C/式样:字体声明_990D[@标识符_9902 = $westfontref]">
1835						<xsl:value-of select="/uof:UOF_0000/式样:式样集_990B/式样:字体集_990C/式样:字体声明_990D[@标识符_9902 = $westfontref]/式样:字体族_9900"/>
1836					</xsl:when>
1837					<xsl:otherwise>
1838						<xsl:value-of select="$westfontref"/>
1839					</xsl:otherwise>
1840				</xsl:choose>
1841			</xsl:variable>
1842			<xsl:choose>
1843				<xsl:when test="$document_type = 'presentation' or ancestor::图表:图表_E837">
1844					<xsl:attribute name="style:font-name" select="$sdwestfontref"/>
1845					<!--演 中用字体名称;字、表用字体ID,此时不用再指定font-family-->
1846					<xsl:attribute name="fo:font-family" select="$sdwestfontref"/>
1847				</xsl:when>
1848				<xsl:otherwise>
1849					<xsl:attribute name="style:font-name" select="$westfontref"/>
1850				</xsl:otherwise>
1851			</xsl:choose>
1852		</xsl:if>
1853		<xsl:if test="@中文字体引用_412A">
1854			<xsl:variable name="cjkfontref" select="@中文字体引用_412A"/>
1855			<xsl:variable name="sdcjkfontref">
1856				<xsl:choose>
1857					<xsl:when test="/uof:UOF_0000/式样:式样集_990B/式样:字体集_990C/式样:字体声明_990D[@标识符_9902 = $cjkfontref]">
1858						<xsl:value-of select="/uof:UOF_0000/式样:式样集_990B/式样:字体集_990C/式样:字体声明_990D[@标识符_9902 = $cjkfontref]/@名称_9903"/>
1859					</xsl:when>
1860					<xsl:otherwise>
1861						<xsl:value-of select="$cjkfontref"/>
1862					</xsl:otherwise>
1863				</xsl:choose>
1864			</xsl:variable>
1865			<xsl:variable name="cjkFamilyref">
1866				<xsl:choose>
1867					<xsl:when test="/uof:UOF_0000/式样:式样集_990B/式样:字体集_990C/式样:字体声明_990D[@标识符_9902 = $cjkfontref]">
1868						<xsl:value-of select="/uof:UOF_0000/式样:式样集_990B/式样:字体集_990C/式样:字体声明_990D[@标识符_9902 = $cjkfontref]/式样:字体族_9900"/>
1869					</xsl:when>
1870					<xsl:otherwise>
1871						<xsl:value-of select="$cjkfontref"/>
1872					</xsl:otherwise>
1873				</xsl:choose>
1874			</xsl:variable>
1875			<xsl:choose>
1876				<xsl:when test="$document_type = 'presentation' or ancestor::图表:图表_E837">
1877					<xsl:attribute name="style:font-name-asian" select="$sdcjkfontref"/>
1878					<xsl:attribute name="style:font-family-asian" select="$sdcjkfontref"/>
1879				</xsl:when>
1880				<xsl:otherwise>
1881					<xsl:attribute name="style:font-name-asian" select="$cjkfontref"/>
1882				</xsl:otherwise>
1883			</xsl:choose>
1884		</xsl:if>
1885		<xsl:if test="not(@西文字体引用_4129) and not(@中文字体引用_412A) and (@特殊字体引用_412B)">
1886			<xsl:variable name="fontref" select="@特殊字体引用_412B"/>
1887			<xsl:variable name="sdfontref">
1888				<xsl:choose>
1889					<xsl:when test="/uof:UOF_0000/式样:式样集_990B/式样:字体集_990C/式样:字体声明_990D[@标识符_9902 = $fontref]">
1890						<xsl:value-of select="/uof:UOF_0000/式样:式样集_990B/式样:字体集_990C/式样:字体声明_990D[@标识符_9902 = $fontref]/@名称_9903"/>
1891					</xsl:when>
1892					<xsl:otherwise>
1893						<xsl:value-of select="$fontref"/>
1894					</xsl:otherwise>
1895				</xsl:choose>
1896			</xsl:variable>
1897			<xsl:variable name="Familyref">
1898				<xsl:choose>
1899					<xsl:when test="/uof:UOF_0000/式样:式样集_990B/式样:字体集_990C/式样:字体声明_990D[@标识符_9902 = $fontref]">
1900						<xsl:value-of select="/uof:UOF_0000/式样:式样集_990B/式样:字体集_990C/式样:字体声明_990D[@标识符_9902 = $fontref]/式样:字体族_9900"/>
1901					</xsl:when>
1902					<xsl:otherwise>
1903						<xsl:value-of select="$fontref"/>
1904					</xsl:otherwise>
1905				</xsl:choose>
1906			</xsl:variable>
1907			<xsl:choose>
1908				<xsl:when test="$document_type = 'presentation'">
1909					<xsl:attribute name="style:font-name" select="$sdfontref"/>
1910					<xsl:attribute name="style:font-name-asian" select="$sdfontref"/>
1911					<xsl:attribute name="fo:font-family" select="$sdfontref"/>
1912				</xsl:when>
1913				<xsl:otherwise>
1914					<xsl:attribute name="style:font-name" select="$fontref"/>
1915					<xsl:attribute name="style:font-name-asian" select="$fontref"/>
1916				</xsl:otherwise>
1917			</xsl:choose>
1918		</xsl:if>
1919		<xsl:choose>
1920			<xsl:when test="@字号_412D">
1921				<xsl:attribute name="fo:font-size"><xsl:value-of select="concat(@字号_412D,'pt')"/></xsl:attribute>
1922				<xsl:attribute name="style:font-size-asian"><xsl:value-of select="concat(@字号_412D,'pt')"/></xsl:attribute>
1923				<xsl:attribute name="style:font-size-complex"><xsl:value-of select="concat(@字号_412D,'pt')"/></xsl:attribute>
1924			</xsl:when>
1925			<xsl:when test="@相对字号_412E">
1926				<xsl:attribute name="fo:font-size"><xsl:value-of select="concat(@相对字号_412E,'%')"/></xsl:attribute>
1927			</xsl:when>
1928		</xsl:choose>
1929		<xsl:if test="@颜色_412F">
1930			<xsl:attribute name="fo:color"><xsl:value-of select="@颜色_412F"/></xsl:attribute>
1931		</xsl:if>
1932		<xsl:if test="@是否西文绘制_412C">
1933			<xsl:attribute name="style:western-content"><xsl:value-of select="@是否西文绘制_412C"/></xsl:attribute>
1934		</xsl:if>
1935	</xsl:template>
1936	<xsl:template match="字:是否粗体_4130" mode="sentence">
1937		<xsl:if test="string(.)='true' or string(.)='1'">
1938			<xsl:attribute name="fo:font-weight">bold</xsl:attribute>
1939			<xsl:attribute name="style:font-weight-asian">bold</xsl:attribute>
1940			<xsl:attribute name="style:font-weight-complex">bold</xsl:attribute>
1941		</xsl:if>
1942		<xsl:if test="string(.)='false'or string(.)='0'">
1943			<xsl:attribute name="fo:font-weight">normal</xsl:attribute>
1944			<xsl:attribute name="style:font-weight-asian">normal</xsl:attribute>
1945			<xsl:attribute name="style:font-weight-complex">normal</xsl:attribute>
1946		</xsl:if>
1947	</xsl:template>
1948	<xsl:template match="字:是否斜体_4131" mode="sentence">
1949		<xsl:if test="string(.)='true' or string(.)='1'">
1950			<xsl:attribute name="fo:font-style">italic</xsl:attribute>
1951			<xsl:attribute name="fo:font-style-asian">italic</xsl:attribute>
1952			<xsl:attribute name="style:font-style-asian">italic</xsl:attribute>
1953			<xsl:attribute name="style:font-style-complex">italic</xsl:attribute>
1954		</xsl:if>
1955		<xsl:if test="string(.)='false' or string(.)='0'">
1956			<xsl:attribute name="fo:font-style">normal</xsl:attribute>
1957			<xsl:attribute name="fo:font-style-asian">normal</xsl:attribute>
1958			<xsl:attribute name="style:font-style-asian">normal</xsl:attribute>
1959			<xsl:attribute name="style:font-style-complex">normal</xsl:attribute>
1960		</xsl:if>
1961	</xsl:template>
1962	<xsl:template match="字:突出显示颜色_4132" mode="sentence">
1963		<xsl:variable name="color">
1964			<xsl:choose>
1965				<xsl:when test="string(.)='auto'">transparent</xsl:when>
1966				<xsl:otherwise>
1967					<xsl:value-of select="."/>
1968				</xsl:otherwise>
1969			</xsl:choose>
1970		</xsl:variable>
1971		<xsl:attribute name="fo:background-color"><xsl:value-of select="$color"/></xsl:attribute>
1972	</xsl:template>
1973	<xsl:template match="字:边框_4133" mode="sentence">
1974	</xsl:template>
1975	<xsl:template match="字:填充_4134" mode="sentence">
1976		<xsl:call-template name="CommonFillAttr"/>
1977	</xsl:template>
1978	<xsl:template match="字:删除线_4135" mode="sentence">
1979		<xsl:choose>
1980			<xsl:when test="string(.) = 'single' ">
1981				<xsl:attribute name="style:text-line-through-style">solid</xsl:attribute>
1982			</xsl:when>
1983			<xsl:when test="string(.) = 'double' ">
1984				<xsl:attribute name="style:text-line-through-style">solid</xsl:attribute>
1985				<xsl:attribute name="style:text-line-through-type">double</xsl:attribute>
1986			</xsl:when>
1987			<xsl:when test="string(.) = 'bold' ">
1988				<xsl:attribute name="style:text-line-through-width">bold</xsl:attribute>
1989			</xsl:when>
1990			<xsl:when test="string(.) = 'xl' ">
1991				<xsl:attribute name="style:text-line-through-text">X</xsl:attribute>
1992			</xsl:when>
1993			<xsl:when test="string(.) = '/l' ">
1994				<xsl:attribute name="style:text-line-through-text">/</xsl:attribute>
1995			</xsl:when>
1996			<xsl:otherwise>
1997				<xsl:attribute name="style:text-crossing-out">none</xsl:attribute>
1998			</xsl:otherwise>
1999		</xsl:choose>
2000	</xsl:template>
2001	<xsl:template match="字:下划线_4136" mode="sentence">
2002		<xsl:choose>
2003			<xsl:when test=" @线型_4137 and @线型_4137 != 'none'">
2004				<xsl:attribute name="style:text-underline-type"><xsl:choose><xsl:when test="@线型_4137 = 'single'">single</xsl:when><xsl:when test="@线型_4137 = 'double'">double</xsl:when><xsl:otherwise>single</xsl:otherwise><!--other types of 线型 like thick-thin,thin-thick and thick-between-thin--></xsl:choose></xsl:attribute>
2005			</xsl:when>
2006			<!--xsl:when test=" @线型_4137 and @线型_4137 != 'none'">
2007				<xsl:attribute name="style:text-underline-type">
2008					<xsl:choose>
2009						<xsl:when test="@线型_4137 = 'single'">single</xsl:when>
2010						<xsl:when test="@线型_4137 = 'double'">double</xsl:when>
2011						<xsl:otherwise>solid</xsl:otherwise>
2012					</xsl:choose>
2013				</xsl:attribute>
2014			</xsl:when-->
2015		</xsl:choose>
2016		<xsl:if test="@虚实_4138 and @线型_4137 != 'none'">
2017			<xsl:attribute name="style:text-underline-style"><xsl:choose><xsl:when test="@虚实_4138 = 'solid'">solid</xsl:when><xsl:when test="@虚实_4138 = 'dash'">dash</xsl:when><xsl:when test="@虚实_4138 = 'dash-dot'">dot-dash</xsl:when><xsl:when test="@虚实_4138 = 'long-dash'">long-dash</xsl:when><xsl:when test="@虚实_4138 = 'dash-dot-dot'">dot-dot-dash</xsl:when><xsl:when test="@虚实_4138 = 'round-dot'">dotted</xsl:when><xsl:when test="@虚实_4138 = 'square-dot'">dotted</xsl:when><xsl:when test="@虚实_4138 = 'long-dash-dot'">dot-dash</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
2018		</xsl:if>
2019		<xsl:if test="@线型_4137 != 'none' and @线型_4137">
2020			<xsl:attribute name="style:text-underline-width">auto</xsl:attribute>
2021		</xsl:if>
2022		<xsl:choose>
2023			<xsl:when test="@颜色_412F">
2024				<xsl:variable name="color">
2025					<xsl:choose>
2026						<xsl:when test="@颜色_412F='auto'">font-color</xsl:when>
2027						<xsl:otherwise>
2028							<xsl:value-of select="@颜色_412F"/>
2029						</xsl:otherwise>
2030					</xsl:choose>
2031				</xsl:variable>
2032				<xsl:attribute name="style:text-underline-color"><xsl:value-of select="$color"/></xsl:attribute>
2033			</xsl:when>
2034			<xsl:otherwise>
2035				<xsl:attribute name="style:text-underline-color">font-color</xsl:attribute>
2036			</xsl:otherwise>
2037		</xsl:choose>
2038		<xsl:choose>
2039			<xsl:when test="string(@是否字下划线_4139) = 'true'">
2040				<xsl:attribute name="style:text-line-through-mode">skip-white-space</xsl:attribute>
2041			</xsl:when>
2042		</xsl:choose>
2043	</xsl:template>
2044	<xsl:template match="字:着重号_413A" mode="sentence">
2045		<xsl:choose>
2046			<xsl:when test="@类型_413B='none'">
2047				<xsl:attribute name="style:text-emphasize">none</xsl:attribute>
2048			</xsl:when>
2049			<xsl:when test="@类型_413B='dot'">
2050				<xsl:choose>
2051					<xsl:when test="@是否字着重号_413C='true'">
2052						<xsl:attribute name="style:text-emphasize">dot below spaceex</xsl:attribute>
2053					</xsl:when>
2054					<xsl:when test="@是否字着重号_413C='false'">
2055						<xsl:attribute name="style:text-emphasize">dot below spacein</xsl:attribute>
2056					</xsl:when>
2057					<xsl:otherwise>
2058						<xsl:attribute name="style:text-emphasize">dot below</xsl:attribute>
2059					</xsl:otherwise>
2060				</xsl:choose>
2061			</xsl:when>
2062		</xsl:choose>
2063	</xsl:template>
2064	<xsl:template match="字:是否隐藏文字_413D" mode="sentence">
2065		<xsl:if test="string(.) = 'true'">
2066			<xsl:attribute name="text:display">none</xsl:attribute>
2067		</xsl:if>
2068	</xsl:template>
2069	<xsl:template match="字:是否空心_413E" mode="sentence">
2070		<xsl:attribute name="style:text-outline"><xsl:value-of select="."/></xsl:attribute>
2071	</xsl:template>
2072	<xsl:template match="字:浮雕_413F" mode="sentence">
2073		<xsl:attribute name="style:font-relief"><xsl:choose><xsl:when test="string(.)='engrave'">engraved</xsl:when><xsl:when test="string(.)='emboss'">embossed</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
2074	</xsl:template>
2075	<xsl:template match="字:是否阴影_4140" mode="sentence">
2076		<xsl:if test="string(.)!='false'">
2077			<xsl:attribute name="fo:text-shadow">1pt 1pt</xsl:attribute>
2078		</xsl:if>
2079	</xsl:template>
2080	<xsl:template match="字:醒目字体类型_4141" mode="sentence">
2081		<xsl:choose>
2082			<xsl:when test="string(.)='small-caps'">
2083				<xsl:attribute name="fo:font-variant">small-caps</xsl:attribute>
2084			</xsl:when>
2085			<xsl:when test="string(.)='none'">
2086				<xsl:attribute name="fo:font-variant">normal</xsl:attribute>
2087				<xsl:attribute name="fo:text-transform">none</xsl:attribute>
2088			</xsl:when>
2089			<xsl:otherwise>
2090				<xsl:attribute name="fo:text-transform"><xsl:choose><xsl:when test="string(.)='uppercase'">uppercase</xsl:when><xsl:when test="string(.)='lowercase'">lowercase</xsl:when><xsl:when test="string(.)='capital'">capitalize</xsl:when></xsl:choose></xsl:attribute>
2091			</xsl:otherwise>
2092		</xsl:choose>
2093	</xsl:template>
2094	<xsl:template name="UOFGetCharSize">
2095		<xsl:choose>
2096			<xsl:when test="字:字体_4128/@字号_412D">
2097				<xsl:value-of select="字:字体_4128/@字号_412D"/>
2098			</xsl:when>
2099			<xsl:when test="@式样引用_419C!=''">
2100				<xsl:for-each select="key('uof-text-styles',@式样引用_419C)">
2101					<xsl:call-template name="UOFGetCharSize"/>
2102				</xsl:for-each>
2103			</xsl:when>
2104			<xsl:when test="@基式样引用_4104!=''">
2105				<xsl:for-each select="key('uof-text-styles',@基式样引用_4104)">
2106					<xsl:call-template name="UOFGetCharSize"/>
2107				</xsl:for-each>
2108			</xsl:when>
2109			<xsl:otherwise>10.5</xsl:otherwise>
2110		</xsl:choose>
2111	</xsl:template>
2112	<xsl:template match="字:位置_4142" mode="sentence">
2113		<xsl:variable name="size">
2114			<xsl:for-each select="..">
2115				<xsl:call-template name="UOFGetCharSize"/>
2116			</xsl:for-each>
2117		</xsl:variable>
2118		<!--xsl:variable name="position" select="."/-->
2119		<xsl:variable name="pre" select="字:偏移量_4126[1]"/>
2120		<xsl:variable name="suf" select="字:缩放量_4127[1]"/>
2121		<xsl:for-each select="../..">
2122			<xsl:if test="not(starts-with(string($pre),'-'))">
2123				<xsl:choose>
2124					<xsl:when test="number($pre) &lt; number($size)">
2125						<xsl:variable name="tmp">
2126							<xsl:choose>
2127								<xsl:when test="$size!=''">
2128									<xsl:value-of select="number($pre) div number($size) * 100"/>
2129								</xsl:when>
2130								<xsl:otherwise>
2131									<xsl:value-of select="number($pre) div 10.5 * 100"/>
2132								</xsl:otherwise>
2133							</xsl:choose>
2134						</xsl:variable>
2135						<xsl:attribute name="style:text-position"><xsl:value-of select="concat(concat($tmp,'%'),' ',concat($suf,'%'))"/></xsl:attribute>
2136					</xsl:when>
2137					<xsl:otherwise>
2138						<xsl:attribute name="style:text-position"><xsl:value-of select="concat('100%',' ',concat($suf,'%'))"/></xsl:attribute>
2139					</xsl:otherwise>
2140				</xsl:choose>
2141			</xsl:if>
2142			<xsl:if test="starts-with(string($pre),'-')">
2143				<xsl:choose>
2144					<xsl:when test="number(substring-after(string($pre),'-')) &lt; number($size)">
2145						<xsl:variable name="tmp">
2146							<xsl:choose>
2147								<xsl:when test="$size!=''">
2148									<xsl:value-of select="number(substring-after(string($pre),'-')) div number($size) * 100"/>
2149								</xsl:when>
2150								<xsl:otherwise>
2151									<xsl:value-of select="number(substring-after(string($pre),'-')) div 10.5 * 100"/>
2152								</xsl:otherwise>
2153							</xsl:choose>
2154						</xsl:variable>
2155						<xsl:attribute name="style:text-position"><xsl:value-of select="concat('-',concat(string($tmp),'%'),' ',concat($suf,'%'))"/></xsl:attribute>
2156					</xsl:when>
2157					<xsl:otherwise>
2158						<xsl:attribute name="style:text-position"><xsl:value-of select="concat('-100%',' ',concat($suf,'%'))"/></xsl:attribute>
2159					</xsl:otherwise>
2160				</xsl:choose>
2161			</xsl:if>
2162		</xsl:for-each>
2163	</xsl:template>
2164	<xsl:template match="字:上下标类型_4143" mode="sentence">
2165		<xsl:variable name="positon">
2166			<xsl:value-of select="."/>
2167		</xsl:variable>
2168		<xsl:attribute name="style:text-position"><xsl:choose><xsl:when test="contains($positon,'sup')">super 58%</xsl:when><xsl:when test="contains($positon,'sub')">sub 58%</xsl:when></xsl:choose></xsl:attribute>
2169	</xsl:template>
2170	<xsl:template match="字:缩放_4144" mode="sentence">
2171		<xsl:attribute name="style:text-scale"><xsl:value-of select="."/>%</xsl:attribute>
2172	</xsl:template>
2173	<xsl:template match="字:字符间距_4145" mode="sentence">
2174		<xsl:attribute name="fo:letter-spacing"><xsl:value-of select="concat(.,$uofUnit)"/></xsl:attribute>
2175	</xsl:template>
2176	<xsl:template match="字:调整字间距_4146" mode="sentence">
2177		<xsl:variable name="tt">
2178			<xsl:value-of select="."/>
2179		</xsl:variable>
2180		<xsl:attribute name="style:letter-kerning"><xsl:choose><xsl:when test="$tt !='0'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
2181		<xsl:attribute name="fo:letter-spacing"><xsl:value-of select="concat($tt,$uofUnit)"/></xsl:attribute>
2182	</xsl:template>
2183	<xsl:template match="字:是否字符对齐网格_4147" mode="sentence">
2184	</xsl:template>
2185	<xsl:template match="字:双行合一_4148" mode="sentence">
2186		<xsl:attribute name="style:text-combine">lines</xsl:attribute>
2187		<xsl:if test="@前置字符_414A">
2188			<xsl:attribute name="style:text-combine-start-char"><xsl:value-of select="@前置字符_414A"/></xsl:attribute>
2189		</xsl:if>
2190		<xsl:if test="@后置字符_414B">
2191			<xsl:attribute name="style:text-combine-end-char"><xsl:value-of select="@后置字符_414B"/></xsl:attribute>
2192		</xsl:if>
2193	</xsl:template>
2194	<xsl:template name="TextProperties">
2195		<xsl:if test="./*">
2196			<xsl:for-each select="*">
2197				<xsl:apply-templates select="." mode="sentence"/>
2198				<!--
2199				<xsl:choose>
2200					<xsl:when test="self::node()[name(.)='字:字体_4128']">
2201						<xsl:apply-templates select="." mode="sentence"/>
2202					</xsl:when>
2203					<xsl:when test="self::node()[name(.)='字:粗体']">
2204						<xsl:apply-templates select="." mode="sentence"/>
2205					</xsl:when>
2206					<xsl:when test="self::node()[name(.)='字:斜体']">
2207						<xsl:apply-templates select="." mode="sentence"/>
2208					</xsl:when>
2209					<xsl:when test="self::node()[name(.)='字:突出显示']">
2210						<xsl:apply-templates select="." mode="sentence"/>
2211					</xsl:when>
2212					<xsl:when test="self::node()[name(.)='字:边框_4133']">
2213						<xsl:apply-templates select="." mode="sentence"/>
2214					</xsl:when>
2215					<xsl:when test="self::node()[name(.)='字:填充']">
2216						<xsl:apply-templates select="." mode="sentence"/>
2217					</xsl:when>
2218					<xsl:when test="self::node()[name(.)='字:删除线_4135']">
2219						<xsl:apply-templates select="." mode="sentence"/>
2220					</xsl:when>
2221					<xsl:when test="self::node()[name(.)='字:下划线']">
2222						<xsl:apply-templates select="." mode="sentence"/>
2223					</xsl:when>
2224					<xsl:when test="self::node()[name(.)='字:着重号']">
2225						<xsl:apply-templates select="." mode="sentence"/>
2226					</xsl:when>
2227					<xsl:when test="self::node()[name(.)='字:隐藏文字']">
2228						<xsl:apply-templates select="." mode="sentence"/>
2229					</xsl:when>
2230					<xsl:when test="self::node()[name(.)='字:空心']">
2231						<xsl:apply-templates select="." mode="sentence"/>
2232					</xsl:when>
2233					<xsl:when test="self::node()[name(.)='字:浮雕']">
2234						<xsl:apply-templates select="." mode="sentence"/>
2235					</xsl:when>
2236					<xsl:when test="self::node()[name(.)='字:阴影']">
2237						<xsl:apply-templates select="." mode="sentence"/>
2238					</xsl:when>
2239					<xsl:when test="self::node()[name(.)='字:醒目字体']">
2240						<xsl:apply-templates select="." mode="sentence"/>
2241					</xsl:when>
2242					<xsl:when test="self::node()[name(.)='字:位置']">
2243						<xsl:apply-templates select="." mode="sentence"/>
2244					</xsl:when>
2245					<xsl:when test="self::node()[name(.)='字:上下标']">
2246						<xsl:apply-templates select="." mode="sentence"/>
2247					</xsl:when>
2248					<xsl:when test="self::node()[name(.)='字:缩放']">
2249						<xsl:apply-templates select="." mode="sentence"/>
2250					</xsl:when>
2251					<xsl:when test="self::node()[name(.)='字:字符间距']">
2252						<xsl:apply-templates select="." mode="sentence"/>
2253					</xsl:when>
2254					<xsl:when test="self::node()[name(.)='字:调整字间距']">
2255						<xsl:apply-templates select="." mode="sentence"/>
2256					</xsl:when>
2257					<xsl:when test="self::node()[name(.)='字:字符对齐网格']">
2258						<xsl:apply-templates select="." mode="sentence"/>
2259					</xsl:when>
2260					<xsl:when test="self::node()[name(.)='字:双行合一']">
2261						<xsl:apply-templates select="." mode="sentence"/>
2262					</xsl:when>
2263				</xsl:choose>
2264				-->
2265			</xsl:for-each>
2266		</xsl:if>
2267	</xsl:template>
2268	<xsl:template name="OneTextStyle">
2269		<xsl:attribute name="style:family">text</xsl:attribute>
2270		<xsl:attribute name="style:name"><xsl:value-of select="@标识符_4100"/></xsl:attribute>
2271		<xsl:choose>
2272			<xsl:when test="@别名_4103">
2273				<xsl:attribute name="style:display-name"><xsl:value-of select="@别名_4103"/></xsl:attribute>
2274			</xsl:when>
2275			<xsl:otherwise>
2276				<xsl:attribute name="style:display-name"><xsl:value-of select="@标识符_4100"/></xsl:attribute>
2277			</xsl:otherwise>
2278		</xsl:choose>
2279		<xsl:if test="@基式样引用_4104">
2280			<xsl:attribute name="style:parent-style-name"><xsl:value-of select="@基式样引用_4104"/></xsl:attribute>
2281		</xsl:if>
2282		<xsl:if test="@后继式样引用_4105">
2283			<xsl:attribute name="style:next-style-name"><xsl:value-of select="@后继式样引用_4105"/></xsl:attribute>
2284		</xsl:if>
2285		<xsl:element name="style:text-properties">
2286			<xsl:call-template name="TextProperties"/>
2287		</xsl:element>
2288	</xsl:template>
2289	<xsl:template match="式样:句式样_9910">
2290		<xsl:param name="Type"/>
2291		<xsl:if test="@类型_4102=$Type">
2292			<xsl:choose>
2293				<xsl:when test="$Type='default'">
2294					<xsl:element name="style:default-style">
2295						<xsl:attribute name="style:family">text</xsl:attribute>
2296						<xsl:element name="style:text-properties">
2297							<xsl:call-template name="TextProperties"/>
2298						</xsl:element>
2299					</xsl:element>
2300				</xsl:when>
2301				<xsl:when test="$Type='custom'">
2302					<xsl:element name="style:style">
2303						<xsl:call-template name="OneTextStyle"/>
2304					</xsl:element>
2305				</xsl:when>
2306				<xsl:when test="$Type='auto'">
2307					<xsl:element name="style:style">
2308						<xsl:call-template name="OneTextStyle"/>
2309					</xsl:element>
2310				</xsl:when>
2311			</xsl:choose>
2312		</xsl:if>
2313	</xsl:template>
2314	<xsl:template name="TextParentProperties">
2315		<xsl:param name="Stylename"/>
2316		<xsl:for-each select="key('uof-text-styles',$Stylename)|key('uof-paragraph-styles',$Stylename)/字:句属性_4158">
2317			<xsl:variable name="styleref">
2318				<xsl:choose>
2319					<xsl:when test="@基式样引用_4104">
2320						<xsl:value-of select="@基式样引用_4104"/>
2321					</xsl:when>
2322					<xsl:when test="@式样引用_419C">
2323						<xsl:value-of select="@式样引用_417B"/>
2324					</xsl:when>
2325				</xsl:choose>
2326			</xsl:variable>
2327			<xsl:if test="$styleref">
2328				<xsl:call-template name="TextParentProperties">
2329					<xsl:with-param name="Stylename" select="$styleref"/>
2330				</xsl:call-template>
2331			</xsl:if>
2332			<xsl:for-each select=".">
2333				<xsl:call-template name="TextProperties"/>
2334			</xsl:for-each>
2335		</xsl:for-each>
2336	</xsl:template>
2337	<xsl:template name="BodyTextProperties">
2338		<!--xsl:param name="Type"/>
2339		<xsl:choose>
2340			<xsl:when test="$Type='symbol'">
2341				<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:自动编号集_990E//字:符号字体_4116">
2342					<xsl:if test="count(./child::*)!=0">
2343						<xsl:element name="style:style">
2344							<xsl:attribute name="style:family">text</xsl:attribute>
2345							<xsl:attribute name="style:name">
2346								<xsl:value-of select="generate-id(.)"/>
2347							</xsl:attribute>
2348							<xsl:choose>
2349								<xsl:when test="@式样引用_4117">
2350									<xsl:attribute name="style:parent-style-name">
2351										<xsl:value-of select="@式样引用_4117"/>
2352									</xsl:attribute>
2353									<xsl:element name="style:text-properties">
2354										<xsl:call-template name="TextParentProperties">
2355											<xsl:with-param name="Stylename" select="@式样引用_4117"/>
2356										</xsl:call-template>
2357										<xsl:call-template name="TextProperties"/>
2358									</xsl:element>
2359								</xsl:when>
2360								<xsl:otherwise>
2361									<xsl:element name="style:text-properties">
2362										<xsl:call-template name="TextProperties"/>
2363									</xsl:element>
2364								</xsl:otherwise>
2365							</xsl:choose>
2366						</xsl:element>
2367					</xsl:if>
2368				</xsl:for-each>
2369			</xsl:when>
2370			<xsl:otherwise>
2371				<xsl:for-each select="/uof:UOF_0000/规则:公用处理规则_B665/规则:批注集_B669/规则:批注_B66A//字:句_419D/字:句属性_4158 | /uof:UOF_0000/字:文字处理文档_4225//字:句_419D/字:句属性_4158 | /uof:UOF_0000/图形:图形集_7C00/图:图形_8062/图:文本_803C/图:内容_8043//字:句_419D/字:句属性_4158 | /uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825//字:句_419D/字:句属性_4158"-->
2372		<xsl:variable name="textstyleref" select="@式样引用_419C"/>
2373		<xsl:variable name="textstylerefabsence">
2374			<xsl:if test="$textstyleref!='' and count(/uof:UOF_0000/式样:式样集_990B/式样:句式样集_990F/式样:句式样_9910[@标识符_4100=$textstyleref])=0">1</xsl:if>
2375		</xsl:variable>
2376		<xsl:variable name="pageNumberColor" select="../preceding-sibling::字:域开始_419E/@类型_416E"/>
2377		<xsl:variable name="beforeNumberColor" select="../字:文本串[1]"/>
2378		<xsl:choose>
2379			<xsl:when test="$textstylerefabsence='1'">
2380				<xsl:if test="count(key('uof-paragraph-styles',$textstyleref))!=0">
2381					<xsl:element name="style:style">
2382						<xsl:attribute name="style:family">text</xsl:attribute>
2383						<xsl:attribute name="style:name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
2384						<xsl:element name="style:text-properties">
2385							<xsl:for-each select="key('uof-paragraph-styles',$textstyleref)/字:句属性_4158">
2386								<xsl:if test="@式样引用_419C">
2387									<xsl:call-template name="TextParentProperties">
2388										<xsl:with-param name="Stylename" select="@式样引用_419C"/>
2389									</xsl:call-template>
2390								</xsl:if>
2391								<xsl:for-each select=".">
2392									<xsl:call-template name="TextProperties"/>
2393								</xsl:for-each>
2394								<!-- 为页码的字符部分做一个灰色背景式样 -->
2395								<xsl:if test="$document_type = 'text' and (string($pageNumberColor[1]) = 'page' or $beforeNumberColor[1] = '-')">
2396									<xsl:attribute name="fo:background-color">#d2d2d2</xsl:attribute>
2397								</xsl:if>
2398							</xsl:for-each>
2399						</xsl:element>
2400					</xsl:element>
2401				</xsl:if>
2402			</xsl:when>
2403			<xsl:when test="count(*)!=0">
2404				<xsl:element name="style:style">
2405					<xsl:attribute name="style:family">text</xsl:attribute>
2406					<xsl:attribute name="style:name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
2407					<xsl:choose>
2408						<xsl:when test="@式样引用_419C">
2409							<xsl:attribute name="style:parent-style-name"><xsl:value-of select="@式样引用_419C"/></xsl:attribute>
2410							<xsl:element name="style:text-properties">
2411								<xsl:call-template name="TextParentProperties">
2412									<xsl:with-param name="Stylename" select="@式样引用_419C"/>
2413								</xsl:call-template>
2414								<xsl:call-template name="TextProperties"/>
2415								<!-- 为页码的字符部分做一个灰色背景式样 -->
2416								<xsl:if test="$document_type = 'text' and (string($pageNumberColor[1]) = 'page' or $beforeNumberColor[1] = '-')">
2417									<xsl:attribute name="fo:background-color">#d2d2d2</xsl:attribute>
2418								</xsl:if>
2419							</xsl:element>
2420						</xsl:when>
2421						<xsl:otherwise>
2422							<xsl:element name="style:text-properties">
2423								<xsl:call-template name="TextProperties"/>
2424								<!-- 为页码的字符部分做一个灰色背景式样 -->
2425								<xsl:if test="$document_type = 'text' and (string($pageNumberColor[1]) = 'page' or $beforeNumberColor[1] = '-')">
2426									<xsl:attribute name="fo:background-color">#d2d2d2</xsl:attribute>
2427								</xsl:if>
2428							</xsl:element>
2429						</xsl:otherwise>
2430					</xsl:choose>
2431				</xsl:element>
2432			</xsl:when>
2433		</xsl:choose>
2434		<!--/xsl:for-each>
2435			</xsl:otherwise>
2436		</xsl:choose-->
2437	</xsl:template>
2438	<xsl:template name="ParaCharSize">
2439		<xsl:variable name="charSize">
2440			<xsl:choose>
2441				<xsl:when test="字:句属性_4158/字:字体_4128/@字号_412D">
2442					<xsl:value-of select="字:句属性_4158/字:字体_4128/@字号_412D"/>
2443				</xsl:when>
2444				<xsl:when test="字:句属性_4158/@式样引用_419C!=''">
2445					<xsl:for-each select="key('uof-text-styles',字:句属性_4158/@式样引用_419C)">
2446						<xsl:call-template name="UOFGetCharSize"/>
2447					</xsl:for-each>
2448				</xsl:when>
2449				<xsl:when test="@式样引用_419C!=''">
2450					<xsl:for-each select="key('uof-paragraph-styles',@式样引用_419C)">
2451						<xsl:call-template name="ParaCharSize"/>
2452					</xsl:for-each>
2453				</xsl:when>
2454				<xsl:when test="@基式样引用_4104!=''">
2455					<xsl:for-each select="key('uof-paragraph-styles',@基式样引用_4104)">
2456						<xsl:call-template name="ParaCharSize"/>
2457					</xsl:for-each>
2458				</xsl:when>
2459				<xsl:when test="/uof:UOF_0000/式样:式样集_990B/式样:段落式样集_9911/式样:段落式样_9912[@类型_4102 = 'default']/字:句属性_4158/字:字体_4128/@字号_412D">
2460					<xsl:value-of select="/uof:UOF_0000/式样:式样集_990B/式样:段落式样集_9911/式样:段落式样_9912[@类型_4102 = 'default']/字:句属性_4158/字:字体_4128/@字号_412D"/>
2461				</xsl:when>
2462				<xsl:otherwise>10.5</xsl:otherwise>
2463			</xsl:choose>
2464		</xsl:variable>
2465		<!--<xsl:variable name="defaultCharSize">
2466			<xsl:value-of select="/uof:UOF_0000/式样:式样集_990B/式样:段落式样集_9911/式样:段落式样_9912[@类型_4102='default']/字:句属性_4158/字:字体_4128/@字号_412D"/>
2467		</xsl:variable>-->
2468		<xsl:choose>
2469			<xsl:when test="$charSize!=''">
2470				<xsl:value-of select="$charSize"/>
2471			</xsl:when>
2472			<!--<xsl:when test="$defaultCharSize!=''">
2473				<xsl:value-of select="$defaultCharSize"/>
2474			</xsl:when>-->
2475			<xsl:otherwise>10.5</xsl:otherwise>
2476		</xsl:choose>
2477	</xsl:template>
2478	<xsl:template match="字:边框_4133" mode="paragraph">
2479		<xsl:if test="@阴影类型_C645 and @阴影类型_C645 !='' and @阴影类型_C645 !='none'">
2480			<xsl:choose>
2481				<xsl:when test="@阴影类型_C645 = 'right-bottom'">
2482					<xsl:attribute name="style:shadow">#808080 5pt 5pt</xsl:attribute>
2483				</xsl:when>
2484				<xsl:when test="@阴影类型_C645 = 'right-top'">
2485					<xsl:attribute name="style:shadow">#808080 5pt -5pt</xsl:attribute>
2486				</xsl:when>
2487				<xsl:when test="@阴影类型_C645 = 'left-bottom'">
2488					<xsl:attribute name="style:shadow">#808080 -5pt 5pt</xsl:attribute>
2489				</xsl:when>
2490				<xsl:when test="@阴影类型_C645 = 'left-top'">
2491					<xsl:attribute name="style:shadow">#808080 -5pt -5pt</xsl:attribute>
2492				</xsl:when>
2493			</xsl:choose>
2494		</xsl:if>
2495		<xsl:call-template name="CommonBorder">
2496			<xsl:with-param name="pUp" select="uof:上_C614"/>
2497			<xsl:with-param name="pDown" select="uof:下_C616"/>
2498			<xsl:with-param name="pLeft" select="uof:左_C613"/>
2499			<xsl:with-param name="pRight" select="uof:右_C615"/>
2500			<xsl:with-param name="pDiagon1" select="uof:对角线1_C617"/>
2501			<xsl:with-param name="pDiagon2" select="uof:对角线2_C618"/>
2502		</xsl:call-template>
2503	</xsl:template>
2504	<xsl:template match="字:填充_4134" mode="paragraphAttr">
2505		<xsl:call-template name="CommonFillAttr"/>
2506	</xsl:template>
2507	<xsl:template match="字:填充_4134" mode="paragraphElement">
2508		<xsl:call-template name="CommonFillElement"/>
2509	</xsl:template>
2510	<xsl:template match="字:大纲级别_417C" mode="paragraph">
2511		<xsl:attribute name="text:outline-level"><xsl:value-of select="."/></xsl:attribute>
2512	</xsl:template>
2513	<xsl:template match="字:对齐_417D" mode="paragraph">
2514		<xsl:if test="@文字对齐_421E">
2515			<xsl:attribute name="style:vertical-align"><xsl:choose><xsl:when test="@文字对齐_421E='base'">baseline</xsl:when><xsl:when test="@文字对齐_421E='center'">middle</xsl:when><xsl:otherwise><xsl:value-of select="@文字对齐_421E"/></xsl:otherwise></xsl:choose></xsl:attribute>
2516		</xsl:if>
2517		<xsl:if test="@水平对齐_421D">
2518			<xsl:attribute name="fo:text-align"><xsl:choose><xsl:when test="@水平对齐_421D='left'">start</xsl:when><xsl:when test="@水平对齐_421D='right'">end</xsl:when><xsl:when test="@水平对齐_421D='center'">center</xsl:when><xsl:otherwise>justify</xsl:otherwise></xsl:choose></xsl:attribute>
2519			<xsl:if test="@水平对齐_421D='distributed'">
2520				<xsl:attribute name="fo:text-align-last">justify</xsl:attribute>
2521				<xsl:attribute name="style:justify-single-word">true</xsl:attribute>
2522			</xsl:if>
2523		</xsl:if>
2524	</xsl:template>
2525	<xsl:template match="字:缩进_411D" mode="paragraph">
2526		<xsl:variable name="fontcharsize">
2527			<xsl:for-each select="..">
2528				<xsl:call-template name="ParaCharSize"/>
2529			</xsl:for-each>
2530		</xsl:variable>
2531		<xsl:if test="字:左_410E">
2532			<xsl:choose>
2533				<xsl:when test="字:左_410E/字:相对_4109">
2534					<xsl:variable name="a1" select="字:左_410E/字:相对_4109/@值_4108"/>
2535					<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat($a1 * number(10.5), 'pt')"/></xsl:attribute>
2536				</xsl:when>
2537				<xsl:when test="字:左_410E/字:绝对_4107">
2538					<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat(字:左_410E/字:绝对_4107/@值_410F,$uofUnit)"/></xsl:attribute>
2539				</xsl:when>
2540			</xsl:choose>
2541		</xsl:if>
2542		<xsl:if test="字:右_4110">
2543			<xsl:choose>
2544				<xsl:when test="字:右_4110/字:相对_4109">
2545					<xsl:variable name="a2" select="字:右_4110/字:相对_4109/@值_4108"/>
2546					<xsl:attribute name="fo:margin-right"><xsl:value-of select="concat($a2 * number(10.5), 'pt')"/></xsl:attribute>
2547				</xsl:when>
2548				<xsl:when test="字:右_4110/字:绝对_4107">
2549					<xsl:attribute name="fo:margin-right"><xsl:value-of select="concat(字:右_4110/字:绝对_4107/@值_410F,$uofUnit)"/></xsl:attribute>
2550				</xsl:when>
2551			</xsl:choose>
2552		</xsl:if>
2553		<xsl:if test="字:首行_4111">
2554			<xsl:choose>
2555				<xsl:when test="字:首行_4111/字:绝对_4107">
2556					<xsl:attribute name="fo:text-indent"><xsl:value-of select="concat(字:首行_4111/字:绝对_4107/@值_410F,$uofUnit)"/></xsl:attribute>
2557				</xsl:when>
2558				<xsl:when test="字:首行_4111/字:相对_4109">
2559					<xsl:variable name="a3" select="字:首行_4111/字:相对_4109/@值_4108"/>
2560					<xsl:attribute name="fo:text-indent"><xsl:value-of select="concat($a3 * $fontcharsize, 'pt')"/></xsl:attribute>
2561					<!--xsl:attribute name="fo:text-indent"><xsl:value-of select="concat($a3 * number(10.5), 'pt')"/></xsl:attribute-->
2562				</xsl:when>
2563			</xsl:choose>
2564		</xsl:if>
2565	</xsl:template>
2566	<xsl:template match="字:行距_417E" mode="paragraph">
2567		<xsl:variable name="type" select="@类型_417F"/>
2568		<xsl:variable name="val" select="@值_4108"/>
2569		<xsl:choose>
2570			<xsl:when test="$document_type = 'presentation' and $type='fixed'">
2571				<xsl:attribute name="style:line-spacing"><xsl:value-of select="concat($val,$uofUnit)"/></xsl:attribute>
2572			</xsl:when>
2573			<xsl:when test="$type='fixed'">
2574				<xsl:attribute name="fo:line-height"><xsl:value-of select="concat($val,$uofUnit)"/></xsl:attribute>
2575			</xsl:when>
2576			<xsl:when test="$type='multi-lines'">
2577				<xsl:attribute name="fo:line-height"><xsl:value-of select="concat($val * 100,'%')"/></xsl:attribute>
2578			</xsl:when>
2579			<xsl:when test="$type='at-least'">
2580				<xsl:attribute name="style:line-height-at-least"><xsl:value-of select="concat($val,$uofUnit)"/></xsl:attribute>
2581			</xsl:when>
2582			<xsl:when test="$type='line-space'">
2583				<xsl:attribute name="style:line-spacing"><xsl:value-of select="concat($val,$uofUnit)"/></xsl:attribute>
2584			</xsl:when>
2585		</xsl:choose>
2586	</xsl:template>
2587	<xsl:template match="字:段间距_4180" mode="paragraph">
2588		<xsl:variable name="lineheight">
2589			<xsl:choose>
2590				<xsl:when test="字:段前距_4181/字:相对值_4148 | 字:段后距_4185/字:相对值_4148">
2591					<xsl:choose>
2592						<xsl:when test="../..[name()='字:段落_416B']">
2593							<xsl:choose>
2594								<xsl:when test="preceding::字:分节_416A[1]">
2595									<xsl:for-each select="preceding::字:分节_416A[1]">
2596										<xsl:choose>
2597											<xsl:when test="(字:节属性_421B/字:网格设置_420E/@网格类型_420F = 'none') or 字:节属性_421B/字:网格设置_420E/@行跨度_4243">
2598												<xsl:for-each select="字:节属性_421B">
2599													<xsl:variable name="margintop">
2600														<xsl:choose>
2601															<xsl:when test="字:页边距_41EB/@上_C608">
2602																<xsl:value-of select="字:页边距_41EB/@上_C608"/>
2603															</xsl:when>
2604															<xsl:otherwise>
2605																<xsl:value-of select="number(0)"/>
2606															</xsl:otherwise>
2607														</xsl:choose>
2608													</xsl:variable>
2609													<xsl:variable name="marginbottom">
2610														<xsl:choose>
2611															<xsl:when test="字:页边距_41EB/@下_C60B">
2612																<xsl:value-of select="字:页边距_41EB/@下_C60B"/>
2613															</xsl:when>
2614															<xsl:otherwise>
2615																<xsl:value-of select="number(0)"/>
2616															</xsl:otherwise>
2617														</xsl:choose>
2618													</xsl:variable>
2619													<xsl:variable name="pageheight">
2620														<xsl:call-template name="GetPageHeight"/>
2621													</xsl:variable>
2622													<xsl:variable name="bodyheight" select="$pageheight - $margintop - $marginbottom"/>
2623													<xsl:variable name="modnum" select="number(1.0015)"/>
2624													<xsl:variable name="gridheight">
2625														<xsl:value-of select="$bodyheight div ceiling(字:网格设置_420E/@行数_4210) div $modnum"/>
2626													</xsl:variable>
2627													<xsl:value-of select="$gridheight"/>
2628												</xsl:for-each>
2629											</xsl:when>
2630											<xsl:otherwise>
2631												<xsl:value-of select="12"/>
2632											</xsl:otherwise>
2633										</xsl:choose>
2634									</xsl:for-each>
2635								</xsl:when>
2636								<xsl:otherwise>
2637									<xsl:value-of select="12"/>
2638								</xsl:otherwise>
2639							</xsl:choose>
2640						</xsl:when>
2641						<xsl:otherwise>
2642							<xsl:value-of select="12"/>
2643						</xsl:otherwise>
2644					</xsl:choose>
2645				</xsl:when>
2646				<xsl:otherwise>
2647					<xsl:value-of select="12"/>
2648				</xsl:otherwise>
2649			</xsl:choose>
2650		</xsl:variable>
2651		<xsl:choose>
2652			<xsl:when test="字:段前距_4181/字:绝对值_4183">
2653				<xsl:attribute name="fo:margin-top"><xsl:value-of select="concat(字:段前距_4181/字:绝对值_4183,$uofUnit)"/></xsl:attribute>
2654			</xsl:when>
2655			<xsl:when test="字:段前距_4181/字:相对值_4184">
2656				<xsl:variable name="aa" select="字:段前距_4181/字:相对值_4184"/>
2657				<xsl:attribute name="fo:margin-taop"><xsl:value-of select="$lineheight"/></xsl:attribute>
2658				<xsl:attribute name="fo:margin-top"><xsl:value-of select="concat($aa * number($lineheight),$uofUnit)"/></xsl:attribute>
2659			</xsl:when>
2660			<xsl:when test="字:段前距_4181/字:自动_4182">
2661				<xsl:attribute name="fo:margin-top"><xsl:choose><xsl:when test="../字:行距_417E"><xsl:value-of select="concat(字:行距_417E/@值_4108,$uofUnit)"/></xsl:when><xsl:otherwise>0.549cm</xsl:otherwise></xsl:choose></xsl:attribute>
2662			</xsl:when>
2663		</xsl:choose>
2664		<xsl:choose>
2665			<xsl:when test="字:段后距_4185/字:绝对值_4183">
2666				<xsl:attribute name="fo:margin-bottom"><xsl:value-of select="concat(字:段后距_4185/字:绝对值_4183,$uofUnit)"/></xsl:attribute>
2667			</xsl:when>
2668			<xsl:when test="字:段后距_4185/字:相对值_4184">
2669				<xsl:variable name="bb">
2670					<xsl:value-of select="字:段后距_4185/字:相对值_4184"/>
2671				</xsl:variable>
2672				<xsl:attribute name="fo:margin-bottom"><xsl:value-of select="concat($bb * number($lineheight),$uofUnit)"/></xsl:attribute>
2673			</xsl:when>
2674			<xsl:when test="字:段后距_4185/字:自动_4182">
2675				<xsl:attribute name="fo:margin-bottom"><xsl:choose><xsl:when test="../字:行距_417E"><xsl:value-of select="concat(字:行距_417E/@值_4108,@uofUnit)"/></xsl:when><xsl:otherwise>0.549cm</xsl:otherwise></xsl:choose></xsl:attribute>
2676			</xsl:when>
2677		</xsl:choose>
2678	</xsl:template>
2679	<!--xsl:template match="字:自动编号信息" mode="paragraph">
2680	</xsl:template-->
2681	<xsl:template match="字:孤行控制_418A" mode="paragraph">
2682		<xsl:attribute name="fo:orphans"><xsl:value-of select="string(.)"/></xsl:attribute>
2683	</xsl:template>
2684	<xsl:template match="字:寡行控制_418B" mode="paragraph">
2685		<xsl:attribute name="fo:widows"><xsl:value-of select="string(.)"/></xsl:attribute>
2686	</xsl:template>
2687	<xsl:template match="字:是否段中不分页_418C" mode="paragraph">
2688		<xsl:attribute name="fo:keep-together"><xsl:choose><xsl:when test="string(.) = 'true'">always</xsl:when><xsl:otherwise>auto</xsl:otherwise></xsl:choose></xsl:attribute>
2689	</xsl:template>
2690	<xsl:template match="字:是否与下段同页_418D" mode="paragraph">
2691		<xsl:attribute name="fo:keep-with-next"><xsl:choose><xsl:when test="string(.)='1' or string(.)='true'">always</xsl:when><xsl:otherwise>auto</xsl:otherwise></xsl:choose></xsl:attribute>
2692	</xsl:template>
2693	<xsl:template match="字:是否段前分页_418E" mode="paragraph">
2694		<xsl:if test="string(.)='true' or string(.)='1'">
2695			<xsl:attribute name="fo:break-before">page-paragraph</xsl:attribute>
2696		</xsl:if>
2697	</xsl:template>
2698	<xsl:template name="OOoTabstop">
2699		<xsl:for-each select="字:制表位_4171">
2700			<xsl:element name="style:tab-stop">
2701				<xsl:attribute name="style:position"><xsl:value-of select="concat(@位置_4172,$uofUnit)"/></xsl:attribute>
2702				<xsl:attribute name="style:type"><xsl:choose><xsl:when test="@类型_4173='decimal'">char</xsl:when><xsl:when test="@类型_4173='left' or @类型_4173='right' or @类型_4173='center'"><xsl:value-of select="@类型_4173"/></xsl:when><xsl:otherwise/></xsl:choose></xsl:attribute>
2703				<xsl:if test="@类型_4173='decimal'">
2704					<xsl:attribute name="style:char" select="'.'"/>
2705				</xsl:if>
2706				<xsl:variable name="prechar" select="@前导符_4174"/>
2707				<xsl:choose>
2708					<xsl:when test="@制表位字符_4175">
2709						<xsl:attribute name="style:leader-style"><xsl:value-of select="@制表位字符_4175"/></xsl:attribute>
2710					</xsl:when>
2711					<xsl:when test="$prechar='-' or $prechar='_'">
2712						<xsl:attribute name="style:leader-style">solid</xsl:attribute>
2713					</xsl:when>
2714					<xsl:when test="$prechar='.' or $prechar='·'">
2715						<xsl:attribute name="style:leader-style">dotted</xsl:attribute>
2716					</xsl:when>
2717					<xsl:otherwise/>
2718				</xsl:choose>
2719				<xsl:if test="@前导符_4174">
2720					<xsl:attribute name="style:leader-text"><xsl:value-of select="@前导符_4174"/></xsl:attribute>
2721				</xsl:if>
2722			</xsl:element>
2723		</xsl:for-each>
2724	</xsl:template>
2725	<xsl:template match="字:制表位设置_418F" mode="paragraph">
2726		<xsl:call-template name="OOoTabstop"/>
2727	</xsl:template>
2728	<xsl:template match="字:是否对齐网格_4190" mode="paragraph">
2729		<xsl:attribute name="style:snap-to-layout-grid"><xsl:choose><xsl:when test="string(.)='1' or string(.)='true'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
2730	</xsl:template>
2731	<xsl:template match="字:首字下沉_4191" mode="paragraph">
2732		<xsl:element name="style:drop-cap">
2733			<xsl:if test="@类型_413B">
2734				<xsl:attribute name="style:drop-type"><xsl:value-of select="@类型_413B"/></xsl:attribute>
2735			</xsl:if>
2736			<xsl:if test="@行数_4178">
2737				<xsl:attribute name="style:lines"><xsl:value-of select="@行数_4178"/></xsl:attribute>
2738			</xsl:if>
2739			<xsl:if test="@间距_4179">
2740				<xsl:attribute name="style:distance"><xsl:value-of select="concat(@间距_4179,$uofUnit)"/></xsl:attribute>
2741			</xsl:if>
2742			<xsl:if test="@字体引用_4176">
2743				<xsl:attribute name="style:style-name"><xsl:value-of select="@字体引用_4176"/></xsl:attribute>
2744			</xsl:if>
2745			<xsl:if test="@字符数_4177">
2746				<xsl:attribute name="style:length"><xsl:value-of select="@字符数_4177"/></xsl:attribute>
2747			</xsl:if>
2748		</xsl:element>
2749	</xsl:template>
2750	<xsl:template match="字:是否取消断字_4192" mode="paragraph">
2751		<!-- alert staring
2752		<xsl:attribute name="fo:hyphenation-ladder-count">no-limit</xsl:attribute>
2753		<xsl:attribute name="fo:hyphenation-remain-char-count">2</xsl:attribute>
2754		<xsl:attribute name="fo:hyphenation-push-char-count">2</xsl:attribute>
2755		<xsl:attribute name="fo:hyphenate">
2756			<xsl:choose>
2757				<xsl:when test="string(.)='1' or string(.)='true'">true</xsl:when>
2758				<xsl:otherwise>false</xsl:otherwise>
2759			</xsl:choose>
2760		</xsl:attribute>-->
2761		<xsl:if test="string(.) ='0' or string(.) ='false'">
2762			<xsl:attribute name="fo:hyphenate">true</xsl:attribute>
2763			<xsl:attribute name="fo:hyphenation-ladder-count">no-limit</xsl:attribute>
2764			<xsl:attribute name="fo:hyphenation-remain-char-count">2</xsl:attribute>
2765			<xsl:attribute name="fo:hyphenation-push-char-count">2</xsl:attribute>
2766		</xsl:if>
2767	</xsl:template>
2768	<xsl:template match="字:是否取消行号_4193" mode="paragraph">
2769		<xsl:attribute name="text:number-lines"><xsl:choose><xsl:when test="string(.)='1' or string(.)='true'">false</xsl:when><xsl:otherwise>true</xsl:otherwise></xsl:choose></xsl:attribute>
2770	</xsl:template>
2771	<xsl:template match="字:是否允许单词断字_4194" mode="paragraph">
2772		<!-- alert staring
2773		<xsl:attribute name="style:word-wrap">
2774			<xsl:choose>
2775				<xsl:when test="string(.) = 'true'">true</xsl:when>
2776				<xsl:otherwise>false</xsl:otherwise>
2777			</xsl:choose>
2778		</xsl:attribute>-->
2779		<xsl:if test="string(.) ='1' or string(.) ='true'">
2780			<xsl:attribute name="fo:hyphenation-ladder-count"><xsl:value-of select="2"/></xsl:attribute>
2781		</xsl:if>
2782		<!-- alert ending. -->
2783	</xsl:template>
2784	<!-- alert starting -->
2785	<xsl:template match="字:是否允许单词断字_4194" mode="text">
2786		<xsl:if test="string(.) ='1' or string(.) ='true'">
2787			<xsl:attribute name="fo:hyphenate">true</xsl:attribute>
2788			<xsl:attribute name="fo:hyphenation-ladder-count">no-limit</xsl:attribute>
2789			<xsl:attribute name="fo:hyphenation-remain-char-count">2</xsl:attribute>
2790			<xsl:attribute name="fo:hyphenation-push-char-count">2</xsl:attribute>
2791		</xsl:if>
2792	</xsl:template>
2793	<!-- alert ending. -->
2794	<xsl:template match="字:是否行首尾标点控制_4195" mode="paragraph">
2795		<xsl:attribute name="style:punctuation-wrap"><xsl:choose><xsl:when test="string(.)='1' or string(.)='true'">hanging</xsl:when><xsl:otherwise>simple</xsl:otherwise></xsl:choose></xsl:attribute>
2796	</xsl:template>
2797	<xsl:template match="字:是否行首标点压缩_4196" mode="paragraph">
2798		<xsl:attribute name="style:punctuation-compress"><xsl:choose><xsl:when test=". = 'true'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
2799	</xsl:template>
2800	<xsl:template match="字:是否采用中文习惯首尾字符_4197" mode="paragraph">
2801		<xsl:attribute name="style:line-break"><xsl:choose><xsl:when test="string(.)='1' or string(.)='true'">strict</xsl:when><xsl:otherwise>normal</xsl:otherwise></xsl:choose></xsl:attribute>
2802	</xsl:template>
2803	<xsl:template match="字:是否自动调整中英文字符间距_4198" mode="paragraph">
2804		<xsl:attribute name="style:text-autospace"><xsl:choose><xsl:when test="string(.)='1' or string(.)='true'">ideograph-alpha</xsl:when><xsl:when test="string(../字:是否自动调整中文与数字间距_4199) = '1' or string(../字:是否自动调整中文与数字间距_4199) = 'true'">ideograph-alpha</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
2805	</xsl:template>
2806	<xsl:template match="字:是否自动调整中文与数字间距_4199" mode="paragraph">
2807		<xsl:attribute name="style:text-autospace"><xsl:choose><xsl:when test="string(.)='1' or string(.)='true'">ideograph-alpha</xsl:when><xsl:when test="string(../字:是否自动调整中英文字符间距_4198) = '1' or string(../字:是否自动调整中英文字符间距_4198) = 'true'">ideograph-alpha</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
2808	</xsl:template>
2809	<xsl:template match="字:是否有网格自动调整右缩进_419A" mode="paragraph">
2810	</xsl:template>
2811	<xsl:template name="defaultParaProAttr">
2812		<xsl:attribute name="style:text-autospace" select="'ideograph-alpha'"/>
2813		<!--段落文字垂直对齐方式 UOF 默认值为base 与ODF(auto)不一致-->
2814		<xsl:attribute name="style:vertical-align" select="'baseline'"/>
2815		<xsl:attribute name="fo:text-align" select="'justify'"/>
2816	</xsl:template>
2817	<xsl:template name="ParaPropertiesAttr">
2818		<xsl:param name="tabstop"/>
2819		<xsl:param name="Stylename"/>
2820		<xsl:if test="$tabstop = 'default'">
2821			<xsl:if test="/uof:UOF_0000/规则:公用处理规则_B665/规则:文字处理_B66B/规则:文档设置_B600/规则:默认制表位位置_B604">
2822				<xsl:variable name="defaultab">
2823					<xsl:value-of select="/uof:UOF_0000/规则:公用处理规则_B665/规则:文字处理_B66B/规则:文档设置_B600/规则:默认制表位位置_B604"/>
2824				</xsl:variable>
2825				<xsl:if test="number($defaultab) != 0">
2826					<xsl:attribute name="style:tab-stop-distance"><xsl:value-of select="concat(number($defaultab),$uofUnit)"/></xsl:attribute>
2827				</xsl:if>
2828			</xsl:if>
2829		</xsl:if>
2830		<xsl:if test="$Stylename = '' and not(/uof:UOF_0000/式样:式样集_990B/式样:段落式样集_9911/式样:段落式样_9912[@类型_4102 = 'default'])">
2831			<xsl:call-template name="defaultParaProAttr"/>
2832		</xsl:if>
2833		<xsl:if test="$Stylename!=''">
2834			<xsl:for-each select="key('uof-paragraph-styles',$Stylename)">
2835				<xsl:call-template name="ParaPropertiesAttr">
2836					<xsl:with-param name="tabstop" select="$tabstop"/>
2837					<xsl:with-param name="Stylename" select="@基式样引用_4104"/>
2838				</xsl:call-template>
2839			</xsl:for-each>
2840		</xsl:if>
2841		<xsl:for-each select="*">
2842			<xsl:choose>
2843				<xsl:when test="name(.)='字:大纲级别_417C'">
2844					<xsl:apply-templates select="." mode="paragraph"/>
2845				</xsl:when>
2846				<xsl:when test="name(.)='字:对齐_417D'">
2847					<xsl:apply-templates select="." mode="paragraph"/>
2848				</xsl:when>
2849				<xsl:when test="name(.)='字:缩进_411D'">
2850					<xsl:apply-templates select="." mode="paragraph"/>
2851				</xsl:when>
2852				<xsl:when test="name(.)='字:行距_417E'">
2853					<xsl:apply-templates select="." mode="paragraph"/>
2854				</xsl:when>
2855				<xsl:when test="name(.)='字:段间距_4180'">
2856					<xsl:apply-templates select="." mode="paragraph"/>
2857				</xsl:when>
2858				<!--<xsl:when test="name(.)='字:自动编号信息'">
2859					<xsl:apply-templates select="." mode="paragraph"/>
2860				</xsl:when>
2861			-->
2862				<xsl:when test="name(.)='字:孤行控制_418A'">
2863					<xsl:apply-templates select="." mode="paragraph"/>
2864				</xsl:when>
2865				<xsl:when test="name(.)='字:寡行控制_418B'">
2866					<xsl:apply-templates select="." mode="paragraph"/>
2867				</xsl:when>
2868				<xsl:when test="name(.)='字:是否段中不分页_418C'">
2869					<xsl:apply-templates select="." mode="paragraph"/>
2870				</xsl:when>
2871				<xsl:when test="name(.)='字:是否与下段同页_418D'">
2872					<xsl:apply-templates select="." mode="paragraph"/>
2873				</xsl:when>
2874				<xsl:when test="name(.)='字:是否段前分页_418E'">
2875					<xsl:apply-templates select="." mode="paragraph"/>
2876				</xsl:when>
2877				<xsl:when test="name(.)='字:边框_4133'">
2878					<xsl:apply-templates select="." mode="paragraph"/>
2879				</xsl:when>
2880				<xsl:when test="name(.)='字:填充_4134'">
2881					<xsl:apply-templates select="." mode="paragraphAttr"/>
2882				</xsl:when>
2883				<xsl:when test="name(.)='字:是否对齐网格_4190'">
2884					<xsl:apply-templates select="." mode="paragraph"/>
2885				</xsl:when>
2886				<!-- remove
2887				<xsl:when test="name(.)='字:是否取消断字_4192'">
2888					<xsl:apply-templates select="." mode="paragraph"/>
2889				</xsl:when>
2890				 -->
2891				<xsl:when test="name(.)='字:是否取消行号_4193'">
2892					<xsl:apply-templates select="." mode="paragraph"/>
2893				</xsl:when>
2894				<xsl:when test="name(.)='字:是否允许单词断字_4194'">
2895					<xsl:apply-templates select="." mode="paragraph"/>
2896				</xsl:when>
2897				<xsl:when test="name(.)='字:是否行首尾标点控制_4195'">
2898					<xsl:apply-templates select="." mode="paragraph"/>
2899				</xsl:when>
2900				<xsl:when test="name(.)='字:是否行首标点压缩_4196'">
2901					<xsl:apply-templates select="." mode="paragraph"/>
2902				</xsl:when>
2903				<xsl:when test="name(.)='字:是否采用中文习惯首尾字符_4197'">
2904					<xsl:apply-templates select="." mode="paragraph"/>
2905				</xsl:when>
2906				<xsl:when test="name(.)='字:是否自动调整中英文字符间距_4198'">
2907					<xsl:apply-templates select="." mode="paragraph"/>
2908				</xsl:when>
2909				<xsl:when test="name(.)='字:是否自动调整中文与数字间距_4199'">
2910					<xsl:apply-templates select="." mode="paragraph"/>
2911				</xsl:when>
2912			</xsl:choose>
2913		</xsl:for-each>
2914		<!--<xsl:if test="/uof:UOF_0000/图形:图形集_7C00/图:图形_8062/图:文本_803C/图:文字排列方向_8042 = 't2b-r2l-0e-0w'">
2915			<xsl:attribute name="style:writing-mode"><xsl:value-of select="'rl-tb'"/></xsl:attribute>
2916			<xsl:attribute name="fo:text-align"><xsl:value-of select="'end'"/></xsl:attribute>
2917		</xsl:if>-->
2918	</xsl:template>
2919	<xsl:template name="字:制表位设置">
2920		<xsl:param name="Stylename"/>
2921		<!--制表位各级叠加-->
2922		<xsl:for-each select="key('uof-paragraph-styles',$Stylename)">
2923			<xsl:if test="@基式样引用_4104">
2924				<xsl:call-template name="字:制表位设置">
2925					<xsl:with-param name="Stylename" select="@基式样引用_4104"/>
2926				</xsl:call-template>
2927			</xsl:if>
2928			<xsl:apply-templates select="字:制表位设置_418F" mode="paragraph"/>
2929		</xsl:for-each>
2930		<xsl:apply-templates select="字:制表位设置_418F" mode="paragraph"/>
2931	</xsl:template>
2932	<xsl:template name="字:首字下沉">
2933		<xsl:param name="Stylename"/>
2934		<xsl:choose>
2935			<xsl:when test="字:首字下沉_4191">
2936				<xsl:apply-templates select="字:首字下沉_4191" mode="paragraph"/>
2937			</xsl:when>
2938			<xsl:otherwise>
2939				<xsl:for-each select="key('uof-paragraph-styles',$Stylename)">
2940					<xsl:call-template name="字:首字下沉">
2941						<xsl:with-param name="Stylename" select="@基式样引用_4104"/>
2942					</xsl:call-template>
2943				</xsl:for-each>
2944			</xsl:otherwise>
2945		</xsl:choose>
2946	</xsl:template>
2947	<xsl:template name="字:填充">
2948		<xsl:param name="Stylename"/>
2949		<xsl:choose>
2950			<xsl:when test="name(字:填充_4134/*)!='' and name(字:填充_4134/*)!='图:颜色_8004'">
2951				<xsl:apply-templates select="字:填充_4134" mode="paragraphElement"/>
2952			</xsl:when>
2953			<xsl:otherwise>
2954				<xsl:for-each select="key('uof-paragraph-styles',$Stylename)">
2955					<xsl:call-template name="字:填充">
2956						<xsl:with-param name="Stylename" select="@基式样引用_4104"/>
2957					</xsl:call-template>
2958				</xsl:for-each>
2959			</xsl:otherwise>
2960		</xsl:choose>
2961	</xsl:template>
2962	<xsl:template name="ParaPropertiesElement">
2963		<xsl:param name="Stylename"/>
2964		<!--here will create new element-->
2965		<style:tab-stops>
2966			<xsl:call-template name="字:制表位设置">
2967				<xsl:with-param name="Stylename" select="$Stylename"/>
2968			</xsl:call-template>
2969		</style:tab-stops>
2970		<xsl:call-template name="字:首字下沉">
2971			<xsl:with-param name="Stylename" select="$Stylename"/>
2972		</xsl:call-template>
2973		<xsl:call-template name="字:填充">
2974			<xsl:with-param name="Stylename" select="$Stylename"/>
2975		</xsl:call-template>
2976	</xsl:template>
2977	<xsl:template name="ParaPropertiesAll">
2978		<xsl:param name="tabstop"/>
2979		<xsl:param name="Stylename"/>
2980		<xsl:call-template name="ParaPropertiesAttr">
2981			<xsl:with-param name="tabstop" select="$tabstop"/>
2982			<xsl:with-param name="Stylename" select="$Stylename"/>
2983		</xsl:call-template>
2984		<xsl:call-template name="ParaPropertiesElement">
2985			<xsl:with-param name="Stylename" select="$Stylename"/>
2986		</xsl:call-template>
2987	</xsl:template>
2988	<xsl:template name="FindParentStyleName">
2989		<xsl:param name="parentStyleName"/>
2990		<xsl:choose>
2991			<xsl:when test="/uof:UOF_0000/式样:式样集_990B/式样:段落式样_9917[@标识符_4100 = $parentStyleName]/@类型_4102 = 'custom'">
2992				<xsl:attribute name="style:parent-style-name"><xsl:value-of select="$parentStyleName"/></xsl:attribute>
2993			</xsl:when>
2994			<xsl:otherwise>
2995				<xsl:if test="/uof:UOF_0000/式样:式样集_990B/式样:段落式样_9917[@标识符_4100 = $parentStyleName]/@基式样引用_4104">
2996					<xsl:call-template name="FindParentStyleName">
2997						<xsl:with-param name="parentStyleName" select="/uof:UOF_0000/式样:式样集_990B/式样:段落式样_9917[@标识符_4100 = $parentStyleName]/@基式样引用_4104"/>
2998					</xsl:call-template>
2999				</xsl:if>
3000			</xsl:otherwise>
3001		</xsl:choose>
3002	</xsl:template>
3003	<xsl:template name="OneParagraphStyle">
3004		<xsl:attribute name="style:family">paragraph</xsl:attribute>
3005		<xsl:attribute name="style:name"><xsl:value-of select="@标识符_4100"/></xsl:attribute>
3006		<xsl:choose>
3007			<xsl:when test="@别名_4103 and not(@类型_4102='default')">
3008				<xsl:attribute name="style:display-name"><xsl:choose><xsl:when test="@别名_4103='正文'">Text body</xsl:when><xsl:when test="@别名_4103='页脚'">footer</xsl:when><xsl:otherwise><xsl:value-of select="@别名_4103"/></xsl:otherwise></xsl:choose></xsl:attribute>
3009			</xsl:when>
3010			<xsl:otherwise>
3011				<xsl:attribute name="style:display-name"><xsl:value-of select="@标识符_4100"/></xsl:attribute>
3012			</xsl:otherwise>
3013		</xsl:choose>
3014		<xsl:if test="@基式样引用_4104">
3015			<xsl:call-template name="FindParentStyleName">
3016				<xsl:with-param name="parentStyleName" select="@基式样引用_4104"/>
3017			</xsl:call-template>
3018			<!--<xsl:attribute name="style:parent-style-name"><xsl:value-of select="@基式样引用_4104"/></xsl:attribute>-->
3019		</xsl:if>
3020		<xsl:if test="@后继式样引用_4105">
3021			<xsl:attribute name="style:next-style-name"><xsl:value-of select="@后继式样引用_4105"/></xsl:attribute>
3022		</xsl:if>
3023		<xsl:element name="style:paragraph-properties">
3024			<!--演示文稿中存在占位符的文字的默认式样,uof文件中定义了默认式样-->
3025			<xsl:if test="/uof:UOF_0000/式样:式样集_990B/式样:段落式样集_9911/式样:段落式样_9912[@类型_4102 = 'default']">
3026				<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:段落式样集_9911/式样:段落式样_9912[@类型_4102 = 'default']">
3027					<xsl:call-template name="defaultParaProAttr"/>
3028					<xsl:call-template name="ParaPropertiesAttr">
3029						<!--xsl:with-param name="Stylename" select="@基式样引用_4104"/-->
3030					</xsl:call-template>
3031				</xsl:for-each>
3032			</xsl:if>
3033			<xsl:call-template name="ParaPropertiesAll">
3034				<xsl:with-param name="Stylename" select="@基式样引用_4104"/>
3035			</xsl:call-template>
3036		</xsl:element>
3037		<xsl:element name="style:text-properties">
3038			<!--演示文稿中存在占位符的文字的默认式样,uof文件中定义了默认式样-->
3039			<xsl:if test="/uof:UOF_0000/式样:式样集_990B/式样:段落式样集_9911/式样:段落式样_9912[@字:类型 = 'default']/字:句属性_4158">
3040				<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:段落式样集_9911/式样:段落式样_9912[@字:类型 = 'default']">
3041					<xsl:call-template name="TextPropertiesAll">
3042						<xsl:with-param name="Stylename" select="@基式样引用_4104"/>
3043					</xsl:call-template>
3044				</xsl:for-each>
3045			</xsl:if>
3046			<xsl:for-each select="字:句属性_4158">
3047				<xsl:call-template name="TextProperties"/>
3048			</xsl:for-each>
3049			<xsl:choose>
3050				<xsl:when test="字:是否允许单词断字_4194 and (string(字:是否允许单词断字_4194)='1' or string(字:是否允许单词断字_4194)='true')">
3051					<xsl:for-each select="字:是否允许单词断字_4194">
3052						<xsl:apply-templates select="." mode="text"/>
3053					</xsl:for-each>
3054				</xsl:when>
3055				<xsl:when test="字:是否取消断字_4192">
3056					<xsl:for-each select="字:是否取消断字_4192">
3057						<xsl:apply-templates select="." mode="paragraph"/>
3058					</xsl:for-each>
3059				</xsl:when>
3060			</xsl:choose>
3061			<xsl:call-template name="HyphenateTextProperties">
3062				<xsl:with-param name="Stylename" select="@基式样引用_4104"/>
3063			</xsl:call-template>
3064		</xsl:element>
3065	</xsl:template>
3066	<xsl:template name="HyphenateTextProperties">
3067		<xsl:param name="Stylename"/>
3068		<xsl:if test="$Stylename!=''">
3069			<xsl:for-each select="key('uof-paragraph-styles',$Stylename)">
3070				<xsl:call-template name="HyphenateTextProperties">
3071					<xsl:with-param name="Stylename" select="@基式样引用_4104"/>
3072				</xsl:call-template>
3073			</xsl:for-each>
3074			<xsl:choose>
3075				<xsl:when test="字:是否允许单词断字_4194 and (string(字:是否允许单词断字_4194)='1' or string(字:是否允许单词断字_4194)='true')">
3076					<xsl:for-each select="字:是否允许单词断字_4194">
3077						<xsl:apply-templates select="." mode="text"/>
3078					</xsl:for-each>
3079				</xsl:when>
3080				<xsl:when test="字:是否取消断字_4192">
3081					<xsl:for-each select="字:是否取消断字_4192">
3082						<xsl:apply-templates select="." mode="paragraph"/>
3083					</xsl:for-each>
3084				</xsl:when>
3085			</xsl:choose>
3086		</xsl:if>
3087	</xsl:template>
3088	<xsl:template name="TextPropertiesAll">
3089		<xsl:param name="Stylename"/>
3090		<xsl:if test="$Stylename!=''">
3091			<xsl:for-each select="key('uof-paragraph-styles',$Stylename)">
3092				<xsl:call-template name="TextPropertiesAll">
3093					<xsl:with-param name="Stylename" select="@基式样引用_4104"/>
3094				</xsl:call-template>
3095			</xsl:for-each>
3096		</xsl:if>
3097		<xsl:for-each select="字:句属性_4158">
3098			<xsl:call-template name="TextProperties"/>
3099		</xsl:for-each>
3100	</xsl:template>
3101	<xsl:template name="UOFParagraphStyle">
3102		<xsl:param name="Type"/>
3103		<xsl:if test="@类型_4102=$Type">
3104			<xsl:choose>
3105				<xsl:when test="$Type='default'">
3106					<xsl:element name="style:default-style">
3107						<xsl:attribute name="style:family">paragraph</xsl:attribute>
3108						<xsl:element name="style:paragraph-properties">
3109							<xsl:call-template name="ParaPropertiesAll">
3110								<xsl:with-param name="tabstop" select="string('default')"/>
3111							</xsl:call-template>
3112						</xsl:element>
3113						<xsl:element name="style:text-properties">
3114							<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:句式样集_990F/式样:句式样_9910[@类型_4102='default'][1]">
3115								<xsl:call-template name="TextProperties"/>
3116							</xsl:for-each>
3117							<xsl:for-each select="字:句属性_4158">
3118								<xsl:call-template name="TextProperties"/>
3119							</xsl:for-each>
3120						</xsl:element>
3121					</xsl:element>
3122				</xsl:when>
3123				<xsl:when test="$Type='custom'">
3124					<xsl:element name="style:style">
3125						<xsl:call-template name="OneParagraphStyle"/>
3126					</xsl:element>
3127				</xsl:when>
3128				<xsl:when test="$Type='auto'">
3129					<xsl:element name="style:style">
3130						<xsl:call-template name="OneParagraphStyle"/>
3131					</xsl:element>
3132				</xsl:when>
3133			</xsl:choose>
3134		</xsl:if>
3135	</xsl:template>
3136	<xsl:template match="式样:段落式样_9912">
3137		<xsl:param name="Type"/>
3138		<xsl:call-template name="UOFParagraphStyle">
3139			<xsl:with-param name="Type" select="$Type"/>
3140		</xsl:call-template>
3141	</xsl:template>
3142	<xsl:template name="ParaParentProperties">
3143		<xsl:param name="Stylename"/>
3144		<xsl:for-each select="key('uof-paragraph-styles',$Stylename)">
3145			<xsl:if test="@基式样引用_4104">
3146				<xsl:call-template name="ParaParentProperties">
3147					<xsl:with-param name="Stylename" select="@基式样引用_4104"/>
3148				</xsl:call-template>
3149			</xsl:if>
3150			<xsl:call-template name="ParaPropertiesAttr"/>
3151		</xsl:for-each>
3152	</xsl:template>
3153	<xsl:template name="ParaParentPropertiesElement">
3154		<xsl:param name="Stylename"/>
3155		<xsl:for-each select="key('uof-paragraph-styles',$Stylename)">
3156			<xsl:if test="@基式样引用_4104">
3157				<xsl:call-template name="ParaParentProperties">
3158					<xsl:with-param name="Stylename" select="@基式样引用_4104"/>
3159				</xsl:call-template>
3160			</xsl:if>
3161			<xsl:call-template name="ParaPropertiesAll">
3162				<xsl:with-param name="Stylename" select="$Stylename"/>
3163			</xsl:call-template>
3164		</xsl:for-each>
3165	</xsl:template>
3166	<xsl:template name="TextParaParentProperties">
3167		<xsl:param name="Stylename"/>
3168		<xsl:for-each select="key('uof-paragraph-styles',$Stylename)">
3169			<xsl:if test="@基式样引用_4104">
3170				<xsl:call-template name="TextParaParentProperties">
3171					<xsl:with-param name="Stylename" select="@基式样引用_4104"/>
3172				</xsl:call-template>
3173			</xsl:if>
3174			<xsl:for-each select="字:句属性_4158">
3175				<xsl:call-template name="TextProperties"/>
3176			</xsl:for-each>
3177		</xsl:for-each>
3178	</xsl:template>
3179	<xsl:template name="PageBreakStyle">
3180		<xsl:element name="style:style">
3181			<xsl:attribute name="style:family">paragraph</xsl:attribute>
3182			<xsl:attribute name="style:name"><xsl:value-of select="concat('breakpage',generate-id(.))"/></xsl:attribute>
3183			<xsl:variable name="Stylename">
3184				<xsl:value-of select="./字:段落属性_419B/@式样引用_419C"/>
3185			</xsl:variable>
3186			<xsl:choose>
3187				<xsl:when test="$Stylename != ''">
3188					<xsl:call-template name="FindParentStyleName">
3189						<xsl:with-param name="parentStyleName" select="$Stylename"/>
3190					</xsl:call-template>
3191					<!---<xsl:attribute name="style:parent-style-name"><xsl:value-of select="$Stylename"/></xsl:attribute>-->
3192					<xsl:element name="style:paragraph-properties">
3193						<xsl:attribute name="fo:break-before">page</xsl:attribute>
3194						<xsl:call-template name="ParaParentProperties">
3195							<xsl:with-param name="Stylename" select="$Stylename"/>
3196						</xsl:call-template>
3197						<xsl:for-each select="字:段落属性_419B">
3198							<xsl:call-template name="ParaPropertiesAll">
3199								<xsl:with-param name="Stylename" select="$Stylename"/>
3200							</xsl:call-template>
3201						</xsl:for-each>
3202					</xsl:element>
3203					<xsl:element name="style:text-properties">
3204						<xsl:call-template name="TextParaParentProperties">
3205							<xsl:with-param name="Stylename" select="$Stylename"/>
3206						</xsl:call-template>
3207						<xsl:for-each select="字:段落属性_419B/字:句属性_4158">
3208							<xsl:call-template name="TextProperties"/>
3209						</xsl:for-each>
3210					</xsl:element>
3211				</xsl:when>
3212				<xsl:otherwise>
3213					<xsl:element name="style:paragraph-properties">
3214						<xsl:for-each select="字:段落属性_419B">
3215							<xsl:call-template name="ParaPropertiesAll">
3216								<xsl:with-param name="Stylename" select="$Stylename"/>
3217							</xsl:call-template>
3218						</xsl:for-each>
3219					</xsl:element>
3220					<xsl:element name="style:text-properties">
3221						<xsl:for-each select="字:段落属性_419B/字:句属性_4158">
3222							<xsl:call-template name="TextProperties"/>
3223						</xsl:for-each>
3224					</xsl:element>
3225				</xsl:otherwise>
3226			</xsl:choose>
3227		</xsl:element>
3228	</xsl:template>
3229	<xsl:template name="PageColumnStyle">
3230		<xsl:element name="style:style">
3231			<xsl:attribute name="style:family">paragraph</xsl:attribute>
3232			<xsl:attribute name="style:name"><xsl:value-of select="concat('breakcolumn',generate-id(.))"/></xsl:attribute>
3233			<xsl:variable name="Stylename">
3234				<xsl:value-of select="./字:段落属性_419B/@式样引用_419C"/>
3235			</xsl:variable>
3236			<xsl:choose>
3237				<xsl:when test="$Stylename != ''">
3238					<xsl:call-template name="FindParentStyleName">
3239						<xsl:with-param name="parentStyleName" select="$Stylename"/>
3240					</xsl:call-template>
3241					<!---<xsl:attribute name="style:parent-style-name"><xsl:value-of select="$Stylename"/></xsl:attribute>-->
3242					<xsl:element name="style:paragraph-properties">
3243						<xsl:attribute name="fo:break-before">column</xsl:attribute>
3244						<xsl:call-template name="ParaParentProperties">
3245							<xsl:with-param name="Stylename" select="$Stylename"/>
3246						</xsl:call-template>
3247						<xsl:for-each select="字:段落属性_419B">
3248							<xsl:call-template name="ParaPropertiesAll">
3249								<xsl:with-param name="Stylename" select="$Stylename"/>
3250							</xsl:call-template>
3251						</xsl:for-each>
3252					</xsl:element>
3253					<xsl:element name="style:text-properties">
3254						<xsl:call-template name="TextParaParentProperties">
3255							<xsl:with-param name="Stylename" select="$Stylename"/>
3256						</xsl:call-template>
3257						<xsl:for-each select="字:段落属性_419B/字:句属性_4158">
3258							<xsl:call-template name="TextProperties"/>
3259						</xsl:for-each>
3260					</xsl:element>
3261				</xsl:when>
3262				<xsl:otherwise>
3263					<xsl:element name="style:paragraph-properties">
3264						<xsl:for-each select="字:段落属性_419B">
3265							<xsl:call-template name="ParaPropertiesAll">
3266								<xsl:with-param name="Stylename" select="$Stylename"/>
3267							</xsl:call-template>
3268						</xsl:for-each>
3269					</xsl:element>
3270					<xsl:element name="style:text-properties">
3271						<xsl:for-each select="字:段落属性_419B/字:句属性_4158">
3272							<xsl:call-template name="TextProperties"/>
3273						</xsl:for-each>
3274					</xsl:element>
3275				</xsl:otherwise>
3276			</xsl:choose>
3277		</xsl:element>
3278	</xsl:template>
3279	<xsl:template name="BodyParagraphProperties">
3280		<xsl:variable name="SpecialSection">
3281			<xsl:choose>
3282				<xsl:when test="($document_type='text') and (name(..) = '字:文字处理文档_4225')">
3283					<xsl:variable name="SectPos">
3284						<xsl:choose>
3285							<xsl:when test="preceding-sibling::*[1][name(.) = '字:分节_416A'] and preceding-sibling::*[1]/字:节属性_421B/字:节类型_41EA != 'continuous'">
3286								<!--xsl:call-template name="IsPrecedeType">
3287						<xsl:with-param name="nodename" select="'字:分节'"/>
3288						<xsl:with-param name="pos" select="0"/>
3289					</xsl:call-template-->
3290								<xsl:value-of select="1"/>
3291							</xsl:when>
3292							<xsl:otherwise>
3293								<xsl:value-of select="0"/>
3294							</xsl:otherwise>
3295						</xsl:choose>
3296					</xsl:variable>
3297					<xsl:choose>
3298						<xsl:when test="number($SectPos) &gt; 0">
3299							<xsl:for-each select="preceding-sibling::*[position() = $SectPos]">
3300								<xsl:choose>
3301									<xsl:when test="字:节属性_421B/字:是否首页页眉页脚不同_41EE='true'">
3302										<xsl:value-of select="nsof:NeoShineOfficeID(字:节属性_421B/字:是否首页页眉页脚不同_41EE)"/>
3303									</xsl:when>
3304									<xsl:when test="字:节属性_421B/字:页码设置_4205/@字:首页显示 = 'false'">
3305										<xsl:value-of select="nsof:NeoShineOfficeID(字:节属性_421B/字:页码设置_4205)"/>
3306									</xsl:when>
3307									<xsl:otherwise>
3308										<xsl:choose>
3309											<xsl:when test="@名称_4166='RoStandard'">
3310												<xsl:value-of select="string('none')"/>
3311											</xsl:when>
3312											<xsl:otherwise>
3313												<xsl:value-of select="nsof:NeoShineOfficeID(.)"/>
3314											</xsl:otherwise>
3315										</xsl:choose>
3316									</xsl:otherwise>
3317								</xsl:choose>
3318							</xsl:for-each>
3319						</xsl:when>
3320						<xsl:otherwise>
3321							<xsl:value-of select="string('none')"/>
3322						</xsl:otherwise>
3323					</xsl:choose>
3324				</xsl:when>
3325				<xsl:otherwise>
3326					<xsl:value-of select="string('none')"/>
3327				</xsl:otherwise>
3328			</xsl:choose>
3329		</xsl:variable>
3330		<xsl:variable name="PageNumberStart">
3331			<xsl:if test="($document_type='text') and (name(..) = '字:文字处理文档_4225')">
3332				<xsl:variable name="SectPos">
3333					<xsl:choose>
3334						<xsl:when test="preceding-sibling::*[1][name(.) = '字:分节_416A'] and preceding-sibling::*[1]/字:节属性_421B/字:节类型_41EA != 'continuous'">
3335							<!--xsl:call-template name="IsPrecedeType">
3336						<xsl:with-param name="nodename" select="'字:分节'"/>
3337						<xsl:with-param name="pos" select="0"/>
3338					</xsl:call-template-->
3339							<xsl:value-of select="1"/>
3340						</xsl:when>
3341						<xsl:otherwise>
3342							<xsl:value-of select="0"/>
3343						</xsl:otherwise>
3344					</xsl:choose>
3345				</xsl:variable>
3346				<xsl:if test="number($SectPos) &gt; 0">
3347					<xsl:for-each select="preceding-sibling::*[position() = $SectPos]">
3348						<xsl:if test="字:节属性_421B/字:页码设置_4205/@起始编号_4152">
3349							<xsl:value-of select="字:节属性_421B/字:页码设置_4205/@起始编号_4152"/>
3350						</xsl:if>
3351					</xsl:for-each>
3352				</xsl:if>
3353			</xsl:if>
3354		</xsl:variable>
3355		<xsl:choose>
3356			<xsl:when test="((count(./字:段落属性_419B/child::*) = 1) and not(./字:段落属性_419B/字:自动编号信息_4186)) or (count(./字:段落属性_419B/child::*) &gt; 1)">
3357				<xsl:element name="style:style">
3358					<xsl:attribute name="style:family">paragraph</xsl:attribute>
3359					<xsl:attribute name="style:name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
3360					<xsl:if test="$SpecialSection != 'none'">
3361						<xsl:attribute name="style:master-page-name"><xsl:value-of select="$SpecialSection"/></xsl:attribute>
3362					</xsl:if>
3363					<xsl:variable name="Stylename">
3364						<xsl:value-of select="./字:段落属性_419B/@式样引用_419C"/>
3365					</xsl:variable>
3366					<xsl:choose>
3367						<xsl:when test="$Stylename != ''">
3368							<xsl:call-template name="FindParentStyleName">
3369								<xsl:with-param name="parentStyleName" select="$Stylename"/>
3370							</xsl:call-template>
3371							<!---<xsl:attribute name="style:parent-style-name"><xsl:value-of select="$Stylename"/></xsl:attribute>-->
3372							<xsl:element name="style:paragraph-properties">
3373								<!--xsl:call-template name="ParaParentProperties">
3374									<xsl:with-param name="Stylename" select="$Stylename"/>
3375								</xsl:call-template-->
3376								<xsl:for-each select="字:段落属性_419B">
3377									<xsl:call-template name="ParaPropertiesAll">
3378										<xsl:with-param name="Stylename" select="$Stylename"/>
3379									</xsl:call-template>
3380								</xsl:for-each>
3381							</xsl:element>
3382							<xsl:element name="style:text-properties">
3383								<xsl:call-template name="TextParaParentProperties">
3384									<xsl:with-param name="Stylename" select="$Stylename"/>
3385								</xsl:call-template>
3386								<xsl:for-each select="字:段落属性_419B/字:句属性_4158">
3387									<xsl:call-template name="TextProperties"/>
3388								</xsl:for-each>
3389								<xsl:choose>
3390									<xsl:when test="字:段落属性_419B/字:是否允许单词断字_4194 and (string(字:段落属性_419B/字:是否允许单词断字_4194)='1' or string(字:段落属性_419B/字:是否允许单词断字_4194)='true')">
3391										<xsl:for-each select="字:段落属性_419B/字:是否允许单词断字_4194">
3392											<xsl:apply-templates select="." mode="text"/>
3393										</xsl:for-each>
3394									</xsl:when>
3395									<xsl:when test="字:段落属性_419B/字:是否取消断字_4192">
3396										<xsl:for-each select="字:段落属性_419B/字:是否取消断字_4192">
3397											<xsl:apply-templates select="." mode="paragraph"/>
3398										</xsl:for-each>
3399									</xsl:when>
3400								</xsl:choose>
3401							</xsl:element>
3402						</xsl:when>
3403						<xsl:otherwise>
3404							<xsl:element name="style:paragraph-properties">
3405								<xsl:for-each select="字:段落属性_419B">
3406									<xsl:call-template name="ParaPropertiesAll">
3407										<xsl:with-param name="Stylename" select="$Stylename"/>
3408									</xsl:call-template>
3409								</xsl:for-each>
3410							</xsl:element>
3411							<xsl:element name="style:text-properties">
3412								<xsl:for-each select="字:段落属性_419B/字:句属性_4158">
3413									<xsl:call-template name="TextProperties"/>
3414								</xsl:for-each>
3415								<xsl:choose>
3416									<xsl:when test="字:段落属性_419B/字:是否允许单词断字_4194 and (string(字:段落属性_419B/字:是否允许单词断字_4194)='1' or string(字:段落属性_419B/字:是否允许单词断字_4194)='true')">
3417										<xsl:for-each select="字:段落属性_419B/字:是否允许单词断字_4194">
3418											<xsl:apply-templates select="." mode="text"/>
3419										</xsl:for-each>
3420									</xsl:when>
3421									<xsl:when test="字:段落属性_419B/字:是否取消断字_4192">
3422										<xsl:for-each select="字:段落属性_419B/字:是否取消断字_4192">
3423											<xsl:apply-templates select="." mode="paragraph"/>
3424										</xsl:for-each>
3425									</xsl:when>
3426								</xsl:choose>
3427							</xsl:element>
3428						</xsl:otherwise>
3429					</xsl:choose>
3430				</xsl:element>
3431			</xsl:when>
3432			<xsl:otherwise>
3433				<xsl:if test="($SpecialSection !='none')">
3434					<xsl:variable name="Stylename">
3435						<xsl:value-of select="./字:段落属性_419B/@式样引用_419C"/>
3436					</xsl:variable>
3437					<xsl:if test="$Stylename">
3438						<xsl:element name="style:style">
3439							<xsl:attribute name="style:family">paragraph</xsl:attribute>
3440							<xsl:attribute name="style:name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
3441							<xsl:if test="$SpecialSection != 'none'">
3442								<xsl:attribute name="style:master-page-name"><xsl:value-of select="$SpecialSection"/></xsl:attribute>
3443							</xsl:if>
3444							<xsl:element name="style:paragraph-properties">
3445								<xsl:if test="$PageNumberStart != ''">
3446									<xsl:attribute name="style:page-number"><xsl:value-of select="$PageNumberStart"/></xsl:attribute>
3447								</xsl:if>
3448								<xsl:call-template name="ParaParentProperties">
3449									<xsl:with-param name="Stylename" select="$Stylename"/>
3450								</xsl:call-template>
3451								<xsl:call-template name="ParaParentPropertiesElement">
3452									<xsl:with-param name="Stylename" select="$Stylename"/>
3453								</xsl:call-template>
3454							</xsl:element>
3455							<xsl:element name="style:text-properties">
3456								<xsl:call-template name="TextParaParentProperties">
3457									<xsl:with-param name="Stylename" select="$Stylename"/>
3458								</xsl:call-template>
3459							</xsl:element>
3460						</xsl:element>
3461					</xsl:if>
3462				</xsl:if>
3463			</xsl:otherwise>
3464		</xsl:choose>
3465		<xsl:if test="($document_type='text') and preceding-sibling::*[1]//字:分页符_4163">
3466			<xsl:call-template name="PageBreakStyle"/>
3467		</xsl:if>
3468		<xsl:if test="($document_type='text') and .//字:分页符_4163">
3469			<xsl:call-template name="PageBreakStyle"/>
3470		</xsl:if>
3471		<xsl:if test="($document_type='text') and preceding-sibling::*[1]//字:分栏符_4160">
3472			<xsl:call-template name="PageColumnStyle"/>
3473		</xsl:if>
3474		<xsl:if test="($document_type='text') and .//字:分栏符_4160">
3475			<xsl:call-template name="PageColumnStyle"/>
3476		</xsl:if>
3477		<!--图形文字的文字排列方向,水平从右至左,需要生成新的式样-->
3478		<xsl:if test="ancestor::*[name() = '图:文本_803C']/图:文字排列方向_8042='r2l-t2b-90e-90w' or ancestor::*[name() = '图:文本_803C']/图:文字排列方向_8042='t2b-r2l-0e-0w' or ancestor::*[name() = '图:文本_803C']/图:文字排列方向_8042='r2l-t2b-0e-90w'">
3479			<xsl:element name="style:style">
3480				<xsl:attribute name="style:family">paragraph</xsl:attribute>
3481				<xsl:attribute name="style:name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
3482				<xsl:variable name="Stylename" select="./字:段落属性_419B/@式样引用_419C"/>
3483				<xsl:choose>
3484					<xsl:when test="$Stylename != ''">
3485						<!--<xsl:attribute name="style:parent-style-name"><xsl:value-of select="$Stylename"/></xsl:attribute>-->
3486						<xsl:call-template name="FindParentStyleName">
3487							<xsl:with-param name="parentStyleName" select="$Stylename"/>
3488						</xsl:call-template>
3489						<style:paragraph-properties style:writing-mode="rl-tb" fo:text-align="end">
3490							<xsl:call-template name="ParaParentProperties">
3491								<xsl:with-param name="Stylename" select="$Stylename"/>
3492							</xsl:call-template>
3493							<xsl:for-each select="字:段落属性_419B">
3494								<xsl:call-template name="ParaPropertiesAll">
3495									<xsl:with-param name="Stylename" select="$Stylename"/>
3496								</xsl:call-template>
3497							</xsl:for-each>
3498						</style:paragraph-properties>
3499						<xsl:element name="style:text-properties">
3500							<xsl:call-template name="TextParaParentProperties">
3501								<xsl:with-param name="Stylename" select="$Stylename"/>
3502							</xsl:call-template>
3503							<xsl:for-each select="字:段落属性_419B/字:句属性_4158">
3504								<xsl:call-template name="TextProperties"/>
3505							</xsl:for-each>
3506						</xsl:element>
3507					</xsl:when>
3508					<xsl:otherwise>
3509						<style:paragraph-properties style:writing-mode="rl-tb" fo:text-align="end">
3510							<xsl:for-each select="字:段落属性_419B">
3511								<xsl:call-template name="ParaPropertiesAll">
3512									<xsl:with-param name="Stylename" select="$Stylename"/>
3513								</xsl:call-template>
3514							</xsl:for-each>
3515						</style:paragraph-properties>
3516						<xsl:element name="style:text-properties">
3517							<xsl:for-each select="字:段落属性_419B/字:句属性_4158">
3518								<xsl:call-template name="TextProperties"/>
3519							</xsl:for-each>
3520						</xsl:element>
3521					</xsl:otherwise>
3522				</xsl:choose>
3523			</xsl:element>
3524		</xsl:if>
3525	</xsl:template>
3526	<!--
3527	<xsl:template match="字:缩进_411D" mode="liststyle">
3528		<xsl:if test="字:左">
3529			<xsl:choose>
3530				<xsl:when test="字:左/字:绝对">
3531					<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat(字:左/字:绝对/@字:值,$uofUnit)"/></xsl:attribute>
3532				</xsl:when>
3533				<xsl:when test="字:左/字:相对">
3534					<xsl:variable name="a1">
3535						<xsl:value-of select="字:左/字:相对/@字:值"/>
3536					</xsl:variable>
3537					<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat($a1 * 10.5, 'pt')"/></xsl:attribute>
3538				</xsl:when>
3539			</xsl:choose>
3540		</xsl:if>
3541		<xsl:if test="字:首行">
3542			<xsl:variable name="a3">
3543				<xsl:value-of select="字:首行/字:相对/@字:值"/>
3544			</xsl:variable>
3545			<xsl:choose>
3546				<xsl:when test="字:首行/字:绝对">
3547					<xsl:variable name="indent">
3548						<xsl:value-of select="number(字:首行/字:绝对/@字:值) - number(字:左/字:绝对/@字:值)"/>
3549					</xsl:variable>
3550					<xsl:attribute name="fo:text-indent"><xsl:value-of select="concat($indent, $uofUnit)"/></xsl:attribute>
3551				</xsl:when>
3552				<xsl:when test="字:首行/字:相对">
3553					<xsl:variable name="a3">
3554						<xsl:value-of select="字:首行/字:相对/@字:值"/>
3555					</xsl:variable>
3556					<xsl:variable name="a1">
3557						<xsl:choose>
3558							<xsl:when test="字:左/字:相对"><xsl:value-of select="字:左/字:相对/@字:值"/></xsl:when>
3559							<xsl:otherwise>0</xsl:otherwise>
3560						</xsl:choose>
3561					</xsl:variable>
3562					<xsl:attribute name="fo:text-indent"><xsl:value-of select="concat(($a3 - $a1) * 10.5, 'pt')"/></xsl:attribute>
3563				</xsl:when>
3564			</xsl:choose>
3565		</xsl:if>
3566	</xsl:template>-->
3567	<xsl:template match="字:缩进_411D" mode="liststyle">
3568		<xsl:variable name="fontcharsize">
3569			<xsl:for-each select="..">
3570				<xsl:call-template name="ParaCharSize"/>
3571			</xsl:for-each>
3572		</xsl:variable>
3573		<xsl:if test="字:首行_4111">
3574			<xsl:choose>
3575				<xsl:when test="字:首行_4111/字:绝对_4107">
3576					<xsl:attribute name="fo:text-indent"><xsl:value-of select="concat(字:首行_4111/字:绝对_4107/@值_410F, $uofUnit)"/></xsl:attribute>
3577				</xsl:when>
3578				<xsl:when test="字:首行_4111/字:相对_4109">
3579					<xsl:variable name="a3" select="字:首行_4111/字:相对_4109/@值_4108"/>
3580					<xsl:attribute name="fo:text-indent"><xsl:value-of select="concat($a3 * $fontcharsize, 'pt')"/></xsl:attribute>
3581				</xsl:when>
3582			</xsl:choose>
3583		</xsl:if>
3584		<xsl:if test="字:左_410E">
3585			<xsl:choose>
3586				<xsl:when test="字:左_410E/字:绝对_4107">
3587					<xsl:variable name="textIndent">
3588						<xsl:choose>
3589							<xsl:when test="字:首行_4111/字:绝对_4107/@值_410F">
3590								<xsl:value-of select="字:首行_4111/字:绝对_4107/@值_410F"/>
3591							</xsl:when>
3592							<xsl:otherwise>0</xsl:otherwise>
3593						</xsl:choose>
3594					</xsl:variable>
3595					<xsl:variable name="marginleft">
3596						<xsl:choose>
3597							<xsl:when test="number($textIndent &lt; 0)">
3598								<xsl:value-of select="number(字:左_410E/字:绝对_4107/@值_410F) - number($textIndent)"/>
3599							</xsl:when>
3600							<xsl:otherwise>
3601								<xsl:value-of select="number(字:左_410E/字:绝对_4107/@值_410F)"/>
3602							</xsl:otherwise>
3603						</xsl:choose>
3604					</xsl:variable>
3605					<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat($marginleft, $uofUnit)"/></xsl:attribute>
3606				</xsl:when>
3607				<xsl:when test="字:左_410E/字:相对_4109">
3608					<xsl:variable name="a3">
3609						<xsl:choose>
3610							<xsl:when test="字:首行_4111/字:相对_4109">
3611								<xsl:value-of select="字:首行_4111/字:相对_4109/@值_4108"/>
3612							</xsl:when>
3613							<xsl:otherwise>0</xsl:otherwise>
3614						</xsl:choose>
3615					</xsl:variable>
3616					<xsl:variable name="a1" select="字:左_410E/字:相对_4109/@值_4108"/>
3617					<!--<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat(($a1 - $a3) * 10.5, 'pt')"/></xsl:attribute>-->
3618					<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat(($a1 - $a3) * $fontcharsize, 'pt')"/></xsl:attribute>
3619				</xsl:when>
3620			</xsl:choose>
3621		</xsl:if>
3622	</xsl:template>
3623	<xsl:template name="TextDisplayLevels">
3624		<xsl:param name="NumberFormatDisplay"/>
3625		<xsl:param name="Level"/>
3626		<xsl:variable name="NumberFormatDisplayAfter">
3627			<xsl:value-of select="substring-after($NumberFormatDisplay,'%')"/>
3628		</xsl:variable>
3629		<xsl:choose>
3630			<xsl:when test="substring-after($NumberFormatDisplayAfter,'%')">
3631				<xsl:call-template name="TextDisplayLevels">
3632					<xsl:with-param name="NumberFormatDisplay" select="$NumberFormatDisplayAfter"/>
3633					<xsl:with-param name="Level" select="number($Level)+1"/>
3634				</xsl:call-template>
3635			</xsl:when>
3636			<xsl:otherwise>
3637				<xsl:if test="not(number($Level)=1)">
3638					<xsl:attribute name="text:display-levels"><xsl:value-of select="$Level"/></xsl:attribute>
3639				</xsl:if>
3640			</xsl:otherwise>
3641		</xsl:choose>
3642	</xsl:template>
3643	<xsl:template name="ListLevelProperties">
3644		<xsl:param name="type"/>
3645		<xsl:element name="style:list-level-properties">
3646			<xsl:if test="字:编号对齐方式_4113">
3647				<xsl:variable name="alignformat">
3648					<xsl:choose>
3649						<xsl:when test="字:编号对齐方式_4113='center' ">center</xsl:when>
3650						<xsl:when test="字:编号对齐方式_4113='right' ">end</xsl:when>
3651						<xsl:otherwise>left</xsl:otherwise>
3652					</xsl:choose>
3653				</xsl:variable>
3654				<xsl:attribute name="fo:text-align"><xsl:value-of select="$alignformat"/></xsl:attribute>
3655			</xsl:if>
3656			<xsl:if test="$type = 'image'">
3657				<xsl:attribute name="style:vertical-pos">middle</xsl:attribute>
3658				<xsl:attribute name="style:vertical-rel">line</xsl:attribute>
3659				<xsl:variable name="imagewidth">
3660					<xsl:choose>
3661						<xsl:when test="字:图片符号_411B/@宽_C605">
3662							<xsl:value-of select="字:图片符号_411B/@宽_C605"/>
3663						</xsl:when>
3664						<xsl:otherwise>
3665							<xsl:value-of select="number(0.27 div $other-to-cm-conversion-factor)"/>
3666						</xsl:otherwise>
3667					</xsl:choose>
3668				</xsl:variable>
3669				<xsl:variable name="imageheight">
3670					<xsl:choose>
3671						<xsl:when test="字:图片符号_411B/@长_C604">
3672							<xsl:value-of select="字:图片符号_411B/@长_C604"/>
3673						</xsl:when>
3674						<xsl:otherwise>
3675							<xsl:value-of select="number(0.27 div $other-to-cm-conversion-factor)"/>
3676						</xsl:otherwise>
3677					</xsl:choose>
3678				</xsl:variable>
3679				<xsl:attribute name="fo:width"><xsl:value-of select="concat($imagewidth,$uofUnit)"/></xsl:attribute>
3680				<xsl:attribute name="fo:height"><xsl:value-of select="concat($imageheight,$uofUnit)"/></xsl:attribute>
3681			</xsl:if>
3682			<!--演中编号的对齐-->
3683			<xsl:choose>
3684				<xsl:when test="$document_type='presentation'">
3685					<xsl:if test="字:缩进_411D/字:左_410E/字:绝对_4107">
3686						<xsl:attribute name="text:space-before"><xsl:value-of select="concat(字:缩进_411D/字:左_410E/字:绝对_4107/@值_410F,$uofUnit)"/></xsl:attribute>
3687					</xsl:if>
3688					<xsl:if test="字:缩进_411D/字:首行_4111/字:绝对_4107">
3689						<xsl:attribute name="text:min-label-width"><xsl:value-of select="concat(字:缩进_411D/字:首行_4111/字:绝对_4107/@值_410F,$uofUnit)"/></xsl:attribute>
3690					</xsl:if>
3691				</xsl:when>
3692				<xsl:otherwise>
3693					<xsl:attribute name="text:list-level-position-and-space-mode">label-alignment</xsl:attribute>
3694					<xsl:element name="style:list-level-label-alignment">
3695						<xsl:if test="字:尾随字符_4114">
3696							<xsl:variable name="follow">
3697								<xsl:choose>
3698									<xsl:when test="字:尾随字符_4114 = 'space'">space</xsl:when>
3699									<xsl:when test="字:尾随字符_4114 = 'tab'">listtab</xsl:when>
3700									<xsl:otherwise>nothing</xsl:otherwise>
3701								</xsl:choose>
3702							</xsl:variable>
3703							<xsl:attribute name="text:label-followed-by"><xsl:value-of select="$follow"/></xsl:attribute>
3704						</xsl:if>
3705						<xsl:if test="字:制表符位置_411E">
3706							<xsl:attribute name="text:list-tab-stop-position"><xsl:value-of select="concat(字:制表符位置_411E,$uofUnit)"/></xsl:attribute>
3707						</xsl:if>
3708						<xsl:if test="字:缩进_411D">
3709							<xsl:apply-templates select="字:缩进_411D" mode="liststyle"/>
3710						</xsl:if>
3711					</xsl:element>
3712				</xsl:otherwise>
3713			</xsl:choose>
3714		</xsl:element>
3715		<xsl:for-each select="字:符号字体_4116">
3716			<xsl:element name="style:text-properties">
3717				<xsl:call-template name="TextProperties"/>
3718			</xsl:element>
3719		</xsl:for-each>
3720	</xsl:template>
3721	<xsl:template name="BulletList">
3722		<xsl:element name="text:list-level-style-bullet">
3723			<xsl:attribute name="text:level"><xsl:value-of select="number(@级别值_4121)"/></xsl:attribute>
3724			<xsl:attribute name="text:bullet-char"><xsl:value-of select="字:项目符号_4115"/></xsl:attribute>
3725			<xsl:choose>
3726				<xsl:when test="count(字:符号字体_4116/child::*)=0 and 字:符号字体_4116/@式样引用_4247">
3727					<xsl:attribute name="text:style-name"><xsl:value-of select="字:符号字体_4116/@式样引用_4247"/></xsl:attribute>
3728				</xsl:when>
3729				<xsl:otherwise>
3730					<xsl:attribute name="text:style-name"><xsl:value-of select="generate-id(字:符号字体_4116)"/></xsl:attribute>
3731				</xsl:otherwise>
3732			</xsl:choose>
3733			<xsl:call-template name="ListLevelProperties"/>
3734		</xsl:element>
3735	</xsl:template>
3736	<xsl:template name="ImageList">
3737		<xsl:element name="text:list-level-style-image">
3738			<xsl:attribute name="text:level"><xsl:value-of select="number(@级别值_4121)"/></xsl:attribute>
3739			<xsl:if test="字:图片符号_411B">
3740				<xsl:variable name="gid">
3741					<xsl:value-of select="字:图片符号_411B/@引用_411C"/>
3742				</xsl:variable>
3743				<xsl:choose>
3744					<xsl:when test="key('other-styles',$gid)/对象:路径_D703">
3745						<xsl:attribute name="xlink:href"><xsl:value-of select="replace(key('other-styles',$gid)/对象:路径_D703,'/data','Pictures')"/></xsl:attribute>
3746					</xsl:when>
3747					<xsl:when test="key('other-styles',$gid)/对象:数据_D702">
3748						<xsl:call-template name="BinaryGraphic">
3749							<xsl:with-param name="refGraphic" select="$gid"/>
3750						</xsl:call-template>
3751					</xsl:when>
3752				</xsl:choose>
3753			</xsl:if>
3754			<xsl:call-template name="ListLevelProperties">
3755				<xsl:with-param name="type" select="'image'"/>
3756			</xsl:call-template>
3757		</xsl:element>
3758	</xsl:template>
3759	<xsl:template name="NumberList">
3760		<xsl:element name="text:list-level-style-number">
3761			<xsl:attribute name="text:level"><xsl:value-of select="number(@级别值_4121)"/></xsl:attribute>
3762			<xsl:choose>
3763				<xsl:when test="count(字:符号字体_4116/child::*)=0 and 字:符号字体_4116/@式样引用_4247">
3764					<xsl:attribute name="text:style-name"><xsl:value-of select="字:符号字体_4116/@式样引用_4247"/></xsl:attribute>
3765				</xsl:when>
3766				<xsl:otherwise>
3767					<xsl:attribute name="text:style-name"><xsl:value-of select="generate-id(字:符号字体_4116)"/></xsl:attribute>
3768				</xsl:otherwise>
3769			</xsl:choose>
3770			<xsl:if test="字:起始编号_411F">
3771				<xsl:attribute name="text:start-value"><xsl:value-of select="字:起始编号_411F"/></xsl:attribute>
3772			</xsl:if>
3773			<xsl:if test="字:是否使用正规格式_4120">
3774				<xsl:variable name="regular">
3775					<xsl:choose>
3776						<xsl:when test="字:是否使用正规格式_4120='true' or 字:是否使用正规格式_4120='1'">1</xsl:when>
3777						<xsl:otherwise>0</xsl:otherwise>
3778					</xsl:choose>
3779				</xsl:variable>
3780				<xsl:attribute name="text:num-regular-exp"><xsl:value-of select="$regular"/></xsl:attribute>
3781			</xsl:if>
3782			<xsl:if test="字:编号格式_4119">
3783				<xsl:variable name="format">
3784					<xsl:call-template name="NumberFormat">
3785						<xsl:with-param name="oo_format" select="字:编号格式_4119"/>
3786					</xsl:call-template>
3787				</xsl:variable>
3788				<xsl:attribute name="style:num-format"><xsl:value-of select="$format"/></xsl:attribute>
3789				<xsl:variable name="NumSuffix">
3790					<xsl:variable name="suffix">
3791						<xsl:choose>
3792							<xsl:when test="字:编号格式_4119='decimal-enclosed-fullstop'">
3793								<xsl:value-of select="'.'"/>
3794							</xsl:when>
3795							<xsl:when test="字:编号格式_4119='decimal-enclosed-paren'">
3796								<xsl:value-of select="')'"/>
3797							</xsl:when>
3798						</xsl:choose>
3799					</xsl:variable>
3800					<xsl:value-of select="concat($suffix,substring-after(字:编号格式表示_411A,concat('%',@级别值_4121)))"/>
3801				</xsl:variable>
3802				<xsl:if test="$NumSuffix !=''">
3803					<xsl:attribute name="style:num-suffix"><xsl:value-of select="$NumSuffix"/></xsl:attribute>
3804				</xsl:if>
3805				<xsl:variable name="NumPrefix">
3806					<xsl:variable name="prefix">
3807						<xsl:if test="字:编号格式_4119='decimal-enclosed-paren'">
3808							<xsl:value-of select="'('"/>
3809						</xsl:if>
3810					</xsl:variable>
3811					<xsl:value-of select="concat(substring-before(字:编号格式表示_411A,'%'),$prefix)"/>
3812				</xsl:variable>
3813				<xsl:if test="$NumPrefix !=''">
3814					<xsl:attribute name="style:num-prefix"><xsl:value-of select="$NumPrefix"/></xsl:attribute>
3815				</xsl:if>
3816				<xsl:if test="字:编号格式表示_411A">
3817					<xsl:call-template name="TextDisplayLevels">
3818						<xsl:with-param name="NumberFormatDisplay">
3819							<xsl:value-of select="字:编号格式表示_411A"/>
3820						</xsl:with-param>
3821						<xsl:with-param name="Level">
3822							<xsl:value-of select="1"/>
3823						</xsl:with-param>
3824					</xsl:call-template>
3825				</xsl:if>
3826			</xsl:if>
3827			<xsl:call-template name="ListLevelProperties"/>
3828		</xsl:element>
3829	</xsl:template>
3830	<xsl:template match="字:自动编号_4124" mode="liststyle">
3831		<xsl:element name="text:list-style">
3832			<xsl:attribute name="style:name"><xsl:value-of select="@标识符_4100"/></xsl:attribute>
3833			<xsl:attribute name="style:display-name"><xsl:value-of select="@名称_4122"/></xsl:attribute>
3834			<xsl:for-each select="字:级别_4112">
3835				<xsl:choose>
3836					<xsl:when test="字:项目符号_4115">
3837						<xsl:call-template name="BulletList"/>
3838					</xsl:when>
3839					<xsl:when test="字:图片符号_411B">
3840						<xsl:call-template name="ImageList"/>
3841					</xsl:when>
3842					<xsl:otherwise>
3843						<xsl:call-template name="NumberList"/>
3844					</xsl:otherwise>
3845				</xsl:choose>
3846			</xsl:for-each>
3847		</xsl:element>
3848	</xsl:template>
3849	<xsl:template match="字:宽度_41A1" mode="texttable">
3850		<xsl:param name="tableAlign"/>
3851		<xsl:choose>
3852			<xsl:when test="@相对宽度_41C0">
3853				<xsl:variable name="reltblw">
3854					<xsl:value-of select="@相对宽度_41C0"/>
3855				</xsl:variable>
3856				<!-- alert staring
3857				<xsl:variable name="pagew">
3858					<xsl:for-each select="key('textTable',../@标识符_4100)">
3859						<xsl:value-of select="preceding::字:分节_416A[1]/字:节属性_421B/字:纸张_41EC/@宽_C605"/>
3860					</xsl:for-each>
3861				</xsl:variable>
3862				<xsl:variable name="leftm">
3863					<xsl:for-each select="key('textTable',../@标识符_4100)">
3864						<xsl:value-of select="preceding::字:分节_416A[1]/字:节属性_421B/字:页边距_41EB/@左_C608"/>
3865					</xsl:for-each>
3866				</xsl:variable>
3867				<xsl:variable name="rightm">
3868					<xsl:for-each select="key('textTable',../@标识符_4100)">
3869						<xsl:value-of select="preceding::字:分节_416A[1]/字:节属性_421B/字:页边距_41EB/@右_C60A"/>
3870					</xsl:for-each>
3871				</xsl:variable>-->
3872				<xsl:variable name="textTableAttrUse">
3873					<xsl:value-of select="../@标识符_4100"/>
3874				</xsl:variable>
3875				<xsl:variable name="page">
3876					<xsl:choose>
3877						<xsl:when test="$textTableAttrUse">
3878							<xsl:for-each select="key('textTable',../@标识符_4100)">
3879								<xsl:value-of select="preceding::字:分节_416A[1]"/>
3880							</xsl:for-each>
3881						</xsl:when>
3882						<xsl:otherwise>
3883							<xsl:value-of select="../../preceding::字:分节_416A[1]"/>
3884						</xsl:otherwise>
3885					</xsl:choose>
3886				</xsl:variable>
3887				<xsl:variable name="pagew">
3888					<xsl:choose>
3889						<xsl:when test="$page/字:节属性_421B/字:纸张_41EC/@宽_C605">
3890							<xsl:value-of select="$page/字:节属性_421B/字:纸张_41EC/@宽_C605"/>
3891						</xsl:when>
3892						<xsl:otherwise>
3893							<xsl:value-of select="21"/>
3894						</xsl:otherwise>
3895					</xsl:choose>
3896				</xsl:variable>
3897				<xsl:variable name="leftm">
3898					<xsl:choose>
3899						<xsl:when test="$page/字:节属性_421B/字:节属性_421B/字:页边距_41EB/@左_C608">
3900							<xsl:value-of select="$page/字:节属性_421B/字:页边距_41EB/@左_C608"/>
3901						</xsl:when>
3902						<xsl:otherwise>
3903							<xsl:value-of select="3.175"/>
3904						</xsl:otherwise>
3905					</xsl:choose>
3906				</xsl:variable>
3907				<xsl:variable name="rightm">
3908					<xsl:choose>
3909						<xsl:when test="$page/字:节属性_421B/字:节属性_421B/字:页边距_41EB/@右_C60A8">
3910							<xsl:value-of select="$page/字:节属性_421B/字:页边距_41EB/@右_C60A"/>
3911						</xsl:when>
3912						<xsl:otherwise>
3913							<xsl:value-of select="3.175"/>
3914						</xsl:otherwise>
3915					</xsl:choose>
3916				</xsl:variable>
3917				<!-- alert ending. -->
3918				<xsl:attribute name="style:rel-width"><xsl:value-of select="concat(number(@相对宽度_41C0),'%')"/></xsl:attribute>
3919				<xsl:attribute name="style:width"><xsl:value-of select="concat((number($pagew)-number($leftm)-number($rightm)) * number($reltblw) div 100,$uofUnit)"/></xsl:attribute>
3920				<xsl:choose>
3921					<xsl:when test="$tableAlign='left'">
3922						<xsl:attribute name="fo:margin-right"><xsl:value-of select="concat((number($pagew)-number($leftm)-number($rightm)) *(1- number($reltblw) div 100),$uofUnit)"/></xsl:attribute>
3923					</xsl:when>
3924					<xsl:when test="$tableAlign='right'">
3925						<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat((number($pagew)-number($leftm)-number($rightm)) *(1- number($reltblw) div 100),$uofUnit)"/></xsl:attribute>
3926					</xsl:when>
3927					<xsl:otherwise>
3928						<xsl:attribute name="fo:margin-right"><xsl:value-of select="concat((number($pagew)-number($leftm)-number($rightm)) *(1- number($reltblw) div 100),$uofUnit)"/></xsl:attribute>
3929						<!--<xsl:attribute name="table:align">margins</xsl:attribute>-->
3930						<xsl:attribute name="table:align">left</xsl:attribute>
3931					</xsl:otherwise>
3932				</xsl:choose>
3933			</xsl:when>
3934			<xsl:when test="./@绝对宽度_41BF">
3935				<xsl:attribute name="style:width"><xsl:value-of select="concat(number(@绝对宽度_41BF),$uofUnit)"/></xsl:attribute>
3936			</xsl:when>
3937		</xsl:choose>
3938	</xsl:template>
3939	<xsl:template match="字:对齐_41C3" mode="texttable">
3940		<xsl:attribute name="table:align"><xsl:value-of select="."/></xsl:attribute>
3941	</xsl:template>
3942	<xsl:template match="字:左缩进_41C4" mode="texttable">
3943		<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat(number(.),$uofUnit)"/></xsl:attribute>
3944	</xsl:template>
3945	<xsl:template match="字:绕排_41C5" mode="texttable">
3946	</xsl:template>
3947	<xsl:template match="字:绕排边距_41C6" mode="texttable">
3948		<xsl:if test="@左_C608">
3949			<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat(@左_C608, $uofUnit)"/></xsl:attribute>
3950		</xsl:if>
3951		<xsl:if test="@右_C60A">
3952			<xsl:attribute name="fo:margin-right"><xsl:value-of select="concat(@右_C60A, $uofUnit)"/></xsl:attribute>
3953		</xsl:if>
3954		<xsl:if test="@上_C609">
3955			<xsl:attribute name="fo:margin-top"><xsl:value-of select="concat(@上_C609,$uofUnit)"/></xsl:attribute>
3956		</xsl:if>
3957		<xsl:if test="@下_C60B">
3958			<xsl:attribute name="fo:margin-bottom"><xsl:value-of select="concat(@下_C60B,$uofUnit)"/></xsl:attribute>
3959		</xsl:if>
3960	</xsl:template>
3961	<xsl:template match="字:位置_41C7" mode="texttable">
3962		<xsl:variable name="verticalRel">
3963			<xsl:choose>
3964				<xsl:when test="uof:垂直_410D/@相对于_4103='page'">page</xsl:when>
3965				<xsl:when test="uof:垂直_410D/@相对于_4103='paragraph'">paragraph</xsl:when>
3966				<xsl:when test="uof:垂直_410D/@相对于_4103='margin'">page-content</xsl:when>
3967				<xsl:when test="uof:垂直_410D/@相对于_4103='line'">line</xsl:when>
3968				<xsl:when test="uof:垂直_410D/@相对于_410C='page'">page</xsl:when>
3969				<xsl:when test="uof:垂直_410D/@相对于_410C='paragraph'">paragraph</xsl:when>
3970				<xsl:when test="uof:垂直_410D/@相对于_410C='margin'">page-content</xsl:when>
3971				<xsl:when test="uof:垂直_410D/@相对于_410C='line'">line</xsl:when>
3972				<xsl:otherwise>paragraph</xsl:otherwise>
3973			</xsl:choose>
3974		</xsl:variable>
3975		<xsl:variable name="horizontalRel">
3976			<xsl:choose>
3977				<xsl:when test="uof:水平_4106/@相对于_4103='margin'">page-content</xsl:when>
3978				<xsl:when test="uof:水平_4106/@相对于_4103='page'">page</xsl:when>
3979				<xsl:when test="uof:水平_4106/@相对于_4103='char'">char</xsl:when>
3980				<xsl:when test="uof:水平_4106/@相对于_4103='column'">paragraph</xsl:when>
3981				<xsl:when test="uof:水平_4106/@相对于_410C='margin'">page-content</xsl:when>
3982				<xsl:when test="uof:水平_4106/@相对于_410C='page'">page</xsl:when>
3983				<xsl:when test="uof:水平_4106/@相对于_410C='char'">char</xsl:when>
3984				<xsl:when test="uof:水平_4106/@相对于_410C='column'">paragraph</xsl:when>
3985				<xsl:otherwise>paragraph</xsl:otherwise>
3986			</xsl:choose>
3987		</xsl:variable>
3988		<xsl:attribute name="style:vertical-rel"><xsl:value-of select="$verticalRel"/></xsl:attribute>
3989		<xsl:attribute name="style:horizontal-rel"><xsl:value-of select="$horizontalRel"/></xsl:attribute>
3990		<xsl:variable name="verticalPos">
3991			<xsl:choose>
3992				<xsl:when test="string(uof:垂直_410D/uof:相对_4109/@值_410B) != '0'">from-top</xsl:when>
3993				<xsl:otherwise>
3994					<xsl:value-of select="uof:垂直_410D/uof:相对_4109/@参考点_410A"/>
3995				</xsl:otherwise>
3996			</xsl:choose>
3997		</xsl:variable>
3998		<xsl:variable name="horizontalPos">
3999			<xsl:choose>
4000				<xsl:when test="string(uof:水平_4106/uof:相对_4109/@值_410B) != '0'">left</xsl:when>
4001				<xsl:otherwise>
4002					<xsl:value-of select="uof:水平_4106/uof:相对_4109/@参考点_410A"/>
4003				</xsl:otherwise>
4004			</xsl:choose>
4005		</xsl:variable>
4006		<xsl:attribute name="style:vertical-pos"><xsl:value-of select="$verticalPos"/></xsl:attribute>
4007		<xsl:attribute name="style:horizontal-pos"><xsl:value-of select="$horizontalPos"/></xsl:attribute>
4008		<xsl:if test="uof:垂直_410D/uof:相对_4109/@值_410B">
4009			<xsl:attribute name="svg:y"><xsl:value-of select="concat(uof:垂直_410D/uof:相对_4109/@值_410B,$uofUnit)"/></xsl:attribute>
4010		</xsl:if>
4011		<xsl:if test="uof:水平_4106/uof:相对_4109/@值_410B">
4012			<xsl:attribute name="svg:x"><xsl:value-of select="concat(uof:水平_4106/uof:相对_4109/@值_410B,$uofUnit)"/></xsl:attribute>
4013		</xsl:if>
4014		<!-- fo:margin-left -->
4015		<xsl:attribute name="fo:margin-left"><xsl:if test="uof:水平_4106/uof:绝对_4107/@值_4108"><xsl:value-of select="concat( uof:水平_4106/uof:绝对_4107/@值_4108, $uofUnit)"/></xsl:if></xsl:attribute>
4016	</xsl:template>
4017	<xsl:template name="TableBorderToCell">
4018		<xsl:param name="pTableBorder"/>
4019		<xsl:param name="IsFirstRow"/>
4020		<xsl:param name="IsLastRow"/>
4021		<xsl:param name="IsFirstCell"/>
4022		<xsl:param name="IsLastCell"/>
4023		<xsl:choose>
4024			<xsl:when test="$IsFirstRow='true' and $IsLastRow='true'">
4025				<xsl:choose>
4026					<xsl:when test="$IsFirstCell='true' and $IsLastCell='true'">
4027						<xsl:call-template name="CommonBorder">
4028							<xsl:with-param name="pUp" select="$pTableBorder/uof:上_C614"/>
4029							<xsl:with-param name="pDown" select="$pTableBorder/uof:下_C616"/>
4030							<xsl:with-param name="pLeft" select="$pTableBorder/uof:左_C613"/>
4031							<xsl:with-param name="pRight" select="$pTableBorder/uof:右_C615"/>
4032						</xsl:call-template>
4033					</xsl:when>
4034					<xsl:when test="$IsFirstCell='true'">
4035						<xsl:call-template name="CommonBorder">
4036							<xsl:with-param name="pUp" select="$pTableBorder/uof:上_C614"/>
4037							<xsl:with-param name="pDown" select="$pTableBorder/uof:下_C616"/>
4038							<xsl:with-param name="pLeft" select="$pTableBorder/uof:左_C613"/>
4039							<xsl:with-param name="pRight" select="$pTableBorder/uof:内部竖线_C61A"/>
4040						</xsl:call-template>
4041					</xsl:when>
4042					<xsl:when test="$IsLastCell='true'">
4043						<xsl:call-template name="CommonBorder">
4044							<xsl:with-param name="pUp" select="$pTableBorder/uof:上_C614"/>
4045							<xsl:with-param name="pDown" select="$pTableBorder/uof:下_C616"/>
4046							<xsl:with-param name="pLeft" select="$pTableBorder/uof:内部竖线_C61A"/>
4047							<xsl:with-param name="pRight" select="$pTableBorder/uof:右_C615"/>
4048						</xsl:call-template>
4049					</xsl:when>
4050					<xsl:otherwise>
4051						<xsl:call-template name="CommonBorder">
4052							<xsl:with-param name="pUp" select="$pTableBorder/uof:上_C614"/>
4053							<xsl:with-param name="pDown" select="$pTableBorder/uof:下_C616"/>
4054							<xsl:with-param name="pLeft" select="$pTableBorder/uof:内部竖线_C61A"/>
4055							<xsl:with-param name="pRight" select="$pTableBorder/uof:内部竖线_C61A"/>
4056						</xsl:call-template>
4057					</xsl:otherwise>
4058				</xsl:choose>
4059			</xsl:when>
4060			<xsl:when test="$IsFirstRow='true'">
4061				<xsl:choose>
4062					<xsl:when test="$IsFirstCell='true' and $IsLastCell='true'">
4063						<xsl:call-template name="CommonBorder">
4064							<xsl:with-param name="pUp" select="$pTableBorder/uof:上_C614"/>
4065							<xsl:with-param name="pDown" select="$pTableBorder/uof:内部横线_C619"/>
4066							<xsl:with-param name="pLeft" select="$pTableBorder/uof:左_C613"/>
4067							<xsl:with-param name="pRight" select="$pTableBorder/uof:右_C615"/>
4068						</xsl:call-template>
4069					</xsl:when>
4070					<xsl:when test="$IsFirstCell='true'">
4071						<xsl:call-template name="CommonBorder">
4072							<xsl:with-param name="pUp" select="$pTableBorder/uof:上_C614"/>
4073							<xsl:with-param name="pDown" select="$pTableBorder/uof:内部横线_C619"/>
4074							<xsl:with-param name="pLeft" select="$pTableBorder/uof:左_C613"/>
4075							<xsl:with-param name="pRight" select="$pTableBorder/uof:内部竖线_C61A"/>
4076						</xsl:call-template>
4077					</xsl:when>
4078					<xsl:when test="$IsLastCell='true'">
4079						<xsl:call-template name="CommonBorder">
4080							<xsl:with-param name="pUp" select="$pTableBorder/uof:上_C614"/>
4081							<xsl:with-param name="pDown" select="$pTableBorder/uof:内部横线_C619"/>
4082							<xsl:with-param name="pLeft" select="$pTableBorder/uof:内部竖线_C61A"/>
4083							<xsl:with-param name="pRight" select="$pTableBorder/uof:右_C615"/>
4084						</xsl:call-template>
4085					</xsl:when>
4086					<xsl:otherwise>
4087						<xsl:call-template name="CommonBorder">
4088							<xsl:with-param name="pUp" select="$pTableBorder/uof:上_C614"/>
4089							<xsl:with-param name="pDown" select="$pTableBorder/uof:内部横线_C619"/>
4090							<xsl:with-param name="pLeft" select="$pTableBorder/uof:内部竖线_C61A"/>
4091							<xsl:with-param name="pRight" select="$pTableBorder/uof:内部竖线_C61A"/>
4092						</xsl:call-template>
4093					</xsl:otherwise>
4094				</xsl:choose>
4095			</xsl:when>
4096			<xsl:when test="$IsLastRow='true'">
4097				<xsl:choose>
4098					<xsl:when test="$IsFirstCell='true' and $IsLastCell='true'">
4099						<xsl:call-template name="CommonBorder">
4100							<xsl:with-param name="pUp" select="$pTableBorder/uof:内部横线_C619"/>
4101							<xsl:with-param name="pDown" select="$pTableBorder/uof:下_C616"/>
4102							<xsl:with-param name="pLeft" select="$pTableBorder/uof:左_C613"/>
4103							<xsl:with-param name="pRight" select="$pTableBorder/uof:右_C615"/>
4104						</xsl:call-template>
4105					</xsl:when>
4106					<xsl:when test="$IsFirstCell='true'">
4107						<xsl:call-template name="CommonBorder">
4108							<xsl:with-param name="pUp" select="$pTableBorder/uof:内部横线_C619"/>
4109							<xsl:with-param name="pDown" select="$pTableBorder/uof:下_C616"/>
4110							<xsl:with-param name="pLeft" select="$pTableBorder/uof:左_C613"/>
4111							<xsl:with-param name="pRight" select="$pTableBorder/uof:内部竖线_C61A"/>
4112						</xsl:call-template>
4113					</xsl:when>
4114					<xsl:when test="$IsLastCell='true'">
4115						<xsl:call-template name="CommonBorder">
4116							<xsl:with-param name="pUp" select="$pTableBorder/uof:内部横线_C619"/>
4117							<xsl:with-param name="pDown" select="$pTableBorder/uof:下_C616"/>
4118							<xsl:with-param name="pLeft" select="$pTableBorder/uof:内部竖线_C61A"/>
4119							<xsl:with-param name="pRight" select="$pTableBorder/uof:右_C615"/>
4120						</xsl:call-template>
4121					</xsl:when>
4122					<xsl:otherwise>
4123						<xsl:call-template name="CommonBorder">
4124							<xsl:with-param name="pUp" select="$pTableBorder/uof:内部横线_C619"/>
4125							<xsl:with-param name="pDown" select="$pTableBorder/uof:下_C616"/>
4126							<xsl:with-param name="pLeft" select="$pTableBorder/uof:内部竖线_C61A"/>
4127							<xsl:with-param name="pRight" select="$pTableBorder/uof:内部竖线_C61A"/>
4128						</xsl:call-template>
4129					</xsl:otherwise>
4130				</xsl:choose>
4131			</xsl:when>
4132			<xsl:otherwise>
4133				<xsl:choose>
4134					<xsl:when test="$IsFirstCell='true' and $IsLastCell='true'">
4135						<xsl:call-template name="CommonBorder">
4136							<xsl:with-param name="pUp" select="$pTableBorder/uof:内部横线_C619"/>
4137							<xsl:with-param name="pDown" select="$pTableBorder/uof:内部横线_C619"/>
4138							<xsl:with-param name="pLeft" select="$pTableBorder/uof:左_C613"/>
4139							<xsl:with-param name="pRight" select="$pTableBorder/uof:右_C615"/>
4140						</xsl:call-template>
4141					</xsl:when>
4142					<xsl:when test="$IsFirstCell='true'">
4143						<xsl:call-template name="CommonBorder">
4144							<xsl:with-param name="pUp" select="$pTableBorder/uof:内部横线_C619"/>
4145							<xsl:with-param name="pDown" select="$pTableBorder/uof:内部横线_C619"/>
4146							<xsl:with-param name="pLeft" select="$pTableBorder/uof:左_C613"/>
4147							<xsl:with-param name="pRight" select="$pTableBorder/uof:内部竖线_C61A"/>
4148						</xsl:call-template>
4149					</xsl:when>
4150					<xsl:when test="$IsLastCell='true'">
4151						<xsl:call-template name="CommonBorder">
4152							<xsl:with-param name="pUp" select="$pTableBorder/uof:内部横线_C619"/>
4153							<xsl:with-param name="pDown" select="$pTableBorder/uof:内部横线_C619"/>
4154							<xsl:with-param name="pLeft" select="$pTableBorder/uof:内部竖线_C61A"/>
4155							<xsl:with-param name="pRight" select="$pTableBorder/uof:右_C615"/>
4156						</xsl:call-template>
4157					</xsl:when>
4158					<xsl:otherwise>
4159						<xsl:call-template name="CommonBorder">
4160							<xsl:with-param name="pUp" select="$pTableBorder/uof:内部横线_C619"/>
4161							<xsl:with-param name="pDown" select="$pTableBorder/uof:内部横线_C619"/>
4162							<xsl:with-param name="pLeft" select="$pTableBorder/uof:内部竖线_C61A"/>
4163							<xsl:with-param name="pRight" select="$pTableBorder/uof:内部竖线_C61A"/>
4164						</xsl:call-template>
4165					</xsl:otherwise>
4166				</xsl:choose>
4167			</xsl:otherwise>
4168		</xsl:choose>
4169	</xsl:template>
4170	<xsl:template match="字:边框_4133" mode="texttable">
4171		<!-- it should be calculated in texttablecell element
4172		<xsl:call-template name="CommonBorder"/>
4173		<xsl:if test="uof:上/@uof:阴影='true'or uof:上/@uof:阴影='1'">
4174			<xsl:if test="uof:左/@uof:阴影='true'or uof:左/@uof:阴影='1'">
4175				<xsl:attribute name="style:shadow">#808080 -0.18cm -0.18cm</xsl:attribute>
4176			</xsl:if>
4177		</xsl:if>
4178		<xsl:if test="uof:上/@uof:阴影='true'or uof:上/@uof:阴影='1'">
4179			<xsl:if test="uof:右/@uof:阴影='true'or uof:右/@uof:阴影='1'">
4180				<xsl:attribute name="style:shadow">#808080 0.18cm -0.18cm</xsl:attribute>
4181			</xsl:if>
4182		</xsl:if>
4183		<xsl:if test="uof:下_C616/@uof:阴影='true'or uof:下_C616/@uof:阴影='1'">
4184			<xsl:if test="uof:左/@uof:阴影='true'or uof:左/@uof:阴影='1'">
4185				<xsl:attribute name="style:shadow">#808080 -0.18cm 0.18cm</xsl:attribute>
4186			</xsl:if>
4187		</xsl:if>
4188		<xsl:if test="uof:下_C616/@uof:阴影='true'or uof:下_C616/@uof:阴影='1'">
4189			<xsl:if test="uof:右/@uof:阴影='true'or uof:右/@uof:阴影='1'">
4190				<xsl:attribute name="style:shadow">#808080 0.18cm 0.18cm</xsl:attribute>
4191			</xsl:if>
4192		</xsl:if>-->
4193	</xsl:template>
4194	<xsl:template match="字:填充_4134" mode="texttableAttr">
4195		<xsl:call-template name="CommonFillAttr"/>
4196	</xsl:template>
4197	<xsl:template match="字:填充_4134" mode="texttableElement">
4198		<xsl:call-template name="CommonFillElement"/>
4199	</xsl:template>
4200	<xsl:template match="字:是否自动调整大小_41C8" mode="texttable">
4201	</xsl:template>
4202	<xsl:template match="字:默认默认单元格边距_41CA" mode="texttable">
4203	</xsl:template>
4204	<xsl:template match="字:默认单元格间距_41CB" mode="texttable">
4205		<xsl:if test=".!=''">
4206			<xsl:attribute name="style:table-cell-spacing"><xsl:value-of select="concat(number(.),$uofUnit)"/></xsl:attribute>
4207		</xsl:if>
4208	</xsl:template>
4209	<xsl:template name="TablePropertiesAttr">
4210		<xsl:for-each select="*">
4211			<xsl:choose>
4212				<xsl:when test="name(.)='字:宽度_41A1'">
4213					<!-- alert staring
4214				   <xsl:apply-templates select="." mode="texttable"/>-->
4215					<xsl:apply-templates select="." mode="texttable">
4216						<xsl:with-param name="tableAlign" select="../字:对齐_41C3"/>
4217					</xsl:apply-templates>
4218					<!-- alert ending. -->
4219				</xsl:when>
4220				<xsl:when test="name(.)='字:列宽集_41C1'">
4221					<!-- don't process this node here, it contains a element-->
4222				</xsl:when>
4223				<xsl:when test="name(.)='字:对齐_41C3'">
4224					<xsl:apply-templates select="." mode="texttable"/>
4225				</xsl:when>
4226				<xsl:when test="name(.)='字:左缩进_41C4'">
4227					<xsl:apply-templates select="." mode="texttable"/>
4228				</xsl:when>
4229				<xsl:when test="name(.)='字:绕排_41C5'">
4230					<xsl:apply-templates select="." mode="texttable"/>
4231				</xsl:when>
4232				<xsl:when test="name(.)='字:绕排边距_41C6'">
4233					<xsl:apply-templates select="." mode="texttable"/>
4234				</xsl:when>
4235				<xsl:when test="name(.)='字:位置_41C7'">
4236					<xsl:apply-templates select="." mode="texttable"/>
4237				</xsl:when>
4238				<xsl:when test="name(.)='字:边框_4133'">
4239					<xsl:apply-templates select="." mode="texttable"/>
4240				</xsl:when>
4241				<xsl:when test="name(.)='字:填充_4134'">
4242					<xsl:apply-templates select="." mode="texttableAttr"/>
4243				</xsl:when>
4244				<xsl:when test="name(.)='字:是否自动调整大小_41C8'">
4245					<xsl:apply-templates select="." mode="texttable"/>
4246				</xsl:when>
4247				<xsl:when test="name(.)='字:默认默认单元格边距_41CA'">
4248					<xsl:apply-templates select="." mode="texttable"/>
4249				</xsl:when>
4250				<xsl:when test="name(.)='字:默认单元格间距_41CB'">
4251					<xsl:apply-templates select="." mode="texttable"/>
4252				</xsl:when>
4253			</xsl:choose>
4254		</xsl:for-each>
4255		<xsl:if test="not(字:宽度_41A1) and 字:列宽集_41C1">
4256			<xsl:variable name="tblsize" select="sum(字:列宽集_41C1/字:列宽_41C2)"/>
4257			<xsl:attribute name="style:width"><xsl:value-of select="concat($tblsize,$uofUnit)"/></xsl:attribute>
4258		</xsl:if>
4259	</xsl:template>
4260	<xsl:template name="TablePropertiesElement">
4261		<xsl:if test="字:填充_4134">
4262			<xsl:apply-templates select="字:填充_4134" mode="texttableElement"/>
4263		</xsl:if>
4264	</xsl:template>
4265	<xsl:template name="TablePropertiesAll">
4266		<xsl:call-template name="TablePropertiesAttr"/>
4267		<xsl:call-template name="TablePropertiesElement"/>
4268	</xsl:template>
4269	<xsl:template name="OneTextTableStyle">
4270		<xsl:attribute name="style:family">table</xsl:attribute>
4271		<xsl:attribute name="style:name"><xsl:value-of select="@标识符_4100"/></xsl:attribute>
4272		<xsl:choose>
4273			<xsl:when test="@别名_4103">
4274				<xsl:attribute name="style:display-name"><xsl:value-of select="@别名_4103"/></xsl:attribute>
4275			</xsl:when>
4276			<xsl:otherwise>
4277				<xsl:attribute name="style:display-name"><xsl:value-of select="@标识符_4100"/></xsl:attribute>
4278			</xsl:otherwise>
4279		</xsl:choose>
4280		<xsl:if test="@基式样引用_4104">
4281			<xsl:attribute name="style:parent-style-name"><xsl:value-of select="@基式样引用_4104"/></xsl:attribute>
4282		</xsl:if>
4283		<xsl:if test="@后继式样引用_4105">
4284			<xsl:attribute name="style:next-style-name"><xsl:value-of select="@后继式样引用_4105"/></xsl:attribute>
4285		</xsl:if>
4286		<xsl:element name="style:table-properties">
4287			<xsl:attribute name="table:border-model">collapsing</xsl:attribute>
4288			<xsl:call-template name="TablePropertiesAll"/>
4289		</xsl:element>
4290	</xsl:template>
4291	<xsl:template match="式样:文字表式样_9918">
4292		<xsl:param name="Type"/>
4293		<xsl:if test="@类型_4102=$Type">
4294			<xsl:choose>
4295				<xsl:when test="$Type='default'">
4296					<xsl:element name="style:default-style">
4297						<xsl:attribute name="style:family">table</xsl:attribute>
4298						<xsl:element name="style:table-properties">
4299							<xsl:attribute name="table:border-model">collapsing</xsl:attribute>
4300							<xsl:call-template name="TablePropertiesAll"/>
4301						</xsl:element>
4302					</xsl:element>
4303					<xsl:element name="style:style">
4304						<xsl:call-template name="OneTextTableStyle"/>
4305					</xsl:element>
4306				</xsl:when>
4307				<xsl:when test="$Type='custom'">
4308					<xsl:element name="style:style">
4309						<xsl:call-template name="OneTextTableStyle"/>
4310					</xsl:element>
4311				</xsl:when>
4312				<xsl:when test="$Type='auto'">
4313					<xsl:element name="style:style">
4314						<xsl:call-template name="OneTextTableStyle"/>
4315					</xsl:element>
4316				</xsl:when>
4317			</xsl:choose>
4318		</xsl:if>
4319	</xsl:template>
4320	<xsl:template match="字:填充_4134" mode="texttablecell">
4321		<xsl:call-template name="CommonFill"/>
4322	</xsl:template>
4323	<xsl:template match="字:边框_4133" mode="texttablecell">
4324		<!--<xsl:call-template name="CommonBorder"/>-->
4325	</xsl:template>
4326	<xsl:template name="ParentTextTableBorder">
4327		<xsl:param name="IsFirstRow"/>
4328		<xsl:param name="IsLastRow"/>
4329		<xsl:param name="IsFirstCell"/>
4330		<xsl:param name="IsLastCell"/>
4331		<xsl:param name="Stylename"/>
4332		<xsl:for-each select="key('uof-table-styles',$Stylename)">
4333			<xsl:choose>
4334				<xsl:when test="@基式样引用_4104">
4335					<xsl:call-template name="ParentTextTableBorder">
4336						<xsl:with-param name="IsFirstRow" select="$IsFirstRow"/>
4337						<xsl:with-param name="IsLastRow" select="$IsLastRow"/>
4338						<xsl:with-param name="IsFirstCell" select="$IsFirstCell"/>
4339						<xsl:with-param name="IsLastCell" select="$IsLastCell"/>
4340						<xsl:with-param name="Stylename" select="@基式样引用_4104"/>
4341					</xsl:call-template>
4342				</xsl:when>
4343				<xsl:otherwise>
4344					<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:文字表式样集_9917/式样:文字表式样_9918[@字:类型='default'][1]">
4345						<xsl:call-template name="TableBorderToCell">
4346							<xsl:with-param name="pTableBorder" select="字:文字表边框_4227"/>
4347							<xsl:with-param name="IsFirstRow" select="$IsFirstRow"/>
4348							<xsl:with-param name="IsLastRow" select="$IsLastRow"/>
4349							<xsl:with-param name="IsFirstCell" select="$IsFirstCell"/>
4350							<xsl:with-param name="IsLastCell" select="$IsLastCell"/>
4351						</xsl:call-template>
4352					</xsl:for-each>
4353				</xsl:otherwise>
4354			</xsl:choose>
4355			<xsl:call-template name="TableBorderToCell">
4356				<xsl:with-param name="pTableBorder" select="字:文字表边框_4227"/>
4357				<xsl:with-param name="IsFirstRow" select="$IsFirstRow"/>
4358				<xsl:with-param name="IsLastRow" select="$IsLastRow"/>
4359				<xsl:with-param name="IsFirstCell" select="$IsFirstCell"/>
4360				<xsl:with-param name="IsLastCell" select="$IsLastCell"/>
4361			</xsl:call-template>
4362		</xsl:for-each>
4363	</xsl:template>
4364	<xsl:template name="TextTableBorder">
4365		<xsl:param name="pCell"/>
4366		<xsl:param name="pTable"/>
4367		<xsl:param name="pTableStyle"/>
4368		<xsl:param name="IsFirstRow"/>
4369		<xsl:param name="IsLastRow"/>
4370		<xsl:param name="IsFirstCell"/>
4371		<xsl:param name="IsLastCell"/>
4372		<xsl:if test="$pTableStyle">
4373			<xsl:call-template name="ParentTextTableBorder">
4374				<xsl:with-param name="IsFirstRow" select="$IsFirstRow"/>
4375				<xsl:with-param name="IsLastRow" select="$IsLastRow"/>
4376				<xsl:with-param name="IsFirstCell" select="$IsFirstCell"/>
4377				<xsl:with-param name="IsLastCell" select="$IsLastCell"/>
4378				<xsl:with-param name="Stylename" select="$pTableStyle/@基式样引用_4104"/>
4379			</xsl:call-template>
4380			<xsl:call-template name="TableBorderToCell">
4381				<xsl:with-param name="pTableBorder" select="$pTableStyle/字:文字表边框_4227"/>
4382				<xsl:with-param name="IsFirstRow" select="$IsFirstRow"/>
4383				<xsl:with-param name="IsLastRow" select="$IsLastRow"/>
4384				<xsl:with-param name="IsFirstCell" select="$IsFirstCell"/>
4385				<xsl:with-param name="IsLastCell" select="$IsLastCell"/>
4386			</xsl:call-template>
4387		</xsl:if>
4388		<xsl:if test="$pTable">
4389			<xsl:call-template name="TableBorderToCell">
4390				<xsl:with-param name="pTableBorder" select="$pTable/字:文字表属性_41CC/字:文字表边框_4227"/>
4391				<xsl:with-param name="IsFirstRow" select="$IsFirstRow"/>
4392				<xsl:with-param name="IsLastRow" select="$IsLastRow"/>
4393				<xsl:with-param name="IsFirstCell" select="$IsFirstCell"/>
4394				<xsl:with-param name="IsLastCell" select="$IsLastCell"/>
4395			</xsl:call-template>
4396		</xsl:if>
4397		<xsl:if test="$pCell">
4398			<xsl:call-template name="CommonBorder">
4399				<xsl:with-param name="pUp" select="$pCell/字:单元格属性_41B7/字:边框_4133/uof:上_C614"/>
4400				<xsl:with-param name="pDown" select="$pCell/字:单元格属性_41B7/字:边框_4133/uof:下_C616"/>
4401				<xsl:with-param name="pLeft" select="$pCell/字:单元格属性_41B7/字:边框_4133/uof:左_C613"/>
4402				<xsl:with-param name="pRight" select="$pCell/字:单元格属性_41B7/字:边框_4133/uof:右_C615"/>
4403				<xsl:with-param name="pDiagon1" select="$pCell/字:单元格属性_41B7/字:边框_4133/uof:对角线1"/>
4404				<xsl:with-param name="pDiagon2" select="$pCell/字:单元格属性_41B7/字:边框_4133/uof:对角线2"/>
4405			</xsl:call-template>
4406		</xsl:if>
4407	</xsl:template>
4408	<xsl:template name="TextTableCellPadding">
4409		<xsl:param name="Style"/>
4410		<xsl:choose>
4411			<xsl:when test="$Style[1]/@左_C608">
4412				<xsl:attribute name="fo:padding-left"><xsl:value-of select="concat(number($Style[1]/@左_C608),$uofUnit)"/></xsl:attribute>
4413			</xsl:when>
4414		</xsl:choose>
4415		<xsl:choose>
4416			<xsl:when test="$Style[1]/@右_C60A">
4417				<xsl:attribute name="fo:padding-right"><xsl:value-of select="concat(number($Style[1]/@右_C60A),$uofUnit)"/></xsl:attribute>
4418			</xsl:when>
4419		</xsl:choose>
4420		<xsl:choose>
4421			<xsl:when test="$Style[1]/@上_C609">
4422				<xsl:attribute name="fo:padding-top"><xsl:value-of select="concat(number($Style[1]/@上_C609),$uofUnit)"/></xsl:attribute>
4423			</xsl:when>
4424		</xsl:choose>
4425		<xsl:choose>
4426			<xsl:when test="$Style[1]/@下_C60B">
4427				<xsl:attribute name="fo:padding-bottom"><xsl:value-of select="concat(number($Style[1]/@下_C60B),$uofUnit)"/></xsl:attribute>
4428			</xsl:when>
4429		</xsl:choose>
4430	</xsl:template>
4431	<xsl:template name="UOFTextCellPadding">
4432		<xsl:param name="pCellPad"/>
4433		<xsl:param name="pTablePad"/>
4434		<xsl:param name="pTableStylePad"/>
4435		<xsl:if test="$pTableStylePad">
4436			<xsl:call-template name="TextTableCellPadding">
4437				<xsl:with-param name="Style" select="$pTableStylePad"/>
4438			</xsl:call-template>
4439		</xsl:if>
4440		<xsl:if test="$pTablePad">
4441			<xsl:call-template name="TextTableCellPadding">
4442				<xsl:with-param name="Style" select="$pTablePad"/>
4443			</xsl:call-template>
4444		</xsl:if>
4445		<xsl:if test="$pCellPad">
4446			<xsl:call-template name="TextTableCellPadding">
4447				<xsl:with-param name="Style" select="$pCellPad"/>
4448			</xsl:call-template>
4449		</xsl:if>
4450	</xsl:template>
4451	<xsl:template match="字:表行属性_41BD" mode="texttable">
4452		<xsl:if test="count(./child::*)">
4453			<xsl:element name="style:style">
4454				<xsl:attribute name="style:family">table-row</xsl:attribute>
4455				<xsl:attribute name="style:name"><xsl:value-of select="generate-id(..)"/></xsl:attribute>
4456				<xsl:element name="style:table-row-properties">
4457					<xsl:for-each select="*">
4458						<xsl:choose>
4459							<xsl:when test="name(.)='字:高度_41B8'">
4460								<xsl:if test="@固定值_41B9">
4461									<xsl:attribute name="style:row-height"><xsl:value-of select="concat(number(@固定值_41B9),$uofUnit)"/></xsl:attribute>
4462								</xsl:if>
4463								<xsl:if test="@最小值_41BA">
4464									<xsl:attribute name="style:min-row-height"><xsl:value-of select="concat(number(@最小值_41BA), $uofUnit )"/></xsl:attribute>
4465								</xsl:if>
4466							</xsl:when>
4467							<xsl:when test="name(.)='字:是否跨页_41BB'">
4468								<xsl:attribute name="style:keep-together"><xsl:choose><xsl:when test="string(.) != ''"><xsl:value-of select="."/></xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
4469								<xsl:attribute name="fo:keep-together"><xsl:choose><xsl:when test="string(.) = 'true'">auto</xsl:when><xsl:otherwise>always</xsl:otherwise></xsl:choose></xsl:attribute>
4470							</xsl:when>
4471							<xsl:when test="name(.)='字:是否表头行_41BC行'">
4472								<!-- process these element in content file-->
4473							</xsl:when>
4474						</xsl:choose>
4475					</xsl:for-each>
4476				</xsl:element>
4477			</xsl:element>
4478		</xsl:if>
4479	</xsl:template>
4480	<xsl:template match="字:列宽集_41C1" mode="texttable">
4481		<xsl:for-each select="字:列宽_41C2">
4482			<xsl:element name="style:style">
4483				<xsl:attribute name="style:family">table-column</xsl:attribute>
4484				<xsl:attribute name="style:name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
4485				<xsl:element name="style:table-column-properties">
4486					<xsl:choose>
4487						<xsl:when test="string(.)">
4488							<xsl:attribute name="style:column-width"><xsl:value-of select="concat(.,$uofUnit)"/></xsl:attribute>
4489						</xsl:when>
4490						<xsl:otherwise>
4491							<xsl:attribute name="style:column-width"><xsl:value-of select="'1cm'"/></xsl:attribute>
4492						</xsl:otherwise>
4493					</xsl:choose>
4494				</xsl:element>
4495			</xsl:element>
4496		</xsl:for-each>
4497	</xsl:template>
4498	<xsl:template name="TableParentProperties">
4499		<xsl:param name="Stylename"/>
4500		<xsl:for-each select="key('uof-table-styles',$Stylename)">
4501			<xsl:if test="@基式样引用_4104">
4502				<xsl:call-template name="TableParentProperties">
4503					<xsl:with-param name="Stylename" select="@基式样引用_4104"/>
4504				</xsl:call-template>
4505			</xsl:if>
4506			<xsl:call-template name="TablePropertiesAttr"/>
4507		</xsl:for-each>
4508	</xsl:template>
4509	<xsl:template match="字:文字表属性_41CC" mode="embeded_into_frame">
4510		<xsl:if test="字:位置_41C7/uof:垂直_410D[@相对于_C647 = 'margin']/uof:相对_4109[@参考点_410B = 'bottom']">">
4511			<xsl:element name="style:style">
4512				<xsl:attribute name="style:name">Embeded_fr<xsl:number count="字:文字表_416C[not(@类型_4102='sub-table')]" from="/uof:UOF_0000/字:文字处理文档_4225" level="any" format="1"/></xsl:attribute>
4513				<xsl:attribute name="style:family"><xsl:value-of select="'graphic'"/></xsl:attribute>
4514				<xsl:attribute name="style:parent-style-name"><xsl:value-of select="'Frame'"/></xsl:attribute>
4515				<xsl:element name="style:graphic-properties">
4516					<xsl:if test="字:绕排边距_41C6/@左_C608">
4517						<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat(字:绕排边距_41C6/@左_C608, $uofUnit)"/></xsl:attribute>
4518					</xsl:if>
4519					<xsl:if test="字:绕排边距_41C6/@右_C60A">
4520						<xsl:attribute name="fo:margin-right"><xsl:value-of select="concat(字:绕排边距_41C6/@右_C60A, $uofUnit)"/></xsl:attribute>
4521					</xsl:if>
4522					<xsl:if test="字:位置_41C7/uof:垂直_410D/uof:相对_4109/@值_410B">
4523						<xsl:attribute name="fo:margin-bottom"><xsl:value-of select="concat(字:位置_41C7/uof:垂直_410D/uof:相对_4109/@值_410B, $uofUnit)"/></xsl:attribute>
4524					</xsl:if>
4525					<xsl:attribute name="style:wrap"><xsl:value-of select="'dynamic'"/></xsl:attribute>
4526					<xsl:attribute name="style:number-wrapped-paragraphs"><xsl:value-of select="'no-limit'"/></xsl:attribute>
4527					<xsl:attribute name="style:vertical-pos"><xsl:value-of select="'bottom'"/></xsl:attribute>
4528					<xsl:attribute name="fo:background-color"><xsl:value-of select="'#ffffff'"/></xsl:attribute>
4529					<xsl:attribute name="style:background-transparency"><xsl:value-of select="'100%'"/></xsl:attribute>
4530					<xsl:attribute name="style:writing-mode"><xsl:value-of select="'lr-tb'"/></xsl:attribute>
4531					<xsl:attribute name="style:vertical-rel"><xsl:value-of select="'page-content'"/></xsl:attribute>
4532					<xsl:attribute name="style:horizontal-pos"><xsl:value-of select="字:位置_41C7/uof:水平_4106/uof:相对_4109/@参考点_410A"/></xsl:attribute>
4533					<xsl:attribute name="style:horizontal-rel"><xsl:value-of select="'paragraph-content'"/></xsl:attribute>
4534					<xsl:attribute name="draw:wrap-influence-on-position"><xsl:value-of select="'once-successive'"/></xsl:attribute>
4535					<xsl:attribute name="fo:border"><xsl:value-of select="'none'"/></xsl:attribute>
4536					<style:background-image/>
4537				</xsl:element>
4538			</xsl:element>
4539		</xsl:if>
4540	</xsl:template>
4541	<xsl:template match="字:文字表属性_41CC" mode="texttable">
4542		<xsl:variable name="newstyle">
4543			<xsl:variable name="nChildCount" select="count(./*)"/>
4544			<xsl:choose>
4545				<xsl:when test="$nChildCount = 0">
4546					<xsl:value-of select="0"/>
4547				</xsl:when>
4548				<!--
4549				<xsl:when test="$nChildCount = 1">
4550					<xsl:choose>
4551						<xsl:when test="node()[1][name(.)='字:列宽集_41C1']">
4552							<xsl:value-of select="0"/>
4553						</xsl:when>
4554						<xsl:otherwise>
4555							<xsl:value-of select="1"/>
4556						</xsl:otherwise>
4557					</xsl:choose>
4558				</xsl:when>-->
4559				<xsl:otherwise>
4560					<xsl:value-of select="1"/>
4561				</xsl:otherwise>
4562			</xsl:choose>
4563		</xsl:variable>
4564		<xsl:variable name="SpecialSection">
4565			<xsl:for-each select="..">
4566				<xsl:choose>
4567					<xsl:when test="($document_type='text') and (name(..) = '字:文字处理文档_4225')">
4568						<xsl:variable name="SectPos">
4569							<xsl:choose>
4570								<xsl:when test="preceding-sibling::*[1][name(.) = '字:分节_416A'] and preceding-sibling::*[1]/字:节属性_421B/字:节类型_41EA != 'continuous'">
4571									<!--xsl:call-template name="IsPrecedeType">
4572										<xsl:with-param name="nodename" select="'字:分节_416A'"/>
4573										<xsl:with-param name="pos" select="0"/>
4574									</xsl:call-template-->
4575									<xsl:value-of select="1"/>
4576								</xsl:when>
4577								<xsl:otherwise>
4578									<xsl:value-of select="0"/>
4579								</xsl:otherwise>
4580							</xsl:choose>
4581						</xsl:variable>
4582						<xsl:choose>
4583							<xsl:when test="number($SectPos) &gt; 0">
4584								<xsl:for-each select="preceding-sibling::*[position() = $SectPos]">
4585									<xsl:choose>
4586										<xsl:when test="字:节属性_421B/字:是否首页页眉页脚不同_41EE = 'true'">
4587											<xsl:value-of select="generate-id(字:节属性_421B/字:是否首页页眉页脚不同_41EE)"/>
4588										</xsl:when>
4589										<!--xsl:when test="字:节属性_421B/字:页码设置_4205/@字:首页显示 = 'false'">
4590											<xsl:value-of select="generate-id(字:节属性_421B/字:页码设置)"/>
4591										</xsl:when-->
4592										<xsl:otherwise>
4593											<xsl:choose>
4594												<xsl:when test="@名称_4166='RoStandard'">
4595													<xsl:value-of select="string('none')"/>
4596												</xsl:when>
4597												<xsl:otherwise>
4598													<xsl:value-of select="nsof:NeoShineOfficeID(.)"/>
4599												</xsl:otherwise>
4600											</xsl:choose>
4601										</xsl:otherwise>
4602									</xsl:choose>
4603								</xsl:for-each>
4604							</xsl:when>
4605							<xsl:otherwise>
4606								<xsl:value-of select="string('none')"/>
4607							</xsl:otherwise>
4608						</xsl:choose>
4609					</xsl:when>
4610					<xsl:otherwise>
4611						<xsl:value-of select="string('none')"/>
4612					</xsl:otherwise>
4613				</xsl:choose>
4614			</xsl:for-each>
4615		</xsl:variable>
4616		<xsl:if test="($newstyle = 1) or ($SpecialSection !='none')">
4617			<xsl:element name="style:style">
4618				<xsl:variable name="styleName" select="@式样引用_419C"/>
4619				<xsl:attribute name="style:family">table</xsl:attribute>
4620				<xsl:attribute name="style:name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
4621				<xsl:if test="$SpecialSection != 'none'">
4622					<xsl:attribute name="style:master-page-name"><xsl:value-of select="$SpecialSection"/></xsl:attribute>
4623				</xsl:if>
4624				<xsl:choose>
4625					<xsl:when test="@式样引用_419C">
4626						<xsl:attribute name="style:parent-style-name"><xsl:value-of select="@式样引用_419C"/></xsl:attribute>
4627						<xsl:element name="style:table-properties">
4628							<xsl:attribute name="table:border-model">collapsing</xsl:attribute>
4629							<xsl:call-template name="TableParentProperties">
4630								<xsl:with-param name="Stylename" select="@式样引用_419C"/>
4631							</xsl:call-template>
4632							<xsl:call-template name="TableParentProperties">
4633								<xsl:with-param name="Stylename" select="@式样引用_419C"/>
4634							</xsl:call-template>
4635							<xsl:call-template name="TablePropertiesAttr"/>
4636							<xsl:choose>
4637								<xsl:when test="字:填充_4134">
4638									<xsl:call-template name="TablePropertiesElement"/>
4639								</xsl:when>
4640								<xsl:when test="/uof:UOF_0000/式样:式样集_990B/式样:文字表式样集_9917/式样:文字表式样_9918[@标识符_4100 = $styleName]/字:填充_4134">
4641									<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:文字表式样集_9917/式样:文字表式样_9918[@标识符_4100 = $styleName]">
4642										<xsl:call-template name="TablePropertiesElement"/>
4643									</xsl:for-each>
4644								</xsl:when>
4645							</xsl:choose>
4646						</xsl:element>
4647					</xsl:when>
4648					<xsl:otherwise>
4649						<xsl:element name="style:table-properties">
4650							<xsl:attribute name="table:border-model">collapsing</xsl:attribute>
4651							<xsl:call-template name="TablePropertiesAll"/>
4652						</xsl:element>
4653					</xsl:otherwise>
4654				</xsl:choose>
4655			</xsl:element>
4656		</xsl:if>
4657		<xsl:if test="字:列宽集_41C1">
4658			<xsl:apply-templates select="字:列宽集_41C1" mode="texttable"/>
4659		</xsl:if>
4660	</xsl:template>
4661	<xsl:template name="BodyTextTableStyle">
4662		<xsl:for-each select="/uof:UOF_0000/规则:公用处理规则_B665/规则:批注集_B669/规则:批注_B66A//字:文字表_416C | /uof:UOF_0000/字:文字处理文档_4225//字:文字表_416C | /uof:UOF_0000/图形:图形集_7C00/图:图形_8062/图:文本_803C/图:内容_8043//字:文字表_416C | /uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825/表:工作表属性_E80D/表:页面设置_E7C1//字:文字表_416C">
4663			<xsl:apply-templates select="字:文字表属性_41CC" mode="texttable"/>
4664			<xsl:variable name="CreateColumn">
4665				<xsl:choose>
4666					<xsl:when test="not(字:文字表属性_41CC/字:列宽集_41C1)">true</xsl:when>
4667					<xsl:otherwise>false</xsl:otherwise>
4668				</xsl:choose>
4669			</xsl:variable>
4670			<xsl:variable name="pTable" select="."/>
4671			<xsl:for-each select="字:行_41CD">
4672				<xsl:apply-templates select="字:表行属性_41BD" mode="texttable"/>
4673				<xsl:variable name="IsFirstRow">
4674					<xsl:choose>
4675						<xsl:when test="position() = 1">true</xsl:when>
4676						<xsl:otherwise>false</xsl:otherwise>
4677					</xsl:choose>
4678				</xsl:variable>
4679				<xsl:variable name="IsLastRow">
4680					<xsl:choose>
4681						<xsl:when test="position() = last()">true</xsl:when>
4682						<xsl:otherwise>false</xsl:otherwise>
4683					</xsl:choose>
4684				</xsl:variable>
4685				<xsl:if test="($CreateColumn = 'true') and (position()= 1)">
4686					<xsl:variable name="bodywidth">
4687						<xsl:variable name="pagew">
4688							<xsl:value-of select="preceding::字:分节_416A[1]/字:节属性_421B/字:纸张_41EC/@宽_C605"/>
4689						</xsl:variable>
4690						<xsl:variable name="leftm">
4691							<xsl:value-of select="preceding::字:分节_416A[1]/字:节属性_421B/字:页边距_41EB/@左_C608"/>
4692						</xsl:variable>
4693						<xsl:variable name="rightm">
4694							<xsl:value-of select="preceding::字:分节_416A[1]/字:节属性_421B/字:页边距_41EB/@右_C60A"/>
4695						</xsl:variable>
4696						<xsl:value-of select="number($pagew) - number($leftm) - number($rightm)"/>
4697					</xsl:variable>
4698					<xsl:for-each select="字:单元格_41BE">
4699						<xsl:if test="字:单元格属性_41B7/字:宽度_41A1">
4700							<xsl:element name="style:style">
4701								<xsl:attribute name="style:family">table-column</xsl:attribute>
4702								<xsl:attribute name="style:name"><xsl:value-of select="generate-id(字:单元格属性_41B7/字:宽度_41A1)"/></xsl:attribute>
4703								<xsl:element name="style:table-column-properties">
4704									<xsl:choose>
4705										<xsl:when test="字:单元格属性_41B7/字:宽度_41A1/@相对值_41A3">
4706											<xsl:attribute name="style:column-width"><xsl:value-of select="concat($bodywidth * 字:单元格属性_41B7/字:宽度_41A1/@相对值_41A3 div 100, $uofUnit)"/></xsl:attribute>
4707										</xsl:when>
4708										<xsl:otherwise>
4709											<xsl:attribute name="style:column-width"><xsl:value-of select="concat(字:单元格属性_41B7/字:宽度_41A1/@绝对值_41A2, $uofUnit)"/></xsl:attribute>
4710										</xsl:otherwise>
4711									</xsl:choose>
4712								</xsl:element>
4713							</xsl:element>
4714						</xsl:if>
4715					</xsl:for-each>
4716				</xsl:if>
4717				<xsl:for-each select="字:单元格_41BE">
4718					<xsl:variable name="pCell" select="."/>
4719					<xsl:variable name="IsFirstCell">
4720						<xsl:choose>
4721							<xsl:when test="position() = 1">true</xsl:when>
4722							<xsl:otherwise>false</xsl:otherwise>
4723						</xsl:choose>
4724					</xsl:variable>
4725					<xsl:variable name="IsLastCell">
4726						<xsl:choose>
4727							<xsl:when test="position() = last()">true</xsl:when>
4728							<xsl:otherwise>false</xsl:otherwise>
4729						</xsl:choose>
4730					</xsl:variable>
4731					<xsl:if test="字:单元格属性_41B7/child::*">
4732						<style:style>
4733							<xsl:attribute name="style:name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
4734							<xsl:attribute name="style:family">table-cell</xsl:attribute>
4735							<xsl:element name="style:table-cell-properties">
4736								<!--
4737								<xsl:for-each select="字:单元格属性_41B7/node()">
4738									<xsl:choose>
4739										<xsl:when test="self::node()[name(.)='字:宽度_41A1']">
4740
4741										</xsl:when>
4742										<xsl:when test="self::node()[name(.)='字:单元格边距']">
4743
4744										</xsl:when>
4745										<xsl:when test="self::node()[name(.)='字:边框']">
4746
4747										</xsl:when>
4748										<xsl:when test="self::node()[name(.)='字:填充']">
4749
4750										</xsl:when>
4751										<xsl:when test="self::node()[name(.)='字:垂直对齐方式']">
4752											<xsl:attribute name="style:vertical-align"><xsl:choose><xsl:when test="self::node()='center' ">middle</xsl:when><xsl:when test="self::node()='bottom' ">bottom</xsl:when><xsl:otherwise>top</xsl:otherwise></xsl:choose></xsl:attribute>
4753										</xsl:when>
4754										<xsl:when test="self::node()[name(.)='字:跨行']">
4755
4756										</xsl:when>
4757										<xsl:when test="self::node()[name(.)='字:跨列']">
4758
4759										</xsl:when>
4760										<xsl:when test="self::node()[name(.)='字:自动换行']">
4761											<xsl:apply-templates select="."/>
4762										</xsl:when>
4763										<xsl:when test="self::node()[name(.)='字:适应文字']">
4764
4765										</xsl:when>
4766										<xsl:when test="self::node()[name(.)='字:斜线表头']">
4767
4768										</xsl:when>
4769									</xsl:choose>
4770								</xsl:for-each>-->
4771								<xsl:if test="字:单元格属性_41B7/字:垂直对齐方式_41A5">
4772									<xsl:attribute name="style:vertical-align"><xsl:choose><xsl:when test="字:单元格属性_41B7/字:垂直对齐方式_41A5='center' ">middle</xsl:when><xsl:when test="字:单元格属性_41B7/字:垂直对齐方式_41A5='bottom' ">bottom</xsl:when><xsl:otherwise>top</xsl:otherwise></xsl:choose></xsl:attribute>
4773								</xsl:if>
4774								<xsl:variable name="pTableStyle" select="key('uof-table-styles',$pTable/字:文字表属性_41CC/@式样引用_419C)"/>
4775								<xsl:call-template name="TextTableBorder">
4776									<xsl:with-param name="pCell" select="$pCell"/>
4777									<xsl:with-param name="pTable" select="$pTable"/>
4778									<xsl:with-param name="pTableStyle" select="$pTableStyle"/>
4779									<xsl:with-param name="IsFirstRow" select="$IsFirstRow"/>
4780									<xsl:with-param name="IsLastRow" select="$IsLastRow"/>
4781									<xsl:with-param name="IsFirstCell" select="$IsFirstCell"/>
4782									<xsl:with-param name="IsLastCell" select="$IsLastCell"/>
4783								</xsl:call-template>
4784								<xsl:call-template name="UOFTextCellPadding">
4785									<xsl:with-param name="pCellPad" select="字:单元格属性_41B7/字:单元格边距_41A4"/>
4786									<xsl:with-param name="pTablePad" select="$pTable/字:文字表属性_41CC/字:默认单元格边距_41CA"/>
4787									<xsl:with-param name="pTableStylePad" select="$pTableStyle/字:默认默认单元格边距_41CA"/>
4788								</xsl:call-template>
4789								<xsl:if test="字:单元格属性_41B7/字:填充_4134">
4790									<xsl:apply-templates select="字:单元格属性_41B7/字:填充_4134" mode="texttablecell"/>
4791								</xsl:if>
4792							</xsl:element>
4793						</style:style>
4794					</xsl:if>
4795				</xsl:for-each>
4796			</xsl:for-each>
4797		</xsl:for-each>
4798	</xsl:template>
4799	<xsl:template name="GradientStyle">
4800		<xsl:element name="draw:gradient">
4801			<!--
4802			<xsl:choose>
4803				<xsl:when test="图:渐变/@图:类型">
4804					<xsl:attribute name="draw:name"><xsl:value-of select="图:渐变/@图:类型"/></xsl:attribute>
4805				</xsl:when>
4806				<xsl:otherwise>
4807					<xsl:attribute name="draw:name"><xsl:value-of select="generate-id()"/></xsl:attribute>
4808				</xsl:otherwise>
4809			</xsl:choose>
4810		-->
4811			<xsl:attribute name="draw:name"><xsl:value-of select="generate-id()"/></xsl:attribute>
4812			<xsl:attribute name="draw:style"><xsl:choose><xsl:when test="图:渐变_800D/@种子类型_8010='linear'"><xsl:value-of select="'linear'"/></xsl:when><xsl:when test="图:渐变_800D/@种子类型_8010='radar'"><xsl:value-of select="'radial'"/></xsl:when><xsl:when test="图:渐变_800D/@种子类型_8010='oval'"><xsl:value-of select="'ellipsoid'"/></xsl:when><xsl:when test="图:渐变_800D/@种子类型_8010='square'"><xsl:value-of select="'square'"/></xsl:when><xsl:when test="图:渐变_800D/@种子类型_8010='rectangle'"><xsl:value-of select="'rectangular'"/></xsl:when></xsl:choose></xsl:attribute>
4813			<xsl:attribute name="draw:start-color"><xsl:value-of select="图:渐变_800D/@起始色_800E"/></xsl:attribute>
4814			<xsl:attribute name="draw:end-color"><xsl:value-of select="图:渐变_800D/@终止色_800F"/></xsl:attribute>
4815			<xsl:attribute name="draw:start-intensity"><xsl:value-of select="concat(图:渐变_800D/@起始浓度_8011,'%')"/></xsl:attribute>
4816			<xsl:attribute name="draw:end-intensity"><xsl:value-of select="concat(图:渐变_800D/@终止浓度_8012,'%')"/></xsl:attribute>
4817			<xsl:attribute name="draw:angle"><xsl:value-of select="number(图:渐变_800D/@渐变方向_8013) * 10"/></xsl:attribute>
4818			<xsl:attribute name="draw:border"><xsl:value-of select="concat(图:渐变_800D/@边界_8014,'%')"/></xsl:attribute>
4819			<xsl:if test="图:渐变_800D/@种子X位置_8015">
4820				<xsl:attribute name="draw:cx"><xsl:value-of select="concat(图:渐变_800D/@种子X位置_8015,'%')"/></xsl:attribute>
4821			</xsl:if>
4822			<xsl:if test="图:渐变_800D/@种子Y位置_8016">
4823				<xsl:attribute name="draw:cy"><xsl:value-of select="concat(图:渐变_800D/@种子Y位置_8016,'%')"/></xsl:attribute>
4824			</xsl:if>
4825		</xsl:element>
4826	</xsl:template>
4827	<xsl:template name="HatchSetStyle">
4828		<xsl:variable name="fillImage">
4829			<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B//图:图案_800A | /uof:UOF_0000/图形:图形集_7C00//图:图案_800A | /uof:UOF_0000/字:文字处理文档_4225/字:段落_416B//图:图案_800A | /uof:UOF_0000/字:文字处理文档_4225/字:文字表_416C//图:图案_800A | /uof:UOF_0000/演:演示文稿文档_6C10//图:图案_800A | /uof:UOF_0000/表:电子表格文档_E826//图:图案_800A|/uof:UOF_0000/图表:图表集_E836/图表:图表_E837//图:图案_800A">
4830				<draw:fill-image>
4831					<xsl:variable name="ptnType">
4832						<xsl:choose>
4833							<xsl:when test="@类型_8008='ptn043' and @前景色_800B='#ffffff' and @图:背景色='#ff0000'">ptn043_red</xsl:when>
4834							<xsl:when test="@类型_8008='ptn044' and @前景色_800B='#ffffff' and @背景色_800C='#ff0000'">ptn044_red</xsl:when>
4835							<xsl:when test="@类型_8008">
4836								<xsl:value-of select="@类型_8008"/>
4837							</xsl:when>
4838							<xsl:otherwise>ptnwrong</xsl:otherwise>
4839						</xsl:choose>
4840					</xsl:variable>
4841					<xsl:attribute name="draw:name"><xsl:value-of select="$ptnType"/></xsl:attribute>
4842					<xsl:attribute name="draw:display-name"><xsl:value-of select="substring-after($ptnType,'ptn')"/></xsl:attribute>
4843					<xsl:call-template name="BinaryData"/>
4844				</draw:fill-image>
4845			</xsl:for-each>
4846		</xsl:variable>
4847		<xsl:call-template name="FillImage">
4848			<xsl:with-param name="fillImage" select="$fillImage"/>
4849		</xsl:call-template>
4850	</xsl:template>
4851	<xsl:template name="GraphicSetStyle">
4852		<xsl:variable name="fillImage">
4853			<xsl:for-each select="//图:填充_804C/图:图片_8005 | //字:填充_4134/图:图片_8005 | //演:背景_6B2C/图:图片_8005 | //表:背景填充_E830/图:图片_8005 | //表:填充_E746/图:图片_8005 | //图表:填充_E746/图:图片_8005">
4854				<!-- 图表的填充为后加的,解决图表无背景图片问题 -->
4855				<draw:fill-image xlink:actuate="onLoad" xlink:show="embed" xlink:type="simple">
4856					<xsl:attribute name="draw:name"><xsl:value-of select="@图形引用_8007"/></xsl:attribute>
4857					<xsl:choose>
4858						<xsl:when test="key('other-styles',@图形引用_8007)/对象:路径_D703">
4859							<xsl:attribute name="xlink:href"><xsl:value-of select="concat('Pictures/',substring-after(key('other-styles',@图形引用_8007)[1]/对象:路径_D703,'/data/'))"/></xsl:attribute>
4860						</xsl:when>
4861						<xsl:when test="key('other-styles',@图形引用_8007)/对象:数据_D702">
4862							<xsl:call-template name="BinaryGraphic">
4863								<xsl:with-param name="refGraphic" select="@图形引用_8007"/>
4864							</xsl:call-template>
4865						</xsl:when>
4866					</xsl:choose>
4867				</draw:fill-image>
4868			</xsl:for-each>
4869		</xsl:variable>
4870		<xsl:call-template name="FillImage">
4871			<xsl:with-param name="fillImage" select="$fillImage"/>
4872		</xsl:call-template>
4873	</xsl:template>
4874	<!--过滤重复式样-->
4875	<xsl:template name="FillImage">
4876		<xsl:param name="fillImage"/>
4877		<xsl:for-each-group select="$fillImage/*" group-by="@draw:name">
4878			<xsl:copy-of select="."/>
4879		</xsl:for-each-group>
4880	</xsl:template>
4881	<xsl:template match="对象:对象数据_D701">
4882		<xsl:for-each select="key('rel_graphic_name',@标识符_D704)">
4883			<xsl:element name="style:style">
4884				<xsl:attribute name="style:name"><xsl:value-of select="generate-id()"/></xsl:attribute>
4885				<xsl:attribute name="style:family">graphic</xsl:attribute>
4886				<xsl:element name="style:graphic-properties">
4887					<xsl:choose>
4888						<xsl:when test="uof:保护_C62A/@是否保护大小='true'">
4889							<xsl:attribute name="style:protect">size</xsl:attribute>
4890						</xsl:when>
4891						<xsl:when test="uof:保护_C62A/@是否保护位置='true'">
4892							<xsl:attribute name="style:protect">position</xsl:attribute>
4893						</xsl:when>
4894						<xsl:when test="uof:保护_C62A/@是否保护位置='true'and uof:保护_C62A/@是否保护大小='true'">
4895							<xsl:attribute name="style:protect">position size</xsl:attribute>
4896						</xsl:when>
4897					</xsl:choose>
4898					<xsl:attribute name="fo:border">none</xsl:attribute>
4899					<!-- a special case,there is a @类型,but no uof:垂直 starting -->
4900					<xsl:if test="uof:位置_C620/@类型_C646 = 'as-char'">
4901						<xsl:attribute name="style:vertical-pos"><xsl:value-of select="'from-top'"/></xsl:attribute>
4902					</xsl:if>
4903					<!-- a special case,there is a @类型,but no uof:垂直 , ending. -->
4904					<xsl:apply-templates select="uof:位置_C620/uof:垂直_410D"/>
4905					<xsl:apply-templates select="uof:位置_C620/uof:水平_4106"/>
4906					<xsl:apply-templates select="uof:绕排_C622"/>
4907				</xsl:element>
4908			</xsl:element>
4909		</xsl:for-each>
4910	</xsl:template>
4911	<xsl:template name="BinaryData">
4912		<office:binary-data>
4913			<xsl:choose>
4914				<xsl:when test="@类型_8008='ptn001' and @前景色_800B='#00ff00'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJElEQVR4nGNh+M/wn5EBE7BgFQVJYBcmVoIRyT4UCWT7SLcDAC48BiC0r93dAAAAAElFTkSuQmCC</xsl:when>
4915				<xsl:when test="@类型_8008='ptn001' and @前景色_800B='#ff78bd'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAI0lEQVR4nGP5//8/AzbAglUUvwQjAwM2w1iwipJpBzJAsg8AQFcGHZrs6e8AAAAASUVORK5CYII=</xsl:when>
4916				<xsl:when test="@类型_8008='ptn001' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJElEQVR4nGNhYPjP8J+RAQOwYBUFS+AAREowIuxDlUCyj3Q7ACg9BiAi8rOrAAAAAElFTkSuQmCC</xsl:when>
4917				<xsl:when test="@类型_8008='ptn002' and @前景色_800B='#ff0000'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJklEQVR4nGP5z8DA8B9EoAEWrKJgCWTAyAhXhyqBpJsFWRWN7AAAOSsRFt141QcAAAAASUVORK5CYII=</xsl:when>
4918				<xsl:when test="@类型_8008='ptn003' and @前景色_800B='#ff0000'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGP5z8DACMRg8J8RwWaBsxiQVIAkMNVC2CyYaiFsFky1VLcDAOahGCD63ouBAAAAAElFTkSuQmCC</xsl:when>
4919				<xsl:when test="@类型_8008='ptn004' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAI0lEQVR4nGNhYPj//z8DBDAyMsDZLBAWRAiZzYIpBGEPqA4A/1o9AqgXatAAAAAASUVORK5CYII=</xsl:when>
4920				<xsl:when test="@类型_8008='ptn005' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKUlEQVR4nGNhYPj//z8DIyMDGskCZzEwMCCzWTDVInSgqYWw8eqgkh0A7ZVBDhySK7QAAAAASUVORK5CYII=</xsl:when>
4921				<xsl:when test="@类型_8008='ptn006' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKUlEQVR4nGNhYPj//z8DIyMDGsmCVRRIsmAVxaKDgYFUHcTZATcXmQQA8ftBGoRo5DEAAAAASUVORK5CYII=</xsl:when>
4922				<xsl:when test="@类型_8008='ptn007' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHklEQVR4nGNhYPj//z8DIyMDGsmCVRRIsmAVHWgdAPL9QR46gf26AAAAAElFTkSuQmCC</xsl:when>
4923				<xsl:when test="@类型_8008='ptn008' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGNhYPjPAAb//zMwMjLA2SwQPibJAmcBATIbrw40tRA2Fe0AAP6iMSo4Vov8AAAAAElFTkSuQmCC</xsl:when>
4924				<xsl:when test="@类型_8008='ptn009' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAI0lEQVR4nGP5//8/IyMDBPz/zwBns0BYECFkNgumEIQ9oDoAnUwhPDtydwUAAAAASUVORK5CYII=</xsl:when>
4925				<xsl:when test="@类型_8008='ptn010' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAK0lEQVR4nGP5//8/IyMDBPz/zwBns8BZQIDMZsFUC2GzYKqFsFkw1VLdDgAA8xEwmsNKVwAAAABJRU5ErkJggg==</xsl:when>
4926				<xsl:when test="@类型_8008='ptn010' and @前景色_800B='#ffffff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALElEQVR4nGP5//+/icksBjA4cyYNzmaBs4AAmc2CqRbCZsFUC2GzYKqluh0ANq4hMPEukbMAAAAASUVORK5CYII=</xsl:when>
4927				<xsl:when test="@类型_8008='ptn011' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGNhYPjPAAb//zMwMjLAAQuchSyKIoEMgLqxSwB1syCropEdADipCSSSiwzsAAAAAElFTkSuQmCC</xsl:when>
4928				<xsl:when test="@类型_8008='ptn012' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJElEQVR4nGNhYPjPgA2wYBUlWuL/fwZGRmwScFHy7EA2FxkAAOHDBSIH/WEvAAAAAElFTkSuQmCC</xsl:when>
4929				<xsl:when test="@类型_8008='ptn013' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALUlEQVR4nGNhYPj//z8DBDAyMsDZLEAWnI/MZkHjw9ksEI2YcixYzQHpoJ4dAOY1OQZM1tGbAAAAAElFTkSuQmCC</xsl:when>
4930				<xsl:when test="@类型_8008='ptn014' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGP5//8/AxgwMjLAmCA2C1ZRIJsFqygQsGAVBUlgFaWuHQBj1iEg8vXVKAAAAABJRU5ErkJggg==</xsl:when>
4931				<xsl:when test="@类型_8008='ptn015' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMUlEQVR4nGNhYPjPAMQggoGRkQHOZgFSQD4QARnIbBaIEkw5Fky1EDYLxGhMOSraAQCLbjkg7ZCwuwAAAABJRU5ErkJggg==</xsl:when>
4932				<xsl:when test="@类型_8008='ptn016' and @前景色_800B='#0000ff' and @背景色_800C='#ff0000'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJ0lEQVR4nGNhYPjPAMKMQJIRic2CVRTIZsEqCtWBKQpks2AVpa4dAI7FICCCNCzYAAAAAElFTkSuQmCC</xsl:when>
4933				<xsl:when test="@类型_8008='ptn016' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKUlEQVR4nGNhYPjPAMQggoGRkQHOZsEqCmSzYBWF6sAUBbJZsIpS1w4AYkkhHuKbNUYAAAAASUVORK5CYII=</xsl:when>
4934				<xsl:when test="@类型_8008='ptn017' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAN0lEQVR4nGXOAQoAQARE0VH//lfenU2hpUheBOnI+UpHhKhumnucnm4jfRu1+xnz7rSGz9j/pF2YoB0gtk9UpQAAAABJRU5ErkJggg==</xsl:when>
4935				<xsl:when test="@类型_8008='ptn018' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMUlEQVR4nGNhYPj//z8DMmBkBJEsWEVBElhFgapZsIoidKCJQiUwRUESWEURRmG6DQAbfBEgGcS1uwAAAABJRU5ErkJggg==</xsl:when>
4936				<xsl:when test="@类型_8008='ptn019' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHElEQVR4nGNhYPj//z8DBDAyMsDZLAw4wOCUAADHvwUeDEtdDgAAAABJRU5ErkJggg==</xsl:when>
4937				<xsl:when test="@类型_8008='ptn020' and @前景色_800B='#ffff00'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGklEQVR4nGP5/58BK2BhZMQhgV0YnwQd7AAAYJIEISB3Q/YAAAAASUVORK5CYII=</xsl:when>
4938				<xsl:when test="@类型_8008='ptn020' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAIElEQVR4nGNhYPjPgA2w/McuzsCCXRifBCMjDgnq2QEAwAgFHjYAUNQAAAAASUVORK5CYII=</xsl:when>
4939				<xsl:when test="@类型_8008='ptn021' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGklEQVR4nGNhYPj//z8DIyMDGsnCgAMMTgkApfgJHqRbf9cAAAAASUVORK5CYII=</xsl:when>
4940				<xsl:when test="@类型_8008='ptn022' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHElEQVR4nGNhYPjPgA2w/McuzsDCyIhDYiB1AADmewkeUS/FOwAAAABJRU5ErkJggg==</xsl:when>
4941				<xsl:when test="@类型_8008='ptn022' and @前景色_800B='#00ff00' and @背景色_800C='#00ffff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGElEQVR4nGNh+P+fARtgYWBgxCUxCHUAALvMBSC5rp57AAAAAElFTkSuQmCC</xsl:when>
4942				<xsl:when test="@类型_8008='ptn022' and @前景色_800B='#00ff00'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAF0lEQVR4nGNh+M+AFbAw4JABSjAOPh0AV88FH0+MxjkAAAAASUVORK5CYII=</xsl:when>
4943				<xsl:when test="@类型_8008='ptn023' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHElEQVR4nGNhYPjPAMQggoGRkQHOZmHAAQanBAC7ywUeNxfiogAAAABJRU5ErkJggg==</xsl:when>
4944				<xsl:when test="@类型_8008='ptn024' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAIElEQVR4nGNhYPjPgA2wYBUFSfzHrgGPDkZGUnWQbAcAXGwFHqNw3RkAAAAASUVORK5CYII=</xsl:when>
4945				<xsl:when test="@类型_8008='ptn025' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMklEQVR4nGP5//8/AzbAglUUJMHIyADXg8xmAbLgfGQ2CxofzobagSmHsBzZdQgdmAAAyBUhEFI1qLsAAAAASUVORK5CYII=</xsl:when>
4946				<xsl:when test="@类型_8008='ptn026' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMElEQVR4nGP5//8/AzbAglUURYKRkQGuGchmwSoKZLNgFQUZhVUUJIHsKGQ2TlcBACh9FRy4as61AAAAAElFTkSuQmCC</xsl:when>
4947				<xsl:when test="@类型_8008='ptn027' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJUlEQVR4nGNhYPjPAAP/EUwGFmQOMmDBLkysBCMjDgkUy0m2AwAbsQccw3M/SgAAAABJRU5ErkJggg==</xsl:when>
4948				<xsl:when test="@类型_8008='ptn028' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAIElEQVR4nGNhYPj//z8DJmDBIkauBLIFjIwMcC4V7QAAw/oHHGDxXvUAAAAASUVORK5CYII=</xsl:when>
4949				<xsl:when test="@类型_8008='ptn029' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAANUlEQVR4nGWNQQoAMAjDKuT/X+4OgpPqQUgNFsm27rDTKg2yeUsEj8f90/sfooxb2xKhj/EAW+UdErFnPgwAAAAASUVORK5CYII=</xsl:when>
4950				<xsl:when test="@类型_8008='ptn030' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOUlEQVR4nGWO0QoAMAgCDfz/X3aOhoy6J08qIiAJVcBNaKyM/LhkUuhtDs8EhydzeOC+/jYs+zGXB++ZGRj0GfymAAAAAElFTkSuQmCC</xsl:when>
4951				<xsl:when test="@类型_8008='ptn031' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAANElEQVR4nGNhYPj//z8DGmBkZGABigIpZDkIl4UBpAUhB2ewQFRB5CAMCGCBK0EzjYp2AABEjCcUaUAW6gAAAABJRU5ErkJggg==</xsl:when>
4952				<xsl:when test="@类型_8008='ptn032' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALElEQVR4nGP5//8/AzbAAmcxMoJIuDIWuChECMIAkixoCiEMIMmCwwpq2gEARxkdGBfi2AgAAAAASUVORK5CYII=</xsl:when>
4953				<xsl:when test="@类型_8008='ptn033' and @前景色_800B='#ff0000'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAANklEQVR4nGNhYPjPgAH+MzCyYBVlZPiPLgERBTJYsIqiSABFkRWxoKlFMQrZBCADajmyKLIcAMprFiBoxxp5AAAAAElFTkSuQmCC</xsl:when>
4954				<xsl:when test="@类型_8008='ptn033' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAANElEQVR4nGP5//8/AwZgZGRgwSoKVIwuAREFAhasoigSQFFkwIKmFsUoZBOADKjlyKLIcgBi7Bcg5WuxKQAAAABJRU5ErkJggg==</xsl:when>
4955				<xsl:when test="@类型_8008='ptn034' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJklEQVR4nGNhYPjPgA2wAPF/bFIsWJUTkmBkxCaBbAFQBZxLuh0ALx0HHo+Ka1MAAAAASUVORK5CYII=</xsl:when>
4956				<xsl:when test="@类型_8008='ptn035' and @前景色_800B='#0000ff' and @背景色_800C='#ff00ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAANUlEQVR4nGNhYPj/nwEKGIEcGJvlP4yPTIIkGFD5cDYLmglwfSyYohB9LJhqEXYw4LcDTQ4AMPkZGo5IQCMAAAAASUVORK5CYII=</xsl:when>
4957				<xsl:when test="@类型_8008='ptn035' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAN0lEQVR4nGVNQQ4AIAjCjf9/2WpsVOjBgYAQ6G5oqmDMjcTffQTg48aMD85xXpXj9N6O8GZHaAt21jEU9i1BlQAAAABJRU5ErkJggg==</xsl:when>
4958				<xsl:when test="@类型_8008='ptn035' and @前景色_800B='#0000ff' and @背景色_800C='#ff00ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAANUlEQVR4nGNhYPj/nwEKGIEcGJvlP4yPTIIkGFD5cDYLmglwfSyYohB9LJhqEXYw4LcDTQ4AMPkZGo5IQCMAAAAASUVORK5CYII=</xsl:when>
4959				<xsl:when test="@类型_8008='ptn036' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALElEQVR4nGNhYPj//z8DIyMDGsmCVRRIsmAVJaQDCCAkA8hCKMnCgAOQLgEA5O4lHgp+1OoAAAAASUVORK5CYII=</xsl:when>
4960				<xsl:when test="@类型_8008='ptn037' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALUlEQVR4nGP5//8/AzbAAmcxMjIgq0FIAEWR5YjTgWIHmkKEBFZRoGrsOoAiAHAjFRgrzI7EAAAAAElFTkSuQmCC</xsl:when>
4961				<xsl:when test="@类型_8008='ptn038' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJUlEQVR4nGNhYPj//z8DIyMDGskCxAwgSXSSBSKPCViwitJJBwC5tB0QWDyhJgAAAABJRU5ErkJggg==</xsl:when>
4962				<xsl:when test="@类型_8008='ptn039' and @前景色_800B='#ffffff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMElEQVR4nGMxNp7JgA2wAPGZM2kmJrMgfDgbJAEXRWazwIWQ9aFIIItSaAcyAOoDADXzFyjANSY3AAAAAElFTkSuQmCC</xsl:when>
4963				<xsl:when test="@类型_8008='ptn039' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMElEQVR4nGNhYPj//z8DJmDBKgqSgFCMjAxwFRA2VAJZH4TNgqwdWR+KBLI+0u0AAFpvGRLKSkf3AAAAAElFTkSuQmCC</xsl:when>
4964				<xsl:when test="@类型_8008='ptn040' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOUlEQVR4nG2NCwoAMAhCF3j/KzuHIAYTyuL1AcmzNfMyZI3SQpamh6AwcxHBlo3U6Ld9cIFgsQ+wLoWFGxgcGtpJAAAAAElFTkSuQmCC</xsl:when>
4965				<xsl:when test="@类型_8008='ptn041' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALElEQVR4nGNhYPjPgA2w/P/PwMgIYv0HK4CzWSAsuBCczYKpFiGBppbqdgAALSkVLK4WE5kAAAAASUVORK5CYII=</xsl:when>
4966				<xsl:when test="@类型_8008='ptn042' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAN0lEQVR4nHWNSQoAQAjDKvT/X+4UBBcYc4oHU0qKQCKhnDbfSbmF2PQHDji7/w3L3OPsrtS18QDeoxEoMtsKvAAAAABJRU5ErkJggg==</xsl:when>
4967				<xsl:when test="@类型_8008='ptn043' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJUlEQVR4nGNhYPjPgA2wAPF/mBQjI4LNglU5IQmgCXAAZ1PRDgBm3wkgDXDgQQAAAABJRU5ErkJggg==</xsl:when>
4968				<xsl:when test="@类型_8008='ptn043' and @前景色_800B='#ffffff' and @背景色_800C='#ff0000'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGN5YqosferOUzMVBjCAs1kYcADcEkC9EBPgQhA2C9BEWtsBAJwCGSIIxPtQAAAAAElFTkSuQmCC</xsl:when>
4969				<xsl:when test="@类型_8008='ptn044' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGklEQVR4nGNhYPjPgA2wAPF/bFIsWJUPtAQAJtwDHhoe2JQAAAAASUVORK5CYII=</xsl:when>
4970				<xsl:when test="@类型_8008='ptn044' and @前景色_800B='#ffffff' and @背景色_800C='#ff0000'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJklEQVR4nGN5YqosferOUzMVBlTAwoAD0EUC6CQgBSFRJDAdCgEAA0IJHu/iI/cAAAAASUVORK5CYII=</xsl:when>
4971				<xsl:when test="@类型_8008='ptn045' and @前景色_800B='#ff0000' and @背景色_800C='#ffff00'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGP5/5+BgZEBBP6DSRibBcRCFYKwWRhwABYGnEbh1EE1OwBLFQ4fojv/LgAAAABJRU5ErkJggg==</xsl:when>
4972				<xsl:when test="@类型_8008='ptn045' and @前景色_800B='#ff0000'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKUlEQVR4nGP5z8DAAMIMDIxgEsZmAbFQhSBsFgYcgAWkBLtROHVQzQ4A9OwNIMy7yHkAAAAASUVORK5CYII=</xsl:when>
4973				<xsl:when test="@类型_8008='ptn045' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGNhYPj//z8DEDAygkg4mwXIQhOCsFkYcAAWoBLsRuHUQT07AB7YGSAdbcZUAAAAAElFTkSuQmCC</xsl:when>
4974				<xsl:when test="@类型_8008='ptn046' and @前景色_800B='#0000ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAH0lEQVR4nGNhYPjPAAP/EUwGFgYcgAwJZHMZGWliBwALswUeEhCN8AAAAABJRU5ErkJggg==</xsl:when>
4975				<xsl:when test="@类型_8008='ptn005' and @背景色_800C='#333399'">
4976iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kgLEySBSIP58PZeHWgqaW6HQDkpk8sQd5vKgAAAABJRU5ErkJggg==</xsl:when>
4977				<xsl:when test="@类型_8008='ptn010'and @背景色_800C='#333399'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALElEQVR4nGP5//8/AxioqNy9c0cZzmZhgAG4KITNgqkWwmbBVAthIIyinR0Az50mQDmqEnoAAAAASUVORK5CYII=</xsl:when>
4978				<xsl:when test="substring(@类型_8008,5,2)='13'and string(@背景色_800C)='#ff3333'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAK0lEQVR4nGP5b2zMAAaMZ88is1ngfCCJzGZB48PZLJhqIWwWiKGYclS0AwACfUJCQU/IJQAAAABJRU5ErkJggg==</xsl:when>
4979				<xsl:when test="@类型_8008='ptn022' and @背景色_800C='#00ffff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAG0lEQVR4nGNh+P+fARtgUWZQwS5xl+HO4NMBAP+nCGbuOY6AAAAAAElFTkSuQmCC</xsl:when>
4980				<xsl:when test="@类型_8008='ptn035' and @背景色_800C='#ff00ff'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAPUlEQVR4nGP5z/BfheEuAxjcYVAGsiEkC5wFlEBmsyCrgouCJDDVQsxkQTYH2SYWTLVQO5DNQXEVRCGm2wCx4C4nyqBe2QAAAABJRU5ErkJggg==</xsl:when>
4981				<xsl:when test="@类型_8008='ptn039' and @背景色_800C='#333399'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMklEQVR4nGNRZrjDgA2wQKg7/5VVGO9ikUATBUkgq0VmsyCrRWazYFoL0YdFAqIPpx0A44IXKNx/AToAAAAASUVORK5CYII=</xsl:when>
4982				<xsl:when test="@类型_8008='ptn045' and @背景色_800C='#ffff00'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJUlEQVR4nGP5/58BCO6qgEjlOwg2CwMOwIKpFsLGrQNTLdXtAAD9VxEgnseUWAAAAABJRU5ErkJggg==</xsl:when>
4983				<xsl:when test="@类型_8008='ptn001'">				iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAIUlEQVR4nGP5//8/AzbAglUUrwQjIyNW01ioaAcyB9k+AAO9DBstSVK1AAAAAElFTkSuQmCC</xsl:when>
4984				<xsl:when test="@类型_8008='ptn002'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKUlEQVR4nGOZqeHDAANphVKz+p9B2CwMSAAuCpJAVoUMWLCKohtFIzsAN2YVaquFlH0AAAAASUVORK5CYII=</xsl:when>
4985				<xsl:when test="@类型_8008='ptn003'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALElEQVR4nGNRVr7DgA2w3BEIV/mwEsJBZrPAWUCAzGbBVAths2CqhbCpaAcAxPUjsSXviH8AAAAASUVORK5CYII=</xsl:when>
4986				<xsl:when test="@类型_8008='ptn004'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAI0lEQVR4nGOR7OpK/1bGAAYzuRBsFggLIoTMZsEUgrAHVAcAq3dJq0qbe9YAAAAASUVORK5CYII=</xsl:when>
4987				<xsl:when test="@类型_8008='ptn005'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJElEQVR4nGNpaGAAQhABBnA2C4SFiVgg8nA+nI1XB5paqtsBAN6ENyG+vb1pAAAAAElFTkSuQmCC</xsl:when>
4988				<xsl:when test="@类型_8008='ptn006'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGOR7Op6Xlom2Y1OsqDxGRgYIGwWTLXYdcBJvDrg5hKtA6scAIQYXcTwY7BfAAAAAElFTkSuQmCC</xsl:when>
4989				<xsl:when test="@类型_8008='ptn007'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHklEQVR4nGNh+M/A4O3FsHUbGsmCVRRIsmAVHWgdAJ1uP7UktXJ2AAAAAElFTkSuQmCC</xsl:when>
4990				<xsl:when test="@类型_8008='ptn008'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMElEQVR4nGP5/z+NYRYDFKQxwNksIBaEj0qygGRnIamFsVkQJqDrwFALYVPNDgYGAHpeHCHJYPuMAAAAAElFTkSuQmCC</xsl:when>
4991				<xsl:when test="@类型_8008='ptn009'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJklEQVR4nGOR7Op6xn9H6qMKAxjA2SxADGFBhOBsFkwhCHtAdQAAcSg9JIa+mA8AAAAASUVORK5CYII=</xsl:when>
4992				<xsl:when test="@类型_8008='ptn010'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGNZd54BAtr7GSoLEWwWBhiAi0LYLJhqIWwWTLUQgDCKdnYAAK3RFxro9SLpAAAAAElFTkSuQmCC</xsl:when>
4993				<xsl:when test="@类型_8008='ptn011'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJ0lEQVR4nGNpaGhgwAZYMIUkJX2eP9+CRQIoitABUYXFKDRR6toBAJq6FSc596YjAAAAAElFTkSuQmCC</xsl:when>
4994				<xsl:when test="@类型_8008='ptn012'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAK0lEQVR4nGOR7OpiwAZY4KxnpaVS3d1YJJBFUSRwGkWUBNA+7BJA+3AaBQAC0Ah+yZWsQwAAAABJRU5ErkJggg==</xsl:when>
4995				<xsl:when test="@类型_8008='ptn013'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALUlEQVR4nGP5//8/AxgwMjLAmCA2C5wPJJHZLGh8OJsFUy2EzQIxFFOOinYAADx8OwaQ1VWOAAAAAElFTkSuQmCC</xsl:when>
4996				<xsl:when test="@类型_8008='ptn014'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKUlEQVR4nGNhuPOfAQJUGBjuMMDZLFhFgWwWrKJAwIJVFCyBTZS6dgAAE3wRIDlgYu4AAAAASUVORK5CYII=</xsl:when>
4997				<xsl:when test="@类型_8008='ptn015'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMklEQVR4nGOZmXbm+awtDAwMkmk+QBLOZoFQQD4QARlwNgsaH85mgWjHlGPBag517QAAiLdV7DSstF0AAAAASUVORK5CYII=</xsl:when>
4998				<xsl:when test="@类型_8008='ptn016'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAK0lEQVR4nGNZd54BCC5tlASSev7P4WwWrKJANgtWUagOTFEgmwWrKHXtAADkozA6i+VXKgAAAABJRU5ErkJggg==</xsl:when>
4999				<xsl:when test="@类型_8008='ptn017'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAO0lEQVR4nGNhYPjPcOYsAzIwMQYSLFAWshyQbWLMglCFKscCkceUY4HrRZNjgetFk2OB60WTQ5JAlQMAcWQdIItfX/MAAAAASUVORK5CYII=</xsl:when>
5000				<xsl:when test="@类型_8008='ptn018'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOUlEQVR4nGOZ4j6FgYHhkjwrAxjoPfwNYbBgFQVJYBWF6sAUBapmwSoK0oFVFGEUmihQNQtWUSAJAItIGZCmAj/UAAAAAElFTkSuQmCC</xsl:when>
5001				<xsl:when test="@类型_8008='ptn019'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHElEQVR4nGNh+M/A0NjAUN/AAAEwNgsDDjA4JQDARQUg8kU9AQAAAABJRU5ErkJggg==</xsl:when>
5002				<xsl:when test="@类型_8008='ptn020'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAH0lEQVR4nGNhuPOfARtgwSoKllDBJXEHlwROo6hmBwAWYQP8EvqLCwAAAABJRU5ErkJggg==</xsl:when>
5003				<xsl:when test="@类型_8008='ptn021'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAF0lEQVR4nGP5//8/IyMjJsnCgAMMTgkA6ywMIQCWenYAAAAASUVORK5CYII=</xsl:when>
5004				<xsl:when test="@类型_8008='ptn022'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGElEQVR4nGNhwAFY/v//j12CkZFx8OkAAKXuDB5FnY15AAAAAElFTkSuQmCC</xsl:when>
5005				<xsl:when test="@类型_8008='ptn023'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHklEQVR4nGP5//8/IyMjAwMDkAEk4WwWBhxgcEoAAKkECR7id7rEAAAAAElFTkSuQmCC</xsl:when>
5006				<xsl:when test="@类型_8008='ptn024'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHElEQVR4nGP5//8/AzbAglUUJMHIyEiiDjrYAQCF2QYhE3pd/wAAAABJRU5ErkJggg==</xsl:when>
5007				<xsl:when test="@类型_8008='ptn025'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAL0lEQVR4nGP5//8/AxgwMjIis1kYYAAuCmEjJNAAGRJodsLZLEAWnI/MZkHjw9kAFogqDyFktcgAAAAASUVORK5CYII=</xsl:when>
5008				<xsl:when test="@类型_8008='ptn026'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKUlEQVR4nGP5//8/AzbAglWUQglGRka4fUA2C1ZRIJsFqyjIKKyiQAAA6fcYIfk0nh8AAAAASUVORK5CYII=</xsl:when>
5009				<xsl:when test="@类型_8008='ptn027'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGP5//8/AzbAgsxhZGTELoGsG0UCp1EoEsjmohhFlKuQAQA9sAwbpfdUbgAAAABJRU5ErkJggg==</xsl:when>
5010				<xsl:when test="@类型_8008='ptn028'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAIElEQVR4nGP5//8/AwwwMjLCuSwMOAAZEsjmIttHRTsAofAMG54pChoAAAAASUVORK5CYII=
5011			</xsl:when>
5012				<xsl:when test="@类型_8008='ptn029'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAANUlEQVR4nGWMQQoAQAgCDfz/l92Di0F2qnGSACShhofOjAnPHe8H/ccusbdBqA0eNwbb9f4AKKYqDJtlg60AAAAASUVORK5CYII=</xsl:when>
5013				<xsl:when test="@类型_8008='ptn030'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOUlEQVR4nG1NOQ4AMAjShP9/mZIwSGsZDHIoSFZVd2uaG5CUuyERZruHHbeHTF0/8m56n1NOTONJHNjRJBKMzS6qAAAAAElFTkSuQmCC</xsl:when>
5014				<xsl:when test="@类型_8008='ptn031'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAL0lEQVR4nGP5//8/IyMjkGRgYIAzgIAFmYOsiAUuiiwHkoDwIRyIIqgOZKNpZAcAogk5DLqwhAsAAAAASUVORK5CYII=</xsl:when>
5015				<xsl:when test="@类型_8008='ptn032'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMUlEQVR4nGNhYGD4//8/IyMjkASy4QwWCAWRgzAYwICFAQbgQugScADRygIxlKZ2AAD5kSoS/A+e7AAAAABJRU5ErkJggg==</xsl:when>
5016				<xsl:when test="@类型_8008='ptn033'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOElEQVR4nG2MQQoAQAgCE/r/l1ujkFjsEDqKWVURAYB/9FxKXboB6x/twNIOLGU7LTVTsj0lc0sPILchG3Z9PUUAAAAASUVORK5CYII=</xsl:when>
5017				<xsl:when test="@类型_8008='ptn034'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGNhwAFY/v//D2ExMjLC2SAJnDpwSgBNgHOQ2SzI5hJnFC4JANNjCSHwZ+dOAAAAAElFTkSuQmCC</xsl:when>
5018				<xsl:when test="@类型_8008='ptn035'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAPElEQVR4nGWOWwoAQAgCDbz/ld2HS7jUR0gNKgFIwp2q2tqbrUy0ZlJ9PY/J2pPpk0mc7MtIn6+VwdltAaKwTglQF5YxAAAAAElFTkSuQmCC</xsl:when>
5019				<xsl:when test="@类型_8008='ptn036'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALklEQVR4nGP5//8/IyMjJsmCVRRIsgAxAwMDhA9kQEggYGHAAciTgNgGt4mAqwCl+DMhMZsO5QAAAABJRU5ErkJggg==</xsl:when>
5020				<xsl:when test="@类型_8008='ptn037'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALklEQVR4nGP5//8/AwMDIyMjhAEHLFhFoRJAUew6IHJYdCADuFZ0CbixpOiAMADmpyEShMaewQAAAABJRU5ErkJggg==</xsl:when>
5021				<xsl:when test="@类型_8008='ptn038'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAK0lEQVR4nGP5//8/AwMDIyMjhAEHLBAKTRQkAVGLSbJA1GKSUKNIsYNkHQC3qC0JDQzH4AAAAABJRU5ErkJggg==</xsl:when>
5022				<xsl:when test="@类型_8008='ptn039'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMElEQVR4nGP5//8/AzbAAqEYGRnRVEAlMPWxIKtFZrMgq0Vms2BaC9GHRQKiD6cdAA9EIRKBWkN+AAAAAElFTkSuQmCC</xsl:when>
5023				<xsl:when test="@类型_8008='ptn040'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOElEQVR4nGWOUQoAMAhCF7z7X7nGBJHmR6mhRHefh6q60xK7skxIoYQk6eYNrWwXx9aKshr2Vz8GDzgwD2pvz7kAAAAASUVORK5CYII=</xsl:when>
5024				<xsl:when test="@类型_8008='ptn041'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAK0lEQVR4nGNhYGD4//8/kGRkZERms8CFIADOZgEqQVMLYbPAlaDpY6GDHQDLBh45l0dhygAAAABJRU5ErkJggg==</xsl:when>
5025				<xsl:when test="@类型_8008='ptn042'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOUlEQVR4nHWNQQoAMAzCWvD/X3aC1DHoPJQcbERNSBq6Wxf1CVJ3MQwbRAHzVeXjUS0bLu4b8cYpPr24ISf5W9S/AAAAAElFTkSuQmCC</xsl:when>
5026				<xsl:when test="@类型_8008='ptn043'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJklEQVR4nGP5//8/IyMjkGQAAzibhQEHwC0B1AsxAS4EYbPQwQ4A6J0SLfF/06kAAAAASUVORK5CYII=</xsl:when>
5027				<xsl:when test="@类型_8008='ptn044'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJElEQVR4nGP5//8/IyMjkGRABSwMOAALUDmQgpAoEqQbRT0JAHD2DCHlOvIhAAAAAElFTkSuQmCC</xsl:when>
5028				<xsl:when test="@类型_8008='ptn045'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJUlEQVR4nGNhAIP///8DSUZGRjibhQEHYMFUC2Hj1oGplup2AAC9HBgeRnkBAgAAAABJRU5ErkJggg==</xsl:when>
5029				<xsl:when test="@类型_8008='ptn046'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJklEQVR4nGP5//8/IyMjAwwAuRAGCwMOQIYE0AK4uUAAt4+KdgAAofcJIdNbiq8AAAAASUVORK5CYII=</xsl:when>
5030				<xsl:when test="@类型_8008='ptn047'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOElEQVR4nG2NQQoAMAjDFPr/L3eDjmzIbo1RK9tV1d0JZAV2CrNxxOuCV/wvYJxGM05jitPo5PMCryM5EtSyCSkAAAAASUVORK5CYII=</xsl:when>
5031				<xsl:when test="@类型_8008='ptn048'">iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAANklEQVR4nG2N0QoAMAgCFfz/X3aBEG2rxzs12QZAEuMK6qchit8bj8u4Zqpc6CU6u4i9kR/tDmj1IRsmDqtoAAAAAElFTkSuQmCC</xsl:when>
5032				<xsl:otherwise>iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJElEQVR4nGNhYPjP8J+RAQOwYBUFS+AAREowIuxDlUCyj3Q7ACg9BiAi8rOrAAAAAElFTkSuQmCC</xsl:otherwise>
5033			</xsl:choose>
5034		</office:binary-data>
5035	</xsl:template>
5036	<xsl:template name="BinaryGraphic">
5037		<xsl:param name="refGraphic"/>
5038		<xsl:element name="office:binary-data">
5039			<xsl:value-of select="/uof:UOF_0000/对象:对象数据集_D700/对象:对象数据_D701[@标识符_D704 = $refGraphic]/对象:数据_D702"/>
5040		</xsl:element>
5041	</xsl:template>
5042	<xsl:template match="图:填充_804C" mode="Graph">
5043		<xsl:call-template name="FillGraph"/>
5044	</xsl:template>
5045	<xsl:template match="图:属性_801D" mode="Graph">
5046		<xsl:param name="textanchor"/>
5047		<xsl:variable name="drawName" select="../../@标识符_804B"/>
5048		<xsl:choose>
5049			<xsl:when test="图:填充_804C">
5050				<xsl:apply-templates select="图:填充_804C" mode="Graph"/>
5051			</xsl:when>
5052			<xsl:otherwise>
5053				<!-- special for presentation. there are some bugs, if (draw:fill != 'none), it will be filled in default color for presentation graphic object. -->
5054				<xsl:for-each select="/uof:UOF_0000/图形:图形集_7C00/图:图形_8062/图:预定义图形_8018/图:属性_801D">
5055					<xsl:if test="not(图:填充_804C)">
5056						<xsl:attribute name="draw:fill">none</xsl:attribute>
5057					</xsl:if>
5058				</xsl:for-each>
5059				<xsl:if test="$document_type = 'presentation' and $textanchor">
5060					<xsl:attribute name="draw:fill">none</xsl:attribute>
5061					<!--
5062					<xsl:choose>
5063						<xsl:when test="(name($textanchor/..) = '演:母版') and ($textanchor/@uof:占位符 = 'text')">
5064							<xsl:choose>
5065								<xsl:when test="$textanchor/../演:背景">
5066									<xsl:for-each select="$textanchor/../演:背景">
5067										<xsl:call-template name="FillGraph"/>
5068									</xsl:for-each>
5069
5070									<xsl:if test="$textanchor/../演:背景/图:颜色">
5071										<xsl:attribute name="draw:fill">solid</xsl:attribute>
5072										<xsl:attribute name="draw:fill-color"><xsl:value-of select="$textanchor/../演:背景/图:颜色"/></xsl:attribute>
5073									</xsl:if>
5074								</xsl:when>
5075								<xsl:otherwise>
5076									<xsl:attribute name="draw:fill">none</xsl:attribute>
5077								</xsl:otherwise>
5078							</xsl:choose>
5079						</xsl:when>
5080						<xsl:otherwise>
5081							<xsl:attribute name="draw:fill">none</xsl:attribute>
5082						</xsl:otherwise>
5083					</xsl:choose>-->
5084				</xsl:if>
5085			</xsl:otherwise>
5086		</xsl:choose>
5087		<xsl:if test="图:线_8057/图:线颜色_8058">
5088			<xsl:attribute name="svg:stroke-color"><xsl:value-of select="图:线_8057/图:线颜色_8058"/></xsl:attribute>
5089		</xsl:if>
5090		<xsl:if test="图:线_8057/图:线类型_8059">
5091			<!--<xsl:variable name="xmlid">
5092				<xsl:choose>
5093					<xsl:when test="图:线类型/@xml:id">
5094						<xsl:value-of select="图:线类型/@xml:id"/>
5095					</xsl:when>
5096					<xsl:otherwise>
5097						<xsl:value-of select="图:线类型/@图:虚实"/>
5098					</xsl:otherwise>
5099				</xsl:choose>
5100			</xsl:variable>-->
5101			<xsl:variable name="type" select="图:线_8057/图:线类型_8059/@线型_805A"/>
5102			<xsl:variable name="dash" select="图:线_8057/图:线类型_8059/@虚实_805B"/>
5103			<xsl:if test="$type='none'">
5104				<xsl:attribute name="fo:border">none</xsl:attribute>
5105			</xsl:if>
5106			<xsl:choose>
5107				<xsl:when test="$type!=''">
5108					<xsl:attribute name="draw:stroke"><xsl:choose><xsl:when test="$type='none'">none</xsl:when><xsl:when test="$dash='round-dot' or $dash='square-dot' or $dash='dash' or $dash='dash-dot' or $dash='long-dash' or $dash='long-dash-dot' or $dash='dash-dot-dot'">dash</xsl:when><xsl:otherwise>solid</xsl:otherwise></xsl:choose></xsl:attribute>
5109					<xsl:attribute name="draw:stroke-dash"><xsl:choose><xsl:when test="$dash='round-dot'">round-dot</xsl:when><xsl:when test="$dash='square-dot'">square-dot</xsl:when><xsl:when test="$dash='dash'">dash</xsl:when><xsl:when test="$dash='dash-dot'">dash-dot</xsl:when><xsl:when test="$dash='long-dash'">long-dash</xsl:when><xsl:when test="$dash='long-dash-dot'">long-dash-dot</xsl:when><xsl:when test="$dash='dash-dot-dot'">dash-dot-dot</xsl:when><xsl:otherwise>Fine Dashed</xsl:otherwise></xsl:choose></xsl:attribute>
5110				</xsl:when>
5111				<xsl:when test="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204[扩展:路径_B205 = $drawName]/扩展:内容_B206[@名称 = 'draw:stroke-dash']">
5112					<xsl:attribute name="draw:stroke">dash</xsl:attribute>
5113					<xsl:attribute name="draw:stroke-dash"><xsl:value-of select="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204[扩展:路径_B205 = $drawName]/扩展:内容_B206[@名称 = 'draw:stroke-dash']/扩展:线型数据/@draw:name"/></xsl:attribute>
5114				</xsl:when>
5115			</xsl:choose>
5116		</xsl:if>
5117		<xsl:if test="图:线_8057/图:线粗细_805C">
5118			<xsl:attribute name="svg:stroke-width"><xsl:value-of select="concat(图:线_8057/图:线粗细_805C,$uofUnit)"/></xsl:attribute>
5119		</xsl:if>
5120		<xsl:if test="图:箭头_805D/图:前端箭头_805E">
5121			<xsl:for-each select="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204[扩展:路径_B205 = $drawName]/扩展:内容_B206[@名称 = 'draw:marker']/扩展:前端箭头">
5122				<xsl:attribute name="draw:marker-start" select="@draw:name"/>
5123				<xsl:attribute name="draw:marker-start-width" select="@draw:marker-start-width"/>
5124			</xsl:for-each>
5125			<xsl:if test="图:箭头_805D/图:前端箭头_805E/图:端点结合方式_8003">
5126				<xsl:attribute name="draw:stroke-linejoin"><xsl:value-of select="图:箭头_805D/图:前端箭头_805E/图:端点结合方式_8003"/></xsl:attribute>
5127			</xsl:if>
5128			<xsl:if test="图:箭头_805D/图:前端箭头_805E/图:式样_8000">
5129				<xsl:call-template name="callArrow">
5130					<xsl:with-param name="ArrowElement1" select="图:箭头_805D/图:前端箭头_805E/图:式样_8000"/>
5131					<xsl:with-param name="ArrowElement2" select="图:箭头_805D/图:前端箭头_805E/图:大小_8001"/>
5132					<xsl:with-param name="isBegin" select="'true'"/>
5133				</xsl:call-template>
5134			</xsl:if>
5135		</xsl:if>
5136		<xsl:if test="图:箭头_805D/图:后端箭头_805F">
5137			<xsl:for-each select="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204[扩展:路径_B205 = $drawName]/扩展:内容_B206[@名称 = 'draw:marker']/扩展:后端箭头">
5138				<xsl:attribute name="draw:marker-end" select="@draw:name"/>
5139				<xsl:attribute name="draw:marker-end-width" select="@draw:marker-end-width"/>
5140			</xsl:for-each>
5141			<xsl:if test="图:箭头_805D/图:后端箭头_805F/图:端点结合方式_8003">
5142				<xsl:attribute name="draw:stroke-linejoin"><xsl:value-of select="图:箭头_805D/图:后端箭头_805F/图:端点结合方式_8003"/></xsl:attribute>
5143			</xsl:if>
5144			<xsl:if test="图:箭头_805D/图:后端箭头_805F/图:式样_8000">
5145				<xsl:call-template name="callArrow">
5146					<xsl:with-param name="ArrowElement1" select="图:箭头_805D/图:后端箭头_805F/图:式样_8000"/>
5147					<xsl:with-param name="ArrowElement2" select="图:箭头_805D/图:后端箭头_805F/图:大小_8001"/>
5148					<xsl:with-param name="isBegin" select="'false'"/>
5149				</xsl:call-template>
5150			</xsl:if>
5151		</xsl:if>
5152		<xsl:if test="图:是否打印对象_804E">
5153			<xsl:choose>
5154				<xsl:when test="string(图:是否打印对象_804E) = 'true'">
5155					<xsl:attribute name="draw:printprev-hide">false</xsl:attribute>
5156				</xsl:when>
5157				<xsl:when test="string(图:是否打印对象_804E) = 'false'">
5158					<xsl:attribute name="draw:printprev-hide">true</xsl:attribute>
5159				</xsl:when>
5160			</xsl:choose>
5161		</xsl:if>
5162		<xsl:if test="图:透明度_8050">
5163			<xsl:choose>
5164				<xsl:when test="../图:名称_801A='Line'">
5165					<xsl:attribute name="svg:stroke-opacity"><xsl:value-of select="concat(图:透明度_8050,'%')"/></xsl:attribute>
5166				</xsl:when>
5167				<xsl:otherwise>
5168					<xsl:attribute name="draw:opacity"><xsl:value-of select="concat(100 - 图:透明度_8050,'%')"/></xsl:attribute>
5169				</xsl:otherwise>
5170			</xsl:choose>
5171		</xsl:if>
5172		<!--UOF template Wrong-->
5173		<xsl:if test="图:阴影_8051">
5174			<xsl:if test="图:阴影_8051/图:是否显示阴影_C61C='true'">
5175				<xsl:attribute name="draw:shadow"><xsl:value-of select="string('visible')"/></xsl:attribute>
5176				<xsl:if test="图:阴影_8051/uof:偏移量_C61B/@x_C606 and not(图:阴影_8051/uof:偏移量_C61B/@x_C606=0)">
5177					<xsl:attribute name="draw:shadow-offset-x"><xsl:value-of select="concat(图:阴影_8051/uof:偏移量_C61B/@x_C606,$uofUnit)"/></xsl:attribute>
5178				</xsl:if>
5179				<xsl:if test="图:阴影_8051/uof:偏移量_C61B/@y_C607 and not(图:阴影_8051/uof:偏移量_C61B/@y_C607=0)">
5180					<xsl:attribute name="draw:shadow-offset-y"><xsl:value-of select="concat(图:阴影_8051/uof:偏移量_C61B/@y_C607,$uofUnit)"/></xsl:attribute>
5181				</xsl:if>
5182				<xsl:attribute name="draw:shadow-color"><xsl:value-of select="图:阴影_8051/@颜色_C61E"/></xsl:attribute>
5183				<xsl:attribute name="draw:shadow-opacity"><xsl:value-of select="concat(100 - 图:阴影_8051/透明度_C61F, '%')"/></xsl:attribute>
5184			</xsl:if>
5185		</xsl:if>
5186		<xsl:if test="图:阴影_8051">
5187			<xsl:if test="图:阴影_8051/@是否显示阴影_C61C='true'">
5188				<xsl:attribute name="draw:shadow"><xsl:value-of select="string('visible')"/></xsl:attribute>
5189				<xsl:if test="图:阴影_8051/uof:偏移量_C61B/@x_C606 and not(图:阴影_8051/uof:偏移量_C61B/@x_C606=0)">
5190					<xsl:attribute name="draw:shadow-offset-x"><xsl:value-of select="concat(图:阴影_8051/uof:偏移量_C61B/@x_C606,$uofUnit)"/></xsl:attribute>
5191				</xsl:if>
5192				<xsl:if test="图:阴影_8051/uof:偏移量_C61B/@y_C607 and not(图:阴影_8051/uof:偏移量_C61B/@y_C607=0)">
5193					<xsl:attribute name="draw:shadow-offset-y"><xsl:value-of select="concat(图:阴影_8051/uof:偏移量_C61B/@y_C607,$uofUnit)"/></xsl:attribute>
5194				</xsl:if>
5195				<xsl:attribute name="draw:shadow-color"><xsl:value-of select="图:阴影_8051/@颜色_C61E"/></xsl:attribute>
5196				<xsl:attribute name="draw:shadow-opacity"><xsl:value-of select="concat(100 - 图:阴影_8051/@透明度_C61F, '%')"/></xsl:attribute>
5197			</xsl:if>
5198		</xsl:if>
5199		<xsl:if test="图:图片属性_801E">
5200			<xsl:apply-templates select="图:图片属性_801E" mode="Graph"/>
5201		</xsl:if>
5202	</xsl:template>
5203	<xsl:template name="callArrow">
5204		<xsl:param name="ArrowElement1"/>
5205		<xsl:param name="ArrowElement2"/>
5206		<xsl:param name="isBegin"/>
5207		<xsl:variable name="sizeArrow">
5208			<xsl:value-of select="$ArrowElement2"/>
5209		</xsl:variable>
5210		<xsl:if test="$ArrowElement1">
5211			<xsl:variable name="typeName">
5212				<xsl:value-of select="$ArrowElement1"/>
5213			</xsl:variable>
5214			<xsl:variable name="arrowType">
5215				<xsl:choose>
5216					<xsl:when test="$typeName = 'diamond'">
5217						<xsl:value-of select="concat('msArrowDiamondEnd_20_',$sizeArrow)"/>
5218					</xsl:when>
5219					<xsl:when test="$typeName = 'normal'">
5220						<xsl:value-of select="concat('msArrowEnd_20_',$sizeArrow)"/>
5221					</xsl:when>
5222					<xsl:when test="$typeName = 'open'">
5223						<xsl:value-of select="concat('msArrowOpenEnd_20_',$sizeArrow)"/>
5224					</xsl:when>
5225					<xsl:when test="$typeName = 'stealth'">
5226						<xsl:value-of select="concat('msArrowStealthEnd_20_',$sizeArrow)"/>
5227					</xsl:when>
5228					<xsl:when test="$typeName = 'oval'">
5229						<xsl:value-of select="concat('msArrowOvalEnd_20_',$sizeArrow)"/>
5230					</xsl:when>
5231					<xsl:otherwise>
5232						<xsl:value-of select="arrow"/>
5233					</xsl:otherwise>
5234				</xsl:choose>
5235			</xsl:variable>
5236			<xsl:choose>
5237				<xsl:when test="$isBegin = 'true'">
5238					<xsl:attribute name="draw:marker-start"><xsl:value-of select="$arrowType"/></xsl:attribute>
5239				</xsl:when>
5240				<xsl:otherwise>
5241					<xsl:attribute name="draw:marker-end"><xsl:value-of select="$arrowType"/></xsl:attribute>
5242				</xsl:otherwise>
5243			</xsl:choose>
5244		</xsl:if>
5245		<xsl:if test="$ArrowElement2">
5246			<xsl:variable name="arrowSize">
5247				<xsl:choose>
5248					<xsl:when test="$sizeArrow = '1' or $sizeArrow = '2' or $sizeArrow = '3'">0.247cm</xsl:when>
5249					<xsl:when test="$sizeArrow = '4' or $sizeArrow = '5' or $sizeArrow = '6'">0.437cm</xsl:when>
5250					<xsl:when test="$sizeArrow = '7' or $sizeArrow = '8' or $sizeArrow = '9'">0.617cm</xsl:when>
5251					<xsl:otherwise>0.247cm</xsl:otherwise>
5252				</xsl:choose>
5253			</xsl:variable>
5254			<xsl:choose>
5255				<xsl:when test="$isBegin = 'true'">
5256					<xsl:attribute name="draw:marker-start-width"><xsl:value-of select="$arrowSize"/></xsl:attribute>
5257				</xsl:when>
5258				<xsl:otherwise>
5259					<xsl:attribute name="draw:marker-end-width"><xsl:value-of select="$arrowSize"/></xsl:attribute>
5260				</xsl:otherwise>
5261			</xsl:choose>
5262		</xsl:if>
5263	</xsl:template>
5264	<xsl:template match="uof:垂直_410D">
5265		<xsl:variable name="vertpos">
5266			<xsl:choose>
5267				<xsl:when test="../@类型_C646 = 'as-char'">from-top</xsl:when>
5268				<xsl:when test="uof:绝对_4107">from-top</xsl:when>
5269				<xsl:when test="uof:相对_4109/@参考点_410A='bottom'">bottom</xsl:when>
5270				<xsl:when test="uof:相对_4109/@参考点_410A='center'">middle</xsl:when>
5271				<xsl:when test="uof:相对_4109/@参考点_410A='inside'">below</xsl:when>
5272				<xsl:otherwise>top</xsl:otherwise>
5273			</xsl:choose>
5274		</xsl:variable>
5275		<xsl:variable name="vertrel">
5276			<xsl:choose>
5277				<xsl:when test="@相对于_410C='margin'">page-content</xsl:when>
5278				<xsl:otherwise>
5279					<xsl:value-of select="@相对于_410C"/>
5280				</xsl:otherwise>
5281			</xsl:choose>
5282		</xsl:variable>
5283		<xsl:attribute name="style:vertical-pos"><xsl:value-of select="$vertpos"/></xsl:attribute>
5284		<xsl:attribute name="style:vertical-rel"><xsl:value-of select="$vertrel"/></xsl:attribute>
5285	</xsl:template>
5286	<xsl:template match="uof:水平_4106">
5287		<xsl:variable name="horipos">
5288			<xsl:choose>
5289				<xsl:when test="uof:绝对_4107">from-left</xsl:when>
5290				<xsl:when test="uof:相对_4109/@参考点_410A='left'">left</xsl:when>
5291				<xsl:when test="uof:相对_4109/@参考点_410A='center'">center</xsl:when>
5292				<xsl:when test="uof:相对_4109/@参考点_410A='right'">right</xsl:when>
5293			</xsl:choose>
5294		</xsl:variable>
5295		<xsl:variable name="horirel">
5296			<xsl:choose>
5297				<xsl:when test="@相对于_410C='margin'">page-content</xsl:when>
5298				<!--xsl:when test="@相对于_410C='margin'">paragraph</xsl:when-->
5299				<xsl:when test="@相对于_410C='page'">page</xsl:when>
5300				<xsl:when test="@相对于_410C='column'">paragraph</xsl:when>
5301				<xsl:when test="@相对于_410C='char'">char</xsl:when>
5302			</xsl:choose>
5303		</xsl:variable>
5304		<xsl:attribute name="style:horizontal-pos"><xsl:value-of select="$horipos"/></xsl:attribute>
5305		<xsl:attribute name="style:horizontal-rel"><xsl:value-of select="$horirel"/></xsl:attribute>
5306	</xsl:template>
5307	<xsl:template match="uof:绕排_C622">
5308		<xsl:variable name="wrap_type">
5309			<xsl:value-of select="@绕排方式_C623"/>
5310		</xsl:variable>
5311		<xsl:variable name="wrap_place">
5312			<xsl:value-of select="@环绕文字_C624"/>
5313		</xsl:variable>
5314		<xsl:for-each select="@绕排方式_C623">
5315			<xsl:variable name="wrap">
5316				<xsl:choose>
5317					<xsl:when test="$wrap_place = 'left'">left</xsl:when>
5318					<xsl:when test="$wrap_place = 'both'">parallel</xsl:when>
5319					<xsl:when test="$wrap_place = 'right'">right</xsl:when>
5320					<xsl:when test="$wrap_place = 'largest'">dynamic</xsl:when>
5321					<xsl:when test="$wrap_type = 'infront-of-text' or $wrap_type = 'behind-text'">run-through</xsl:when>
5322					<xsl:when test="$wrap_type = 'top-bottom'">none</xsl:when>
5323				</xsl:choose>
5324			</xsl:variable>
5325			<xsl:variable name="wrapcontour">
5326				<xsl:choose>
5327					<xsl:when test="$wrap_type = 'tight' or $wrap_type = 'through'">true</xsl:when>
5328					<xsl:when test="$wrap_type = 'square'">false</xsl:when>
5329				</xsl:choose>
5330			</xsl:variable>
5331			<xsl:variable name="wrapcontourmode">
5332				<xsl:choose>
5333					<xsl:when test="$wrap_type = 'tight'">outside</xsl:when>
5334					<xsl:when test="$wrap_type = 'through'">full</xsl:when>
5335				</xsl:choose>
5336			</xsl:variable>
5337			<xsl:variable name="run-through">
5338				<xsl:choose>
5339					<xsl:when test="$wrap_type = 'behind-text'">background</xsl:when>
5340					<xsl:otherwise>foreground</xsl:otherwise>
5341				</xsl:choose>
5342			</xsl:variable>
5343			<xsl:attribute name="style:wrap"><xsl:value-of select="$wrap"/></xsl:attribute>
5344			<xsl:attribute name="style:wrap-contour"><xsl:value-of select="$wrapcontour"/></xsl:attribute>
5345			<xsl:attribute name="style:wrap-contour-mode"><xsl:value-of select="$wrapcontourmode"/></xsl:attribute>
5346			<xsl:attribute name="style:run-through"><xsl:value-of select="$run-through"/></xsl:attribute>
5347		</xsl:for-each>
5348	</xsl:template>
5349	<xsl:template match="图:图片属性_801E" mode="Graph">
5350		<xsl:if test="图:颜色模式_801F">
5351			<xsl:attribute name="draw:color-mode"><xsl:choose><xsl:when test="图:颜色模式_801F = 'auto'">standard</xsl:when><xsl:when test="图:颜色模式_801F = 'monochrome'">mono</xsl:when><xsl:when test="图:颜色模式_801F = 'erosion'">watermark</xsl:when><xsl:otherwise><xsl:value-of select="图:颜色模式_801F"/></xsl:otherwise></xsl:choose></xsl:attribute>
5352		</xsl:if>
5353		<xsl:choose>
5354			<xsl:when test="图:亮度_8020">
5355				<xsl:attribute name="draw:luminance"><xsl:value-of select="concat(图:亮度_8020,'%')"/></xsl:attribute>
5356			</xsl:when>
5357			<xsl:otherwise>
5358				<xsl:attribute name="draw:luminance">0%</xsl:attribute>
5359			</xsl:otherwise>
5360		</xsl:choose>
5361		<xsl:choose>
5362			<xsl:when test="图:对比度_8021">
5363				<xsl:attribute name="draw:contrast"><xsl:value-of select="concat(图:对比度_8021,'%')"/></xsl:attribute>
5364			</xsl:when>
5365			<xsl:otherwise>
5366				<xsl:attribute name="draw:contrast">0%</xsl:attribute>
5367			</xsl:otherwise>
5368		</xsl:choose>
5369		<xsl:if test="图:图片裁剪_8022">
5370			<xsl:variable name="clipup">
5371				<xsl:value-of select="concat(图:图片裁剪_8022/图:上_8023,$uofUnit)"/>
5372			</xsl:variable>
5373			<xsl:variable name="clipdown">
5374				<xsl:value-of select="concat(图:图片裁剪_8022/图:下_8024,$uofUnit)"/>
5375			</xsl:variable>
5376			<xsl:variable name="clipleft">
5377				<xsl:value-of select="concat(图:图片裁剪_8022/图:左_8025,$uofUnit)"/>
5378			</xsl:variable>
5379			<xsl:variable name="clipright">
5380				<xsl:value-of select="concat(图:图片裁剪_8022/图:右_8026,$uofUnit)"/>
5381			</xsl:variable>
5382			<xsl:attribute name="fo:clip"><xsl:value-of select="concat('rect(',$clipup,',',$clipright,',',$clipdown,',',$clipleft,')')"/></xsl:attribute>
5383		</xsl:if>
5384	</xsl:template>
5385	<xsl:template match="图:预定义图形_8018" mode="Graph">
5386		<xsl:param name="textanchor"/>
5387		<!--
5388		<xsl:for-each select="node()">
5389			<xsl:choose>
5390				<xsl:when test="self::node()[name(.)='图:类别']">
5391				</xsl:when>
5392				<xsl:when test="self::node()[name(.)='图:名称']">
5393				</xsl:when>
5394				<xsl:when test="self::node()[name(.)='图:生成软件']">
5395				</xsl:when>
5396				<xsl:when test="self::node()[name(.)='图:关键点坐标']">
5397				</xsl:when>
5398				<xsl:when test="self::node()[name(.)='图:属性']">
5399					<xsl:apply-templates select="."/>
5400				</xsl:when>
5401				<xsl:when test="self::node()[name(.)='图:图片属性']">
5402					<xsl:apply-templates select="."/>
5403				</xsl:when>
5404				<xsl:when test="self::node()[name(.)='图:连接线规则']">
5405				</xsl:when>
5406			</xsl:choose>
5407		</xsl:for-each>-->
5408		<xsl:if test="图:属性_801D">
5409			<xsl:apply-templates select="图:属性_801D" mode="Graph">
5410				<xsl:with-param name="textanchor" select="$textanchor"/>
5411			</xsl:apply-templates>
5412		</xsl:if>
5413	</xsl:template>
5414	<xsl:template match="图:文本_803C" mode="Graph">
5415		<xsl:param name="textanchor"/>
5416		<xsl:if test="图:边距_803D/@上_C609 != ''">
5417			<xsl:attribute name="fo:padding-top"><xsl:value-of select="concat(图:边距_803D/@上_C609,$uofUnit)"/></xsl:attribute>
5418		</xsl:if>
5419		<xsl:if test="图:边距_803D/@下_C60B != ''">
5420			<xsl:attribute name="fo:padding-bottom"><xsl:value-of select="concat(图:边距_803D/@下_C60B,$uofUnit)"/></xsl:attribute>
5421		</xsl:if>
5422		<xsl:if test="图:边距_803D/@左_C608 != ''">
5423			<xsl:attribute name="fo:padding-left"><xsl:value-of select="concat(图:边距_803D/@左_C608,$uofUnit)"/></xsl:attribute>
5424		</xsl:if>
5425		<xsl:if test="图:边距_803D/@右_C60A != ''">
5426			<xsl:attribute name="fo:padding-right"><xsl:value-of select="concat(图:边距_803D/@右_C60A,$uofUnit)"/></xsl:attribute>
5427		</xsl:if>
5428		<xsl:if test="图:对齐_803E/@水平对齐_421D">
5429			<xsl:if test="not($textanchor and $textanchor/uof:占位符_C626/@类型_C627)">
5430				<xsl:variable name="horizotalType">
5431					<xsl:choose>
5432						<xsl:when test="图:对齐_803E/@水平对齐_421D = 'left'">left</xsl:when>
5433						<xsl:when test="图:对齐_803E/@水平对齐_421D = 'center'">center</xsl:when>
5434						<xsl:when test="图:对齐_803E/@水平对齐_421D = 'right'">right</xsl:when>
5435						<xsl:when test="图:对齐_803E/@水平对齐_421D = 'justified'">justify</xsl:when>
5436						<xsl:otherwise>left</xsl:otherwise>
5437					</xsl:choose>
5438				</xsl:variable>
5439				<xsl:attribute name="draw:textarea-horizontal-align"><xsl:value-of select="$horizotalType"/></xsl:attribute>
5440			</xsl:if>
5441		</xsl:if>
5442		<xsl:if test="图:对齐_803E/@文字对齐_421E">
5443			<xsl:variable name="verticalType">
5444				<xsl:choose>
5445					<xsl:when test="图:对齐_803E/@文字对齐_421E = 'top'">top</xsl:when>
5446					<xsl:when test="图:对齐_803E/@文字对齐_421E = 'center'">middle</xsl:when>
5447					<xsl:when test="图:对齐_803E/@文字对齐_421E = 'bottom'">bottom</xsl:when>
5448					<xsl:when test="图:对齐_803E/@文字对齐_421E = 'base'">justify</xsl:when>
5449					<xsl:otherwise>top</xsl:otherwise>
5450				</xsl:choose>
5451			</xsl:variable>
5452			<xsl:attribute name="draw:textarea-vertical-align"><xsl:value-of select="$verticalType"/></xsl:attribute>
5453		</xsl:if>
5454		<xsl:if test="@是否自动换行_8047 = 'false'">
5455			<xsl:attribute name="fo:wrap-option">no-wrap</xsl:attribute>
5456		</xsl:if>
5457		<!--xsl:choose>
5458			<xsl:when test="$textanchor and $textanchor/uof:占位符_C626">
5459				<xsl:attribute name="draw:auto-grow-height">true</xsl:attribute>
5460			</xsl:when>
5461			<xsl:otherwise-->
5462		<xsl:attribute name="draw:auto-grow-height"><xsl:choose><xsl:when test="string(@是否大小适应文字_8048) = 'true'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
5463		<!--软件默认值为true,导致图形变形-->
5464		<xsl:attribute name="draw:auto-grow-width"><xsl:choose><xsl:when test="string(@是否大小适应文字_8048) = 'true'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
5465	</xsl:template>
5466	<xsl:template match="uof:边距_C628" mode="anchor">
5467		<xsl:if test="@上_C609">
5468			<xsl:attribute name="fo:margin-top"><xsl:value-of select="concat(@上_C609,$uofUnit)"/></xsl:attribute>
5469		</xsl:if>
5470		<xsl:if test="@下_C60B">
5471			<xsl:attribute name="fo:margin-bottom"><xsl:value-of select="concat(@下_C60B,$uofUnit)"/></xsl:attribute>
5472		</xsl:if>
5473		<xsl:if test="@右_C60A">
5474			<xsl:attribute name="fo:margin-right"><xsl:value-of select="concat(@右_C60A,$uofUnit)"/></xsl:attribute>
5475		</xsl:if>
5476		<xsl:if test="@左_C608">
5477			<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat(@左_C608,$uofUnit)"/></xsl:attribute>
5478		</xsl:if>
5479	</xsl:template>
5480	<xsl:template match="图:图形_8062" mode="Graph">
5481		<xsl:param name="textanchor"/>
5482		<xsl:element name="style:style">
5483			<xsl:choose>
5484				<xsl:when test="$textanchor/uof:占位符_C626">
5485					<!--是演中的占位符,则重写family-->
5486					<xsl:attribute name="style:family">presentation</xsl:attribute>
5487					<xsl:attribute name="style:name"><xsl:value-of select="@标识符_804B"/></xsl:attribute>
5488					<xsl:attribute name="style:display-name"><xsl:value-of select="@标识符_804B"/></xsl:attribute>
5489					<xsl:variable name="placeholder" select="$textanchor/uof:占位符_C626"/>
5490					<xsl:variable name="masterid">
5491						<xsl:choose>
5492							<xsl:when test="name($textanchor/..)='演:母版_6C0D'">
5493								<xsl:value-of select="$textanchor/../@标识符_6BE8"/>
5494							</xsl:when>
5495							<xsl:when test="name($textanchor/..)='演:幻灯片_6C0F'">
5496								<xsl:value-of select="$textanchor/../@母版引用_6B26"/>
5497							</xsl:when>
5498						</xsl:choose>
5499					</xsl:variable>
5500					<!--重写部分style:parent-style-name-->
5501					<xsl:choose>
5502						<xsl:when test="$placeholder='title'">
5503							<xsl:attribute name="style:parent-style-name"><xsl:value-of select="concat($masterid,'-title')"/></xsl:attribute>
5504						</xsl:when>
5505						<xsl:when test="$placeholder='subtitle' or $placeholder='vertical_subtitle'">
5506							<xsl:attribute name="style:parent-style-name"><xsl:value-of select="concat($masterid,'-subtitle')"/></xsl:attribute>
5507						</xsl:when>
5508						<xsl:when test="$placeholder='text' or $placeholder='vertical_text' or $placeholder='outline'">
5509							<xsl:attribute name="style:parent-style-name"><xsl:value-of select="concat($masterid,'-outline1')"/></xsl:attribute>
5510						</xsl:when>
5511					</xsl:choose>
5512				</xsl:when>
5513				<xsl:otherwise>
5514					<!-- alert starting
5515                    <xsl:attribute name="style:family">graphic</xsl:attribute>
5516                     alert ending. -->
5517					<!--<xsl:for-each select="$textanchor">-->
5518					<xsl:choose>
5519						<!--xsl:when test="parent::node() = '演:母版_6C0D'"-->
5520						<xsl:when test="$textanchor">
5521							<xsl:for-each select="$textanchor">
5522								<xsl:choose>
5523									<xsl:when test="parent::node() = '演:母版_6C0D'">
5524										<xsl:attribute name="style:family">presentation</xsl:attribute>
5525									</xsl:when>
5526									<xsl:otherwise>
5527										<xsl:attribute name="style:family">graphic</xsl:attribute>
5528									</xsl:otherwise>
5529								</xsl:choose>
5530							</xsl:for-each>
5531						</xsl:when>
5532						<xsl:otherwise>
5533							<xsl:attribute name="style:family">graphic</xsl:attribute>
5534						</xsl:otherwise>
5535					</xsl:choose>
5536					<xsl:attribute name="style:name"><xsl:value-of select="@标识符_804B"/></xsl:attribute>
5537					<xsl:attribute name="style:display-name"><xsl:value-of select="@标识符_804B"/></xsl:attribute>
5538					<!-- convert frame or customshape -->
5539					<xsl:variable name="id" select="@标识符_804B"/>
5540					<xsl:variable name="IsFrame">
5541						<xsl:choose>
5542							<xsl:when test="/uof:UOF_0000/图形:图形集_7C00/图:图形_8062/图:文本_803C/图:前后链接_803F/@前一链接_8040 = $id or /uof:UOF_0000/图形:图形集_7C00/图:图形_8062/图:文本_803C/图:前后链接_803F/@后一链接_8041 = $id">true</xsl:when>
5543							<xsl:otherwise>false</xsl:otherwise>
5544						</xsl:choose>
5545					</xsl:variable>
5546					<xsl:choose>
5547						<xsl:when test="图:文本_803C/图:内容_8043//字:域开始_419E or 图:文本_803C/图:内容_8043/图:文字表_416C or 图:文本_803C/图:前后链接_803F/@前一链接_8040 or 图:文本_803C/图:前后链接_803F/@后一链接_8041 or $IsFrame = 'true' or (图:其他对象引用_8038 != '') or 图:文本_803C/图:内容_8043//uof:锚点_C644">
5548							<xsl:attribute name="style:parent-style-name"><xsl:value-of select="'Frame'"/></xsl:attribute>
5549						</xsl:when>
5550						<xsl:when test="图:文本_803C/图:内容_8043[string(@是否为文本框_8046) = 'true'] or 图:文本_803C/图:内容_8043[string(@是否为文本框_8046) = '1']"/>
5551						<!-- style:parent-style-name for xlink:href -->
5552						<xsl:when test="图:图片数据引用_8037">
5553							<!--用'图:预定义图形_8018/图:属性_801D/图:图片属性_801E'这个属性判断也行-->
5554							<xsl:attribute name="style:parent-style-name">Frame</xsl:attribute>
5555						</xsl:when>
5556						<xsl:otherwise>
5557							<xsl:attribute name="style:parent-style-name">Default</xsl:attribute>
5558						</xsl:otherwise>
5559					</xsl:choose>
5560				</xsl:otherwise>
5561			</xsl:choose>
5562			<style:graphic-properties draw:auto-grow-height="false" style:wrap="run-through" style:run-through="foreground" fo:padding-left="0pt" fo:padding-right="0pt" fo:padding-top="0pt" fo:padding-bottom="0pt">
5563				<!--<xsl:if test="name($textanchor)='字:锚点'">
5564					<xsl:attribute name="style:wrap">run-through</xsl:attribute>
5565					<xsl:attribute name="style:run-through">foreground</xsl:attribute>
5566				</xsl:if>-->
5567				<!--增加演示文稿文本框中min-height属性-->
5568				<xsl:if test="$textanchor/uof:占位符_C626/@类型_C627">
5569					<xsl:attribute name="fo:min-height"><xsl:value-of select="concat($textanchor/uof:大小_C621/@长_C604,$uofUnit)"/></xsl:attribute>
5570				</xsl:if>
5571				<xsl:for-each select="*">
5572					<xsl:choose>
5573						<xsl:when test="name(.)='图:svg图形对象_8017'">
5574						</xsl:when>
5575						<xsl:when test="name(.)='图:预定义图形_8018'">
5576							<xsl:apply-templates select="." mode="Graph">
5577								<xsl:with-param name="textanchor" select="$textanchor"/>
5578							</xsl:apply-templates>
5579						</xsl:when>
5580						<xsl:when test="name(.)='图:文本_803C'">
5581							<xsl:apply-templates select="." mode="Graph">
5582								<xsl:with-param name="textanchor" select="$textanchor"/>
5583							</xsl:apply-templates>
5584						</xsl:when>
5585						<xsl:when test="name(.)='图:控制点_8039'">
5586						</xsl:when>
5587						<xsl:when test="name(.)='图:翻转_803A'">
5588						</xsl:when>
5589						<xsl:when test="name(.)='图:组合位置_803B'">
5590						</xsl:when>
5591					</xsl:choose>
5592				</xsl:for-each>
5593				<xsl:if test="$textanchor">
5594					<!-- a special case,there is a @类型,but no uof:垂直 , starting -->
5595					<xsl:if test="$textanchor/uof:位置_C620/@类型_C646 = 'as-char'">
5596						<xsl:attribute name="style:vertical-pos"><xsl:value-of select="'from-top'"/></xsl:attribute>
5597					</xsl:if>
5598					<!-- a special case,there is a @类型,but no uof:垂直 ,ending -->
5599					<xsl:apply-templates select="$textanchor/uof:位置_C620/uof:垂直_410D"/>
5600					<xsl:apply-templates select="$textanchor/uof:位置_C620/uof:水平_4106"/>
5601					<xsl:apply-templates select="$textanchor/uof:绕排_C622"/>
5602					<xsl:if test="$textanchor/uof:边距_C628">
5603						<xsl:apply-templates select="$textanchor/uof:边距_C628" mode="anchor"/>
5604					</xsl:if>
5605					<xsl:if test="$textanchor/uof:保护_C62A/@大小_C643='true'">
5606						<xsl:choose>
5607							<xsl:when test="图:预定义图形_8018/图:名称_801A">
5608								<xsl:attribute name="style:protect">position size</xsl:attribute>
5609							</xsl:when>
5610							<xsl:otherwise>
5611								<xsl:attribute name="style:protect">content size position</xsl:attribute>
5612								<xsl:attribute name="draw:size-protect">true</xsl:attribute>
5613								<xsl:attribute name="draw:move-protect">true</xsl:attribute>
5614							</xsl:otherwise>
5615						</xsl:choose>
5616					</xsl:if>
5617				</xsl:if>
5618				<xsl:if test="$textanchor/uof:是否允许重叠_C62B">
5619					<xsl:attribute name="style:allowoverlap"><xsl:value-of select="$textanchor/uof:是否允许重叠_C62B"/></xsl:attribute>
5620				</xsl:if>
5621				<!--<xsl:if test="name($textanchor)='uof:锚点_C644'">
5622					<xsl:choose>
5623						<xsl:when test="$textanchor/@随动方式_C62F='move'">
5624							<xsl:attribute name="style:protect">size</xsl:attribute>
5625						</xsl:when>
5626						<xsl:when test="$textanchor/@随动方式_C62F='movesize'">
5627							<xsl:attribute name="style:protect">position</xsl:attribute>
5628						</xsl:when>
5629						<xsl:when test="$textanchor/@随动方式_C62F='none'">
5630							<xsl:attribute name="style:protect">position size</xsl:attribute>
5631						</xsl:when>
5632					</xsl:choose>
5633				</xsl:if>-->
5634			</style:graphic-properties>
5635			<xsl:for-each select="图:文本_803C/图:文字排列方向_8042">
5636				<xsl:variable name="writing-mode">
5637					<xsl:choose>
5638						<xsl:when test=".='r2l-t2b-90e-90w' or .='r2l-t2b-0e-90w' or .='l2r-b2t-270e-270w' or .='l2r-t2b-0e-90w' or .='vert-l2r'">tb-rl</xsl:when>
5639						<xsl:when test=".='l2r-b2t-270e-270w' or .='vert-l2r'">tb-rl</xsl:when>
5640					</xsl:choose>
5641				</xsl:variable>
5642				<xsl:if test="$writing-mode != ''">
5643					<xsl:element name="style:paragraph-properties">
5644						<xsl:attribute name="style:font-independent-line-spacing" select="'true'"/>
5645						<xsl:attribute name="style:writing-mode"><xsl:value-of select="$writing-mode"/></xsl:attribute>
5646					</xsl:element>
5647				</xsl:if>
5648			</xsl:for-each>
5649		</xsl:element>
5650	</xsl:template>
5651	<xsl:template name="GraphicStyle">
5652		<xsl:for-each select="/uof:UOF_0000/图形:图形集_7C00/图:图形_8062">
5653			<xsl:variable name="textanchor" select="key('rel_graphic_name',@标识符_804B)[1]"/>
5654			<!--排除母版中的titile、outline或text占位符引用的图形对应的式样(这些式样在officestyle中)-->
5655			<!--修改兼容案例 -->
5656			<!--xsl:if test="not(name($textanchor/..)='演:母版_6C0D' and $textanchor/../@类型_6BEA='slide' and ($textanchor/占位符_C626='title' or $textanchor/占位符_C626='text' or $textanchor/占位符_C626='outline')) and not($textanchor/@是否显示缩略图_C630='true' and $textanchor/占位符_C626!='clipart' and $textanchor/占位符_C626!='graphics')">
5657					<xsl:apply-templates select="." mode="Graph">
5658						<xsl:with-param name="textanchor" select="$textanchor"/>
5659					</xsl:apply-templates>
5660				</xsl:if-->
5661			<!--母版中的图形式样存储在styles.xml中-->
5662			<xsl:if test="not(name($textanchor/..)='演:母版_6C0D')">
5663				<xsl:apply-templates select="." mode="Graph">
5664					<xsl:with-param name="textanchor" select="$textanchor"/>
5665				</xsl:apply-templates>
5666			</xsl:if>
5667		</xsl:for-each>
5668		<xsl:for-each select="/uof:UOF_0000/对象:对象数据集_D700/对象:对象数据_D701">
5669			<xsl:apply-templates select="."/>
5670		</xsl:for-each>
5671	</xsl:template>
5672	<xsl:template name="MasterGraphicStyle">
5673		<xsl:for-each select="/uof:UOF_0000/图形:图形集_7C00">
5674			<xsl:for-each select="图:图形_8062">
5675				<xsl:variable name="textanchor" select="key('rel_graphic_name',@标识符_804B)[1]"/>
5676				<xsl:if test="name($textanchor/..)='演:母版_6C0D'">
5677					<xsl:apply-templates select="." mode="Graph">
5678						<xsl:with-param name="textanchor" select="$textanchor"/>
5679					</xsl:apply-templates>
5680				</xsl:if>
5681			</xsl:for-each>
5682		</xsl:for-each>
5683	</xsl:template>
5684	<xsl:template name="ArrowDefinition">
5685		<xsl:if test="图:预定义图形_8018/图:属性_801D/图:箭头_805D/图:前端箭头_805E">
5686			<xsl:element name="draw:marker">
5687				<xsl:variable name="tusy3" select="图:预定义图形_8018/图:属性_801D/图:箭头_805D/图:前端箭头_805E/图:式样_8000"/>
5688				<xsl:variable name="tudx3" select="图:预定义图形_8018/图:属性_801D/图:箭头_805D/图:前端箭头_805E/图:大小_8001"/>
5689				<xsl:variable name="drawname">
5690					<xsl:choose>
5691						<xsl:when test="$tusy3='normal'">
5692							<xsl:value-of select="concat('msArrowEnd_20_',$tudx3)"/>
5693						</xsl:when>
5694						<xsl:when test="$tusy3='diamond'">
5695							<xsl:value-of select="concat('msArrowDiamondEnd_20_',$tudx3)"/>
5696						</xsl:when>
5697						<xsl:when test="$tusy3='open'">
5698							<xsl:value-of select="concat('msArrowOpenEnd_20_',$tudx3)"/>
5699						</xsl:when>
5700						<xsl:when test="$tusy3='stealth'">
5701							<xsl:value-of select="concat('msArrowStealthEnd_20_',$tudx3)"/>
5702						</xsl:when>
5703						<xsl:when test="$tusy3='oval'">
5704							<xsl:value-of select="concat('msArrowOvalEnd_20_',$tudx3)"/>
5705						</xsl:when>
5706					</xsl:choose>
5707				</xsl:variable>
5708				<xsl:attribute name="draw:name"><xsl:value-of select="$drawname"/></xsl:attribute>
5709				<xsl:choose>
5710					<xsl:when test="$tusy3='normal' and $tudx3='1'">
5711						<xsl:attribute name="svg:viewBox">0 0 140 140</xsl:attribute>
5712						<xsl:attribute name="svg:d">m70 0 70 140h-140z</xsl:attribute>
5713					</xsl:when>
5714					<xsl:when test="$tusy3='normal' and $tudx3='2'">
5715						<xsl:attribute name="svg:viewBox">0 0 140 310</xsl:attribute>
5716						<xsl:attribute name="svg:d">m70 0 70 210h-140z</xsl:attribute>
5717					</xsl:when>
5718					<xsl:when test="$tusy3='normal' and $tudx3='3'">
5719						<xsl:attribute name="svg:viewBox">0 0 140 350</xsl:attribute>
5720						<xsl:attribute name="svg:d">m70 0 70 350h-140z</xsl:attribute>
5721					</xsl:when>
5722					<xsl:when test="$tusy3='normal' and $tudx3='4'">
5723						<xsl:attribute name="svg:viewBox">0 0 210 140</xsl:attribute>
5724						<xsl:attribute name="svg:d">m105 0 105 140h-210z</xsl:attribute>
5725					</xsl:when>
5726					<xsl:when test="$tusy3='normal' and $tudx3='5'">
5727						<xsl:attribute name="svg:viewBox">0 0 210 210</xsl:attribute>
5728						<xsl:attribute name="svg:d">m105 0 105 210h-210z</xsl:attribute>
5729					</xsl:when>
5730					<xsl:when test="$tusy3='normal' and $tudx3='6'">
5731						<xsl:attribute name="svg:viewBox">0 0 210 350</xsl:attribute>
5732						<xsl:attribute name="svg:d">m105 0 105 350h-210z</xsl:attribute>
5733					</xsl:when>
5734					<xsl:when test="$tusy3='normal' and $tudx3='7'">
5735						<xsl:attribute name="svg:viewBox">0 0 350 140</xsl:attribute>
5736						<xsl:attribute name="svg:d">m175 0 175 140h-350z</xsl:attribute>
5737					</xsl:when>
5738					<xsl:when test="$tusy3='normal' and $tudx3='8'">
5739						<xsl:attribute name="svg:viewBox">0 0 350 210</xsl:attribute>
5740						<xsl:attribute name="svg:d">m175 0 175 210h-350z</xsl:attribute>
5741					</xsl:when>
5742					<xsl:when test="$tusy3='normal' and $tudx3='9'">
5743						<xsl:attribute name="svg:viewBox">0 0 350 350</xsl:attribute>
5744						<xsl:attribute name="svg:d">m175 0 175 350h-350z</xsl:attribute>
5745					</xsl:when>
5746					<xsl:when test="$tusy3='diamond' and $tudx3='1'">
5747						<xsl:attribute name="svg:viewBox">0 0 140 140</xsl:attribute>
5748						<xsl:attribute name="svg:d">m70 0 70 70-70 70-70-70z</xsl:attribute>
5749					</xsl:when>
5750					<xsl:when test="$tusy3='diamond' and $tudx3='2'">
5751						<xsl:attribute name="svg:viewBox">0 0 140 310</xsl:attribute>
5752						<xsl:attribute name="svg:d">m70 0 70 105-70 105-70-105z</xsl:attribute>
5753					</xsl:when>
5754					<xsl:when test="$tusy3='diamond' and $tudx3='3'">
5755						<xsl:attribute name="svg:viewBox">0 0 140 350</xsl:attribute>
5756						<xsl:attribute name="svg:d">m70 0 70 175-70 175-70-175z</xsl:attribute>
5757					</xsl:when>
5758					<xsl:when test="$tusy3='diamond' and $tudx3='4'">
5759						<xsl:attribute name="svg:viewBox">0 0 210 140</xsl:attribute>
5760						<xsl:attribute name="svg:d">m105 0 105 70-105 70-105-70z</xsl:attribute>
5761					</xsl:when>
5762					<xsl:when test="$tusy3='diamond' and $tudx3='5'">
5763						<xsl:attribute name="svg:viewBox">0 0 210 210</xsl:attribute>
5764						<xsl:attribute name="svg:d">m105 0 105 105-105 105-105-105z</xsl:attribute>
5765					</xsl:when>
5766					<xsl:when test="$tusy3='diamond' and $tudx3='6'">
5767						<xsl:attribute name="svg:viewBox">0 0 210 350</xsl:attribute>
5768						<xsl:attribute name="svg:d">m105 0 105 175-105 175-105-175z</xsl:attribute>
5769					</xsl:when>
5770					<xsl:when test="$tusy3='diamond' and $tudx3='7'">
5771						<xsl:attribute name="svg:viewBox">0 0 350 140</xsl:attribute>
5772						<xsl:attribute name="svg:d">m175 0 175 70-175 70-175-70z</xsl:attribute>
5773					</xsl:when>
5774					<xsl:when test="$tusy3='diamond' and $tudx3='8'">
5775						<xsl:attribute name="svg:viewBox">0 0 350 210</xsl:attribute>
5776						<xsl:attribute name="svg:d">m175 0 175 105-175 105-175-105z</xsl:attribute>
5777					</xsl:when>
5778					<xsl:when test="$tusy3='diamond' and $tudx3='9'">
5779						<xsl:attribute name="svg:viewBox">0 0 350 350</xsl:attribute>
5780						<xsl:attribute name="svg:d">m175 0 175 175-175 175-175-175z</xsl:attribute>
5781					</xsl:when>
5782					<xsl:when test="$tusy3='open' and $tudx3='1'">
5783						<xsl:attribute name="svg:viewBox">0 0 140 140</xsl:attribute>
5784						<xsl:attribute name="svg:d">m70 0 70 128-20 12-50-90-48 90-22-12z</xsl:attribute>
5785					</xsl:when>
5786					<xsl:when test="$tusy3='open' and $tudx3='2'">
5787						<xsl:attribute name="svg:viewBox">0 0 140 310</xsl:attribute>
5788						<xsl:attribute name="svg:d">m70 0 70 292-20 18-50-134-48 134-22-18z</xsl:attribute>
5789					</xsl:when>
5790					<xsl:when test="$tusy3='open' and $tudx3='3'">
5791						<xsl:attribute name="svg:viewBox">0 0 140 350</xsl:attribute>
5792						<xsl:attribute name="svg:d">m70 0 70 318-20 32-50-224-48 224-22-32z</xsl:attribute>
5793					</xsl:when>
5794					<xsl:when test="$tusy3='open' and $tudx3='4'">
5795						<xsl:attribute name="svg:viewBox">0 0 210 140</xsl:attribute>
5796						<xsl:attribute name="svg:d">m106 0 104 128-32 12-72-90-74 90-32-12z</xsl:attribute>
5797					</xsl:when>
5798					<xsl:when test="$tusy3='open' and $tudx3='5'">
5799						<xsl:attribute name="svg:viewBox">0 0 210 210</xsl:attribute>
5800						<xsl:attribute name="svg:d">m106 0 104 192-32 18-72-134-74 134-32-18z</xsl:attribute>
5801					</xsl:when>
5802					<xsl:when test="$tusy3='open' and $tudx3='6'">
5803						<xsl:attribute name="svg:viewBox">0 0 210 350</xsl:attribute>
5804						<xsl:attribute name="svg:d">m106 0 104 318-32 32-72-224-74 224-32-32z</xsl:attribute>
5805					</xsl:when>
5806					<xsl:when test="$tusy3='open' and $tudx3='7'">
5807						<xsl:attribute name="svg:viewBox">0 0 350 140</xsl:attribute>
5808						<xsl:attribute name="svg:d">m176 0 174 128-52 12-122-90-124 90-52-12z</xsl:attribute>
5809					</xsl:when>
5810					<xsl:when test="$tusy3='open' and $tudx3='8'">
5811						<xsl:attribute name="svg:viewBox">0 0 350 210</xsl:attribute>
5812						<xsl:attribute name="svg:d">m176 0 174 192-52 18-122-134-124 134-52-18z</xsl:attribute>
5813					</xsl:when>
5814					<xsl:when test="$tusy3='open' and $tudx3='9'">
5815						<xsl:attribute name="svg:viewBox">0 0 350 350</xsl:attribute>
5816						<xsl:attribute name="svg:d">m176 0 174 318-52 32-122-224-124 224-52-32z</xsl:attribute>
5817					</xsl:when>
5818					<xsl:when test="$tusy3='stealth' and $tudx3='1'">
5819						<xsl:attribute name="svg:viewBox">0 0 140 140</xsl:attribute>
5820						<xsl:attribute name="svg:d">m70 0 70 140-70-56-70 56z</xsl:attribute>
5821					</xsl:when>
5822					<xsl:when test="$tusy3='stealth' and $tudx3='2'">
5823						<xsl:attribute name="svg:viewBox">0 0 140 310</xsl:attribute>
5824						<xsl:attribute name="svg:d">m70 0 70 210-70-84-70 84z</xsl:attribute>
5825					</xsl:when>
5826					<xsl:when test="$tusy3='stealth' and $tudx3='3'">
5827						<xsl:attribute name="svg:viewBox">0 0 140 350</xsl:attribute>
5828						<xsl:attribute name="svg:d">m70 0 70 350-70-140-70 140z</xsl:attribute>
5829					</xsl:when>
5830					<xsl:when test="$tusy3='stealth' and $tudx3='4'">
5831						<xsl:attribute name="svg:viewBox">0 0 210 140</xsl:attribute>
5832						<xsl:attribute name="svg:d">m105 0 105 140-105-56-105 56z</xsl:attribute>
5833					</xsl:when>
5834					<xsl:when test="$tusy3='stealth' and $tudx3='5'">
5835						<xsl:attribute name="svg:viewBox">0 0 210 210</xsl:attribute>
5836						<xsl:attribute name="svg:d">m105 0 105 210-105-84-105 84z</xsl:attribute>
5837					</xsl:when>
5838					<xsl:when test="$tusy3='stealth' and $tudx3='6'">
5839						<xsl:attribute name="svg:viewBox">0 0 210 350</xsl:attribute>
5840						<xsl:attribute name="svg:d">m105 0 105 350-105-140-105 140z</xsl:attribute>
5841					</xsl:when>
5842					<xsl:when test="$tusy3='stealth' and $tudx3='7'">
5843						<xsl:attribute name="svg:viewBox">0 0 350 140</xsl:attribute>
5844						<xsl:attribute name="svg:d">m175 0 175 140-175-56-175 56z</xsl:attribute>
5845					</xsl:when>
5846					<xsl:when test="$tusy3='stealth' and $tudx3='8'">
5847						<xsl:attribute name="svg:viewBox">0 0 350 210</xsl:attribute>
5848						<xsl:attribute name="svg:d">m175 0 175 210-175-84-175 84z</xsl:attribute>
5849					</xsl:when>
5850					<xsl:when test="$tusy3='stealth' and $tudx3='9'">
5851						<xsl:attribute name="svg:viewBox">0 0 350 350</xsl:attribute>
5852						<xsl:attribute name="svg:d">m175 0 175 350-175-140-175 140z</xsl:attribute>
5853					</xsl:when>
5854					<xsl:when test="$tusy3='oval' and $tudx3='1'">
5855						<xsl:attribute name="svg:viewBox">0 0 140 140</xsl:attribute>
5856						<xsl:attribute name="svg:d">m140 0c0-38-32-70-70-70s-70 32-70 70 32 70 70 70 70-32 70-70z</xsl:attribute>
5857					</xsl:when>
5858					<xsl:when test="$tusy3='oval' and $tudx3='2'">
5859						<xsl:attribute name="svg:viewBox">0 0 140 310</xsl:attribute>
5860						<xsl:attribute name="svg:d">m140 0c0-57-32-105-70-105s-70 48-70 105 32 105 70 105 70-48 70-105z</xsl:attribute>
5861					</xsl:when>
5862					<xsl:when test="$tusy3='oval' and $tudx3='3'">
5863						<xsl:attribute name="svg:viewBox">0 0 140 350</xsl:attribute>
5864						<xsl:attribute name="svg:d">m140 0c0-96-32-175-70-175s-70 79-70 175 32 175 70 175 70-79 70-175z</xsl:attribute>
5865					</xsl:when>
5866					<xsl:when test="$tusy3='oval' and $tudx3='4'">
5867						<xsl:attribute name="svg:viewBox">0 0 210 140</xsl:attribute>
5868						<xsl:attribute name="svg:d">m210 0c0-38-48-70-105-70s-105 32-105 70 48 70 105 70 105-32 105-70z</xsl:attribute>
5869					</xsl:when>
5870					<xsl:when test="$tusy3='oval' and $tudx3='5'">
5871						<xsl:attribute name="svg:viewBox">0 0 210 210</xsl:attribute>
5872						<xsl:attribute name="svg:d">m210 0c0-57-48-105-105-105s-105 48-105 105 48 105 105 105 105-48 105-105z</xsl:attribute>
5873					</xsl:when>
5874					<xsl:when test="$tusy3='oval' and $tudx3='6'">
5875						<xsl:attribute name="svg:viewBox">0 0 210 350</xsl:attribute>
5876						<xsl:attribute name="svg:d">m210 0c0-96-48-175-105-175s-105 79-105 175 48 175 105 175 105-79 105-175z</xsl:attribute>
5877					</xsl:when>
5878					<xsl:when test="$tusy3='oval' and $tudx3='7'">
5879						<xsl:attribute name="svg:viewBox">0 0 350 140</xsl:attribute>
5880						<xsl:attribute name="svg:d">m350 0c0-38-79-70-175-70s-175 32-175 70 79 70 175 70 175-32 175-70z</xsl:attribute>
5881					</xsl:when>
5882					<xsl:when test="$tusy3='oval' and $tudx3='8'">
5883						<xsl:attribute name="svg:viewBox">0 0 350 210</xsl:attribute>
5884						<xsl:attribute name="svg:d">m350 0c0-57-79-105-175-105s-175 48-175 105 79 105 175 105 175-48 175-105z</xsl:attribute>
5885					</xsl:when>
5886					<xsl:when test="$tusy3='oval' and $tudx3='9'">
5887						<xsl:attribute name="svg:viewBox">0 0 350 350</xsl:attribute>
5888						<xsl:attribute name="svg:d">m350 0c0-96-79-175-175-175s-175 79-175 175 79 175 175 175 175-79 175-175z</xsl:attribute>
5889					</xsl:when>
5890				</xsl:choose>
5891			</xsl:element>
5892		</xsl:if>
5893		<xsl:if test="图:预定义图形_8018/图:属性_801D/图:箭头_805D/图:后端箭头_805F">
5894			<xsl:element name="draw:marker">
5895				<xsl:variable name="tusy4" select="图:预定义图形_8018/图:属性_801D/图:箭头_805D/图:后端箭头_805F/图:式样_8000"/>
5896				<xsl:variable name="tudx4" select="图:预定义图形_8018/图:属性_801D/图:箭头_805D/图:后端箭头_805F/图:大小_8001"/>
5897				<xsl:variable name="drawname">
5898					<xsl:choose>
5899						<xsl:when test="$tusy4='normal'">
5900							<xsl:value-of select="concat('msArrowEnd_20_',$tudx4)"/>
5901						</xsl:when>
5902						<xsl:when test="$tusy4='diamond'">
5903							<xsl:value-of select="concat('msArrowDiamondEnd_20_',$tudx4)"/>
5904						</xsl:when>
5905						<xsl:when test="$tusy4='open'">
5906							<xsl:value-of select="concat('msArrowOpenEnd_20_',$tudx4)"/>
5907						</xsl:when>
5908						<xsl:when test="$tusy4='stealth'">
5909							<xsl:value-of select="concat('msArrowStealthEnd_20_',$tudx4)"/>
5910						</xsl:when>
5911						<xsl:when test="$tusy4='oval'">
5912							<xsl:value-of select="concat('msArrowOvalEnd_20_',$tudx4)"/>
5913						</xsl:when>
5914					</xsl:choose>
5915				</xsl:variable>
5916				<xsl:attribute name="draw:name"><xsl:value-of select="$drawname"/></xsl:attribute>
5917				<xsl:choose>
5918					<xsl:when test="$tusy4='normal' and $tudx4='1'">
5919						<xsl:attribute name="svg:viewBox">0 0 140 140</xsl:attribute>
5920						<xsl:attribute name="svg:d">m70 0 70 140h-140z</xsl:attribute>
5921					</xsl:when>
5922					<xsl:when test="$tusy4='normal' and $tudx4='2'">
5923						<xsl:attribute name="svg:viewBox">0 0 140 310</xsl:attribute>
5924						<xsl:attribute name="svg:d">m70 0 70 210h-140z</xsl:attribute>
5925					</xsl:when>
5926					<xsl:when test="$tusy4='normal' and $tudx4='3'">
5927						<xsl:attribute name="svg:viewBox">0 0 140 350</xsl:attribute>
5928						<xsl:attribute name="svg:d">m70 0 70 350h-140z</xsl:attribute>
5929					</xsl:when>
5930					<xsl:when test="$tusy4='normal' and $tudx4='4'">
5931						<xsl:attribute name="svg:viewBox">0 0 210 140</xsl:attribute>
5932						<xsl:attribute name="svg:d">m105 0 105 140h-210z</xsl:attribute>
5933					</xsl:when>
5934					<xsl:when test="$tusy4='normal' and $tudx4='5'">
5935						<xsl:attribute name="svg:viewBox">0 0 210 210</xsl:attribute>
5936						<xsl:attribute name="svg:d">m105 0 105 210h-210z</xsl:attribute>
5937					</xsl:when>
5938					<xsl:when test="$tusy4='normal' and $tudx4='6'">
5939						<xsl:attribute name="svg:viewBox">0 0 210 350</xsl:attribute>
5940						<xsl:attribute name="svg:d">m105 0 105 350h-210z</xsl:attribute>
5941					</xsl:when>
5942					<xsl:when test="$tusy4='normal' and $tudx4='7'">
5943						<xsl:attribute name="svg:viewBox">0 0 350 140</xsl:attribute>
5944						<xsl:attribute name="svg:d">m175 0 175 140h-350z</xsl:attribute>
5945					</xsl:when>
5946					<xsl:when test="$tusy4='normal' and $tudx4='8'">
5947						<xsl:attribute name="svg:viewBox">0 0 350 210</xsl:attribute>
5948						<xsl:attribute name="svg:d">m175 0 175 210h-350z</xsl:attribute>
5949					</xsl:when>
5950					<xsl:when test="$tusy4='normal' and $tudx4='9'">
5951						<xsl:attribute name="svg:viewBox">0 0 350 350</xsl:attribute>
5952						<xsl:attribute name="svg:d">m175 0 175 350h-350z</xsl:attribute>
5953					</xsl:when>
5954					<xsl:when test="$tusy4='diamond' and $tudx4='1'">
5955						<xsl:attribute name="svg:viewBox">0 0 140 140</xsl:attribute>
5956						<xsl:attribute name="svg:d">m70 0 70 70-70 70-70-70z</xsl:attribute>
5957					</xsl:when>
5958					<xsl:when test="$tusy4='diamond' and $tudx4='2'">
5959						<xsl:attribute name="svg:viewBox">0 0 140 310</xsl:attribute>
5960						<xsl:attribute name="svg:d">m70 0 70 105-70 105-70-105z</xsl:attribute>
5961					</xsl:when>
5962					<xsl:when test="$tusy4='diamond' and $tudx4='3'">
5963						<xsl:attribute name="svg:viewBox">0 0 140 350</xsl:attribute>
5964						<xsl:attribute name="svg:d">m70 0 70 175-70 175-70-175z</xsl:attribute>
5965					</xsl:when>
5966					<xsl:when test="$tusy4='diamond' and $tudx4='4'">
5967						<xsl:attribute name="svg:viewBox">0 0 210 140</xsl:attribute>
5968						<xsl:attribute name="svg:d">m105 0 105 70-105 70-105-70z</xsl:attribute>
5969					</xsl:when>
5970					<xsl:when test="$tusy4='diamond' and $tudx4='5'">
5971						<xsl:attribute name="svg:viewBox">0 0 210 210</xsl:attribute>
5972						<xsl:attribute name="svg:d">m105 0 105 105-105 105-105-105z</xsl:attribute>
5973					</xsl:when>
5974					<xsl:when test="$tusy4='diamond' and $tudx4='6'">
5975						<xsl:attribute name="svg:viewBox">0 0 210 350</xsl:attribute>
5976						<xsl:attribute name="svg:d">m105 0 105 175-105 175-105-175z</xsl:attribute>
5977					</xsl:when>
5978					<xsl:when test="$tusy4='diamond' and $tudx4='7'">
5979						<xsl:attribute name="svg:viewBox">0 0 350 140</xsl:attribute>
5980						<xsl:attribute name="svg:d">m175 0 175 70-175 70-175-70z</xsl:attribute>
5981					</xsl:when>
5982					<xsl:when test="$tusy4='diamond' and $tudx4='8'">
5983						<xsl:attribute name="svg:viewBox">0 0 350 210</xsl:attribute>
5984						<xsl:attribute name="svg:d">m175 0 175 105-175 105-175-105z</xsl:attribute>
5985					</xsl:when>
5986					<xsl:when test="$tusy4='diamond' and $tudx4='9'">
5987						<xsl:attribute name="svg:viewBox">0 0 350 350</xsl:attribute>
5988						<xsl:attribute name="svg:d">m175 0 175 175-175 175-175-175z</xsl:attribute>
5989					</xsl:when>
5990					<xsl:when test="$tusy4='open' and $tudx4='1'">
5991						<xsl:attribute name="svg:viewBox">0 0 140 140</xsl:attribute>
5992						<xsl:attribute name="svg:d">m70 0 70 128-20 12-50-90-48 90-22-12z</xsl:attribute>
5993					</xsl:when>
5994					<xsl:when test="$tusy4='open' and $tudx4='2'">
5995						<xsl:attribute name="svg:viewBox">0 0 140 310</xsl:attribute>
5996						<xsl:attribute name="svg:d">m70 0 70 292-20 18-50-134-48 134-22-18z</xsl:attribute>
5997					</xsl:when>
5998					<xsl:when test="$tusy4='open' and $tudx4='3'">
5999						<xsl:attribute name="svg:viewBox">0 0 140 350</xsl:attribute>
6000						<xsl:attribute name="svg:d">m70 0 70 318-20 32-50-224-48 224-22-32z</xsl:attribute>
6001					</xsl:when>
6002					<xsl:when test="$tusy4='open' and $tudx4='4'">
6003						<xsl:attribute name="svg:viewBox">0 0 210 140</xsl:attribute>
6004						<xsl:attribute name="svg:d">m106 0 104 128-32 12-72-90-74 90-32-12z</xsl:attribute>
6005					</xsl:when>
6006					<xsl:when test="$tusy4='open' and $tudx4='5'">
6007						<xsl:attribute name="svg:viewBox">0 0 210 210</xsl:attribute>
6008						<xsl:attribute name="svg:d">m106 0 104 192-32 18-72-134-74 134-32-18z</xsl:attribute>
6009					</xsl:when>
6010					<xsl:when test="$tusy4='open' and $tudx4='6'">
6011						<xsl:attribute name="svg:viewBox">0 0 210 350</xsl:attribute>
6012						<xsl:attribute name="svg:d">m106 0 104 318-32 32-72-224-74 224-32-32z</xsl:attribute>
6013					</xsl:when>
6014					<xsl:when test="$tusy4='open' and $tudx4='7'">
6015						<xsl:attribute name="svg:viewBox">0 0 350 140</xsl:attribute>
6016						<xsl:attribute name="svg:d">m176 0 174 128-52 12-122-90-124 90-52-12z</xsl:attribute>
6017					</xsl:when>
6018					<xsl:when test="$tusy4='open' and $tudx4='8'">
6019						<xsl:attribute name="svg:viewBox">0 0 350 210</xsl:attribute>
6020						<xsl:attribute name="svg:d">m176 0 174 192-52 18-122-134-124 134-52-18z</xsl:attribute>
6021					</xsl:when>
6022					<xsl:when test="$tusy4='open' and $tudx4='9'">
6023						<xsl:attribute name="svg:viewBox">0 0 350 350</xsl:attribute>
6024						<xsl:attribute name="svg:d">m176 0 174 318-52 32-122-224-124 224-52-32z</xsl:attribute>
6025					</xsl:when>
6026					<xsl:when test="$tusy4='stealth' and $tudx4='1'">
6027						<xsl:attribute name="svg:viewBox">0 0 140 140</xsl:attribute>
6028						<xsl:attribute name="svg:d">m70 0 70 140-70-56-70 56z</xsl:attribute>
6029					</xsl:when>
6030					<xsl:when test="$tusy4='stealth' and $tudx4='2'">
6031						<xsl:attribute name="svg:viewBox">0 0 140 310</xsl:attribute>
6032						<xsl:attribute name="svg:d">m70 0 70 210-70-84-70 84z</xsl:attribute>
6033					</xsl:when>
6034					<xsl:when test="$tusy4='stealth' and $tudx4='3'">
6035						<xsl:attribute name="svg:viewBox">0 0 140 350</xsl:attribute>
6036						<xsl:attribute name="svg:d">m70 0 70 350-70-140-70 140z</xsl:attribute>
6037					</xsl:when>
6038					<xsl:when test="$tusy4='stealth' and $tudx4='4'">
6039						<xsl:attribute name="svg:viewBox">0 0 210 140</xsl:attribute>
6040						<xsl:attribute name="svg:d">m105 0 105 140-105-56-105 56z</xsl:attribute>
6041					</xsl:when>
6042					<xsl:when test="$tusy4='stealth' and $tudx4='5'">
6043						<xsl:attribute name="svg:viewBox">0 0 210 210</xsl:attribute>
6044						<xsl:attribute name="svg:d">m105 0 105 210-105-84-105 84z</xsl:attribute>
6045					</xsl:when>
6046					<xsl:when test="$tusy4='stealth' and $tudx4='6'">
6047						<xsl:attribute name="svg:viewBox">0 0 210 350</xsl:attribute>
6048						<xsl:attribute name="svg:d">m105 0 105 350-105-140-105 140z</xsl:attribute>
6049					</xsl:when>
6050					<xsl:when test="$tusy4='stealth' and $tudx4='7'">
6051						<xsl:attribute name="svg:viewBox">0 0 350 140</xsl:attribute>
6052						<xsl:attribute name="svg:d">m175 0 175 140-175-56-175 56z</xsl:attribute>
6053					</xsl:when>
6054					<xsl:when test="$tusy4='stealth' and $tudx4='8'">
6055						<xsl:attribute name="svg:viewBox">0 0 350 210</xsl:attribute>
6056						<xsl:attribute name="svg:d">m175 0 175 210-175-84-175 84z</xsl:attribute>
6057					</xsl:when>
6058					<xsl:when test="$tusy4='stealth' and $tudx4='9'">
6059						<xsl:attribute name="svg:viewBox">0 0 350 350</xsl:attribute>
6060						<xsl:attribute name="svg:d">m175 0 175 350-175-140-175 140z</xsl:attribute>
6061					</xsl:when>
6062					<xsl:when test="$tusy4='oval' and $tudx4='1'">
6063						<xsl:attribute name="svg:viewBox">0 0 140 140</xsl:attribute>
6064						<xsl:attribute name="svg:d">m140 0c0-38-32-70-70-70s-70 32-70 70 32 70 70 70 70-32 70-70z</xsl:attribute>
6065					</xsl:when>
6066					<xsl:when test="$tusy4='oval' and $tudx4='2'">
6067						<xsl:attribute name="svg:viewBox">0 0 140 310</xsl:attribute>
6068						<xsl:attribute name="svg:d">m140 0c0-57-32-105-70-105s-70 48-70 105 32 105 70 105 70-48 70-105z</xsl:attribute>
6069					</xsl:when>
6070					<xsl:when test="$tusy4='oval' and $tudx4='3'">
6071						<xsl:attribute name="svg:viewBox">0 0 140 350</xsl:attribute>
6072						<xsl:attribute name="svg:d">m140 0c0-96-32-175-70-175s-70 79-70 175 32 175 70 175 70-79 70-175z</xsl:attribute>
6073					</xsl:when>
6074					<xsl:when test="$tusy4='oval' and $tudx4='4'">
6075						<xsl:attribute name="svg:viewBox">0 0 210 140</xsl:attribute>
6076						<xsl:attribute name="svg:d">m210 0c0-38-48-70-105-70s-105 32-105 70 48 70 105 70 105-32 105-70z</xsl:attribute>
6077					</xsl:when>
6078					<xsl:when test="$tusy4='oval' and $tudx4='5'">
6079						<xsl:attribute name="svg:viewBox">0 0 210 210</xsl:attribute>
6080						<xsl:attribute name="svg:d">m210 0c0-57-48-105-105-105s-105 48-105 105 48 105 105 105 105-48 105-105z</xsl:attribute>
6081					</xsl:when>
6082					<xsl:when test="$tusy4='oval' and $tudx4='6'">
6083						<xsl:attribute name="svg:viewBox">0 0 210 350</xsl:attribute>
6084						<xsl:attribute name="svg:d">m210 0c0-96-48-175-105-175s-105 79-105 175 48 175 105 175 105-79 105-175z</xsl:attribute>
6085					</xsl:when>
6086					<xsl:when test="$tusy4='oval' and $tudx4='7'">
6087						<xsl:attribute name="svg:viewBox">0 0 350 140</xsl:attribute>
6088						<xsl:attribute name="svg:d">m350 0c0-38-79-70-175-70s-175 32-175 70 79 70 175 70 175-32 175-70z</xsl:attribute>
6089					</xsl:when>
6090					<xsl:when test="$tusy4='oval' and $tudx4='8'">
6091						<xsl:attribute name="svg:viewBox">0 0 350 210</xsl:attribute>
6092						<xsl:attribute name="svg:d">m350 0c0-57-79-105-175-105s-175 48-175 105 79 105 175 105 175-48 175-105z</xsl:attribute>
6093					</xsl:when>
6094					<xsl:when test="$tusy4='oval' and $tudx4='9'">
6095						<xsl:attribute name="svg:viewBox">0 0 350 350</xsl:attribute>
6096						<xsl:attribute name="svg:d">m350 0c0-96-79-175-175-175s-175 79-175 175 79 175 175 175 175-79 175-175z</xsl:attribute>
6097					</xsl:when>
6098				</xsl:choose>
6099			</xsl:element>
6100		</xsl:if>
6101		<xsl:if test="name() = '扩展:前端箭头'">
6102			<xsl:element name="draw:marker">
6103				<xsl:copy-of select="@*"/>
6104			</xsl:element>
6105		</xsl:if>
6106		<xsl:if test="name() = '扩展:后端箭头'">
6107			<xsl:element name="draw:marker">
6108				<xsl:copy-of select="@*"/>
6109			</xsl:element>
6110		</xsl:if>
6111	</xsl:template>
6112	<xsl:template name="LinearDefinition">
6113		<xsl:param name="dash"/>
6114		<xsl:choose>
6115			<xsl:when test="$dash = 'round-dot'">
6116				<draw:stroke-dash draw:name="round-dot" draw:display-name="round-dot" draw:style="round" draw:dots1="1" draw:dots1-length="0.025cm" draw:distance="0.025cm"/>
6117			</xsl:when>
6118			<xsl:when test="$dash = 'square-dot'">
6119				<draw:stroke-dash draw:name="square-dot" draw:display-name="square-dot" draw:style="rect" draw:dots1="1" draw:dots1-length="0.026cm" draw:distance="0.026cm"/>
6120			</xsl:when>
6121			<xsl:when test="$dash = 'dash'">
6122				<draw:stroke-dash draw:name="dash" draw:display-name="dash" draw:style="rect" draw:dots2="1" draw:dots2-length="0.105cm" draw:distance="0.079cm"/>
6123			</xsl:when>
6124			<xsl:when test="$dash = 'dash-dot'">
6125				<draw:stroke-dash draw:name="dash-dot" draw:display-name="dash-dot" draw:style="rect" draw:dots1="1" draw:dots1-length="0.026cm" draw:dots2="1" draw:dots2-length="0.105cm" draw:distance="0.079cm"/>
6126			</xsl:when>
6127			<xsl:when test="$dash = 'long-dash'">
6128				<draw:stroke-dash draw:name="long-dash" draw:display-name="long-dash" draw:style="rect" draw:dots2="1" draw:dots2-length="0.211cm" draw:distance="0.079cm"/>
6129			</xsl:when>
6130			<xsl:when test="$dash = 'long-dash-dot'">
6131				<draw:stroke-dash draw:name="long-dash-dot" draw:display-name="long-dash-dot" draw:style="rect" draw:dots1="1" draw:dots1-length="0.026cm" draw:dots2="1" draw:dots2-length="0.211cm" draw:distance="0.079cm"/>
6132			</xsl:when>
6133			<xsl:when test="$dash = 'dash-dot-dot'">
6134				<draw:stroke-dash draw:name="dash-dot-dot" draw:display-name="dash-dot-dot" draw:style="rect" draw:dots1="2" draw:dots1-length="0.026cm" draw:dots2="1" draw:dots2-length="0.211cm" draw:distance="0.079cm"/>
6135			</xsl:when>
6136		</xsl:choose>
6137		<xsl:if test="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204/扩展:内容_B206/@名称 = 'draw:stroke-dash'">
6138			<xsl:for-each select="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204/扩展:内容_B206[@名称 = 'draw:stroke-dash']/扩展:线型数据">
6139				<draw:stroke-dash>
6140					<xsl:copy-of select="@*"/>
6141				</draw:stroke-dash>
6142			</xsl:for-each>
6143		</xsl:if>
6144	</xsl:template>
6145	<xsl:template name="GraphicDefinition">
6146		<xsl:for-each select="/uof:UOF_0000/图形:图形集_7C00/图:图形_8062[图:预定义图形_8018/图:属性_801D/图:箭头_805D/图:前端箭头_805E] | /uof:UOF_0000/图形:图形集_7C00/图:图形_8062[图:预定义图形_8018/图:属性_801D/图:箭头_805D/图:后端箭头_805F] | /uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204/扩展:内容_B206/扩展:前端箭头 | /uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204/扩展:内容_B206/扩展:后端箭头">
6147			<xsl:call-template name="ArrowDefinition"/>
6148		</xsl:for-each>
6149		<xsl:for-each select="/uof:UOF_0000/图形:图形集_7C00/图:图形_8062[图:预定义图形_8018/图:属性_801D/图:线_8057/图:线类型_8059]">
6150			<xsl:call-template name="LinearDefinition">
6151				<xsl:with-param name="dash" select="图:预定义图形_8018/图:属性_801D/图:线_8057/图:线类型_8059/@虚实_805B"/>
6152			</xsl:call-template>
6153		</xsl:for-each>
6154	</xsl:template>
6155	<xsl:template match="字:脚注_4159">
6156		<xsl:element name="text:note">
6157			<xsl:attribute name="text:note-class">footnote</xsl:attribute>
6158			<xsl:element name="text:note-citation">
6159				<xsl:value-of select="@引文体_4157"/>
6160			</xsl:element>
6161			<xsl:element name="text:note-body">
6162				<xsl:for-each select="*">
6163					<xsl:choose>
6164						<xsl:when test="name(.)='字:段落_416B'">
6165							<xsl:apply-templates select="."/>
6166						</xsl:when>
6167						<xsl:when test="name(.)='字:文字表_416C'">
6168							<xsl:apply-templates select="."/>
6169						</xsl:when>
6170					</xsl:choose>
6171				</xsl:for-each>
6172			</xsl:element>
6173		</xsl:element>
6174	</xsl:template>
6175	<xsl:template match="字:尾注_415A">
6176		<xsl:element name="text:note">
6177			<xsl:attribute name="text:note-class">endnote</xsl:attribute>
6178			<xsl:element name="text:note-citation">
6179				<xsl:value-of select="@引文体_4157"/>
6180			</xsl:element>
6181			<xsl:element name="text:note-body">
6182				<xsl:for-each select="*">
6183					<xsl:choose>
6184						<xsl:when test="name(.)='字:段落_416B'">
6185							<xsl:apply-templates select="."/>
6186						</xsl:when>
6187						<xsl:when test="name(.)='字:文字表_416C'">
6188							<xsl:apply-templates select="."/>
6189						</xsl:when>
6190					</xsl:choose>
6191				</xsl:for-each>
6192			</xsl:element>
6193		</xsl:element>
6194	</xsl:template>
6195	<xsl:preserve-space elements="字:文本串_415B"/>
6196	<xsl:template match="字:文本串_415B">
6197		<xsl:choose>
6198			<xsl:when test="$document_type = 'presentation'">
6199				<xsl:variable name="graphid" select="ancestor::图:图形_8062/@标识符_804B"/>
6200				<xsl:variable name="sd-placeholder" select="key('rel_graphic_name',$graphid)/uof:占位符_C626/@类型_C627"/>
6201				<xsl:choose>
6202					<!-- alert staring
6203					<xsl:when test="$sd-placeholder = 'date' and contains(.,'&lt;日期/时间&gt;')">
6204                        <xsl:value-of select="replace(.,'&lt;日期/时间&gt;','')" disable-output-escaping="yes"/>
6205					</xsl:when>
6206					<xsl:when test="$sd-placeholder = 'header' and contains(.,'&lt;页眉&gt;')">
6207						<xsl:value-of select="replace(.,'&lt;页眉&gt;','')" disable-output-escaping="yes"/>
6208					</xsl:when>
6209					<xsl:when test="$sd-placeholder = 'footer' and contains(.,'&lt;页脚&gt;')">
6210                        <xsl:value-of select="replace(.,'&lt;页脚&gt;','')" disable-output-escaping="yes"/>
6211					</xsl:when>
6212					<xsl:when test="$sd-placeholder = 'number' and contains(.,'&lt;#&gt;')">
6213						<xsl:value-of select="substring-before(.,'&lt;#&gt;')"/>
6214						<xsl:value-of select="substring-after(.,'&lt;#&gt;')"/>
6215					</xsl:when>-->
6216					<xsl:when test="$sd-placeholder = 'date'">
6217						<presentation:date-time/>
6218						<xsl:if test=".!= '&lt;日期/时间&gt;'">
6219							<xsl:value-of select="."/>
6220						</xsl:if>
6221					</xsl:when>
6222					<xsl:when test="$sd-placeholder = 'header'">
6223						<presentation:header/>
6224						<xsl:if test=".!= '&lt;页眉&gt;'">
6225							<xsl:value-of select="."/>
6226						</xsl:if>
6227					</xsl:when>
6228					<xsl:when test="$sd-placeholder = 'footer'">
6229						<presentation:footer/>
6230						<xsl:if test=".!= '&lt;页脚&gt;'">
6231							<xsl:value-of select="."/>
6232						</xsl:if>
6233					</xsl:when>
6234					<xsl:when test="$sd-placeholder = 'number'">
6235						<text:page-number>&lt;编号&gt;</text:page-number>
6236						<xsl:if test=".!= '&lt;编号&gt;' and .!= '&lt;#&gt;'">
6237							<xsl:value-of select="."/>
6238						</xsl:if>
6239					</xsl:when>
6240					<xsl:otherwise>
6241						<xsl:value-of select="."/>
6242					</xsl:otherwise>
6243				</xsl:choose>
6244			</xsl:when>
6245			<xsl:otherwise>
6246				<xsl:value-of select="."/>
6247			</xsl:otherwise>
6248		</xsl:choose>
6249	</xsl:template>
6250	<!--
6251	<xsl:template match="字:文本串_415B">
6252		<xsl:value-of select="."/>
6253	</xsl:template>-->
6254	<xsl:template match="uof:锚点_C644">
6255		<xsl:call-template name="ObjectContent"/>
6256	</xsl:template>
6257	<xsl:template match="字:制表符_415E">
6258		<xsl:element name="text:tab"/>
6259	</xsl:template>
6260	<xsl:template match="字:换行符_415F">
6261		<xsl:element name="text:line-break"/>
6262	</xsl:template>
6263	<xsl:template name="BreakPageOrColumn">
6264		<xsl:param name="styleName"/>
6265		<xsl:variable name="level">
6266			<xsl:choose>
6267				<xsl:when test="./字:段落属性_419B/字:自动编号信息_4186/@编号级别_4188">
6268					<xsl:value-of select="./字:段落属性_419B/字:自动编号信息_4186/@编号级别_4188"/>
6269				</xsl:when>
6270				<xsl:otherwise>
6271					<xsl:variable name="numberlevel">
6272						<xsl:for-each select="key('uof-number-styles',字:段落属性_419B/@式样引用_419C)">
6273							<xsl:value-of select="@级别值_4121"/>
6274						</xsl:for-each>
6275					</xsl:variable>
6276					<xsl:choose>
6277						<xsl:when test="($numberlevel != '') and number($numberlevel) &gt; 0">
6278							<xsl:value-of select="$numberlevel"/>
6279						</xsl:when>
6280						<xsl:otherwise>
6281							<xsl:value-of select="0"/>
6282						</xsl:otherwise>
6283					</xsl:choose>
6284				</xsl:otherwise>
6285			</xsl:choose>
6286		</xsl:variable>
6287		<xsl:variable name="textName">
6288			<xsl:choose>
6289				<xsl:when test="number($level) &gt; 0">text:h</xsl:when>
6290				<xsl:when test="../../字:段落属性_419B/字:大纲级别_417C and ../../字:段落属性_419B/字:大纲级别_417C != '0'">text:h</xsl:when>
6291				<xsl:otherwise>text:p</xsl:otherwise>
6292			</xsl:choose>
6293		</xsl:variable>
6294		<xsl:choose>
6295			<xsl:when test="name(preceding-sibling::*[1]) = '字:句属性_4158' and (preceding-sibling::*[1]/@式样引用_419C or count(preceding-sibling::*[1]/child::*))">
6296				<xsl:text disable-output-escaping="yes">&lt;/text:span&gt;</xsl:text>
6297				<xsl:text disable-output-escaping="yes">&lt;/</xsl:text>
6298				<xsl:value-of select="$textName"/>
6299				<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
6300				<xsl:text disable-output-escaping="yes">&lt;</xsl:text>
6301				<xsl:value-of select="$textName"/>
6302				<xsl:text disable-output-escaping="yes"> </xsl:text>
6303				<xsl:value-of select="$styleName"/>
6304				<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
6305				<xsl:text disable-output-escaping="yes">&lt;text:span&gt;</xsl:text>
6306			</xsl:when>
6307			<xsl:otherwise>
6308				<xsl:text disable-output-escaping="yes">&lt;/</xsl:text>
6309				<xsl:value-of select="$textName"/>
6310				<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
6311				<xsl:text disable-output-escaping="yes">&lt;</xsl:text>
6312				<xsl:value-of select="$textName"/>
6313				<xsl:text disable-output-escaping="yes"> </xsl:text>
6314				<xsl:value-of select="$styleName"/>
6315				<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
6316			</xsl:otherwise>
6317		</xsl:choose>
6318	</xsl:template>
6319	<xsl:template match="字:分栏符_4160">
6320		<xsl:variable name="styleName" select="concat('text:style-name=&quot;',concat('breakcolumn',generate-id(../..)),'&quot;')"/>
6321		<xsl:call-template name="BreakPageOrColumn">
6322			<xsl:with-param name="styleName" select="$styleName"/>
6323		</xsl:call-template>
6324	</xsl:template>
6325	<xsl:template match="字:空格符_4161">
6326		<xsl:element name="text:s">
6327			<xsl:attribute name="text:c"><xsl:value-of select="@个数_4162"/></xsl:attribute>
6328		</xsl:element>
6329	</xsl:template>
6330	<xsl:template match="字:分页符_4163">
6331		<xsl:variable name="styleName" select="concat('text:style-name=&quot;',concat('breakpage',generate-id(../..)),'&quot;')"/>
6332		<xsl:variable name="whetherCreateLastNode">
6333			<xsl:if test="not(following-sibling::*) and not(../following-sibling::*)">
6334				<xsl:if test="name(../../following-sibling::*[1]) = '字:段落_416B' or name(../../following-sibling::*[1]) = '字:文字表_416C'">
6335					<xsl:if test="(name(../../following-sibling::字:句_419D[1]/*[1]) != '字:分页符_4163' and not(../../following-sibling::字:句_419D[1]/字:句属性_4158)) or (../../following-sibling::字:句_419D[1]/字:句属性_4158 and name(../../following-sibling::字:句_419D[1]/*[2]) != '字:分页符_4163')">false</xsl:if>
6336				</xsl:if>
6337			</xsl:if>
6338		</xsl:variable>
6339		<xsl:variable name="whetherCreateFirstNode">
6340			<xsl:if test="not(preceding-sibling::*) or (count(preceding-sibling::*) = 1 and name(preceding-sibling::*[1]) = '字:句属性_4158')">
6341				<xsl:if test="not(../preceding-sibling::*) or (count(../preceding-sibling::*) = 1 and name(../preceding-sibling::*[1]) = '字:段落属性_419B')">
6342					<xsl:if test="name(../../preceding-sibling::*[1]) = '字:段落_416B' or name(../../preceding-sibling::*[1]) = '字:文字表_416C'">false</xsl:if>
6343				</xsl:if>
6344			</xsl:if>
6345		</xsl:variable>
6346		<xsl:choose>
6347			<xsl:when test="$whetherCreateFirstNode = 'false'"/>
6348			<xsl:when test="$whetherCreateLastNode = 'false'"/>
6349			<xsl:otherwise>
6350				<xsl:call-template name="BreakPageOrColumn">
6351					<xsl:with-param name="styleName" select="$styleName"/>
6352				</xsl:call-template>
6353			</xsl:otherwise>
6354		</xsl:choose>
6355	</xsl:template>
6356	<xsl:template match="字:引文符号_4164">
6357
6358	</xsl:template>
6359	<xsl:template name="TextHyperlinkStart">
6360		<xsl:variable name="textastart">
6361			<xsl:value-of select="'&lt;text:a'"/>
6362		</xsl:variable>
6363		<xsl:variable name="linkout">
6364			<xsl:value-of select="'xlink:type=&quot;simple&quot;'"/>
6365		</xsl:variable>
6366		<xsl:variable name="hyperDest" select="@标识符_4100"/>
6367		<xsl:variable name="href1">
6368			<xsl:variable name="bsh" select="key('hyperlink', $hyperDest)/超链:目标_AA01"/>
6369			<xsl:if test="$bsh != ''">
6370				<xsl:analyze-string select="$bsh" regex="=?'?(.*?)'?!\$?([A-Z,a-z]{{1,2}})\$?(\d+)">
6371					<xsl:matching-substring>
6372						<xsl:variable name="apos">&apos;</xsl:variable>
6373						<xsl:value-of select="concat('#', '$', regex-group(1), '.', '$', regex-group(2), '$', regex-group(3))"/>
6374					</xsl:matching-substring>
6375					<xsl:non-matching-substring>
6376						<xsl:choose>
6377							<xsl:when test="contains($bsh,'\')">
6378								<xsl:value-of select="concat('/',translate($bsh,'\','/'))"/>
6379							</xsl:when>
6380							<xsl:otherwise>
6381								<xsl:value-of select="$bsh"/>
6382							</xsl:otherwise>
6383						</xsl:choose>
6384					</xsl:non-matching-substring>
6385				</xsl:analyze-string>
6386			</xsl:if>
6387		</xsl:variable>
6388		<xsl:variable name="href2" select="concat('#', key('hyperlink', $hyperDest)/超链:书签_AA0D)"/>
6389		<xsl:variable name="href">
6390			<xsl:choose>
6391				<xsl:when test="not($href2='#')">
6392					<xsl:value-of select="$href2"/>
6393				</xsl:when>
6394				<xsl:otherwise>
6395					<xsl:value-of select="$href1"/>
6396				</xsl:otherwise>
6397			</xsl:choose>
6398		</xsl:variable>
6399		<xsl:variable name="hrefout">
6400			<xsl:value-of select="concat('xlink:href=&quot;', $href, '&quot;')"/>
6401		</xsl:variable>
6402		<xsl:variable name="visited">
6403			<xsl:value-of select="key('hyperlink', $hyperDest)/超链:式样_AA02/@已访问式样引用_AA04"/>
6404		</xsl:variable>
6405		<xsl:variable name="stylename">
6406			<xsl:value-of select="key('hyperlink', $hyperDest)/超链:式样_AA02/@未访问式样引用_AA03"/>
6407		</xsl:variable>
6408		<xsl:variable name="visitedout">
6409			<xsl:value-of select="concat('text:style-name=&quot;', $stylename, '&quot;')"/>
6410		</xsl:variable>
6411		<xsl:variable name="stylenameout">
6412			<xsl:value-of select="concat('text:visited-style-name=&quot;', $visited, '&quot;')"/>
6413		</xsl:variable>
6414		<xsl:value-of disable-output-escaping="yes" select="concat($textastart, ' ', $linkout, ' ', $hrefout, ' ', $stylenameout, ' ', $visitedout, '&gt;')"/>
6415	</xsl:template>
6416	<xsl:template match="字:区域开始_4165">
6417		<xsl:choose>
6418			<xsl:when test="@类型_413B='hyperlink'">
6419				<xsl:variable name="biaoshi">
6420					<xsl:value-of select="@标识符_4100"/>
6421				</xsl:variable>
6422				<xsl:if test="following::*[name(.)='字:区域结束_4167'][@标识符引用_4168=$biaoshi]">
6423					<xsl:call-template name="TextHyperlinkStart"/>
6424				</xsl:if>
6425			</xsl:when>
6426			<xsl:when test="@类型_413B='bookmark'">
6427				<xsl:variable name="biaoshi">
6428					<xsl:value-of select="@标识符_4100"/>
6429				</xsl:variable>
6430				<xsl:choose>
6431					<xsl:when test="following-sibling::*[1][name(.)='字:区域结束_4167'][@标识符引用_4168=$biaoshi]">
6432						<xsl:element name="text:bookmark">
6433							<xsl:choose>
6434								<xsl:when test="not(@名称_4166)">
6435									<xsl:attribute name="text:name"><xsl:value-of select="/uof:UOF_0000/书签:书签集_9104/书签:书签_9105[书签:区域_9100/@区域引用_41CE=$biaoshi]/@名称_9103"/></xsl:attribute>
6436								</xsl:when>
6437								<xsl:otherwise>
6438									<xsl:attribute name="text:name"><xsl:value-of select="@名称_4166"/></xsl:attribute>
6439								</xsl:otherwise>
6440							</xsl:choose>
6441						</xsl:element>
6442					</xsl:when>
6443					<xsl:otherwise>
6444						<xsl:element name="text:bookmark-start">
6445							<xsl:choose>
6446								<xsl:when test="not(@名称_4166)">
6447									<xsl:attribute name="text:name"><xsl:value-of select="/uof:UOF_0000/书签:书签集_9104/书签:书签_9105[书签:区域_9100/@区域引用_41CE=$biaoshi]/@名称_9103"/></xsl:attribute>
6448								</xsl:when>
6449								<xsl:otherwise>
6450									<xsl:attribute name="text:name"><xsl:value-of select="@名称_4166"/></xsl:attribute>
6451								</xsl:otherwise>
6452							</xsl:choose>
6453						</xsl:element>
6454					</xsl:otherwise>
6455				</xsl:choose>
6456			</xsl:when>
6457			<xsl:when test="@类型_413B='annotation'">
6458				<xsl:element name="office:annotation">
6459					<xsl:variable name="AnnoDest" select="@标识符_4100"/>
6460					<xsl:for-each select="/uof:UOF_0000/规则:公用处理规则_B665/规则:批注集_B669/规则:批注_B66A[@区域引用_41CE=$AnnoDest]">
6461						<xsl:variable name="name" select="@作者_41DD"/>
6462						<dc:creator>
6463							<xsl:choose>
6464								<xsl:when test="/uof:UOF_0000/规则:公用处理规则_B665/规则:用户集_B667">
6465									<xsl:value-of select="/uof:UOF_0000/规则:公用处理规则_B665/规则:用户集_B667/规则:用户_B668[@标识符_4100=$name]/@姓名_41DC"/>
6466								</xsl:when>
6467								<xsl:otherwise>
6468									<xsl:value-of select="$name"/>
6469								</xsl:otherwise>
6470							</xsl:choose>
6471						</dc:creator>
6472						<xsl:if test="@作者缩写_41DF">
6473							<xsl:element name="dc:creator-initials">
6474								<xsl:value-of select="@作者缩写_41DF"/>
6475							</xsl:element>
6476						</xsl:if>
6477						<dc:date>
6478							<xsl:value-of select="@日期_41DE"/>
6479						</dc:date>
6480						<xsl:for-each select="*">
6481							<xsl:apply-templates select="."/>
6482						</xsl:for-each>
6483					</xsl:for-each>
6484				</xsl:element>
6485			</xsl:when>
6486			<xsl:when test="@类型_413B='user-data'">
6487				<xsl:variable name="fileName" select="/uof:UOF_0000/数据:用户数据集_6300/数据:用户数据_6301/数据:关系_6302[uof:UOF_0000/@uof:用户数据引用 = current()/@标识符_4100]/@名称_630D"/>
6488				<xsl:element name="office:annotation">
6489					<xsl:element name="dc:creator">__@*Start@#100001#1#0#0#0#0#0#0#16776960#</xsl:element>
6490					<xsl:element name="text:p">
6491						<xsl:value-of select="$fileName"/>
6492					</xsl:element>
6493				</xsl:element>
6494			</xsl:when>
6495		</xsl:choose>
6496	</xsl:template>
6497	<xsl:template match="字:区域结束_4167">
6498		<xsl:variable name="startmark" select="@标识符引用_4168"/>
6499		<xsl:for-each select="preceding::*[name(.)='字:区域开始_4165'][@标识符_4100=$startmark]">
6500			<xsl:choose>
6501				<xsl:when test="@类型_413B='hyperlink'">
6502					<xsl:text disable-output-escaping="yes">&lt;/text:a&gt;</xsl:text>
6503				</xsl:when>
6504				<xsl:when test="@类型_413B='bookmark'">
6505					<xsl:choose>
6506						<xsl:when test="following-sibling::*[1][name(.)='字:区域结束_4167'][@标识符引用_4168=$startmark]">
6507						</xsl:when>
6508						<xsl:otherwise>
6509							<xsl:element name="text:bookmark-end">
6510								<xsl:attribute name="text:name"><xsl:value-of select="/uof:UOF_0000/书签:书签集_9104/书签:书签_9105[书签:区域_9100/@区域引用_41CE=$startmark]/@名称_9103"/></xsl:attribute>
6511							</xsl:element>
6512						</xsl:otherwise>
6513					</xsl:choose>
6514				</xsl:when>
6515				<xsl:when test="@类型_413B='annotation'">
6516					<xsl:choose>
6517						<xsl:when test="@标识符_4100=$startmark">
6518						</xsl:when>
6519						<xsl:otherwise>
6520							<xsl:element name="office:annotation_end">
6521								<xsl:attribute name="office:name"><xsl:value-of select="$startmark"/></xsl:attribute>
6522							</xsl:element>
6523						</xsl:otherwise>
6524					</xsl:choose>
6525				</xsl:when>
6526				<xsl:when test="@类型_413B='user-data'">
6527					<xsl:variable name="fileName" select="/uof:UOF_0000/数据:用户数据集_6300/数据:用户数据_6301/数据:关系_6302[uof:UOF_0000/@uof:用户数据引用 = current()/@标识符引用_4168]/@名称_630D"/>
6528					<xsl:element name="office:annotation">
6529						<xsl:element name="dc:creator">__@*End@#100002#0#0#0#0#0#0#0#16776960#</xsl:element>
6530						<xsl:element name="text:p">
6531							<xsl:value-of select="$fileName"/>
6532						</xsl:element>
6533					</xsl:element>
6534				</xsl:when>
6535			</xsl:choose>
6536		</xsl:for-each>
6537	</xsl:template>
6538	<xsl:template match="字:修订开始_421F">
6539		<xsl:choose>
6540			<xsl:when test="@标识符_4220">
6541				<text:change-start text:change-id="{@标识符_4220}"/>
6542			</xsl:when>
6543			<xsl:otherwise>
6544				<text:change-start text:change-id="{@修订信息引用_4222}"/>
6545			</xsl:otherwise>
6546		</xsl:choose>
6547	</xsl:template>
6548	<xsl:template match="字:修订结束_4223">
6549		<text:change-end>
6550			<xsl:attribute name="text:change-id"><xsl:value-of select="@开始标识引用_4224"/></xsl:attribute>
6551		</text:change-end>
6552	</xsl:template>
6553	<xsl:template name="SentenceContent">
6554		<xsl:variable name="nCount">
6555			<xsl:value-of select="count(./字:区域开始_4165[@类型_413B='hyperlink'])"/>
6556		</xsl:variable>
6557		<xsl:variable name="HyperStart">
6558			<xsl:value-of select="./字:区域开始_4165[@类型_413B='hyperlink']"/>
6559		</xsl:variable>
6560		<xsl:variable name="HyperEnd">
6561			<xsl:value-of select="./字:区域结束_4167[@类型_413B='hyperlink']"/>
6562		</xsl:variable>
6563		<xsl:variable name="startmark" select="@标识符引用_4168"/>
6564		<xsl:for-each select="*">
6565			<xsl:choose>
6566				<xsl:when test="name(.)='字:脚注_4159'">
6567					<xsl:apply-templates select="."/>
6568				</xsl:when>
6569				<xsl:when test="name(.)='字:尾注_415A'">
6570					<xsl:apply-templates select="."/>
6571				</xsl:when>
6572				<xsl:when test="name(.)='字:文本串_415B'">
6573					<xsl:apply-templates select="."/>
6574				</xsl:when>
6575				<xsl:when test="name(.)='uof:锚点_C644'">
6576					<xsl:apply-templates select="."/>
6577				</xsl:when>
6578				<xsl:when test="name(.)='字:制表符_415E'">
6579					<xsl:apply-templates select="."/>
6580				</xsl:when>
6581				<xsl:when test="name(.)='字:换行符_415F'">
6582					<xsl:apply-templates select="."/>
6583				</xsl:when>
6584				<xsl:when test="name(.)='字:分栏符_4160'">
6585					<xsl:apply-templates select="."/>
6586				</xsl:when>
6587				<xsl:when test="name(.)='字:空格符_4161'">
6588					<xsl:apply-templates select="."/>
6589				</xsl:when>
6590				<xsl:when test="name(.)='字:分页符_4163'">
6591					<xsl:apply-templates select="."/>
6592				</xsl:when>
6593				<xsl:when test="name(.)='字:引文符号'">
6594					<xsl:apply-templates select="."/>
6595				</xsl:when>
6596				<xsl:when test="name(.)='字:区域开始_4165'">
6597					<xsl:apply-templates select="."/>
6598				</xsl:when>
6599				<xsl:when test="name(.)='字:区域结束_4167'">
6600					<xsl:apply-templates select="."/>
6601				</xsl:when>
6602				<xsl:when test="name(.)='字:修订开始_421F'">
6603					<xsl:apply-templates select="."/>
6604				</xsl:when>
6605				<xsl:when test="name(.)='字:修订结束_4223'">
6606					<xsl:apply-templates select="."/>
6607				</xsl:when>
6608			</xsl:choose>
6609		</xsl:for-each>
6610	</xsl:template>
6611	<xsl:template match="字:句_419D">
6612		<xsl:choose>
6613			<xsl:when test="字:句属性_4158 and (字:句属性_4158/@式样引用_417B or count(./字:句属性_4158/child::*))">
6614				<xsl:element name="text:span">
6615					<xsl:choose>
6616						<xsl:when test="count(./字:句属性_4158/child::*)">
6617							<xsl:attribute name="text:style-name"><xsl:value-of select="generate-id(字:句属性_4158)"/></xsl:attribute>
6618						</xsl:when>
6619						<xsl:when test="字:句属性_4158/@式样引用_417B!=''">
6620							<xsl:variable name="textstylename">
6621								<xsl:variable name="textstyleref" select="字:句属性_4158/@式样引用_417B"/>
6622								<xsl:choose>
6623									<xsl:when test="/uof:UOF_0000/式样:式样集_990B/式样:句式样集_990F/式样:句式样_9910[@标识符_4100=$textstyleref]">
6624										<xsl:value-of select="$textstyleref"/>
6625									</xsl:when>
6626									<xsl:otherwise>
6627										<xsl:value-of select="generate-id(字:句属性_4158)"/>
6628									</xsl:otherwise>
6629								</xsl:choose>
6630							</xsl:variable>
6631							<xsl:attribute name="text:style-name"><xsl:value-of select="$textstylename"/></xsl:attribute>
6632						</xsl:when>
6633					</xsl:choose>
6634					<xsl:call-template name="SentenceContent"/>
6635				</xsl:element>
6636			</xsl:when>
6637			<xsl:otherwise>
6638				<xsl:call-template name="SentenceContent"/>
6639			</xsl:otherwise>
6640		</xsl:choose>
6641	</xsl:template>
6642	<xsl:template name="ParaContent">
6643		<xsl:variable name="SpecialSection">
6644			<xsl:variable name="SectPos">
6645				<xsl:choose>
6646					<xsl:when test="preceding-sibling::*[1][name(.) = '字:分节_416A'] and preceding-sibling::*[1]/字:节属性_421B/字:节类型_41EA != 'continuous'">
6647						<!--xsl:call-template name="IsPrecedeType">
6648							<xsl:with-param name="nodename" select="'字:分节'"/>
6649							<xsl:with-param name="pos" select="0"/>
6650						</xsl:call-template-->
6651						<xsl:value-of select="1"/>
6652					</xsl:when>
6653					<xsl:otherwise>
6654						<xsl:value-of select="0"/>
6655					</xsl:otherwise>
6656				</xsl:choose>
6657			</xsl:variable>
6658			<xsl:choose>
6659				<xsl:when test="number($SectPos) &gt; 0">
6660					<!--<xsl:when test="preceding-sibling::node()[1][name()='字:分节']">-->
6661					<xsl:for-each select="preceding-sibling::*[position()=$SectPos]">
6662						<xsl:choose>
6663							<xsl:when test="字:节属性_421B/字:是否首页页眉页脚不同_41EE='true'">
6664								<xsl:value-of select="generate-id(字:节属性_421B/字:是否首页页眉页脚不同_41EE)"/>
6665							</xsl:when>
6666							<xsl:when test="字:节属性_421B/@字:首页显示 = 'false'">
6667								<xsl:value-of select="generate-id(字:节属性_421B/字:页码设置_4205)"/>
6668							</xsl:when>
6669							<xsl:otherwise>
6670								<xsl:choose>
6671									<xsl:when test="@名称_4166='RoStandard'">
6672										<xsl:value-of select="string('none')"/>
6673									</xsl:when>
6674									<xsl:otherwise>
6675										<xsl:value-of select="generate-id(.)"/>
6676									</xsl:otherwise>
6677								</xsl:choose>
6678							</xsl:otherwise>
6679						</xsl:choose>
6680					</xsl:for-each>
6681				</xsl:when>
6682				<xsl:otherwise>
6683					<xsl:value-of select="string('none')"/>
6684				</xsl:otherwise>
6685			</xsl:choose>
6686		</xsl:variable>
6687		<xsl:variable name="stylename">
6688			<xsl:variable name="breakPageForLastNode">
6689				<xsl:if test="name(preceding-sibling::*[1]/字:句_419D[last()]/*[last()]) = '字:分页符_4163'">
6690					<xsl:if test="not(name(./字:句_419D[1]/*[1]) = '字:句属性_4158' and name(./字:句_419D[1]/*[2]) = '字:分页符_4163' and name(./字:句_419D[1]/*[last()]) = '字:分页符_4163') and name(./字:句_419D[1]/*[1]) != '字:分页符_4163'">page</xsl:if>
6691				</xsl:if>
6692			</xsl:variable>
6693			<xsl:variable name="breakPageForFirstNode">
6694				<xsl:if test="(name(./字:句_419D[1]/*[1]) = '字:句属性_4158' and name(./字:句_419D[1]/*[2]) = '字:分页符_4163') or name(./字:句_419D[1]/*[1]) = '字:分页符_4163'">
6695					<xsl:if test=" (name(./字:句_419D[1]/*[last()]) = '字:分页符_4163' and count(./字:句_419D) &gt; 1) or name(./字:句_419D[1]/*[last()]) != '字:分页符_4163'">
6696						<xsl:if test="name(preceding-sibling::*[1]) = '字:段落_416B' or name(preceding-sibling::*[1]) = '字:文字表_416C'">page</xsl:if>
6697					</xsl:if>
6698				</xsl:if>
6699			</xsl:variable>
6700			<xsl:choose>
6701				<xsl:when test="$breakPageForFirstNode = 'page' or $breakPageForLastNode = 'page'">
6702					<xsl:value-of select="concat('breakpage',generate-id(.))"/>
6703				</xsl:when>
6704				<xsl:when test="($SpecialSection != 'none')">
6705					<xsl:value-of select="generate-id(.)"/>
6706				</xsl:when>
6707				<xsl:when test="(count(./字:段落属性_419B/child::*) = 1) and not(./字:段落属性_419B/字:自动编号信息_4186)">
6708					<xsl:value-of select="generate-id(.)"/>
6709				</xsl:when>
6710				<xsl:when test="count(./字:段落属性_419B/child::*) &gt; 1">
6711					<xsl:value-of select="generate-id(.)"/>
6712				</xsl:when>
6713				<xsl:when test="ancestor::*[name() = '图:文本_803C']/图:文字排列方向_8042='r2l-t2b-90e-90w' or ancestor::*[name() = '图:文本_803C']/图:文字排列方向_8042='t2b-r2l-0e-0w' or ancestor::*[name() = '图:文本_803C']/图:文字排列方向_8042='r2l-t2b-0e-90w'">
6714					<xsl:value-of select="generate-id(.)"/>
6715				</xsl:when>
6716				<xsl:otherwise>
6717					<xsl:choose>
6718						<xsl:when test="./字:段落属性_419B/@式样引用_419C">
6719							<xsl:value-of select="./字:段落属性_419B/@式样引用_419C"/>
6720						</xsl:when>
6721						<xsl:otherwise>
6722							<xsl:value-of select="none"/>
6723						</xsl:otherwise>
6724					</xsl:choose>
6725				</xsl:otherwise>
6726			</xsl:choose>
6727		</xsl:variable>
6728		<xsl:if test="$stylename != 'none'">
6729			<xsl:attribute name="text:style-name"><xsl:value-of select="$stylename"/></xsl:attribute>
6730		</xsl:if>
6731		<xsl:if test="字:段落属性_419B/字:大纲级别_417C and 字:段落属性_419B/字:大纲级别_417C != '0'">
6732			<xsl:attribute name="text:outline-level"><xsl:value-of select="字:段落属性_419B/字:大纲级别_417C"/></xsl:attribute>
6733		</xsl:if>
6734		<xsl:for-each select="*">
6735			<xsl:choose>
6736				<xsl:when test="name(.)='字:句_419D'">
6737					<!-- uot目录域 -->
6738					<xsl:if test="not(preceding-sibling::*[1][name(.)='字:域代码_419F'] and not(preceding-sibling::*[2][@类型_416E='toc']))">
6739						<xsl:apply-templates select="."/>
6740					</xsl:if>
6741				</xsl:when>
6742				<xsl:when test="name(.)='字:域开始_419E'">
6743					<xsl:apply-templates select="."/>
6744				</xsl:when>
6745				<!--
6746					<xsl:when test="self::node()[name(.)='字:域代码']">
6747						<xsl:apply-templates select="."/>
6748					</xsl:when>
6749					<xsl:when test="self::node()[name(.)='字:域结束_419F']">
6750						<xsl:apply-templates select="."/>
6751					</xsl:when>-->
6752				<xsl:when test="name(.)='字:修订开始_421F'">
6753					<xsl:apply-templates select="."/>
6754				</xsl:when>
6755				<xsl:when test="name(.)='字:修订结束_4223'">
6756					<xsl:apply-templates select="."/>
6757				</xsl:when>
6758			</xsl:choose>
6759		</xsl:for-each>
6760	</xsl:template>
6761	<xsl:template match="字:句_419D" mode="IsEmpty">
6762		<xsl:variable name="IsCurEmpty">
6763			<xsl:variable name="nCountChild" select="count(*)"/>
6764			<xsl:choose>
6765				<xsl:when test="$nCountChild = 0">
6766					<xsl:value-of select="'true'"/>
6767				</xsl:when>
6768				<xsl:when test="($nCountChild = 1) and (字:句属性_4158 != '')">
6769					<xsl:value-of select="'true'"/>
6770				</xsl:when>
6771				<xsl:otherwise>
6772					<xsl:value-of select="'false'"/>
6773				</xsl:otherwise>
6774			</xsl:choose>
6775		</xsl:variable>
6776		<xsl:if test="$IsCurEmpty = 'true'">
6777			<xsl:choose>
6778				<xsl:when test="following-sibling::字:句_419D">
6779					<xsl:apply-templates select="following-sibling::字:句_419D[1]" mode="IsEmpty"/>
6780				</xsl:when>
6781				<xsl:otherwise>
6782					<xsl:value-of select="'true'"/>
6783				</xsl:otherwise>
6784			</xsl:choose>
6785		</xsl:if>
6786	</xsl:template>
6787	<xsl:template name="ParaElement">
6788		<xsl:param name="textName"/>
6789		<xsl:variable name="IsEmpty">
6790			<xsl:if test="$document_type='presentation'">
6791				<xsl:variable name="nCount1" select="count(字:域开始_419E)"/>
6792				<xsl:variable name="nCount2" select="count(域代码_419F)"/>
6793				<xsl:variable name="nCount3" select="count(字:域结束_419F)"/>
6794				<xsl:variable name="nCount4" select="count(字:修订开始_421F)"/>
6795				<xsl:variable name="nCount5" select="count(字:修订结束_4223)"/>
6796				<xsl:if test="($nCount1 = 0) and ($nCount2 = 0) and ($nCount3 = 0) and ($nCount4 = 0) and ($nCount5 = 0)">
6797					<xsl:choose>
6798						<xsl:when test="count(字:句_419D) = 0">
6799							<xsl:value-of select="'true'"/>
6800						</xsl:when>
6801						<!-- alert staring
6802                        <xsl:otherwise>
6803							<xsl:apply-templates select="字:句_419D[1]" mode="IsEmpty"/>
6804						</xsl:otherwise>
6805                         -->
6806						<xsl:otherwise>
6807							<xsl:value-of select="'false'"/>
6808						</xsl:otherwise>
6809						<!-- alert ending. -->
6810					</xsl:choose>
6811				</xsl:if>
6812			</xsl:if>
6813		</xsl:variable>
6814		<xsl:if test="$IsEmpty != 'true'">
6815			<xsl:choose>
6816				<xsl:when test="字:域开始_419E[@类型_416E='REF'] or 字:域开始_419E[@类型_416E='section'] or 字:域开始_419E[@类型_416E='INDEX'] or 字:域开始_419E[@类型_416E='pageinsection']">
6817					<xsl:apply-templates select="字:域开始_419E"/>
6818				</xsl:when>
6819				<xsl:otherwise>
6820					<xsl:element name="{$textName}">
6821						<xsl:if test="@标识符_4220">
6822							<xsl:attribute name="text:id"><xsl:value-of select="@标识符_4220"/></xsl:attribute>
6823						</xsl:if>
6824						<xsl:if test="@标识符_4169">
6825							<xsl:attribute name="text:id"><xsl:value-of select="@标识符_4169"/></xsl:attribute>
6826						</xsl:if>
6827						<xsl:call-template name="ParaContent"/>
6828					</xsl:element>
6829				</xsl:otherwise>
6830			</xsl:choose>
6831		</xsl:if>
6832	</xsl:template>
6833	<xsl:template name="ListContent">
6834		<xsl:param name="level"/>
6835		<xsl:param name="stylename"/>
6836		<xsl:param name="parastyle"/>
6837		<xsl:param name="continue-numbering"/>
6838		<xsl:element name="text:list">
6839			<xsl:if test="$stylename != ''">
6840				<xsl:attribute name="text:style-name"><xsl:value-of select="$stylename"/></xsl:attribute>
6841			</xsl:if>
6842			<xsl:if test="$continue-numbering != ''">
6843				<xsl:attribute name="text:continue-numbering"><xsl:value-of select="$continue-numbering"/></xsl:attribute>
6844			</xsl:if>
6845			<xsl:choose>
6846				<xsl:when test="number($level) = 0">
6847					<xsl:element name="text:list-header">
6848						<xsl:call-template name="ParaElement">
6849							<xsl:with-param name="textName" select="'text:p'"/>
6850						</xsl:call-template>
6851					</xsl:element>
6852				</xsl:when>
6853				<xsl:when test="number($level) = 1">
6854					<xsl:element name="text:list-item">
6855						<xsl:call-template name="ParaElement">
6856							<xsl:with-param name="textName" select="'text:p'"/>
6857						</xsl:call-template>
6858					</xsl:element>
6859				</xsl:when>
6860				<xsl:otherwise>
6861					<xsl:element name="text:list-item">
6862						<xsl:call-template name="ListContent">
6863							<xsl:with-param name="level" select="$level - 1"/>
6864						</xsl:call-template>
6865					</xsl:element>
6866				</xsl:otherwise>
6867			</xsl:choose>
6868		</xsl:element>
6869	</xsl:template>
6870	<xsl:template name="LevelInNumber">
6871		<xsl:param name="parastyle"/>
6872		<xsl:choose>
6873			<xsl:when test="./字:段落属性_419B/字:自动编号信息_4186/@编号级别_4188">
6874				<xsl:value-of select="./字:段落属性_419B/字:自动编号信息_4186/@编号级别_4188"/>
6875			</xsl:when>
6876			<xsl:otherwise>
6877				<xsl:variable name="numberlevel">
6878					<xsl:for-each select="key('uof-number-styles',字:段落属性_419B/@式样引用_419C)">
6879						<xsl:value-of select="@级别值_4121"/>
6880					</xsl:for-each>
6881				</xsl:variable>
6882				<xsl:choose>
6883					<!--<xsl:when test="not($numberlevel) and $numberlevel &gt; 0">-->
6884					<xsl:when test="($numberlevel != '') and number($numberlevel) &gt; 0">
6885						<xsl:value-of select="$numberlevel"/>
6886					</xsl:when>
6887					<xsl:when test="$parastyle/字:自动编号信息_4186/@编号级别_4188">
6888						<xsl:value-of select="$parastyle/字:自动编号信息_4186/@编号级别_4188"/>
6889					</xsl:when>
6890					<xsl:otherwise>
6891						<xsl:value-of select="0"/>
6892					</xsl:otherwise>
6893				</xsl:choose>
6894			</xsl:otherwise>
6895		</xsl:choose>
6896	</xsl:template>
6897	<xsl:template name="LevelInOutline">
6898		<xsl:param name="parastyle"/>
6899		<xsl:choose>
6900			<xsl:when test="$parastyle">
6901				<xsl:choose>
6902					<xsl:when test="$parastyle/字:大纲级别_417C">
6903						<xsl:value-of select="$parastyle/字:大纲级别_417C"/>
6904					</xsl:when>
6905					<xsl:otherwise>
6906						<xsl:variable name="parentparastyle" select="key('uof-paragraph-styles',$parastyle/@基式样引用_4104)"/>
6907						<xsl:call-template name="LevelInOutline">
6908							<xsl:with-param name="parastyle" select="$parentparastyle"/>
6909						</xsl:call-template>
6910					</xsl:otherwise>
6911				</xsl:choose>
6912			</xsl:when>
6913			<!--各级段落式样中均未存大纲级别-->
6914			<xsl:otherwise>'F'</xsl:otherwise>
6915		</xsl:choose>
6916	</xsl:template>
6917	<xsl:template match="字:段落_416B">
6918		<xsl:variable name="keyStyleName" select="字:段落属性_419B/@式样引用_419C"/>
6919		<xsl:variable name="parastyle" select="key('uof-paragraph-styles',$keyStyleName)"/>
6920		<xsl:variable name="level">
6921			<xsl:choose>
6922				<xsl:when test="$document_type = 'presentation'">
6923					<xsl:variable name="graphid" select="ancestor::图:图形_8062/@标识符_804B"/>
6924					<xsl:choose>
6925						<xsl:when test="key('rel_graphic_name',$graphid)/uof:占位符_C626/@类型_C627='outline'">
6926							<xsl:variable name="outlinelevel">
6927								<xsl:choose>
6928									<xsl:when test="./字:段落属性_419B/字:大纲级别_417C">
6929										<xsl:value-of select="./字:段落属性_419B/字:大纲级别_417C"/>
6930									</xsl:when>
6931									<xsl:otherwise>
6932										<xsl:call-template name="LevelInOutline">
6933											<xsl:with-param name="parastyle" select="$parastyle"/>
6934										</xsl:call-template>
6935									</xsl:otherwise>
6936								</xsl:choose>
6937							</xsl:variable>
6938							<xsl:choose>
6939								<xsl:when test="$outlinelevel='F'">
6940									<xsl:call-template name="LevelInNumber">
6941										<xsl:with-param name="parastyle" select="$parastyle"/>
6942									</xsl:call-template>
6943								</xsl:when>
6944								<xsl:otherwise>
6945									<xsl:value-of select="$outlinelevel"/>
6946								</xsl:otherwise>
6947							</xsl:choose>
6948						</xsl:when>
6949						<xsl:otherwise>
6950							<xsl:call-template name="LevelInNumber">
6951								<xsl:with-param name="parastyle" select="$parastyle"/>
6952							</xsl:call-template>
6953						</xsl:otherwise>
6954					</xsl:choose>
6955				</xsl:when>
6956				<xsl:otherwise>
6957					<xsl:call-template name="LevelInNumber">
6958						<xsl:with-param name="parastyle" select="$parastyle"/>
6959					</xsl:call-template>
6960				</xsl:otherwise>
6961			</xsl:choose>
6962		</xsl:variable>
6963		<xsl:variable name="stylename">
6964			<xsl:choose>
6965				<xsl:when test="number($level) &gt; 0">
6966					<xsl:choose>
6967						<xsl:when test="./字:段落属性_419B/字:自动编号信息_4186/@编号引用_4187">
6968							<xsl:value-of select="字:段落属性_419B/字:自动编号信息_4186/@编号引用_4187"/>
6969						</xsl:when>
6970						<xsl:when test="$parastyle/字:自动编号信息_4186/@编号引用_4187">
6971							<xsl:value-of select="$parastyle/字:自动编号信息_4186/@编号引用_4187"/>
6972						</xsl:when>
6973						<xsl:otherwise>
6974							<xsl:for-each select="key('uof-number-styles',字:段落属性_419B/@式样引用_419C)">
6975								<xsl:value-of select="../@标识符_4100"/>
6976							</xsl:for-each>
6977						</xsl:otherwise>
6978					</xsl:choose>
6979				</xsl:when>
6980			</xsl:choose>
6981		</xsl:variable>
6982		<xsl:variable name="continue-numbering">
6983			<xsl:choose>
6984				<xsl:when test="字:段落属性_419B/字:自动编号信息_4186/@是否重新编号_4189='true'">false</xsl:when>
6985				<xsl:when test="$parastyle/字:自动编号信息_4186/@是否重新编号_4189='true'">false</xsl:when>
6986				<xsl:otherwise>true</xsl:otherwise>
6987			</xsl:choose>
6988		</xsl:variable>
6989		<xsl:choose>
6990			<xsl:when test="number($level) &gt; 0 and not(./字:段落属性_419B/字:自动编号信息_4186/@编号引用_4187='HeadOutline')">
6991				<xsl:call-template name="ListContent">
6992					<xsl:with-param name="level" select="$level"/>
6993					<xsl:with-param name="stylename" select="$stylename"/>
6994					<xsl:with-param name="continue-numbering" select="$continue-numbering"/>
6995				</xsl:call-template>
6996			</xsl:when>
6997			<xsl:otherwise>
6998				<xsl:variable name="textName">
6999					<xsl:choose>
7000						<!-- 图形中的段落对应到odf中均为text:p -->
7001						<xsl:when test="name(../..)='图:文本_803C'">text:p</xsl:when>
7002						<xsl:when test="number($level) &gt; 0">text:h</xsl:when>
7003						<xsl:when test="字:段落属性_419B/字:大纲级别_417C and 字:段落属性_419B/字:大纲级别_417C != '0'">text:h</xsl:when>
7004						<xsl:otherwise>text:p</xsl:otherwise>
7005					</xsl:choose>
7006				</xsl:variable>
7007				<xsl:call-template name="ParaElement">
7008					<xsl:with-param name="textName" select="$textName"/>
7009				</xsl:call-template>
7010			</xsl:otherwise>
7011		</xsl:choose>
7012	</xsl:template>
7013	<xsl:template match="字:单元格属性_41B7">
7014		<xsl:if test="字:跨列_41A7">
7015			<xsl:attribute name="table:number-columns-spanned"><xsl:value-of select="字:跨列_41A7"/></xsl:attribute>
7016		</xsl:if>
7017		<xsl:if test="字:跨行_41A6">
7018			<xsl:attribute name="table:number-rows-spanned"><xsl:value-of select="字:跨行_41A6"/></xsl:attribute>
7019		</xsl:if>
7020	</xsl:template>
7021	<xsl:template match="字:单元格_41BE">
7022		<xsl:element name="table:table-cell">
7023			<xsl:attribute name="table:style-name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
7024			<xsl:for-each select="*">
7025				<xsl:choose>
7026					<xsl:when test="name( )='字:单元格属性_41B7'">
7027						<xsl:apply-templates select="."/>
7028					</xsl:when>
7029					<xsl:when test="name( )='字:段落_416B'">
7030						<xsl:apply-templates select="."/>
7031					</xsl:when>
7032					<xsl:when test="name( )='字:文字表_416C'">
7033						<xsl:apply-templates select="."/>
7034					</xsl:when>
7035					<xsl:otherwise>
7036
7037					</xsl:otherwise>
7038				</xsl:choose>
7039			</xsl:for-each>
7040		</xsl:element>
7041	</xsl:template>
7042	<xsl:template match="字:文字表属性_41CC">
7043		<xsl:variable name="newstyle">
7044			<xsl:variable name="nChildCount" select="count(./child::*)"/>
7045			<xsl:choose>
7046				<xsl:when test="$nChildCount = 0">
7047					<xsl:value-of select="0"/>
7048				</xsl:when>
7049				<!--
7050				<xsl:when test="$nChildCount = 1">
7051					<xsl:choose>
7052						<xsl:when test="node()[1][name(.)='字:列宽集']">
7053							<xsl:value-of select="0"/>
7054						</xsl:when>
7055						<xsl:otherwise>
7056							<xsl:value-of select="1"/>
7057						</xsl:otherwise>
7058					</xsl:choose>
7059				</xsl:when>-->
7060				<xsl:otherwise>
7061					<xsl:value-of select="1"/>
7062				</xsl:otherwise>
7063			</xsl:choose>
7064		</xsl:variable>
7065		<xsl:choose>
7066			<xsl:when test="($newstyle = 1)">
7067				<xsl:attribute name="table:style-name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
7068			</xsl:when>
7069			<xsl:otherwise>
7070				<xsl:attribute name="table:style-name"><xsl:value-of select="@式样引用_419C"/></xsl:attribute>
7071			</xsl:otherwise>
7072		</xsl:choose>
7073		<!--
7074		<xsl:for-each select="字:列宽集/字:列宽">
7075			<xsl:element name="table:table-column">
7076				<xsl:attribute name="table:style-name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
7077			</xsl:element>
7078		</xsl:for-each>	-->
7079		<xsl:variable name="curStyle">
7080			<xsl:if test="@式样引用_419C">
7081				<xsl:value-of select="key('uof-table-styles',@式样引用_419C)"/>
7082			</xsl:if>
7083		</xsl:variable>
7084		<xsl:choose>
7085			<xsl:when test="字:列宽集_41C1/字:列宽_41C2">
7086				<xsl:for-each select="字:列宽集_41C1/字:列宽_41C2">
7087					<xsl:element name="table:table-column">
7088						<xsl:attribute name="table:style-name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
7089					</xsl:element>
7090				</xsl:for-each>
7091			</xsl:when>
7092			<xsl:otherwise>
7093				<xsl:choose>
7094					<xsl:when test="$curStyle/字:列宽集_41C1/字:列宽_41C2">
7095						<xsl:for-each select="$curStyle/字:列宽集_41C1/字:列宽_41C2">
7096							<xsl:element name="table:table-column">
7097								<xsl:attribute name="table:style-name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
7098							</xsl:element>
7099						</xsl:for-each>
7100					</xsl:when>
7101					<xsl:otherwise>
7102						<xsl:for-each select="../字:行_41CD[1]/字:单元格_41BE">
7103							<xsl:element name="table:table-column">
7104								<xsl:attribute name="table:style-name"><xsl:value-of select="generate-id(字:单元格属性_41B7/字:宽度_41A1)"/></xsl:attribute>
7105							</xsl:element>
7106						</xsl:for-each>
7107					</xsl:otherwise>
7108				</xsl:choose>
7109			</xsl:otherwise>
7110		</xsl:choose>
7111	</xsl:template>
7112	<xsl:template match="字:行_41CD">
7113		<xsl:choose>
7114			<xsl:when test="字:表行属性_41BD/字:是否表头行_41BC='true' or 字:表行属性_41BD/字:是否表头行_41BC='1'">
7115				<xsl:text disable-output-escaping="yes">&lt;table:table-header-rows&gt;</xsl:text>
7116				<xsl:element name="table:table-row">
7117					<xsl:attribute name="table:style-name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
7118					<xsl:for-each select="*">
7119						<xsl:choose>
7120							<xsl:when test="name()='字:单元格_41BE'">
7121								<xsl:apply-templates select="."/>
7122							</xsl:when>
7123							<xsl:otherwise/>
7124						</xsl:choose>
7125					</xsl:for-each>
7126				</xsl:element>
7127				<xsl:text disable-output-escaping="yes">&lt;/table:table-header-rows&gt;</xsl:text>
7128			</xsl:when>
7129			<xsl:otherwise>
7130				<xsl:element name="table:table-row">
7131					<xsl:attribute name="table:style-name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
7132					<xsl:for-each select="*">
7133						<xsl:choose>
7134							<xsl:when test="name()='字:单元格_41BE'">
7135								<xsl:apply-templates select="."/>
7136							</xsl:when>
7137							<xsl:otherwise/>
7138						</xsl:choose>
7139					</xsl:for-each>
7140				</xsl:element>
7141			</xsl:otherwise>
7142		</xsl:choose>
7143	</xsl:template>
7144	<xsl:template match="字:文字表_416C">
7145		<xsl:choose>
7146			<xsl:when test="字:文字表属性_41CC/字:位置_41C7/uof:垂直_410D[@相对于_C647 = 'margin']/uof:相对_4109[@参考点_410B = 'bottom']">
7147				<xsl:element name="text:p">
7148					<xsl:if test="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204/uof:公文框绑定内容/@uof:公文框绑定内容式样">
7149						<xsl:attribute name="text:style-name"><xsl:value-of select="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204/uof:公文框绑定内容/@uof:公文框绑定内容式样"/></xsl:attribute>
7150					</xsl:if>
7151					<xsl:element name="draw:frame">
7152						<xsl:if test="字:文字表属性_41CC">
7153							<xsl:attribute name="draw:style-name">Embeded_fr<xsl:number count="字:文字表_416C[not(@字:类型='sub-table')]" from="/uof:UOF_0000/字:文字处理文档_4225" level="any" format="1"/></xsl:attribute>
7154						</xsl:if>
7155						<xsl:attribute name="draw:name">Embeded_frame<xsl:number count="字:文字表_416C[not(@字:类型='sub-table')]" from="/uof:UOF_0000/字:文字处理文档_4225" level="any" format="1"/></xsl:attribute>
7156						<xsl:attribute name="text:anchor-type"><xsl:value-of select="'paragraph'"/></xsl:attribute>
7157						<xsl:if test="字:文字表属性_41CC">
7158							<xsl:variable name="to_spand_frame_constant">
7159								<xsl:value-of select="0.44 div $other-to-cm-conversion-factor"/>
7160							</xsl:variable>
7161							<xsl:attribute name="svg:width"><xsl:value-of select="concat(sum(字:文字表属性_41CC/字:列宽集_41C1/字:列宽_41C2), $uofUnit)"/></xsl:attribute>
7162						</xsl:if>
7163						<xsl:attribute name="draw:z-index"><xsl:value-of select="'0'"/></xsl:attribute>
7164						<xsl:element name="draw:text-box">
7165							<xsl:element name="table:table">
7166								<xsl:for-each select="*">
7167									<xsl:choose>
7168										<xsl:when test="name(.)='字:文字表属性_41CC'">
7169											<xsl:apply-templates select="."/>
7170										</xsl:when>
7171										<xsl:when test="name(.)='字:行_41CD'">
7172											<xsl:apply-templates select="."/>
7173										</xsl:when>
7174										<xsl:when test="name(.)='字:修订开始_421F'">
7175											<xsl:apply-templates select="."/>
7176										</xsl:when>
7177										<xsl:when test="name(.)='字:修订结束_4223'">
7178											<xsl:apply-templates select="."/>
7179										</xsl:when>
7180									</xsl:choose>
7181								</xsl:for-each>
7182							</xsl:element>
7183						</xsl:element>
7184					</xsl:element>
7185					<xsl:if test="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204/uof:公文框绑定内容">
7186						<xsl:variable name="pos" select="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204/uof:公文框绑定内容/@uof:公文框绑定内容位置"/>
7187						<xsl:for-each select="/uof:UOF_0000/字:文字处理文档_4225/字:段落_416B[position()=$pos]">
7188							<xsl:apply-templates/>
7189						</xsl:for-each>
7190					</xsl:if>
7191				</xsl:element>
7192			</xsl:when>
7193			<xsl:otherwise>
7194				<xsl:element name="table:table">
7195					<xsl:variable name="isWrap">
7196						<xsl:choose>
7197							<xsl:when test="字:文字表属性_41CC/字:绕排_41C5 = 'around'">true</xsl:when>
7198							<xsl:when test="字:文字表属性_41CC/@式样引用_419C != '' and key('uof-table-styles',字:文字表属性_41CC/@式样引用_419C)/字:绕排_41C5 = 'around'">true</xsl:when>
7199							<xsl:otherwise>false</xsl:otherwise>
7200						</xsl:choose>
7201					</xsl:variable>
7202					<xsl:if test="$isWrap = 'true'">
7203						<xsl:attribute name="style:wrap">parallel</xsl:attribute>
7204					</xsl:if>
7205					<xsl:for-each select="*">
7206						<xsl:choose>
7207							<xsl:when test="name(.)='字:文字表属性_41CC'">
7208								<xsl:apply-templates select="."/>
7209							</xsl:when>
7210							<xsl:when test="name(.)='字:行_41CD'">
7211								<xsl:apply-templates select="."/>
7212							</xsl:when>
7213							<xsl:when test="name(.)='字:修订开始_421F'">
7214								<xsl:apply-templates select="."/>
7215							</xsl:when>
7216							<xsl:when test="name(.)='字:修订结束_4223'">
7217								<xsl:apply-templates select="."/>
7218							</xsl:when>
7219						</xsl:choose>
7220					</xsl:for-each>
7221				</xsl:element>
7222			</xsl:otherwise>
7223		</xsl:choose>
7224	</xsl:template>
7225	<xsl:template name="TextContent">
7226		<xsl:param name="content"/>
7227		<xsl:for-each select="$content/*">
7228			<xsl:choose>
7229				<xsl:when test="name(.)='字:分节_416A'">
7230					<!-- don't process this node here-->
7231				</xsl:when>
7232				<xsl:when test="name(.)='字:逻辑章节_421C'">
7233
7234				</xsl:when>
7235				<xsl:when test="name(.)='字:段落_416B'">
7236					<xsl:apply-templates select="."/>
7237				</xsl:when>
7238				<xsl:when test="name(.)='字:文字表_416C'">
7239					<xsl:apply-templates select="."/>
7240				</xsl:when>
7241				<xsl:when test="name(.)='字:修订开始_421F'">
7242					<xsl:apply-templates select="."/>
7243				</xsl:when>
7244				<xsl:when test="name(.)='字:修订结束_4223'">
7245					<xsl:apply-templates select="."/>
7246				</xsl:when>
7247			</xsl:choose>
7248		</xsl:for-each>
7249	</xsl:template>
7250	<xsl:template name="TimeDateNumberStyle">
7251		<xsl:for-each select="//字:域开始_419E[@类型_416E='createdate'] | //字:域开始_419E[@类型_416E='time'] | //字:域开始_419E[@类型_416E='savedate'] | //字:域开始_419E[@类型_416E='date']">
7252			<xsl:variable name="styleName">
7253				<xsl:choose>
7254					<xsl:when test="contains(substring-after(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D[2]/字:文本串_415B[1],'\@ '),'d') or contains(substring-after(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D[2]/字:文本串_415B[1],'\@ '),'M') or contains(substring-after(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D[2]/字:文本串_415B[1],'\@ '),'y')">number:date-style</xsl:when>
7255					<xsl:otherwise>number:time-style</xsl:otherwise>
7256				</xsl:choose>
7257			</xsl:variable>
7258			<xsl:element name="{$styleName}">
7259				<xsl:attribute name="style:name"><xsl:value-of select="generate-id()"/></xsl:attribute>
7260				<xsl:variable name="datestr" select="substring-after(following-sibling::字:域代码_419F/字:段落_416B/字:句_419D[2]/字:文本串_415B[1],'\@ ')"/>
7261				<xsl:call-template name="TimeTransform">
7262					<xsl:with-param name="str1" select="substring($datestr,2,string-length($datestr)-2)"/>
7263				</xsl:call-template>
7264			</xsl:element>
7265		</xsl:for-each>
7266	</xsl:template>
7267	<xsl:template name="TableOfContentsField">
7268		<xsl:element name="text:table-of-content">
7269			<xsl:variable name="stylenum">
7270				<xsl:number from="/uof:UOF_0000/字:文字处理文档_4225" level="any" count="字:句_419D" format="1"/>
7271			</xsl:variable>
7272			<xsl:attribute name="text:style-name"><xsl:value-of select="concat('Sect',$stylenum)"/></xsl:attribute>
7273			<xsl:variable name="aanum">
7274				<xsl:number value="0" format="1"/>
7275			</xsl:variable>
7276			<xsl:attribute name="text:name"><xsl:value-of select="concat('内容目录',$aanum + 1)"/></xsl:attribute>
7277			<text:table-of-content-source text:outline-level="10">
7278				<text:index-title-template text:style-name="Contents_20_Heading">内容目录</text:index-title-template>
7279				<text:table-of-content-entry-template text:outline-level="1" text:style-name="Contents 1">
7280					<text:index-entry-link-start text:style-name="Index_20_Link"/>
7281					<text:index-entry-chapter/>
7282					<text:index-entry-text/>
7283					<text:index-entry-tab-stop style:type="right" style:leader-char="."/>
7284					<text:index-entry-page-number/>
7285					<text:index-entry-link-end/>
7286				</text:table-of-content-entry-template>
7287				<text:table-of-content-entry-template text:outline-level="2" text:style-name="Contents 2">
7288					<text:index-entry-link-start text:style-name="Index_20_Link"/>
7289					<text:index-entry-chapter/>
7290					<text:index-entry-text/>
7291					<text:index-entry-tab-stop style:type="right" style:leader-char="."/>
7292					<text:index-entry-page-number/>
7293					<text:index-entry-link-end/>
7294				</text:table-of-content-entry-template>
7295				<text:table-of-content-entry-template text:outline-level="3" text:style-name="Contents 3">
7296					<text:index-entry-link-start text:style-name="Index_20_Link"/>
7297					<text:index-entry-chapter/>
7298					<text:index-entry-text/>
7299					<text:index-entry-tab-stop style:type="right" style:leader-char="."/>
7300					<text:index-entry-page-number/>
7301					<text:index-entry-link-end/>
7302				</text:table-of-content-entry-template>
7303				<text:table-of-content-entry-template text:outline-level="4" text:style-name="Contents 4">
7304					<text:index-entry-link-start text:style-name="Index_20_Link"/>
7305					<text:index-entry-chapter/>
7306					<text:index-entry-text/>
7307					<text:index-entry-tab-stop style:type="right" style:leader-char="."/>
7308					<text:index-entry-page-number/>
7309					<text:index-entry-link-end/>
7310				</text:table-of-content-entry-template>
7311				<text:table-of-content-entry-template text:outline-level="5" text:style-name="Contents 5">
7312					<text:index-entry-link-start text:style-name="Index_20_Link"/>
7313					<text:index-entry-chapter/>
7314					<text:index-entry-text/>
7315					<text:index-entry-tab-stop style:type="right" style:leader-char="."/>
7316					<text:index-entry-page-number/>
7317					<text:index-entry-link-end/>
7318				</text:table-of-content-entry-template>
7319				<text:table-of-content-entry-template text:outline-level="6" text:style-name="Contents 6">
7320					<text:index-entry-link-start text:style-name="Index_20_Link"/>
7321					<text:index-entry-chapter/>
7322					<text:index-entry-text/>
7323					<text:index-entry-tab-stop style:type="right" style:leader-char="."/>
7324					<text:index-entry-page-number/>
7325					<text:index-entry-link-end/>
7326				</text:table-of-content-entry-template>
7327				<text:table-of-content-entry-template text:outline-level="7" text:style-name="Contents 7">
7328					<text:index-entry-link-start text:style-name="Index_20_Link"/>
7329					<text:index-entry-chapter/>
7330					<text:index-entry-text/>
7331					<text:index-entry-tab-stop style:type="right" style:leader-char="."/>
7332					<text:index-entry-page-number/>
7333					<text:index-entry-link-end/>
7334				</text:table-of-content-entry-template>
7335				<text:table-of-content-entry-template text:outline-level="8" text:style-name="Contents 8">
7336					<text:index-entry-link-start text:style-name="Index_20_Link"/>
7337					<text:index-entry-chapter/>
7338					<text:index-entry-text/>
7339					<text:index-entry-tab-stop style:type="right" style:leader-char="."/>
7340					<text:index-entry-page-number/>
7341					<text:index-entry-link-end/>
7342				</text:table-of-content-entry-template>
7343				<text:table-of-content-entry-template text:outline-level="9" text:style-name="Contents 9">
7344					<text:index-entry-link-start text:style-name="Index_20_Link"/>
7345					<text:index-entry-chapter/>
7346					<text:index-entry-text/>
7347					<text:index-entry-tab-stop style:type="right" style:leader-char="."/>
7348					<text:index-entry-page-number/>
7349					<text:index-entry-link-end/>
7350				</text:table-of-content-entry-template>
7351				<text:table-of-content-entry-template text:outline-level="10" text:style-name="Contents 10">
7352					<text:index-entry-link-start text:style-name="Index_20_Link"/>
7353					<text:index-entry-chapter/>
7354					<text:index-entry-text/>
7355					<text:index-entry-tab-stop style:type="right" style:leader-char="."/>
7356					<text:index-entry-page-number/>
7357					<text:index-entry-link-end/>
7358				</text:table-of-content-entry-template>
7359			</text:table-of-content-source>
7360			<text:index-body>
7361				<text:index-title>
7362					<xsl:attribute name="text:style-name"><xsl:value-of select="concat('Sect',$stylenum)"/></xsl:attribute>
7363					<xsl:attribute name="text:name"><xsl:value-of select="concat('内容目录',$aanum + 1,'_Head')"/></xsl:attribute>
7364					<xsl:apply-templates select="following-sibling::字:域代码_419F/字:段落_416B[position()=2]"/>
7365				</text:index-title>
7366				<xsl:for-each select="following-sibling::字:域代码_419F/child::*[position()>2]">
7367					<xsl:apply-templates select="."/>
7368				</xsl:for-each>
7369			</text:index-body>
7370		</xsl:element>
7371	</xsl:template>
7372	<xsl:template name="AlphabeticalIndexField">
7373		<xsl:element name="text:alphabetical-index">
7374			<xsl:variable name="stylenum">
7375				<xsl:number from="/uof:UOF_0000/字:文字处理文档_4225" level="any" count="字:句_419D" format="1"/>
7376			</xsl:variable>
7377			<xsl:attribute name="text:style-name"><xsl:value-of select="concat('Sect',$stylenum)"/></xsl:attribute>
7378			<xsl:variable name="aanum">
7379				<xsl:number value="0" format="1"/>
7380			</xsl:variable>
7381			<xsl:attribute name="text:name"><xsl:value-of select="concat('索引目录',$aanum + 1)"/></xsl:attribute>
7382			<text:alphabetical-index-source text:main-entry-style-name="Main_index_entry" text:sort-algorithm="pinyin" fo:language="zh" fo:country="CN">
7383				<text:index-title-template text:style-name="Index_20_Heading">索引目录</text:index-title-template>
7384				<text:alphabetical-index-entry-template text:outline-level="separator" text:style-name="Index_Separator">
7385					<text:index-entry-text/>
7386				</text:alphabetical-index-entry-template>
7387				<text:alphabetical-index-entry-template text:outline-level="1" text:style-name="Index_20_1">
7388					<text:index-entry-text/>
7389					<text:index-entry-tab-stop style:type="right" style:leader-char="."/>
7390					<text:index-entry-page-number/>
7391				</text:alphabetical-index-entry-template>
7392				<text:alphabetical-index-entry-template text:outline-level="2" text:style-name="Index_20_2">
7393					<text:index-entry-text/>
7394					<text:index-entry-tab-stop style:type="right" style:leader-char="."/>
7395					<text:index-entry-page-number/>
7396				</text:alphabetical-index-entry-template>
7397				<text:alphabetical-index-entry-template text:outline-level="3" text:style-name="Index_20_3">
7398					<text:index-entry-text/>
7399					<text:index-entry-tab-stop style:type="right" style:leader-char="."/>
7400					<text:index-entry-page-number/>
7401				</text:alphabetical-index-entry-template>
7402			</text:alphabetical-index-source>
7403			<text:index-body>
7404				<text:index-title>
7405					<xsl:attribute name="text:style-name"><xsl:value-of select="concat('Sect',$stylenum)"/></xsl:attribute>
7406					<xsl:attribute name="text:name"><xsl:value-of select="concat('索引目录',$aanum + 1,'_Head')"/></xsl:attribute>
7407					<xsl:for-each select="字:域代码_419F/字:段落_416B[position()=2]">
7408						<text:p text:style-name="Index_20_Heading">
7409							<xsl:apply-templates select=".//字:文本串_415B"/>
7410						</text:p>
7411					</xsl:for-each>
7412				</text:index-title>
7413				<xsl:if test="字:域开始_419E/@类型_416E='INDEX'">
7414					<xsl:for-each select="字:域代码_419F/字:段落_416B[position()>2]">
7415						<xsl:element name="text:p">
7416							<xsl:attribute name="text:style-name"><xsl:value-of select="./字:段落属性_419B/@式样引用_419C"/></xsl:attribute>
7417							<xsl:for-each select="字:句_419D">
7418								<xsl:apply-templates select="self::node()/*"/>
7419							</xsl:for-each>
7420						</xsl:element>
7421					</xsl:for-each>
7422				</xsl:if>
7423			</text:index-body>
7424		</xsl:element>
7425	</xsl:template>
7426	<xsl:template name="TimeTransform">
7427		<xsl:param name="str1"/>
7428		<xsl:choose>
7429			<xsl:when test="contains($str1,'[DBNum1]')">
7430				<xsl:analyze-string select="substring-after($str1,'[DBNum1]')" regex="(am/pm)|(AM/PM)|[a-zA-Z]+">
7431					<xsl:matching-substring>
7432						<xsl:variable name="string" select="."/>
7433						<xsl:choose>
7434							<xsl:when test="$string='yyyy'">
7435								<number:year number:style="rolong"/>
7436							</xsl:when>
7437							<xsl:when test="$string='M'">
7438								<number:month number:style="rolong" number:textual="true"/>
7439							</xsl:when>
7440							<xsl:when test="$string='d'">
7441								<number:day number:style="rolong"/>
7442							</xsl:when>
7443							<xsl:when test="$string='AM/PM'">
7444								<number:am-pm/>
7445							</xsl:when>
7446							<xsl:when test="$string='h'">
7447								<number:hours number:style="long"/>
7448							</xsl:when>
7449							<xsl:when test="$string='mm'">
7450								<number:minutes number:style="long"/>
7451							</xsl:when>
7452							<xsl:when test="$string='ss'">
7453								<number:seconds number:style="long"/>
7454							</xsl:when>
7455						</xsl:choose>
7456					</xsl:matching-substring>
7457					<xsl:non-matching-substring>
7458						<number:text>
7459							<xsl:value-of select="."/>
7460						</number:text>
7461					</xsl:non-matching-substring>
7462				</xsl:analyze-string>
7463			</xsl:when>
7464			<xsl:otherwise>
7465				<xsl:analyze-string select="$str1" regex="(am/pm)|(AM/PM)|[a-zA-Z]+">
7466					<xsl:matching-substring>
7467						<xsl:variable name="string" select="."/>
7468						<xsl:choose>
7469							<xsl:when test="$string='am/pm' or $string='AM/PM'">
7470								<number:am-pm/>
7471							</xsl:when>
7472							<xsl:when test="$string='yyyy'">
7473								<number:year number:style="long"/>
7474							</xsl:when>
7475							<xsl:when test="$string='yy'">
7476								<number:year/>
7477							</xsl:when>
7478							<xsl:when test="$string='dddd'">
7479								<number:day-of-week number:style="long"/>
7480							</xsl:when>
7481							<xsl:when test="$string='dd'">
7482								<number:day number:style="long"/>
7483							</xsl:when>
7484							<xsl:when test="$string='d'">
7485								<number:day/>
7486							</xsl:when>
7487							<xsl:when test="$string='MMMM'">
7488								<number:month number:style="long" number:textual="true"/>
7489							</xsl:when>
7490							<xsl:when test="$string='MMM' or $string='MM'">
7491								<number:month number:style="long"/>
7492							</xsl:when>
7493							<xsl:when test="$string='M'">
7494								<number:month/>
7495							</xsl:when>
7496							<xsl:when test="$string='HH' or $string='hh'">
7497								<number:hours number:style="long"/>
7498							</xsl:when>
7499							<xsl:when test="$string='h' or $string='H'">
7500								<number:hours/>
7501							</xsl:when>
7502							<xsl:when test="$string='mm'">
7503								<number:minutes number:style="long"/>
7504							</xsl:when>
7505							<xsl:when test="$string='m'">
7506								<number:minutes/>
7507							</xsl:when>
7508							<xsl:when test="$string='SS' or $string='ss'">
7509								<number:seconds number:style="long"/>
7510							</xsl:when>
7511							<xsl:when test="$string='s'">
7512								<number:seconds/>
7513							</xsl:when>
7514							<xsl:when test="$string='WW'">
7515								<number:week-of-year number:style="long"/>
7516							</xsl:when>
7517							<xsl:when test="$string='W'">
7518								<number:day-of-week number:style="long"/>
7519							</xsl:when>
7520							<xsl:when test="$string='Q季'">
7521								<number:quarter/>
7522							</xsl:when>
7523							<xsl:when test="$string='第QQ季度'">
7524								<number:quarter number:style="long"/>
7525							</xsl:when>
7526							<xsl:when test="$string='NN'">
7527								<number:text>第</number:text>
7528								<number:week-of-year/>
7529								<number:text>周</number:text>
7530							</xsl:when>
7531						</xsl:choose>
7532					</xsl:matching-substring>
7533					<xsl:non-matching-substring>
7534						<number:text>
7535							<xsl:value-of select="."/>
7536						</number:text>
7537					</xsl:non-matching-substring>
7538				</xsl:analyze-string>
7539			</xsl:otherwise>
7540		</xsl:choose>
7541	</xsl:template>
7542	<!--<xsl:template name="TimeTransform">
7543		<xsl:param name="str1"/>
7544		<xsl:choose>
7545
7546			<xsl:when test="substring($str1,1,5)='am/pm'">
7547				<xsl:variable name="str1-before" select="substring($str1,1,5)"/>
7548				<xsl:variable name="str1-after" select="substring($str1,6)"/>
7549				<number:am-pm/>
7550				<xsl:if test="$str1-after != ' '">
7551					<number:text>
7552						<xsl:value-of select="substring($str1-after,1,1)"/>
7553					</number:text>
7554				</xsl:if>
7555				<xsl:if test="string-length($str1-after)&gt;1">
7556					<xsl:call-template name="TimeTransform">
7557						<xsl:with-param name="str1" select="substring($str1-after,2)"/>
7558					</xsl:call-template>
7559				</xsl:if>
7560			</xsl:when>
7561			<xsl:otherwise>
7562				<xsl:choose>
7563					<xsl:when test="substring($str1,1,1)=substring($str1,2,1) and substring($str1,2,1) !=substring($str1,3,1) ">
7564						<xsl:variable name="str1-before" select="substring($str1,1,2)"/>
7565						<xsl:variable name="str1-after" select="substring($str1,3)"/>
7566						<xsl:if test="substring($str1,1,1)='H' or substring($str1,1,1)='h'">
7567							<number:hours number:style="long"/>
7568						</xsl:if>
7569						<xsl:if test="substring($str1,1,1)='M' or substring($str1,1,1)='m'">
7570							<number:minutes number:style="long"/>
7571						</xsl:if>
7572						<xsl:if test="substring($str1,1,1)='S' or substring($str1,1,1)='s'">
7573							<number:seconds number:style="long"/>
7574						</xsl:if>
7575						<number:text>
7576							<xsl:value-of select="substring($str1-after,1,1)"/>
7577						</number:text>
7578						<xsl:if test="string-length($str1-after)&gt;1">
7579							<xsl:call-template name="TimeTransform">
7580								<xsl:with-param name="str1" select="substring($str1-after,2)"/>
7581							</xsl:call-template>
7582						</xsl:if>
7583					</xsl:when>
7584					<xsl:otherwise>
7585						<xsl:if test="substring($str1,1,1)='H'or substring($str1,1,1)='M'or substring($str1,1,1)='S'or substring($str1,1,1)='h' or substring($str1,1,1)='m' or  substring($str1,1,1)='s'">
7586							<xsl:variable name="str1-after" select="substring($str1,2)"/>
7587							<xsl:variable name="str1-before" select="substring($str1,1,1)"/>
7588							<xsl:if test="substring($str1,1,1)='H' or substring($str1,1,1)='h'">
7589								<number:hours/>
7590								<number:text>
7591									<xsl:value-of select="substring($str1-after,1,1)"/>
7592								</number:text>
7593							</xsl:if>
7594							<xsl:if test="substring($str1,1,1)='M' or substring($str1,1,1)='m'">
7595								<number:minutes/>
7596								<number:text>
7597									<xsl:value-of select="substring($str1-after,1,1)"/>
7598								</number:text>
7599							</xsl:if>
7600							<xsl:if test="substring($str1,1,1)='S' or substring($str1,1,1)='s'">
7601								<number:seconds/>
7602								<number:text>
7603									<xsl:value-of select="substring($str1-after,1,1)"/>
7604								</number:text>
7605							</xsl:if>
7606							<xsl:if test="string-length($str1-after)&gt;1">
7607								<xsl:call-template name="TimeTransform">
7608									<xsl:with-param name="str1" select="substring($str1-after,2)"/>
7609								</xsl:call-template>
7610							</xsl:if>
7611						</xsl:if>
7612					</xsl:otherwise>
7613				</xsl:choose>
7614			</xsl:otherwise>
7615		</xsl:choose>
7616	</xsl:template>
7617	<xsl:template name="DateTimeTransform">
7618		<xsl:param name="str1"/>
7619		<xsl:choose>
7620
7621			<xsl:when test="substring($str1,1,5)='am/pm'">
7622				<xsl:variable name="str1-before" select="substring($str1,1,5)"/>
7623				<xsl:variable name="str1-after" select="substring($str1,6)"/>
7624				<number:am-pm/>
7625				<xsl:if test="$str1-after != ' '">
7626					<number:text>
7627						<xsl:value-of select="substring($str1-after,1,1)"/>
7628					</number:text>
7629				</xsl:if>
7630				<xsl:if test="string-length($str1-after)&gt;1">
7631					<xsl:call-template name="TimeTransform">
7632						<xsl:with-param name="str1" select="substring($str1-after,2)"/>
7633					</xsl:call-template>
7634				</xsl:if>
7635			</xsl:when>
7636			<xsl:otherwise>
7637				<xsl:choose>
7638					<xsl:when test="substring($str1,1,4)='yyyy'">
7639						<xsl:variable name="str1-before" select="substring($str1,1,4)"/>
7640						<xsl:variable name="str1-after" select="substring($str1,5)"/>
7641						<number:year number:style="long"/>
7642						<number:text>
7643							<xsl:value-of select="substring($str1-after,1,1)"/>
7644						</number:text>
7645						<xsl:if test="string-length($str1-after)&gt;1">
7646							<xsl:call-template name="DateTimeTransform">
7647								<xsl:with-param name="str1" select="substring($str1-after,2)"/>
7648							</xsl:call-template>
7649						</xsl:if>
7650					</xsl:when>
7651					<xsl:otherwise>
7652						<xsl:choose>
7653							<xsl:when test="substring($str1,1,1)=substring($str1,2,1) and substring($str1,2,1) !=substring($str1,3,1) ">
7654								<xsl:variable name="str1-before" select="substring($str1,1,2)"/>
7655								<xsl:variable name="str1-after" select="substring($str1,3)"/>
7656								<xsl:if test="substring($str1,1,1)='y'">
7657									<number:year/>
7658								</xsl:if>
7659								<xsl:if test="substring($str1,1,1)='M'">
7660									<number:month number:style="long"/>
7661								</xsl:if>
7662								<xsl:if test="substring($str1,1,1)='d'">
7663									<number:day number:style="long"/>
7664								</xsl:if>
7665								<xsl:if test="substring($str1,1,1)='H' or substring($str1,1,1)='h'">
7666									<number:hours number:style="long"/>
7667								</xsl:if>
7668								<xsl:if test="substring($str1,1,1)='m'">
7669									<number:minutes number:style="long"/>
7670								</xsl:if>
7671								<xsl:if test="substring($str1,1,1)='s'">
7672									<number:seconds number:style="long"/>
7673								</xsl:if>
7674								<xsl:if test="substring($str1,1,1)='W'">
7675									<number:week-of-year number:style="long"/>
7676								</xsl:if>
7677								<number:text>
7678									<xsl:value-of select="substring($str1-after,1,1)"/>
7679								</number:text>
7680								<xsl:if test="string-length($str1-after)&gt;1">
7681									<xsl:call-template name="DateTimeTransform">
7682										<xsl:with-param name="str1" select="substring($str1-after,2)"/>
7683									</xsl:call-template>
7684								</xsl:if>
7685							</xsl:when>
7686							<xsl:otherwise>
7687								<xsl:if test="substring($str1,1,1)='M'or substring($str1,1,1)='d'or substring($str1,1,1)='h'or substring($str1,1,1)='m'or substring($str1,1,1)='s'">
7688									<xsl:variable name="str1-after" select="substring($str1,2)"/>
7689									<xsl:variable name="str1-before" select="substring($str1,1,1)"/>
7690									<xsl:if test="substring($str1,1,1)='M'">
7691										<number:month/>
7692										<number:text>
7693											<xsl:value-of select="substring($str1-after,1,1)"/>
7694										</number:text>
7695									</xsl:if>
7696									<xsl:if test="substring($str1,1,1)='d'">
7697										<number:day/>
7698										<number:text>
7699											<xsl:value-of select="substring($str1-after,1,1)"/>
7700										</number:text>
7701									</xsl:if>
7702									<xsl:if test="substring($str1,1,1)='h'">
7703										<number:hours/>
7704										<number:text>
7705											<xsl:value-of select="substring($str1-after,1,1)"/>
7706										</number:text>
7707									</xsl:if>
7708									<xsl:if test="substring($str1,1,1)='m'">
7709										<number:minutes/>
7710										<number:text>
7711											<xsl:value-of select="substring($str1-after,1,1)"/>
7712										</number:text>
7713									</xsl:if>
7714									<xsl:if test="substring($str1,1,1)='s'">
7715										<number:seconds/>
7716										<number:text>
7717											<xsl:value-of select="substring($str1-after,1,1)"/>
7718										</number:text>
7719									</xsl:if>
7720									<xsl:if test="string-length($str1-after)&gt;1">
7721										<xsl:call-template name="DateTimeTransform">
7722											<xsl:with-param name="str1" select="substring($str1-after,2)"/>
7723										</xsl:call-template>
7724									</xsl:if>
7725								</xsl:if>
7726								<xsl:if test="contains(substring($str1,1,3),'Q' )">
7727									<xsl:choose>
7728										<xsl:when test="substring($str1,1,1)='Q'">
7729											<xsl:variable name="str1-before" select="substring($str1,1,2)"/>
7730											<xsl:variable name="str1-after" select="substring($str1,3)"/>
7731											<number:quarter/>
7732											<number:text>
7733												<xsl:value-of select="substring($str1-after,1,1)"/>
7734											</number:text>
7735											<xsl:if test="string-length($str1-after)&gt;1">
7736												<xsl:call-template name="DateTimeTransform">
7737													<xsl:with-param name="str1" select="substring($str1-after,2)"/>
7738												</xsl:call-template>
7739											</xsl:if>
7740										</xsl:when>
7741										<xsl:otherwise>
7742											<xsl:variable name="str1-before" select="substring($str1,1,5)"/>
7743											<xsl:variable name="str1-after" select="substring($str1,6)"/>
7744											<number:quarter number:style="long"/>
7745											<number:text>
7746												<xsl:value-of select="substring($str1-after,1,1)"/>
7747											</number:text>
7748											<xsl:if test="string-length($str1-after)&gt;1">
7749												<xsl:call-template name="DateTimeTransform">
7750													<xsl:with-param name="str1" select="substring($str1-after,2)"/>
7751												</xsl:call-template>
7752											</xsl:if>
7753										</xsl:otherwise>
7754									</xsl:choose>
7755								</xsl:if>
7756								<xsl:if test="contains(substring(normalize-space($str1),1,3),'W' )">
7757									<xsl:variable name="str1-before" select="substring(normalize-space($str1),1,3)"/>
7758									<xsl:variable name="str1-after" select="substring(normalize-space($str1),4)"/>
7759									<number:day-of-week number:style="long"/>
7760									<number:text>
7761										<xsl:value-of select="substring($str1-after,1,1)"/>
7762									</number:text>
7763									<xsl:if test="string-length($str1-after)&gt;1">
7764										<xsl:call-template name="DateTimeTransform">
7765											<xsl:with-param name="str1" select="substring($str1-after,2)"/>
7766										</xsl:call-template>
7767									</xsl:if>
7768								</xsl:if>
7769								<xsl:if test="contains(substring($str1,1,3),'NN' ) and substring($str1,1,1)!='NN' ">
7770									<xsl:variable name="str1-before" select="substring($str1,1,3)"/>
7771									<xsl:variable name="str1-after" select="substring($str1,4)"/>
7772									<number:text>第</number:text>
7773									<number:week-of-year/>
7774									<number:text>周</number:text>
7775									<xsl:if test="string-length($str1-after)&gt;1">
7776										<xsl:call-template name="DateTimeTransform">
7777											<xsl:with-param name="str1" select="substring($str1-after,2)"/>
7778										</xsl:call-template>
7779									</xsl:if>
7780								</xsl:if>
7781							</xsl:otherwise>
7782						</xsl:choose>
7783					</xsl:otherwise>
7784				</xsl:choose>
7785			</xsl:otherwise>
7786		</xsl:choose>
7787	</xsl:template>-->
7788	<xsl:template name="DateField">
7789		<xsl:if test="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B">
7790			<!--<xsl:variable name="date0" select="substring-after(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B,'\@ ')"/>
7791			<xsl:variable name="datestr">
7792				<xsl:choose>
7793					<xsl:when test="contains($date0,'\*')">
7794						<xsl:value-of select="string(substring-before($date0,'\*'))"/>
7795					</xsl:when>
7796					<xsl:otherwise>
7797						<xsl:value-of select="$date0"/>
7798					</xsl:otherwise>
7799				</xsl:choose>
7800			</xsl:variable>
7801			<xsl:call-template name="DateTimeTransform">
7802				<xsl:with-param name="str1" select="substring($datestr,2,string-length($datestr)-2)"/>
7803			</xsl:call-template>-->
7804			<xsl:variable name="datestr" select="following-sibling::字:句_419D[1]/字:文本串_415B"/>
7805			<xsl:attribute name="style:data-style-name"><xsl:value-of select="generate-id()"/></xsl:attribute>
7806			<xsl:attribute name="text:date-value"><xsl:value-of select="$datestr"/></xsl:attribute>
7807			<xsl:if test="@是否锁定_416F='true'">
7808				<xsl:attribute name="text:fixed">true</xsl:attribute>
7809			</xsl:if>
7810			<xsl:value-of select="$datestr"/>
7811		</xsl:if>
7812	</xsl:template>
7813	<xsl:template name="TimeField">
7814		<xsl:if test="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B">
7815			<!--<xsl:variable name="date0" select="substring-after(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B,'\@ ')"/>
7816			<xsl:variable name="datestr" select="$date0"/>
7817			<xsl:call-template name="TimeTransform">
7818				<xsl:with-param name="str1" select="substring($datestr,2,string-length($datestr)-2)"/>
7819			</xsl:call-template>-->
7820			<xsl:variable name="datestr" select="following-sibling::字:句_419D[1]/字:文本串_415B"/>
7821			<xsl:attribute name="style:data-style-name"><xsl:value-of select="generate-id()"/></xsl:attribute>
7822			<xsl:if test="$datestr != ''">
7823				<xsl:attribute name="text:time-value"><xsl:value-of select="$datestr"/></xsl:attribute>
7824			</xsl:if>
7825			<xsl:if test="@是否锁定_416F='true'">
7826				<xsl:attribute name="text:fixed">true</xsl:attribute>
7827			</xsl:if>
7828			<xsl:value-of select="$datestr"/>
7829		</xsl:if>
7830	</xsl:template>
7831	<xsl:template name="OutputDateField">
7832		<xsl:variable name="datestr" select="following-sibling::字:句_419D[1]/字:文本串_415B"/>
7833		<xsl:element name="text:date">
7834			<xsl:attribute name="style:data-style-name"><xsl:value-of select="generate-id()"/></xsl:attribute>
7835			<xsl:attribute name="text:date-value"><xsl:value-of select="$datestr"/></xsl:attribute>
7836			<xsl:if test="@是否锁定_416F='true'">
7837				<xsl:attribute name="text:fixed">true</xsl:attribute>
7838			</xsl:if>
7839			<xsl:value-of select="$datestr"/>
7840		</xsl:element>
7841	</xsl:template>
7842	<xsl:template name="EditingDurationField">
7843		<xsl:variable name="datestr" select="following-sibling::字:句_419D[1]/字:文本串_415B"/>
7844		<xsl:element name="text:editing-duration">
7845			<xsl:attribute name="style:data-style-name"><xsl:value-of select="generate-id()"/></xsl:attribute>
7846			<xsl:if test="@是否锁定_416F='true'">
7847				<xsl:attribute name="text:fixed">true</xsl:attribute>
7848			</xsl:if>
7849			<xsl:value-of select="$datestr"/>
7850		</xsl:element>
7851	</xsl:template>
7852	<xsl:template name="PageNumberField">
7853		<xsl:element name="text:page-number">
7854			<xsl:for-each select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B">
7855				<xsl:variable name="format">
7856					<xsl:value-of select="substring-after(.,' \* ')"/>
7857				</xsl:variable>
7858				<xsl:variable name="fmt">
7859					<xsl:call-template name="NumFormat">
7860						<xsl:with-param name="oo_format" select="$format"/>
7861					</xsl:call-template>
7862				</xsl:variable>
7863				<xsl:attribute name="style:num-format"><xsl:value-of select="$fmt"/></xsl:attribute>
7864				<xsl:attribute name="text:select-page"><xsl:choose><xsl:when test="../../../字:页码设置_4205/@字:首页显示 = 'false'">current</xsl:when><xsl:otherwise>current</xsl:otherwise></xsl:choose></xsl:attribute>
7865				<xsl:if test="following-sibling::node() = 'PAGE \* Arabic'">
7866					<xsl:attribute name="text:page-adjust"><xsl:value-of select="number(following-sibling::node()) - 1"/></xsl:attribute>
7867				</xsl:if>
7868				<xsl:value-of select="following-sibling::node()"/>
7869				<xsl:value-of select="../../../following-sibling::node()"/>
7870			</xsl:for-each>
7871		</xsl:element>
7872	</xsl:template>
7873	<xsl:template name="PageCountField">
7874		<xsl:if test="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B">
7875			<!--
7876			<xsl:variable name="date0" select="substring-after(following-sibling::字:域代码_419F[1][@类型_416E = 'numpages']/字:段落_416B/字:句_419D/字:文本串_415B,' \* ')"/>
7877			<xsl:variable name="datestr" select="substring-before(following-sibling::字:域代码_419F[1][@类型_416E = 'numpages']/字:段落_416B/字:句_419D/字:文本串_415B,'\* ')"/>
7878
7879			<xsl:variable name="fmt">
7880				<xsl:call-template name="NumFormat">
7881					<xsl:with-param name="oo_format" select="substring-before($date0,' \*')"/>
7882				</xsl:call-template>
7883			</xsl:variable>-->
7884			<xsl:variable name="fmt">
7885				<xsl:call-template name="NumFormat">
7886					<xsl:with-param name="oo_format" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B"/>
7887				</xsl:call-template>
7888			</xsl:variable>
7889			<xsl:element name="text:page-count">
7890				<xsl:attribute name="style:num-format"><xsl:value-of select="$fmt"/></xsl:attribute>
7891				<xsl:value-of select="following-sibling::字:句_419D/字:文本串_415B"/>
7892			</xsl:element>
7893		</xsl:if>
7894	</xsl:template>
7895	<xsl:template name="AuthorField">
7896		<xsl:if test="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B">
7897			<xsl:variable name="datestr">
7898				<xsl:choose>
7899					<xsl:when test="contains(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B,'\*')">
7900						<xsl:value-of select="substring-before(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B,' \* ')"/>
7901					</xsl:when>
7902					<xsl:otherwise>
7903						<xsl:value-of select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B"/>
7904					</xsl:otherwise>
7905				</xsl:choose>
7906			</xsl:variable>
7907			<xsl:choose>
7908				<xsl:when test="$datestr='AUTHOR'">
7909					<xsl:element name="text:author-name">
7910						<xsl:value-of select="following-sibling::字:句_419D/字:文本串_415B"/>
7911					</xsl:element>
7912				</xsl:when>
7913				<xsl:when test="$datestr='AUTHORINITIALS'">
7914					<xsl:element name="text:author-initials">
7915						<xsl:value-of select="following-sibling::字:句_419D/字:文本串_415B"/>
7916					</xsl:element>
7917				</xsl:when>
7918				<xsl:when test="$datestr='MODIFICATIONAUTHOR'">
7919					<xsl:element name="text:creator">
7920						<xsl:value-of select="following-sibling::字:句_419D/字:文本串_415B"/>
7921					</xsl:element>
7922				</xsl:when>
7923				<xsl:when test="$document_type != 'presentation'">
7924					<xsl:element name="text:initial-creator">
7925						<xsl:value-of select="following-sibling::字:句_419D/字:文本串_415B"/>
7926					</xsl:element>
7927				</xsl:when>
7928			</xsl:choose>
7929		</xsl:if>
7930	</xsl:template>
7931	<xsl:template name="TitleField">
7932		<xsl:if test="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B">
7933			<xsl:variable name="date0" select="substring-after(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B,' \* ')"/>
7934			<xsl:variable name="datestr" select="substring-before(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B,'\* ')"/>
7935			<xsl:element name="text:title">
7936				<xsl:value-of select="following-sibling::字:句_419D/字:文本串_415B"/>
7937			</xsl:element>
7938		</xsl:if>
7939	</xsl:template>
7940	<xsl:template name="SubjectField">
7941		<xsl:if test="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B">
7942			<xsl:variable name="date0" select="substring-after(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B,' \* ')"/>
7943			<xsl:variable name="datestr" select="substring-before(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B,'\* ')"/>
7944			<xsl:element name="text:subject">
7945				<xsl:value-of select="following-sibling::字:句_419D/字:文本串_415B"/>
7946			</xsl:element>
7947		</xsl:if>
7948	</xsl:template>
7949	<xsl:template name="KeywordsField">
7950		<xsl:if test="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B">
7951			<xsl:element name="text:keywords">
7952				<xsl:if test="@是否锁定_416F='true'">
7953					<xsl:attribute name="text:fixed">true</xsl:attribute>
7954				</xsl:if>
7955				<xsl:value-of select="following-sibling::字:句_419D/字:文本串_415B"/>
7956			</xsl:element>
7957		</xsl:if>
7958	</xsl:template>
7959	<xsl:template name="CommentsField">
7960		<xsl:if test="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B">
7961			<xsl:element name="text:description">
7962				<xsl:if test="@是否锁定_416F='true'">
7963					<xsl:attribute name="text:fixed">true</xsl:attribute>
7964				</xsl:if>
7965				<xsl:value-of select="following-sibling::字:句_419D/字:文本串_415B"/>
7966			</xsl:element>
7967		</xsl:if>
7968	</xsl:template>
7969	<xsl:template name="RevnumField">
7970		<xsl:if test="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B">
7971			<xsl:element name="text:editing-cycles">
7972				<xsl:if test="@是否锁定_416F='true'">
7973					<xsl:attribute name="text:fixed">true</xsl:attribute>
7974				</xsl:if>
7975				<xsl:value-of select="following-sibling::字:句_419D/字:文本串_415B"/>
7976			</xsl:element>
7977		</xsl:if>
7978	</xsl:template>
7979	<xsl:template name="FilenameField">
7980		<xsl:if test="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B">
7981			<xsl:element name="text:file-name">
7982				<xsl:variable name="string">
7983					<xsl:value-of select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B"/>
7984				</xsl:variable>
7985				<xsl:attribute name="text:display"><xsl:choose><xsl:when test="contains($string,' \p')">full</xsl:when><xsl:otherwise>name-and-extension</xsl:otherwise></xsl:choose></xsl:attribute>
7986				<xsl:if test="@是否锁定_416F='true'">
7987					<xsl:attribute name="text:fixed">true</xsl:attribute>
7988				</xsl:if>
7989				<xsl:value-of select="following-sibling::字:句_419D/字:文本串_415B"/>
7990			</xsl:element>
7991		</xsl:if>
7992	</xsl:template>
7993	<xsl:template name="EditTime">
7994		<xsl:if test="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B">
7995			<!--<xsl:variable name="date0" select="substring-after(following-sibling::字:域代码_419F/字:段落_416B/字:句_419D/字:文本串_415B,'\@ ')"/>
7996			<xsl:variable name="datestr" select="$date0"/>
7997			<xsl:call-template name="TimeTransform">
7998				<xsl:with-param name="str1" select="substring($datestr,2,string-length($datestr)-2)"/>
7999			</xsl:call-template>-->
8000			<xsl:variable name="datestr" select="following-sibling::字:句_419D[1]/字:文本串_415B"/>
8001			<xsl:attribute name="style:data-style-name"><xsl:value-of select="generate-id()"/></xsl:attribute>
8002			<xsl:if test="$datestr != ''">
8003				<xsl:attribute name="text:time-value"><xsl:value-of select="$datestr"/></xsl:attribute>
8004			</xsl:if>
8005			<xsl:if test="@是否锁定_416F='true'">
8006				<xsl:attribute name="text:fixed">true</xsl:attribute>
8007			</xsl:if>
8008			<xsl:value-of select="$datestr"/>
8009		</xsl:if>
8010	</xsl:template>
8011	<xsl:template name="CreationTime">
8012		<xsl:if test="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B">
8013			<!--<xsl:variable name="date0" select="substring-after(following-sibling::字:域代码_419F/字:段落_416B/字:句_419D/字:文本串_415B,'\@ ')"/>
8014			<xsl:variable name="datestr" select="$date0"/>
8015			<xsl:call-template name="TimeTransform">
8016				<xsl:with-param name="str1" select="substring($datestr,2,string-length($datestr)-2)"/>
8017			</xsl:call-template>-->
8018			<xsl:variable name="datestr" select="following-sibling::字:句_419D[1]/字:文本串_415B"/>
8019			<xsl:attribute name="style:data-style-name"><xsl:value-of select="generate-id()"/></xsl:attribute>
8020			<xsl:if test="$datestr != ''">
8021				<xsl:attribute name="text:time-value"><xsl:value-of select="$datestr"/></xsl:attribute>
8022			</xsl:if>
8023			<xsl:if test="@是否锁定_416F='true'">
8024				<xsl:attribute name="text:fixed">true</xsl:attribute>
8025			</xsl:if>
8026			<xsl:value-of select="$datestr"/>
8027		</xsl:if>
8028	</xsl:template>
8029	<xsl:template name="CharCount">
8030		<xsl:if test="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B">
8031			<!--<xsl:variable name="date0" select="substring-after(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B,' \* ')"/>
8032			<xsl:variable name="datestr" select="substring-before(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B,'\* ')"/>
8033			<xsl:variable name="fmt">
8034				<xsl:call-template name="NumFormat">
8035					<xsl:with-param name="oo_format" select="substring-before($date0,' \#')"/>
8036				</xsl:call-template>
8037			</xsl:variable>-->
8038			<xsl:variable name="fmt">
8039				<xsl:call-template name="NumFormat">
8040					<xsl:with-param name="oo_format" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B"/>
8041				</xsl:call-template>
8042			</xsl:variable>
8043			<xsl:element name="text:character-count">
8044				<xsl:attribute name="style:num-format"><xsl:value-of select="$fmt"/></xsl:attribute>
8045				<xsl:value-of select="following-sibling::字:句_419D/字:文本串_415B"/>
8046			</xsl:element>
8047		</xsl:if>
8048	</xsl:template>
8049	<xsl:template name="CaptionField">
8050		<xsl:if test="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B or 字:域代码_419F/字:段落_416B/字:句_419D/字:文本串_415B">
8051			<xsl:variable name="aa" select="substring-after(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B,'\f ')"/>
8052			<xsl:variable name="ooow" select="substring-after($aa,'ooow:') "/>
8053			<xsl:variable name="as" select="substring-before(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B,' \* ')"/>
8054			<xsl:variable name="ad">
8055				<xsl:value-of select="substring-after($as,'SEQ ') "/>
8056			</xsl:variable>
8057			<xsl:variable name="num">
8058				<xsl:value-of select="substring-after(substring-before(following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:文本串_415B,' \f'),'\* ')"/>
8059			</xsl:variable>
8060			<xsl:variable name="fmt">
8061				<xsl:call-template name="NumFormat">
8062					<xsl:with-param name="oo_format" select="$num"/>
8063				</xsl:call-template>
8064			</xsl:variable>
8065			<xsl:element name="text:sequence">
8066				<xsl:attribute name="text:name"><xsl:choose><xsl:when test="$ad='表格'">Table</xsl:when><xsl:when test="$ad='图表'">Drawing</xsl:when><xsl:otherwise><xsl:value-of select="$ad"/></xsl:otherwise></xsl:choose></xsl:attribute>
8067				<xsl:attribute name="text:formula"><xsl:choose><xsl:when test="contains($aa,'ooow:')"><xsl:value-of select="$ooow"/></xsl:when><xsl:when test="contains($as,'表格')"><xsl:value-of select="concat('Table','+',$fmt)"/></xsl:when><xsl:when test="contains($as,'图表')"><xsl:value-of select="concat('Drawing','+',$fmt)"/></xsl:when><xsl:otherwise><xsl:value-of select="$aa"/></xsl:otherwise></xsl:choose></xsl:attribute>
8068				<xsl:attribute name="style:num-format"><xsl:value-of select="$fmt"/></xsl:attribute>
8069				<xsl:value-of select="following-sibling::字:句_419D[1]/字:文本串_415B"/>
8070			</xsl:element>
8071		</xsl:if>
8072	</xsl:template>
8073	<xsl:template name="PlaceholderField">
8074		<xsl:element name="text:placeholder">
8075			<xsl:attribute name="text:placeholder-type"><xsl:value-of select="substring-before(@类型_416E,'placeholder')"/></xsl:attribute>
8076			<xsl:attribute name="text:description"><xsl:value-of select="following-sibling::字:域代码_419F/字:段落_416B/字:句_419D/字:文本串_415B"/></xsl:attribute>
8077			<xsl:value-of select="following-sibling::字:句_419D[1]/字:文本串_415B"/>
8078		</xsl:element>
8079	</xsl:template>
8080	<xsl:template name="PageinSection">
8081		<text:section>
8082			<xsl:attribute name="text:name">sect<xsl:number from="/uof:UOF_0000/字:文字处理文档_4225" level="any" count="字:域开始_419E[@类型_416E='pageinsection']"/></xsl:attribute>
8083			<xsl:if test="字:域开始_419E/@是否锁定_416F='true'">
8084				<xsl:attribute name="text:protected">true</xsl:attribute>
8085			</xsl:if>
8086			<xsl:for-each select="following-sibling::字:域代码_419F/child::node()">
8087				<xsl:apply-templates select="."/>
8088			</xsl:for-each>
8089		</text:section>
8090	</xsl:template>
8091	<xsl:template name="SectionField">
8092		<text:section>
8093			<xsl:attribute name="text:name">sect<xsl:number from="/uof:UOF_0000/字:文字处理文档_4225" level="any" count="字:域开始_419E[@类型_416E='section']"/></xsl:attribute>
8094			<xsl:if test="字:域开始_419E/@是否锁定_416F='true'">
8095				<xsl:attribute name="text:protected">true</xsl:attribute>
8096			</xsl:if>
8097			<xsl:for-each select="following-sibling::字:域代码_419F/child::node()">
8098				<xsl:apply-templates select="."/>
8099			</xsl:for-each>
8100		</text:section>
8101	</xsl:template>
8102	<xsl:template name="NumFormat">
8103		<xsl:param name="oo_format"/>
8104		<xsl:choose>
8105			<xsl:when test="contains($oo_format,'Arabic')">1</xsl:when>
8106			<xsl:when test="contains($oo_format,'ALPHABETIC')">A</xsl:when>
8107			<xsl:when test="contains($oo_format,'alphabetic')">a</xsl:when>
8108			<xsl:when test="contains($oo_format,'ROMAN')">I</xsl:when>
8109			<xsl:when test="contains($oo_format,'roman')">i</xsl:when>
8110			<xsl:when test="contains($oo_format,'CHINESENUM3')">一, 二, 三, ...</xsl:when>
8111			<xsl:when test="contains($oo_format,'CHINESENUM2')">壹, 贰, 叁, ...</xsl:when>
8112			<xsl:when test="contains($oo_format,'ZODIAC1')">甲, 乙, 丙, ...</xsl:when>
8113			<xsl:when test="contains($oo_format,'ZODIAC2')">子, 丑, 寅, ...</xsl:when>
8114			<xsl:when test="contains($oo_format,'GB1')">1, 2, 3, ...</xsl:when>
8115			<xsl:when test="contains($oo_format,'GB3')">①, ②, ③, ...</xsl:when>
8116			<xsl:when test="contains($oo_format,'GB4')">㈠, ㈡, ㈢, ...</xsl:when>
8117			<xsl:otherwise>1</xsl:otherwise>
8118		</xsl:choose>
8119	</xsl:template>
8120	<xsl:template name="AdjustNumber">
8121		<xsl:param name="format"/>
8122		<xsl:param name="adjustnode"/>
8123		<xsl:choose>
8124			<xsl:when test="$format='Arabic'">
8125				<xsl:value-of select="number($adjustnode) - 1"/>
8126			</xsl:when>
8127			<xsl:when test="$format='ALPHABETIC'">
8128				<xsl:value-of select="string-to-codepoints($adjustnode) - string-to-codepoints('A')"/>
8129			</xsl:when>
8130			<xsl:when test="$format='alphabetic'">
8131				<xsl:value-of select="string-to-codepoints($adjustnode) - string-to-codepoints('a')"/>
8132			</xsl:when>
8133			<xsl:when test="$format='ROMAN'">
8134				<xsl:value-of select="string-to-codepoints($adjustnode) - string-to-codepoints('I')"/>
8135			</xsl:when>
8136			<xsl:when test="$format='roman'">
8137				<xsl:value-of select="string-to-codepoints($adjustnode) - string-to-codepoints('i')"/>
8138			</xsl:when>
8139			<xsl:when test="$format='CHINESENUM3'">
8140				<xsl:value-of select="string-to-codepoints($adjustnode) - string-to-codepoints('一')"/>
8141			</xsl:when>
8142			<xsl:when test="$format='CHINESENUM2'">
8143				<xsl:value-of select="string-to-codepoints($adjustnode) - string-to-codepoints('壹')"/>
8144			</xsl:when>
8145			<xsl:when test="$format='ZODIAC1'">
8146				<xsl:value-of select="string-to-codepoints($adjustnode) - string-to-codepoints('甲')"/>
8147			</xsl:when>
8148			<xsl:when test="$format='ZODIAC2'">
8149				<xsl:value-of select="string-to-codepoints($adjustnode) - string-to-codepoints('子')"/>
8150			</xsl:when>
8151			<xsl:when test="$format='GB3'">
8152				<xsl:value-of select="string-to-codepoints($adjustnode) - string-to-codepoints('①')"/>
8153			</xsl:when>
8154			<xsl:otherwise>0</xsl:otherwise>
8155		</xsl:choose>
8156	</xsl:template>
8157	<xsl:template name="OutputPageNumber">
8158		<xsl:for-each select="./following-sibling::字:域代码_419F[position() = 1]/字:段落_416B/字:句_419D/字:文本串_415B">
8159			<xsl:variable name="format" select="substring-after(.,' \* ')"/>
8160			<xsl:variable name="fmt">
8161				<xsl:call-template name="NumFormat">
8162					<xsl:with-param name="oo_format" select="$format"/>
8163				</xsl:call-template>
8164			</xsl:variable>
8165			<xsl:attribute name="style:num-format"><xsl:value-of select="$fmt"/></xsl:attribute>
8166			<xsl:attribute name="text:select-page">current</xsl:attribute>
8167			<!--在style:page-number的基础上累加产生新的首页页码-->
8168			<xsl:variable name="adjustnode">
8169				<xsl:value-of select="../../../following-sibling::node()[1][name() = '字:句_419D']/字:文本串_415B"/>
8170			</xsl:variable>
8171			<xsl:variable name="adjust">
8172				<xsl:call-template name="AdjustNumber">
8173					<xsl:with-param name="format" select="$format"/>
8174					<xsl:with-param name="adjustnode" select="$adjustnode"/>
8175				</xsl:call-template>
8176			</xsl:variable>
8177			<xsl:attribute name="text:page-adjust"><xsl:value-of select="number($adjust)"/></xsl:attribute>
8178		</xsl:for-each>
8179	</xsl:template>
8180	<!--xsl:template name="InMasterPage">
8181		<xsl:for-each select="..">
8182			<xsl:choose>
8183				<xsl:when test="name(.) = '演:母版'">
8184					<xsl:value-of select="'true'"/>
8185				</xsl:when>
8186				<xsl:when test="name(.) = '演:幻灯片'">
8187					<xsl:value-of select="'false'"/>
8188				</xsl:when>
8189				<xsl:when test="name(.) = '演:主体'">
8190					<xsl:value-of select="'false'"/>
8191				</xsl:when>
8192				<xsl:when test="name(.) = 'uof:UOF_0000'">
8193					<xsl:value-of select="'false'"/>
8194				</xsl:when>
8195				<xsl:otherwise>
8196					<xsl:call-template name="InMasterPage"/>
8197				</xsl:otherwise>
8198			</xsl:choose>
8199		</xsl:for-each>
8200	</xsl:template-->
8201	<xsl:template match="字:域开始_419E">
8202		<xsl:choose>
8203			<xsl:when test="@类型_416E='date'">
8204				<text:span>
8205					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8206					<xsl:element name="text:date">
8207						<xsl:call-template name="DateField"/>
8208					</xsl:element>
8209				</text:span>
8210			</xsl:when>
8211			<xsl:when test="@类型_416E='createdate'">
8212				<text:span>
8213					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8214					<xsl:element name="text:creation-date">
8215						<xsl:call-template name="DateField"/>
8216					</xsl:element>
8217				</text:span>
8218			</xsl:when>
8219			<xsl:when test="@类型_416E='modificationdate'">
8220				<text:span>
8221					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8222					<xsl:element name="text:modification-date">
8223						<xsl:call-template name="DateField"/>
8224					</xsl:element>
8225				</text:span>
8226			</xsl:when>
8227			<xsl:when test="@类型_416E='time'">
8228				<text:span>
8229					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8230					<xsl:element name="text:time">
8231						<xsl:call-template name="TimeField"/>
8232					</xsl:element>
8233				</text:span>
8234			</xsl:when>
8235			<xsl:when test="@类型_416E='createtime'">
8236				<text:span>
8237					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8238					<xsl:element name="text:creation-time">
8239						<xsl:call-template name="TimeField"/>
8240					</xsl:element>
8241				</text:span>
8242			</xsl:when>
8243			<xsl:when test="@类型_416E='modificationtime'">
8244				<text:span>
8245					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8246					<xsl:element name="text:modification-time">
8247						<xsl:call-template name="TimeField"/>
8248					</xsl:element>
8249				</text:span>
8250			</xsl:when>
8251			<xsl:when test="@类型_416E='savedate'">
8252				<text:span>
8253					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8254					<xsl:call-template name="OutputDateField"/>
8255				</text:span>
8256			</xsl:when>
8257			<xsl:when test="@类型_416E='edittime'">
8258				<text:span>
8259					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8260					<xsl:call-template name="EditTime"/>
8261				</text:span>
8262			</xsl:when>
8263			<xsl:when test="@类型_416E='page'">
8264				<xsl:variable name="IsInMasterPage">
8265					<xsl:choose>
8266						<xsl:when test="$document_type = 'presentation'">
8267							<xsl:choose>
8268								<xsl:when test="ancestor::图:图形_8062">
8269									<xsl:variable name="graphid" select="ancestor::图:图形_8062/@标识符_804B"/>
8270									<xsl:for-each select="key('rel_graphic_name',$graphid)[1]">
8271										<xsl:choose>
8272											<xsl:when test="uof:占位符_C626/@类型_C627 = 'number' and ancestor::演:母版_6C0D">
8273												<!--xsl:call-template name="InMasterPage"/-->
8274												<xsl:value-of select="'true'"/>
8275											</xsl:when>
8276											<xsl:otherwise>
8277												<xsl:value-of select="'false'"/>
8278											</xsl:otherwise>
8279										</xsl:choose>
8280									</xsl:for-each>
8281								</xsl:when>
8282								<xsl:otherwise>
8283									<xsl:value-of select="'false'"/>
8284								</xsl:otherwise>
8285							</xsl:choose>
8286						</xsl:when>
8287						<xsl:otherwise>
8288							<xsl:value-of select="'false'"/>
8289						</xsl:otherwise>
8290					</xsl:choose>
8291				</xsl:variable>
8292				<xsl:if test="$IsInMasterPage != 'true'">
8293					<text:span>
8294						<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8295						<!--兼容页码功能缺失案例-->
8296						<xsl:element name="text:span">
8297							<xsl:if test="following-sibling::字:域代码_419F[1]/following-sibling::字:句_419D/字:句属性_4158/@式样引用_4117 or following-sibling::字:域代码_419F[1]/following-sibling::字:句_419D/字:句属性_4158/*">
8298								<xsl:for-each select="following-sibling::字:域代码_419F[1]/following-sibling::字:句_419D[1]">
8299									<xsl:if test="字:句属性_4158 and (字:句属性_4158/@式样引用_4117 or count(字:句属性_4158/child::*))">
8300										<xsl:variable name="textstylename">
8301											<xsl:variable name="textstyleref" select="字:句属性_4158/@式样引用_4117"/>
8302											<xsl:choose>
8303												<xsl:when test="/uof:UOF_0000/式样:式样集_990B/式样:句式样集_990F/式样:句式样_9910[@标识符_4100=$textstyleref]">
8304													<xsl:value-of select="$textstyleref"/>
8305												</xsl:when>
8306												<xsl:otherwise>
8307													<xsl:value-of select="generate-id(字:句属性_4158)"/>
8308												</xsl:otherwise>
8309											</xsl:choose>
8310										</xsl:variable>
8311										<xsl:attribute name="text:style-name"><xsl:value-of select="$textstylename"/></xsl:attribute>
8312									</xsl:if>
8313								</xsl:for-each>
8314							</xsl:if>
8315							<xsl:variable name="SpecialString">
8316								<xsl:value-of select="following-sibling::字:域代码_419F[1]/following-sibling::字:句_419D/字:文本串_415B"/>
8317							</xsl:variable>
8318							<xsl:call-template name="SpecialStringBefore">
8319								<xsl:with-param name="SpecialString" select="$SpecialString"/>
8320							</xsl:call-template>
8321							<xsl:element name="text:page-number">
8322								<xsl:call-template name="OutputPageNumber"/>
8323							</xsl:element>
8324							<xsl:call-template name="SpecialStringAfter">
8325								<xsl:with-param name="SpecialString" select="$SpecialString"/>
8326							</xsl:call-template>
8327						</xsl:element>
8328					</text:span>
8329				</xsl:if>
8330			</xsl:when>
8331			<xsl:when test="@类型_416E='numpages'">
8332				<text:span>
8333					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8334					<xsl:call-template name="PageCountField"/>
8335				</text:span>
8336			</xsl:when>
8337			<xsl:when test="@类型_416E='author'">
8338				<text:span>
8339					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8340					<xsl:call-template name="AuthorField"/>
8341				</text:span>
8342			</xsl:when>
8343			<xsl:when test="@类型_416E='username'">
8344			</xsl:when>
8345			<xsl:when test="@类型_416E='userinitials'">
8346			</xsl:when>
8347			<xsl:when test="@类型_416E='title'">
8348				<text:span>
8349					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8350					<xsl:call-template name="TitleField"/>
8351				</text:span>
8352			</xsl:when>
8353			<xsl:when test="@类型_416E='subject'">
8354				<text:span>
8355					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8356					<xsl:call-template name="SubjectField"/>
8357				</text:span>
8358			</xsl:when>
8359			<xsl:when test="@类型_416E='keywords'">
8360				<text:span>
8361					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8362					<xsl:call-template name="KeywordsField"/>
8363				</text:span>
8364			</xsl:when>
8365			<xsl:when test="@类型_416E='comments'">
8366				<text:span>
8367					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8368					<xsl:call-template name="CommentsField"/>
8369				</text:span>
8370			</xsl:when>
8371			<xsl:when test="@类型_416E='revnum'">
8372				<text:span>
8373					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8374					<xsl:call-template name="RevnumField"/>
8375				</text:span>
8376			</xsl:when>
8377			<xsl:when test="@类型_416E='filename'">
8378				<text:span>
8379					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8380					<xsl:call-template name="FilenameField"/>
8381				</text:span>
8382			</xsl:when>
8383			<xsl:when test="@类型_416E='SEQ'">
8384				<text:span>
8385					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8386					<xsl:call-template name="CaptionField"/>
8387				</text:span>
8388			</xsl:when>
8389			<xsl:when test="contains(@类型_416E,'placeholder')">
8390				<text:span>
8391					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8392					<xsl:call-template name="PlaceholderField"/>
8393				</text:span>
8394			</xsl:when>
8395			<xsl:when test="@类型_416E='dropdown'">
8396			</xsl:when>
8397			<xsl:when test="@类型_416E='REF'">
8398				<text:span>
8399					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8400					<xsl:call-template name="TableOfContentsField"/>
8401				</text:span>
8402			</xsl:when>
8403			<xsl:when test="@类型_416E='INDEX'">
8404				<text:span>
8405					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8406					<xsl:call-template name="AlphabeticalIndexField"/>
8407				</text:span>
8408			</xsl:when>
8409			<xsl:when test="@类型_416E='creation-time'">
8410				<text:span>
8411					<xsl:attribute name="text:style-name" select="following-sibling::字:域代码_419F[1]/字:段落_416B/字:句_419D/字:句属性_4158/@式样引用_4117"/>
8412					<xsl:call-template name="CreationTime"/>
8413				</text:span>
8414			</xsl:when>
8415			<xsl:when test="@类型_416E='numchars'">
8416				<xsl:call-template name="CharCount"/>
8417			</xsl:when>
8418			<xsl:when test="@类型_416E='pageinsection'">
8419				<xsl:call-template name="PageinSection"/>
8420			</xsl:when>
8421			<xsl:when test="@类型_416E='section'">
8422				<xsl:call-template name="SectionField"/>
8423			</xsl:when>
8424		</xsl:choose>
8425	</xsl:template>
8426	<!--
8427	<xsl:template match="字:域代码_419F">
8428	</xsl:template>
8429	<xsl:template match="字:域结束">
8430	</xsl:template>-->
8431	<xsl:template name="SpecialStringBefore">
8432		<xsl:param name="SpecialString"/>
8433		<xsl:choose>
8434			<xsl:when test="contains($SpecialString,'I。')">I。</xsl:when>
8435			<xsl:when test="contains($SpecialString,'A—')">A—</xsl:when>
8436			<xsl:when test="contains($SpecialString,'1-')">1-</xsl:when>
8437			<xsl:when test="contains($SpecialString,'1:')">1:</xsl:when>
8438			<xsl:when test="contains($SpecialString,'一-')">一-</xsl:when>
8439			<xsl:when test="contains($SpecialString,'(1)')">(</xsl:when>
8440		</xsl:choose>
8441	</xsl:template>
8442	<xsl:template name="SpecialStringAfter">
8443		<xsl:param name="SpecialString"/>
8444		<xsl:choose>
8445			<xsl:when test="contains($SpecialString,'1.')">.</xsl:when>
8446			<xsl:when test="contains($SpecialString,'(1)')">)</xsl:when>
8447		</xsl:choose>
8448	</xsl:template>
8449	<xsl:template name="TextParaToTextProperties">
8450		<xsl:param name="Stylename"/>
8451		<xsl:for-each select="key('uof-paragraph-styles',$Stylename)">
8452			<xsl:if test="@基式样引用_4104">
8453				<xsl:call-template name="TextParaToTextProperties">
8454					<xsl:with-param name="Stylename" select="@基式样引用_4104"/>
8455				</xsl:call-template>
8456			</xsl:if>
8457			<xsl:for-each select="./字:句属性_4158">
8458				<xsl:call-template name="TextProperties"/>
8459			</xsl:for-each>
8460		</xsl:for-each>
8461	</xsl:template>
8462	<xsl:template name="SpecialHolderTextStyleContent">
8463		<xsl:for-each select="../..">
8464			<xsl:if test="name(.) = '字:段落_416B'">
8465				<xsl:variable name="stylename">
8466					<xsl:choose>
8467						<xsl:when test="(count(./字:段落属性_419B/child::*) = 1) and not(./字:段落属性_419B/字:自动编号信息_4186)">
8468							<xsl:value-of select="generate-id(.)"/>
8469						</xsl:when>
8470						<xsl:when test="count(./字:段落属性_419B/child::*) &gt; 1">
8471							<xsl:value-of select="generate-id(.)"/>
8472						</xsl:when>
8473						<xsl:otherwise>
8474							<xsl:choose>
8475								<xsl:when test="./字:段落属性_419B/@式样引用_419C">
8476									<xsl:value-of select="./字:段落属性_419B/@式样引用_419C"/>
8477								</xsl:when>
8478								<xsl:otherwise>
8479									<xsl:value-of select="none"/>
8480								</xsl:otherwise>
8481							</xsl:choose>
8482						</xsl:otherwise>
8483					</xsl:choose>
8484				</xsl:variable>
8485				<xsl:if test="$stylename != 'none'">
8486					<xsl:attribute name="style:parent-style-name"><xsl:value-of select="$stylename"/></xsl:attribute>
8487				</xsl:if>
8488			</xsl:if>
8489		</xsl:for-each>
8490		<xsl:for-each select="..">
8491			<xsl:if test="name(.) = '字:句_419D'">
8492				<xsl:element name="style:text-properties">
8493					<xsl:if test="../字:段落属性_419B/@式样引用_419C">
8494						<xsl:call-template name="TextParaToTextProperties">
8495							<xsl:with-param name="Stylename" select="../字:段落属性_419B/@式样引用_419C"/>
8496						</xsl:call-template>
8497					</xsl:if>
8498					<xsl:if test="../字:段落属性_419B/字:句属性_4158">
8499						<xsl:call-template name="TextProperties"/>
8500					</xsl:if>
8501					<xsl:if test="字:句属性_4158/@式样引用_417B">
8502						<xsl:call-template name="TextParentProperties">
8503							<xsl:with-param name="Stylename" select="字:句属性_4158/@式样引用_417B"/>
8504						</xsl:call-template>
8505					</xsl:if>
8506					<xsl:for-each select="字:句属性_4158">
8507						<xsl:call-template name="TextProperties"/>
8508					</xsl:for-each>
8509				</xsl:element>
8510			</xsl:if>
8511		</xsl:for-each>
8512	</xsl:template>
8513	<xsl:template name="SearchSpecialHolder">
8514		<xsl:param name="anchorname"/>
8515		<xsl:choose>
8516			<xsl:when test="$anchorname = 'date' and contains(.,'&lt;日期/时间&gt;')">
8517				<xsl:call-template name="SpecialHolderTextStyleContent"/>
8518			</xsl:when>
8519			<xsl:when test="$anchorname = 'header' and contains(.,'&lt;页眉&gt;')">
8520				<xsl:call-template name="SpecialHolderTextStyleContent"/>
8521			</xsl:when>
8522			<xsl:when test="$anchorname = 'footer' and contains(.,'&lt;页脚&gt;')">
8523				<xsl:call-template name="SpecialHolderTextStyleContent"/>
8524			</xsl:when>
8525			<xsl:when test="$anchorname = 'number' and contains(.,'&lt;#&gt;')">
8526				<xsl:call-template name="SpecialHolderTextStyleContent"/>
8527			</xsl:when>
8528			<xsl:otherwise>
8529				<xsl:choose>
8530					<xsl:when test="following-sibling::*[name(.) = '字:文本串_415B'][1]">
8531						<xsl:for-each select="following-sibling::*[name(.) = '字:文本串_415B'][1]">
8532							<xsl:call-template name="SearchSpecialHolder">
8533								<xsl:with-param name="anchorname" select="$anchorname"/>
8534							</xsl:call-template>
8535						</xsl:for-each>
8536					</xsl:when>
8537					<xsl:otherwise>
8538						<xsl:for-each select="..">
8539							<xsl:choose>
8540								<xsl:when test="following-sibling::*[name(.) = '字:句_419D'][1]/字:文本串_415B[1]">
8541									<xsl:for-each select="following-sibling::*[name(.) = '字:句_419D'][1]/字:文本串_415B[1]">
8542										<xsl:call-template name="SearchSpecialHolder">
8543											<xsl:with-param name="anchorname" select="$anchorname"/>
8544										</xsl:call-template>
8545									</xsl:for-each>
8546								</xsl:when>
8547								<xsl:otherwise>
8548									<xsl:call-template name="SpecialHolderTextStyleContent"/>
8549								</xsl:otherwise>
8550							</xsl:choose>
8551						</xsl:for-each>
8552					</xsl:otherwise>
8553				</xsl:choose>
8554			</xsl:otherwise>
8555		</xsl:choose>
8556	</xsl:template>
8557	<xsl:template name="SpecialHolderTextStyle">
8558		<xsl:for-each select="/uof:UOF_0000/演:演示文稿文档_C610/演:母版集_C60C/演:母版_6C0D/uof:锚点_C644[uof:占位符_C626/@类型_C627='date' or uof:占位符_C626/@类型_C627='footer' or  uof:占位符_C626/@类型_C627='header' or uof:占位符_C626/@类型_C627='number']">
8559			<xsl:variable name="anchorname" select="uof:占位符_C626/@类型_C627"/>
8560			<xsl:element name="style:style">
8561				<xsl:attribute name="style:family">paragraph</xsl:attribute>
8562				<xsl:attribute name="style:name"><xsl:value-of select="concat(generate-id(), '-special')"/></xsl:attribute>
8563				<xsl:variable name="picname">
8564					<xsl:value-of select="@图形引用_C62E"/>
8565				</xsl:variable>
8566				<xsl:for-each select="key('graph-styles', $picname)">
8567					<xsl:for-each select="图:文本_803C/图:内容_8043/字:段落_416B/字:句_419D[1]/字:文本串_415B[1]">
8568						<xsl:call-template name="SearchSpecialHolder">
8569							<xsl:with-param name="anchorname" select="$anchorname"/>
8570						</xsl:call-template>
8571					</xsl:for-each>
8572				</xsl:for-each>
8573			</xsl:element>
8574		</xsl:for-each>
8575	</xsl:template>
8576	<xsl:template name="DrawTransform">
8577		<xsl:param name="angle"/>
8578		<xsl:variable name="GraphicID">
8579			<xsl:value-of select="@图形引用_C62E"/>
8580		</xsl:variable>
8581		<xsl:variable name="x_without_rotate">
8582			<xsl:choose>
8583				<xsl:when test="uof:位置_C620/@类型_C646 = 'as-char'">
8584					<xsl:value-of select="number(0)"/>
8585				</xsl:when>
8586				<xsl:when test="uof:位置_C620/uof:水平_4106/uof:绝对_4107">
8587					<xsl:value-of select="uof:位置_C620/uof:水平_4106/uof:绝对_4107/@值_4108"/>
8588				</xsl:when>
8589				<xsl:when test="uof:位置_C620/uof:水平_4106/uof:相对_4109/@值_410B">
8590					<xsl:value-of select="uof:位置_C620/uof:水平_4106/uof:相对_4109/@值_410B"/>
8591				</xsl:when>
8592				<xsl:otherwise>0</xsl:otherwise>
8593			</xsl:choose>
8594		</xsl:variable>
8595		<xsl:variable name="y_without_rotate">
8596			<xsl:choose>
8597				<xsl:when test="uof:位置_C620/@类型_C646 = 'as-char'">
8598					<xsl:value-of select="number(0)"/>
8599				</xsl:when>
8600				<!--xsl:when test="uof:位置_C620/uof:垂直_410D/@相对于_410C = 'line'">
8601					<xsl:value-of select="0 - number(uof:位置_C620/uof:垂直_410D/uof:绝对_4107/@值_4108)"/>
8602				</xsl:when-->
8603				<xsl:when test="uof:位置_C620/uof:垂直_410D/uof:绝对_4107">
8604					<xsl:value-of select="uof:位置_C620/uof:垂直_410D/uof:绝对_4107/@值_4108"/>
8605				</xsl:when>
8606				<xsl:when test="uof:位置_C620/uof:垂直_410D/uof:相对_4109/@值_410B">
8607					<xsl:value-of select="uof:位置_C620/uof:垂直_410D/uof:相对_4109/@值_410B"/>
8608				</xsl:when>
8609				<xsl:otherwise>0</xsl:otherwise>
8610			</xsl:choose>
8611		</xsl:variable>
8612		<xsl:variable name="x0">
8613			<xsl:variable name="box_width">
8614				<xsl:value-of select="uof:大小_C621/@宽_C605"/>
8615			</xsl:variable>
8616			<xsl:value-of select="number($x_without_rotate) + number(number($box_width) div 2)"/>
8617		</xsl:variable>
8618		<xsl:variable name="y0">
8619			<xsl:variable name="box_high">
8620				<xsl:value-of select="uof:大小_C621/@长_C604"/>
8621			</xsl:variable>
8622			<xsl:value-of select="number($y_without_rotate) + (number($box_high) div 2)"/>
8623		</xsl:variable>
8624		<xsl:variable name="arc">
8625			<xsl:value-of select="$angle * 0.0174532925"/>
8626		</xsl:variable>
8627		<xsl:variable name="sin_x">
8628			<xsl:call-template name="sin">
8629				<xsl:with-param name="arc">
8630					<!--xsl:value-of select="0 - $arc"/-->
8631					<xsl:value-of select="$arc"/>
8632				</xsl:with-param>
8633			</xsl:call-template>
8634		</xsl:variable>
8635		<xsl:variable name="cos_x">
8636			<xsl:call-template name="cos">
8637				<xsl:with-param name="arc">
8638					<xsl:value-of select="$arc"/>
8639					<!--xsl:value-of select="0 - $arc"/-->
8640				</xsl:with-param>
8641			</xsl:call-template>
8642		</xsl:variable>
8643		<xsl:variable name="x">
8644			<xsl:value-of select="($x_without_rotate - $x0) * $cos_x - ($y0 - $y_without_rotate) * $sin_x + $x0"/>
8645		</xsl:variable>
8646		<xsl:variable name="y">
8647			<xsl:value-of select="$y0 - ($y0 - $y_without_rotate) * $cos_x - ($x_without_rotate - $x0) * $sin_x"/>
8648		</xsl:variable>
8649		<xsl:attribute name="draw:transform"><xsl:value-of select="concat('rotate (',$arc,') translate (', $x, $uofUnit, ' ', $y, $uofUnit, ')')"/></xsl:attribute>
8650		<!--xsl:attribute name="draw:transform"><xsl:value-of select="concat('rotate (',0 - $arc,') translate (', $x, $uofUnit, ' ', $y, $uofUnit, ')')"/></xsl:attribute-->
8651	</xsl:template>
8652	<xsl:template name="DrawCommAttr">
8653		<xsl:param name="picstyle"/>
8654		<xsl:variable name="angle">
8655			<xsl:choose>
8656				<xsl:when test="$picstyle/图:预定义图形_8018/图:属性_801D/图:旋转角度_804D and not($picstyle/图:预定义图形_8018/图:属性_801D/图:旋转角度_804D='0.0')">
8657					<xsl:value-of select="$picstyle/图:预定义图形_8018/图:属性_801D/图:旋转角度_804D"/>
8658				</xsl:when>
8659				<xsl:otherwise>
8660					<xsl:value-of select="0"/>
8661				</xsl:otherwise>
8662			</xsl:choose>
8663		</xsl:variable>
8664		<xsl:if test="$picstyle/@层次_8063">
8665			<xsl:attribute name="draw:z-index"><xsl:value-of select="$picstyle[1]/@层次_8063"/></xsl:attribute>
8666		</xsl:if>
8667		<xsl:choose>
8668			<xsl:when test="not($picstyle/图:组合位置_803B)">
8669				<xsl:if test="$angle=0">
8670					<xsl:variable name="posx">
8671						<xsl:choose>
8672							<xsl:when test="uof:位置_C620/@类型_C646 = 'as-char'">
8673								<xsl:value-of select="number(0)"/>
8674							</xsl:when>
8675							<xsl:when test="uof:位置_C620/uof:水平_4106/uof:绝对_4107/@值_4108">
8676								<xsl:value-of select="number(uof:位置_C620/uof:水平_4106/uof:绝对_4107/@值_4108)"/>
8677							</xsl:when>
8678							<xsl:when test="uof:位置_C620/uof:水平_4106/uof:相对_4109/@值_410B">
8679								<xsl:value-of select="number(uof:位置_C620/uof:水平_4106/uof:相对_4109/@值_410B)"/>
8680							</xsl:when>
8681							<xsl:otherwise>0</xsl:otherwise>
8682						</xsl:choose>
8683					</xsl:variable>
8684					<xsl:variable name="posy">
8685						<xsl:choose>
8686							<xsl:when test="uof:位置_C620/@类型_C646 = 'as-char'">
8687								<xsl:value-of select="number(0)"/>
8688							</xsl:when>
8689							<!--xsl:when test="uof:位置_C620/uof:垂直_410D/@相对于_410C = 'line'">
8690								<xsl:value-of select="0 - number(uof:位置_C620/uof:垂直_410D/uof:绝对_4107/@值_4108)"/>
8691							</xsl:when-->
8692							<xsl:when test="uof:位置_C620/uof:垂直_410D/uof:绝对_4107/@值_4108">
8693								<xsl:value-of select="number(uof:位置_C620/uof:垂直_410D/uof:绝对_4107/@值_4108)"/>
8694							</xsl:when>
8695							<xsl:when test="uof:位置_C620/uof:垂直_410D/uof:相对_4109/@值_410B">
8696								<xsl:value-of select="number(uof:位置_C620/uof:垂直_410D/uof:相对_4109/@值_410B)"/>
8697							</xsl:when>
8698							<xsl:otherwise>0</xsl:otherwise>
8699						</xsl:choose>
8700					</xsl:variable>
8701					<xsl:attribute name="svg:x"><xsl:value-of select="concat($posx,$uofUnit)"/></xsl:attribute>
8702					<xsl:attribute name="svg:y"><xsl:value-of select="concat($posy,$uofUnit)"/></xsl:attribute>
8703				</xsl:if>
8704				<xsl:variable name="width">
8705					<xsl:value-of select="number(uof:大小_C621/@宽_C605)"/>
8706				</xsl:variable>
8707				<xsl:variable name="height">
8708					<xsl:value-of select="number(uof:大小_C621/@长_C604)"/>
8709				</xsl:variable>
8710				<xsl:attribute name="svg:width"><xsl:value-of select="concat($width,$uofUnit)"/></xsl:attribute>
8711				<xsl:attribute name="svg:height"><xsl:value-of select="concat($height,$uofUnit)"/></xsl:attribute>
8712			</xsl:when>
8713			<xsl:otherwise>
8714				<xsl:variable name="zuheweizhi-x">
8715					<xsl:value-of select="$picstyle/图:组合位置_803B/@x_C606"/>
8716				</xsl:variable>
8717				<xsl:variable name="zuheweizhi-y">
8718					<xsl:value-of select="$picstyle/图:组合位置_803B/@y_C607"/>
8719				</xsl:variable>
8720				<xsl:variable name="hex">
8721					<xsl:value-of select="concat(0+number($zuheweizhi-x),$uofUnit)"/>
8722				</xsl:variable>
8723				<xsl:variable name="hey">
8724					<xsl:value-of select="concat(0+number($zuheweizhi-y),$uofUnit)"/>
8725				</xsl:variable>
8726				<xsl:variable name="width">
8727					<xsl:value-of select="number($picstyle/图:预定义图形_8018/图:属性_801D/图:大小_8060/@宽_C605)"/>
8728				</xsl:variable>
8729				<xsl:variable name="height">
8730					<xsl:value-of select="number($picstyle/图:预定义图形_8018/图:属性_801D/图:大小_8060/@长_C604)"/>
8731				</xsl:variable>
8732				<xsl:attribute name="svg:x"><xsl:value-of select="$hex"/></xsl:attribute>
8733				<xsl:attribute name="svg:y"><xsl:value-of select="$hey"/></xsl:attribute>
8734				<xsl:attribute name="svg:width"><xsl:value-of select="concat($width,$uofUnit)"/></xsl:attribute>
8735				<xsl:attribute name="svg:height"><xsl:value-of select="concat($height,$uofUnit)"/></xsl:attribute>
8736			</xsl:otherwise>
8737		</xsl:choose>
8738		<xsl:if test="$document_type = 'text'">
8739			<xsl:attribute name="text:anchor-type"><xsl:choose><xsl:when test="uof:位置_C620/@类型_C646='page'">page</xsl:when><xsl:when test="uof:位置_C620/@类型_C646='paragraph'">paragraph</xsl:when><xsl:when test="uof:位置_C620/@类型_C646='char'">char</xsl:when><xsl:when test="uof:位置_C620/@类型_C646='as-char'">as-char</xsl:when><xsl:when test="uof:位置_C620/@类型_C646='frame'">frame</xsl:when><xsl:otherwise>char</xsl:otherwise></xsl:choose></xsl:attribute>
8740		</xsl:if>
8741		<xsl:choose>
8742			<xsl:when test="uof:占位符_C626/@类型_C627 != ''">
8743				<xsl:attribute name="presentation:style-name"><xsl:choose><xsl:when test="name(..)='演:母版_6C0D' and uof:占位符_C626/@类型_C627 = 'title'"><xsl:value-of select="concat(string(../@标识符_6BE8),'-title')"/></xsl:when><xsl:when test="name(..)='演:母版_6C0D' and (uof:占位符_C626/@类型_C627 = 'outline' or uof:占位符_C626/@类型_C627 = 'text')"><xsl:value-of select="concat(string(../@标识符_6BE8),'-outline1')"/></xsl:when><xsl:otherwise><xsl:value-of select="$picstyle[1]/@标识符_804B"/></xsl:otherwise></xsl:choose></xsl:attribute>
8744				<xsl:variable name="placeChar">
8745					<xsl:choose>
8746						<xsl:when test="uof:占位符_C626/@类型_C627 = 'clipart'">graphic</xsl:when>
8747						<xsl:when test="uof:占位符_C626/@类型_C627 = 'media_clip'">graphic</xsl:when>
8748						<xsl:when test="uof:占位符_C626/@类型_C627 = 'graphics'">graphic</xsl:when>
8749						<xsl:when test="uof:占位符_C626/@类型_C627 = 'number'">page-number</xsl:when>
8750						<xsl:when test="uof:占位符_C626/@类型_C627 = 'centertitle'">title</xsl:when>
8751						<xsl:when test="uof:占位符_C626/@类型_C627 = 'date'">date-time</xsl:when>
8752						<xsl:when test="uof:占位符_C626/@类型_C627 = 'vertical_text'">outline</xsl:when>
8753						<xsl:when test="uof:占位符_C626/@类型_C627 = 'vertical_title'">title</xsl:when>
8754						<xsl:when test="uof:占位符_C626/@类型_C627 = 'vertical_subtitle'">subtitle</xsl:when>
8755						<xsl:when test="uof:占位符_C626/@类型_C627 = 'title'">
8756							<xsl:choose>
8757								<xsl:when test="../uof:锚点_C644[uof:占位符_C626/@类型_C627='centertitle']">subtitle</xsl:when>
8758								<xsl:otherwise>title</xsl:otherwise>
8759							</xsl:choose>
8760						</xsl:when>
8761						<xsl:when test="uof:占位符_C626/@类型_C627 = 'text'">
8762							<xsl:choose>
8763								<xsl:when test="parent::演:幻灯片_6C0F or parent::演:母版_6C0D">outline</xsl:when>
8764								<xsl:otherwise>subtitle</xsl:otherwise>
8765							</xsl:choose>
8766						</xsl:when>
8767						<xsl:otherwise>
8768							<xsl:value-of select="uof:占位符_C626/@类型_C627"/>
8769						</xsl:otherwise>
8770					</xsl:choose>
8771				</xsl:variable>
8772				<xsl:attribute name="presentation:class"><xsl:value-of select="$placeChar"/></xsl:attribute>
8773				<xsl:if test="(name(..) = '演:母版_6C0D') and (($placeChar = 'header') or ($placeChar = 'footer') or ($placeChar = 'date-time') or ($placeChar = 'page-number'))">
8774					<xsl:attribute name="draw:text-style-name" select="concat(generate-id(), '-special')"/>
8775				</xsl:if>
8776				<!--
8777				<xsl:if test="not((name(..) = '演:母版') and (uof:占位符_C626 = 'title'))">
8778					<xsl:attribute name="presentation:user-transformed" select="'true'"/>
8779				</xsl:if>
8780				-->
8781				<xsl:choose>
8782					<xsl:when test="not((name(..) = '演:母版_6C0D') and (uof:占位符_C626/@类型_C627 = 'title'))">
8783						<xsl:attribute name="presentation:user-transformed" select="'false'"/>
8784					</xsl:when>
8785					<xsl:when test="(name(..) = '演:母版_6C0D') and (uof:占位符_C626/@类型_C627 = 'title')">
8786						<!--xsl:if test="following-sibling::node()[@uof:占位符 = 'text']">
8787							<xsl:variable name="IsEmptyText">
8788								<xsl:for-each select="following-sibling::node()[(uof:占位符_C626 = 'text')]">
8789									<xsl:variable name="picname">
8790										<xsl:value-of select="@uof:图形引用"/>
8791									</xsl:variable>
8792									<xsl:variable name="picstyle" select="key('graph-styles', $picname)"/>
8793									<xsl:for-each select="$picstyle/图:文本内容/字:段落_416B[1]">
8794										<xsl:variable name="nCount1" select="count(字:域开始)"/>
8795										<xsl:variable name="nCount2" select="count(字:域代码)"/>
8796										<xsl:variable name="nCount3" select="count(字:域结束)"/>
8797										<xsl:variable name="nCount4" select="count(字:修订开始)"/>
8798										<xsl:variable name="nCount5" select="count(字:修订结束)"/>
8799										<xsl:if test="($nCount1 = 0) and ($nCount2 = 0) and ($nCount3 = 0) and ($nCount4 = 0) and ($nCount5 = 0)">
8800											<xsl:choose>
8801												<xsl:when test="count(字:句_419D) = 0">
8802													<xsl:value-of select="'true'"/>
8803												</xsl:when>
8804												<xsl:otherwise>
8805													<!-hsr ??在变量定义中应用模板是无效的吧??->
8806													<xsl:apply-templates select="字:句_419D[1]" mode="IsEmpty"/>
8807												</xsl:otherwise>
8808											</xsl:choose>
8809										</xsl:if>
8810									</xsl:for-each>
8811								</xsl:for-each>
8812							</xsl:variable>
8813							<xsl:if test="$IsEmptyText != 'true'">
8814								<xsl:attribute name="presentation:user-transformed" select="'true'"/>
8815							</xsl:if>
8816						</xsl:if>
8817						<xsl:if test="following-sibling::node()[uof:占位符_C626 = 'outline']">
8818							<xsl:variable name="IsEmptyOutline">
8819								<xsl:for-each select="following-sibling::node()[(uof:占位符_C626 = 'outline')]">
8820									<xsl:variable name="picname">
8821										<xsl:value-of select="@uof:图形引用"/>
8822									</xsl:variable>
8823									<xsl:variable name="picstyle" select="key('graph-styles', $picname)"/>
8824									<xsl:for-each select="$picstyle/图:文本内容">
8825										<xsl:variable name="nCount1" select="count(字:段落_416B[1]/字:域开始)"/>
8826										<xsl:variable name="nCount2" select="count(字:段落_416B[1]/字:域代码)"/>
8827										<xsl:variable name="nCount3" select="count(字:段落_416B[1]/字:域结束)"/>
8828										<xsl:variable name="nCount4" select="count(字:段落_416B[1]/字:修订开始)"/>
8829										<xsl:variable name="nCount5" select="count(字:段落_416B[1]/字:修订结束)"/>
8830										<xsl:choose>
8831											<xsl:when test="($nCount1 = 0) and ($nCount2 = 0) and ($nCount3 = 0) and ($nCount4 = 0) and ($nCount5 = 0) and count(字:段落_416B/字:句_419D) = 0">
8832												<xsl:value-of select="'true'"/>
8833											</xsl:when>
8834											<xsl:otherwise>
8835												<xsl:apply-templates select="字:段落/字:句[1]" mode="IsEmpty"/>
8836											</xsl:otherwise>
8837										</xsl:choose>
8838									</xsl:for-each>
8839								</xsl:for-each>
8840							</xsl:variable>
8841							<xsl:if test="$IsEmptyOutline != 'true'">
8842								<xsl:attribute name="presentation:user-transformed" select="'true'"/>
8843							</xsl:if>
8844						</xsl:if-->
8845						<xsl:for-each select="following-sibling::*">
8846							<xsl:if test="uof:占位符_C626/@类型_C627 = 'text' or uof:占位符_C626/@类型_C627 = 'outline'">
8847								<xsl:variable name="picname">
8848									<xsl:value-of select="@图形引用_C62E"/>
8849								</xsl:variable>
8850								<xsl:variable name="picstyle" select="key('graph-styles', $picname)"/>
8851								<xsl:for-each select="$picstyle/图:文本_803C/图:内容_8043">
8852									<xsl:variable name="nCount1" select="count(字:段落_416B[1]/字:域开始_419E)"/>
8853									<xsl:variable name="nCount2" select="count(字:段落_416B[1]/字:域代码_419F)"/>
8854									<xsl:variable name="nCount3" select="count(字:段落_416B[1]/字:域结束_41A0)"/>
8855									<xsl:variable name="nCount4" select="count(字:段落_416B[1]/字:修订开始_421F)"/>
8856									<xsl:variable name="nCount5" select="count(字:段落_416B[1]/字:修订结束_4223)"/>
8857									<xsl:if test="not(($nCount1 = 0) and ($nCount2 = 0) and ($nCount3 = 0) and ($nCount4 = 0) and ($nCount5 = 0) and count(字:段落_416B/字:句_419D) = 0)">
8858										<xsl:attribute name="presentation:user-transformed" select="'false'"/>
8859										<xsl:apply-templates select="字:段落_416B/字:句_419D[1]" mode="IsEmpty"/>
8860									</xsl:if>
8861								</xsl:for-each>
8862							</xsl:if>
8863						</xsl:for-each>
8864					</xsl:when>
8865				</xsl:choose>
8866				<xsl:if test="name(..) = '演:幻灯片_6C0F'and not(uof:占位符_C626/@类型_C627 = 'chart' or uof:占位符_C626/@类型_C627 = 'clipart' or uof:占位符_C626/@类型_C627 = 'media_clip' or uof:占位符_C626/@类型_C627= 'graphics') ">
8867					<xsl:attribute name="presentation:placeholder" select="'true'"/>
8868				</xsl:if>
8869			</xsl:when>
8870			<xsl:otherwise>
8871				<xsl:choose>
8872					<xsl:when test="$picstyle/@标识符_804B">
8873						<xsl:attribute name="draw:style-name"><xsl:value-of select="$picstyle[1]/@标识符_804B"/></xsl:attribute>
8874						<xsl:attribute name="draw:id"><xsl:value-of select="$picstyle[1]/@标识符_804B"/></xsl:attribute>
8875					</xsl:when>
8876					<xsl:when test="$picstyle/@标识符_804B">
8877						<xsl:attribute name="draw:style-name"><xsl:value-of select="$picstyle[1]/@标识符_804B"/></xsl:attribute>
8878						<xsl:attribute name="draw:id"><xsl:value-of select="$picstyle[1]/@标识符_804B"/></xsl:attribute>
8879					</xsl:when>
8880				</xsl:choose>
8881			</xsl:otherwise>
8882		</xsl:choose>
8883		<xsl:if test="not($angle=0)">
8884			<xsl:call-template name="DrawTransform">
8885				<xsl:with-param name="angle" select="$picstyle/图:预定义图形_8018/图:属性_801D/图:旋转角度_804D"/>
8886			</xsl:call-template>
8887		</xsl:if>
8888		<xsl:variable name="tuxing">
8889			<xsl:value-of select="@图形引用_C62E"/>
8890		</xsl:variable>
8891		<xsl:if test="../演:动画_6B1A/演:序列_6B1B[@对象引用_6C28 = $tuxing]">
8892
8893			<xsl:attribute name="draw:id"><xsl:value-of select="$tuxing"/></xsl:attribute>
8894		</xsl:if>
8895	</xsl:template>
8896	<xsl:template name="DrawCommElementWeb">
8897		<xsl:param name="picstyle"/>
8898		<xsl:if test="$picstyle/图:预定义图形_8018/图:属性_801D/图:Web文字_804F">
8899			<xsl:element name="svg:title">
8900				<xsl:value-of select="$picstyle/图:预定义图形_8018/图:属性_801D/图:Web文字_804F"/>
8901			</xsl:element>
8902		</xsl:if>
8903	</xsl:template>
8904	<xsl:template name="DrawCommElementText">
8905		<xsl:param name="picstyle"/>
8906		<xsl:if test="$picstyle/图:文本_803C/图:内容_8043">
8907			<!-- whether empty title of marster -->
8908			<xsl:variable name="IsEmptyTitle">
8909				<xsl:if test="(name(..) = '演:母版_6C0D') and (uof:占位符_C626/@类型_C627 = 'title')">
8910					<xsl:for-each select="$picstyle/图:文本_803C/图:内容_8043">
8911						<xsl:variable name="nCount1" select="count(字:段落_416B[1]/字:域开始_419E)"/>
8912						<xsl:variable name="nCount2" select="count(字:段落_416B[1]/字:域代码_419F)"/>
8913						<xsl:variable name="nCount3" select="count(字:段落_416B[1]/字:域结束_41A0)"/>
8914						<xsl:variable name="nCount4" select="count(字:段落_416B[1]/字:修订开始_421F)"/>
8915						<xsl:variable name="nCount5" select="count(字:段落_416B[1]/字:修订结束_4223)"/>
8916						<!--xsl:choose>
8917							<xsl:when test="count(字:段落[1]/字:句)!=0 and ($nCount1 = 0) and ($nCount2 = 0) and ($nCount3 = 0) and ($nCount4 = 0) and ($nCount5 = 0)">
8918								<xsl:apply-templates select="字:段落[1]/字:句[1]" mode="IsEmpty"/>
8919							</xsl:when>
8920							<xsl:otherwise>true</xsl:otherwise>
8921						</xsl:choose-->
8922						<xsl:if test="not(count(字:段落_416B[1]/字:句_419D)!=0 and ($nCount1 = 0) and ($nCount2 = 0) and ($nCount3 = 0) and ($nCount4 = 0) and ($nCount5 = 0))">true</xsl:if>
8923					</xsl:for-each>
8924				</xsl:if>
8925			</xsl:variable>
8926			<xsl:choose>
8927				<!-- give a prompt message for marster's empty title -->
8928				<xsl:when test="$IsEmptyTitle = 'true'">
8929					<text:p>单击鼠标编辑标题文的格式</text:p>
8930				</xsl:when>
8931				<xsl:otherwise>
8932					<xsl:for-each select="$picstyle/图:文本_803C/图:内容_8043/*">
8933						<xsl:choose>
8934							<xsl:when test="name(.)='字:段落_416B'">
8935								<xsl:apply-templates select="."/>
8936							</xsl:when>
8937							<xsl:when test="name(.)='字:文字表_416C'">
8938								<xsl:apply-templates select="."/>
8939							</xsl:when>
8940						</xsl:choose>
8941					</xsl:for-each>
8942				</xsl:otherwise>
8943			</xsl:choose>
8944		</xsl:if>
8945	</xsl:template>
8946	<xsl:template name="DrawCommElement">
8947		<xsl:param name="picstyle"/>
8948		<xsl:call-template name="DrawCommElementWeb">
8949			<xsl:with-param name="picstyle" select="$picstyle"/>
8950		</xsl:call-template>
8951		<xsl:call-template name="DrawCommElementText">
8952			<xsl:with-param name="picstyle" select="$picstyle"/>
8953		</xsl:call-template>
8954	</xsl:template>
8955	<xsl:template name="DrawCommContent">
8956		<xsl:param name="picstyle"/>
8957		<xsl:call-template name="DrawCommAttr">
8958			<xsl:with-param name="picstyle" select="$picstyle"/>
8959		</xsl:call-template>
8960		<xsl:call-template name="DrawCommElement">
8961			<xsl:with-param name="picstyle" select="$picstyle"/>
8962		</xsl:call-template>
8963	</xsl:template>
8964	<xsl:template name="DrawPoints">
8965		<xsl:param name="points"/>
8966		<xsl:param name="value"/>
8967		<xsl:if test="$points">
8968			<xsl:variable name="frist-piont">
8969				<xsl:value-of select="substring-before($points,'lineto')"/>
8970			</xsl:variable>
8971			<xsl:variable name="other-points">
8972				<xsl:value-of select="substring-after($points,'lineto')"/>
8973			</xsl:variable>
8974			<xsl:choose>
8975				<xsl:when test="contains($other-points,'lineto')">
8976					<xsl:variable name="x-coor">
8977						<xsl:value-of select="number(substring-before($frist-piont,' ')) * 1000"/>
8978					</xsl:variable>
8979					<xsl:variable name="y-coor">
8980						<xsl:value-of select="number(substring-after($frist-piont,' ')) * 1000"/>
8981					</xsl:variable>
8982					<xsl:call-template name="DrawPoints">
8983						<xsl:with-param name="points" select="$other-points"/>
8984						<xsl:with-param name="value" select="concat($value,$x-coor,',',$y-coor,' ')"/>
8985					</xsl:call-template>
8986				</xsl:when>
8987				<xsl:otherwise>
8988					<xsl:variable name="q-x-coor">
8989						<xsl:value-of select="number(substring-before($frist-piont,' ')) * 1000"/>
8990					</xsl:variable>
8991					<xsl:variable name="q-y-coor">
8992						<xsl:value-of select="number(substring-after($frist-piont,' ')) * 1000"/>
8993					</xsl:variable>
8994					<xsl:variable name="e-x-coor">
8995						<xsl:value-of select="number(substring-before($other-points,' ')) * 1000"/>
8996					</xsl:variable>
8997					<xsl:variable name="e-y-coor">
8998						<xsl:value-of select="number(substring-after($other-points,' ')) * 1000"/>
8999					</xsl:variable>
9000					<xsl:value-of select="concat($value,$q-x-coor,',',$q-y-coor,' ',$e-x-coor,',',$e-y-coor)"/>
9001				</xsl:otherwise>
9002			</xsl:choose>
9003		</xsl:if>
9004	</xsl:template>
9005	<xsl:template name="DrawPathContent">
9006		<xsl:param name="picstyle"/>
9007		<xsl:call-template name="DrawCommAttr">
9008			<xsl:with-param name="picstyle" select="$picstyle"/>
9009		</xsl:call-template>
9010		<xsl:variable name="width" select="number($picstyle/图:预定义图形_8018/图:属性_801D/图:大小_8060/@宽_C605)*1000"/>
9011		<xsl:variable name="height" select="number($picstyle/图:预定义图形_8018/图:属性_801D/图:大小_8060/@长_C604)*1000"/>
9012		<xsl:attribute name="svg:viewBox"><xsl:value-of select="concat('0 0 ',$width, ' ',$height)"/></xsl:attribute>
9013		<xsl:attribute name="draw:points"><xsl:call-template name="DrawPoints"><xsl:with-param name="points" select="$picstyle/图:预定义图形_8018/图:路径_801C"/><xsl:with-param name="value"/></xsl:call-template></xsl:attribute>
9014		<xsl:call-template name="DrawCommElement">
9015			<xsl:with-param name="picstyle" select="$picstyle"/>
9016		</xsl:call-template>
9017	</xsl:template>
9018	<xsl:template name="DrawSpecialGeometry">
9019		<xsl:param name="GraphicID"/>
9020		<xsl:choose>
9021			<xsl:when test="$GraphicID='122'">
9022				<xsl:attribute name="svg:viewBox">0 0 640 861</xsl:attribute>
9023				<xsl:attribute name="draw:text-areas">257 295 414 566</xsl:attribute>
9024				<xsl:attribute name="draw:type">non-primitive</xsl:attribute>
9025				<xsl:attribute name="draw:enhanced-path">M 640 233 L 221 293 506 12 367 0 29 406 431 347 145 645 99 520 0 861 326 765 209 711 640 233 640 233 Z N</xsl:attribute>
9026			</xsl:when>
9027			<xsl:when test="$GraphicID='217'">
9028				<xsl:attribute name="draw:text-areas">4000 ?f1 ?f5 ?f2</xsl:attribute>
9029				<xsl:attribute name="draw:glue-points">0 10800 21600 10800 ?f0 0 ?f0 21600</xsl:attribute>
9030				<xsl:attribute name="draw:type">mso-spt100</xsl:attribute>
9031				<xsl:attribute name="draw:modifiers">13200 6400 0</xsl:attribute>
9032				<xsl:attribute name="draw:enhanced-path">M ?f0 0 L 21600 10800 ?f0 21800 ?f0 ?f2 4000 ?f2 4000 ?f1 ?f0 ?f1 ?f0 0 M 0 ?f1 L 0 ?f2 1000 ?f2 1000 ?f1 0 ?f1 M 2000 ?f1 L 2000 ?f2 3000 ?f2 3000 ?f1 2000 ?f1 Z N</xsl:attribute>
9033				<draw:equation draw:name="f0" draw:formula="$0 "/>
9034				<draw:equation draw:name="f1" draw:formula="$1 "/>
9035				<draw:equation draw:name="f2" draw:formula="bottom-$1 "/>
9036				<draw:equation draw:name="f3" draw:formula="right-$0 "/>
9037				<draw:equation draw:name="f4" draw:formula="?f3 *$1 /10800"/>
9038				<draw:equation draw:name="f5" draw:formula="$0 +?f4 "/>
9039				<draw:handle draw:handle-position="$0 $1" draw:handle-range-x-minimum="4000" draw:handle-range-x-maximum="21600" draw:handle-range-y-minimum="0" draw:handle-range-y-maximum="10800"/>
9040			</xsl:when>
9041		</xsl:choose>
9042	</xsl:template>
9043	<xsl:template name="DrawCustomContent">
9044		<xsl:param name="picstyle"/>
9045		<xsl:param name="graphtype"/>
9046		<xsl:variable name="customtype">
9047			<xsl:call-template name="CustomShapeType">
9048				<xsl:with-param name="GraphicID" select="$graphtype[1]"/>
9049			</xsl:call-template>
9050		</xsl:variable>
9051		<xsl:variable name="graphicreferences">
9052			<xsl:value-of select="@图形引用_C62E"/>
9053		</xsl:variable>
9054		<xsl:call-template name="DrawCommAttr">
9055			<xsl:with-param name="picstyle" select="$picstyle"/>
9056		</xsl:call-template>
9057		<draw:enhanced-geometry>
9058			<xsl:choose>
9059				<xsl:when test="$picstyle/图:翻转_803A = 'y'">
9060					<xsl:attribute name="draw:mirror-vertical">true</xsl:attribute>
9061				</xsl:when>
9062				<xsl:when test="$picstyle/图:翻转_803A = 'x'">
9063					<xsl:attribute name="draw:mirror-horizontal">true</xsl:attribute>
9064				</xsl:when>
9065				<xsl:when test="$picstyle/图:翻转_803A = 'xy'">
9066					<xsl:attribute name="draw:mirror-horizontal">true</xsl:attribute>
9067					<xsl:attribute name="draw:mirror-vertical">true</xsl:attribute>
9068				</xsl:when>
9069			</xsl:choose>
9070			<xsl:if test="$picstyle/图:控制点_8039/@x_C606 != ' ' or $picstyle/图:控制点_8039/@y_C607 != ' '">
9071				<xsl:variable name="modifiers-x">
9072					<xsl:value-of select="$picstyle/图:控制点_8039/@x_C606"/>
9073				</xsl:variable>
9074				<xsl:variable name="modifiers-y">
9075					<xsl:value-of select="$picstyle/图:控制点_8039/@y_C607"/>
9076				</xsl:variable>
9077				<xsl:attribute name="draw:modifiers"><xsl:value-of select="concat($modifiers-x,' ',$modifiers-y)"/></xsl:attribute>
9078			</xsl:if>
9079			<xsl:choose>
9080				<xsl:when test="$customtype!=''">
9081					<xsl:attribute name="draw:type"><xsl:value-of select="$customtype"/></xsl:attribute>
9082					<xsl:call-template name="DrawSpecialGeometry">
9083						<xsl:with-param name="GraphicID" select="$graphtype"/>
9084					</xsl:call-template>
9085				</xsl:when>
9086				<xsl:when test="key('graphicsextension',$graphicreferences)">
9087					<xsl:for-each select="key('graphicsextension',$graphicreferences)/扩展:扩展内容_B204/扩展:内容_B206/扩展:预定义图形数据">
9088						<xsl:copy-of select="@*|node()"/>
9089					</xsl:for-each>
9090				</xsl:when>
9091			</xsl:choose>
9092		</draw:enhanced-geometry>
9093		<xsl:call-template name="DrawCommElement">
9094			<xsl:with-param name="picstyle" select="$picstyle"/>
9095		</xsl:call-template>
9096	</xsl:template>
9097	<xsl:template name="DrawLineAttr">
9098		<xsl:param name="picstyle"/>
9099		<xsl:param name="isconnector"/>
9100		<xsl:variable name="angle">
9101			<xsl:choose>
9102				<xsl:when test="$picstyle/图:预定义图形_8018/图:属性_801D/图:旋转角度_804D and not($picstyle/图:预定义图形_8018/图:属性_801D/图:旋转角度_804D='0.0')">
9103					<xsl:value-of select="$picstyle/图:预定义图形_8018/图:属性_801D/图:旋转角度_804D"/>
9104				</xsl:when>
9105				<xsl:otherwise>
9106					<xsl:value-of select="0"/>
9107				</xsl:otherwise>
9108			</xsl:choose>
9109		</xsl:variable>
9110		<xsl:choose>
9111			<xsl:when test="not($picstyle/图:组合位置_803B)">
9112				<xsl:variable name="posx">
9113					<xsl:choose>
9114						<xsl:when test="uof:位置_C620/@类型_C646 = 'as-char'">
9115							<xsl:value-of select="number(0)"/>
9116						</xsl:when>
9117						<xsl:when test="uof:位置_C620/uof:水平_4106/uof:绝对_4107/@值_4108">
9118							<xsl:value-of select="number(uof:位置_C620/uof:水平_4106/uof:绝对_4107/@值_4108)"/>
9119						</xsl:when>
9120						<xsl:when test="uof:位置_C620/uof:水平_4106/uof:相对_4109">
9121							<xsl:value-of select="number(uof:位置_C620/uof:水平_4106/uof:相对_4109/@值_410B)"/>
9122						</xsl:when>
9123					</xsl:choose>
9124				</xsl:variable>
9125				<xsl:variable name="posy">
9126					<xsl:choose>
9127						<xsl:when test="uof:位置_C620/@类型_C646 = 'as-char'">
9128							<xsl:value-of select="number(0)"/>
9129						</xsl:when>
9130						<xsl:when test="uof:位置_C620/uof:垂直_410D/@相对于_410C = 'line'">
9131							<xsl:value-of select="0 - number(uof:位置_C620/uof:垂直_410D/uof:绝对_4107/@值_4108)"/>
9132						</xsl:when>
9133						<xsl:when test="uof:位置_C620/uof:垂直_410D/uof:绝对_4107/@值_4108">
9134							<xsl:value-of select="number(uof:位置_C620/uof:垂直_410D/uof:绝对_4107/@值_4108)"/>
9135						</xsl:when>
9136						<xsl:when test="uof:位置_C620/uof:垂直_410D/uof:相对_4109">
9137							<xsl:value-of select="number(字:位置_C620/uof:垂直_410D/uof:相对_4109/@值_410B)"/>
9138						</xsl:when>
9139					</xsl:choose>
9140				</xsl:variable>
9141				<xsl:variable name="width" select="number(uof:大小_C621/@宽_C605)"/>
9142				<xsl:variable name="height" select="number(uof:大小_C621/@长_C604)"/>
9143				<xsl:choose>
9144					<xsl:when test="$picstyle/图:翻转_803A = 'x'">
9145						<xsl:variable name="x1" select="number($posx) + number($width)"/>
9146						<xsl:variable name="y1" select="number($posy)"/>
9147						<xsl:variable name="x2" select="$posx"/>
9148						<xsl:variable name="y2" select="number($posy) + number($height)"/>
9149						<xsl:attribute name="svg:x1"><xsl:value-of select="concat($x1,$uofUnit)"/></xsl:attribute>
9150						<xsl:attribute name="svg:y1"><xsl:value-of select="concat($y1,$uofUnit)"/></xsl:attribute>
9151						<xsl:attribute name="svg:x2"><xsl:value-of select="concat($x2,$uofUnit)"/></xsl:attribute>
9152						<xsl:attribute name="svg:y2"><xsl:value-of select="concat($y2,$uofUnit)"/></xsl:attribute>
9153					</xsl:when>
9154					<xsl:when test="$picstyle/图:翻转_803A = 'y'">
9155						<xsl:variable name="x1" select="number($posx)"/>
9156						<xsl:variable name="y1" select="number($posy) + number($height)"/>
9157						<xsl:variable name="x2" select="number($posx) + number($width)"/>
9158						<xsl:variable name="y2" select="$posy"/>
9159						<xsl:attribute name="svg:x1"><xsl:value-of select="concat(string($x1),$uofUnit)"/></xsl:attribute>
9160						<xsl:attribute name="svg:y1"><xsl:value-of select="concat(string($y1),$uofUnit)"/></xsl:attribute>
9161						<xsl:attribute name="svg:x2"><xsl:value-of select="concat(string($x2),$uofUnit)"/></xsl:attribute>
9162						<xsl:attribute name="svg:y2"><xsl:value-of select="concat(string($y2),$uofUnit)"/></xsl:attribute>
9163					</xsl:when>
9164					<xsl:when test="$picstyle/图:翻转_803A = 'xy'">
9165						<xsl:variable name="x1" select="$posx + $width"/>
9166						<xsl:variable name="y1" select="$posy + $height"/>
9167						<xsl:variable name="x2" select="$posx"/>
9168						<xsl:variable name="y2" select="$posy"/>
9169						<xsl:attribute name="svg:x1"><xsl:value-of select="concat($x1,$uofUnit)"/></xsl:attribute>
9170						<xsl:attribute name="svg:y1"><xsl:value-of select="concat($y1,$uofUnit)"/></xsl:attribute>
9171						<xsl:attribute name="svg:x2"><xsl:value-of select="concat($x2,$uofUnit)"/></xsl:attribute>
9172						<xsl:attribute name="svg:y2"><xsl:value-of select="concat($y2,$uofUnit)"/></xsl:attribute>
9173					</xsl:when>
9174					<xsl:otherwise>
9175						<xsl:variable name="x1" select="$posx"/>
9176						<xsl:variable name="y1" select="$posy"/>
9177						<xsl:variable name="x2" select="number($posx) + number($width)"/>
9178						<xsl:variable name="y2" select="number($posy) + number($height)"/>
9179						<xsl:attribute name="svg:x1"><xsl:value-of select="concat($x1,$uofUnit)"/></xsl:attribute>
9180						<xsl:attribute name="svg:y1"><xsl:value-of select="concat($y1,$uofUnit)"/></xsl:attribute>
9181						<xsl:attribute name="svg:x2"><xsl:value-of select="concat($x2,$uofUnit)"/></xsl:attribute>
9182						<xsl:attribute name="svg:y2"><xsl:value-of select="concat($y2,$uofUnit)"/></xsl:attribute>
9183					</xsl:otherwise>
9184				</xsl:choose>
9185			</xsl:when>
9186			<xsl:otherwise>
9187				<xsl:variable name="posx" select="number($picstyle/图:组合位置_803B/@x_C606)"/>
9188				<xsl:variable name="posy" select="number($picstyle/图:组合位置_803B/@y_C607)"/>
9189				<xsl:variable name="width" select="number($picstyle/图:预定义图形_8018/图:属性_801D/图:大小_8060/@宽_C605)"/>
9190				<xsl:variable name="height" select="number($picstyle/图:预定义图形_8018/图:属性_801D/图:大小_8060/@长_C604)"/>
9191				<xsl:choose>
9192					<xsl:when test="$picstyle/图:翻转_803A = 'x'">
9193						<xsl:variable name="x1" select="$posx + $width"/>
9194						<xsl:variable name="y1" select="$posy"/>
9195						<xsl:variable name="x2" select="$posx"/>
9196						<xsl:variable name="y2" select="$posy + $height"/>
9197						<xsl:attribute name="svg:x1"><xsl:value-of select="concat($x1,$uofUnit)"/></xsl:attribute>
9198						<xsl:attribute name="svg:y1"><xsl:value-of select="concat($y1,$uofUnit)"/></xsl:attribute>
9199						<xsl:attribute name="svg:x2"><xsl:value-of select="concat($x2,$uofUnit)"/></xsl:attribute>
9200						<xsl:attribute name="svg:y2"><xsl:value-of select="concat($y2,$uofUnit)"/></xsl:attribute>
9201					</xsl:when>
9202					<xsl:when test="$picstyle/图:翻转_803A = 'y'">
9203						<xsl:variable name="x1" select="$posx"/>
9204						<xsl:variable name="y1" select="$posy + $height"/>
9205						<xsl:variable name="x2" select="$posx + $width"/>
9206						<xsl:variable name="y2" select="$posy"/>
9207						<xsl:attribute name="svg:x1"><xsl:value-of select="concat($x1,$uofUnit)"/></xsl:attribute>
9208						<xsl:attribute name="svg:y1"><xsl:value-of select="concat($y1,$uofUnit)"/></xsl:attribute>
9209						<xsl:attribute name="svg:x2"><xsl:value-of select="concat($x2,$uofUnit)"/></xsl:attribute>
9210						<xsl:attribute name="svg:y2"><xsl:value-of select="concat($y2,$uofUnit)"/></xsl:attribute>
9211					</xsl:when>
9212					<xsl:when test="$picstyle/图:翻转_803A = 'xy'">
9213						<xsl:variable name="x1" select="$posx + $width"/>
9214						<xsl:variable name="y1" select="$posy + $height"/>
9215						<xsl:variable name="x2" select="$posx"/>
9216						<xsl:variable name="y2" select="$posy"/>
9217						<xsl:attribute name="svg:x1"><xsl:value-of select="concat($x1,$uofUnit)"/></xsl:attribute>
9218						<xsl:attribute name="svg:y1"><xsl:value-of select="concat($y1,$uofUnit)"/></xsl:attribute>
9219						<xsl:attribute name="svg:x2"><xsl:value-of select="concat($x2,$uofUnit)"/></xsl:attribute>
9220						<xsl:attribute name="svg:y2"><xsl:value-of select="concat($y2,$uofUnit)"/></xsl:attribute>
9221					</xsl:when>
9222					<xsl:otherwise>
9223						<xsl:variable name="x1" select="$posx"/>
9224						<xsl:variable name="y1" select="$posy"/>
9225						<xsl:variable name="x2" select="$posx + $width"/>
9226						<xsl:variable name="y2" select="$posy + $height"/>
9227						<xsl:attribute name="svg:x1"><xsl:value-of select="concat($x1,$uofUnit)"/></xsl:attribute>
9228						<xsl:attribute name="svg:y1"><xsl:value-of select="concat($y1,$uofUnit)"/></xsl:attribute>
9229						<xsl:attribute name="svg:x2"><xsl:value-of select="concat($x2,$uofUnit)"/></xsl:attribute>
9230						<xsl:attribute name="svg:y2"><xsl:value-of select="concat($y2,$uofUnit)"/></xsl:attribute>
9231					</xsl:otherwise>
9232				</xsl:choose>
9233				<!--<xsl:variable name="zuheweizhi-x">
9234					<xsl:value-of select="$picstyle/图:组合位置/@图:x坐标"/>
9235				</xsl:variable>
9236				<xsl:variable name="zuheweizhi-y">
9237					<xsl:value-of select="$picstyle/图:组合位置/@图:y坐标"/>
9238				</xsl:variable>
9239				<xsl:variable name="hex">
9240					<xsl:value-of select="concat(0+number($zuheweizhi-x),$uofUnit)"/>
9241				</xsl:variable>
9242				<xsl:variable name="hey">
9243					<xsl:value-of select="concat(0+number($zuheweizhi-y),$uofUnit)"/>
9244				</xsl:variable>
9245				<xsl:attribute name="svg:x1"><xsl:value-of select="$hex"/></xsl:attribute>
9246				<xsl:attribute name="svg:y1"><xsl:value-of select="$hey"/></xsl:attribute>
9247				<xsl:attribute name="svg:x2"><xsl:value-of select="concat((number($zuheweizhi-x) + number($picstyle/图:预定义图形/图:属性/图:宽度)),$uofUnit)"/></xsl:attribute>
9248				<xsl:attribute name="svg:y2"><xsl:value-of select="concat((number($zuheweizhi-y) + number($picstyle/图:预定义图形/图:属性/图:高度)),$uofUnit)"/></xsl:attribute>-->
9249			</xsl:otherwise>
9250		</xsl:choose>
9251		<xsl:attribute name="text:anchor-type"><xsl:choose><xsl:when test="uof:位置_C620/@类型_C646='page'">page</xsl:when><xsl:when test="uof:位置_C620/@类型_C646='paragraph'">paragraph</xsl:when><xsl:when test="uof:位置_C620/@类型_C646='char'">char</xsl:when><xsl:when test="uof:位置_C620/@类型_C646='as-char'">as-char</xsl:when><xsl:when test="uof:位置_C620/@类型_C646='frame'">frame</xsl:when><xsl:otherwise>char</xsl:otherwise></xsl:choose></xsl:attribute>
9252		<xsl:attribute name="draw:style-name"><xsl:value-of select="$picstyle[1]/@标识符_804B"/></xsl:attribute>
9253		<xsl:attribute name="draw:id"><xsl:value-of select="$picstyle[1]/@标识符_804B"/></xsl:attribute>
9254		<xsl:if test="$picstyle/@层次_8063">
9255			<xsl:attribute name="draw:z-index"><xsl:value-of select="$picstyle[1]/@层次_8063"/></xsl:attribute>
9256		</xsl:if>
9257		<xsl:if test="not($angle=0)">
9258			<xsl:call-template name="DrawTransform">
9259				<xsl:with-param name="angle" select="$picstyle/图:预定义图形_8018/图:属性_801D/图:旋转角度_804D"/>
9260			</xsl:call-template>
9261		</xsl:if>
9262		<xsl:if test="$isconnector='true'">
9263			<xsl:attribute name="draw:start-shape"><xsl:value-of select="$picstyle//图:预定义图形_8018/图:连接线规则_8027/@始端对象引用_8029"/></xsl:attribute>
9264			<xsl:attribute name="draw:end-shape"><xsl:value-of select="$picstyle//图:预定义图形_8018/图:连接线规则_8027/@终端对象引用_802A"/></xsl:attribute>
9265			<xsl:attribute name="draw:start-glue-point"><xsl:value-of select="$picstyle//图:预定义图形_8018/图:连接线规则_8027/@始端对象连接点索引_802B"/></xsl:attribute>
9266			<xsl:attribute name="draw:end-glue-point"><xsl:value-of select="$picstyle//图:预定义图形_8018/图:连接线规则_8027/@终端对象连接点索引_802C"/></xsl:attribute>
9267		</xsl:if>
9268	</xsl:template>
9269	<!--xsl:template name="DrawRect">
9270		<xsl:param name="picstyle"/>
9271		<xsl:element name="draw:rect">
9272			<xsl:call-template name="DrawCommContent">
9273				<xsl:with-param name="picstyle" select="$picstyle"/>
9274			</xsl:call-template>
9275		</xsl:element>
9276	</xsl:template-->
9277	<xsl:template name="DrawCaption">
9278		<xsl:param name="picstyle"/>
9279		<xsl:element name="draw:caption">
9280			<xsl:call-template name="DrawCommContent">
9281				<xsl:with-param name="picstyle" select="$picstyle"/>
9282			</xsl:call-template>
9283		</xsl:element>
9284	</xsl:template>
9285	<xsl:template name="DrawLine">
9286		<xsl:param name="picstyle"/>
9287		<xsl:element name="draw:line">
9288			<xsl:call-template name="DrawLineAttr">
9289				<xsl:with-param name="picstyle" select="$picstyle"/>
9290			</xsl:call-template>
9291			<xsl:call-template name="DrawCommElement">
9292				<xsl:with-param name="picstyle" select="$picstyle"/>
9293			</xsl:call-template>
9294		</xsl:element>
9295	</xsl:template>
9296	<xsl:template name="DrawConnector">
9297		<xsl:param name="picstyle"/>
9298		<xsl:variable name="isconnector" select="string('true')"/>
9299		<xsl:variable name="graphtype">
9300			<xsl:value-of select="$picstyle/图:预定义图形_8018/图:类别_8019"/>
9301		</xsl:variable>
9302		<xsl:element name="draw:connector">
9303			<xsl:call-template name="DrawLineAttr">
9304				<xsl:with-param name="picstyle" select="$picstyle"/>
9305				<xsl:with-param name="isconnector" select="$isconnector"/>
9306			</xsl:call-template>
9307			<xsl:choose>
9308				<xsl:when test="$graphtype='71' or $graphtype='72' or $graphtype='73'">
9309					<xsl:attribute name="draw:type">line</xsl:attribute>
9310				</xsl:when>
9311				<xsl:when test="$graphtype='77' or $graphtype='78' or $graphtype='79'">
9312					<xsl:attribute name="draw:type">curve</xsl:attribute>
9313				</xsl:when>
9314			</xsl:choose>
9315			<xsl:if test="$picstyle/图:预定义图形_8018/图:路径_801C/图:路径值_8069">
9316				<xsl:variable name="width" select="number($picstyle/图:预定义图形_8018/图:属性_801D/图:大小_8060/@宽_C605)"/>
9317				<xsl:variable name="height" select="number($picstyle/图:预定义图形_8018/图:属性_801D/图:大小_8060/@长_C604)"/>
9318				<xsl:attribute name="svg:viewBox"><xsl:value-of select="concat('0 0 ',$width, ' ',$height)"/></xsl:attribute>
9319				<xsl:attribute name="draw:points"><xsl:value-of select="$picstyle/图:预定义图形_8018/图:路径_801C/图:路径值_8069"/></xsl:attribute>
9320			</xsl:if>
9321			<xsl:call-template name="DrawCommElement">
9322				<xsl:with-param name="picstyle" select="$picstyle"/>
9323			</xsl:call-template>
9324		</xsl:element>
9325	</xsl:template>
9326	<xsl:template name="DrawPolyline">
9327		<xsl:param name="picstyle"/>
9328		<xsl:element name="draw:polyline">
9329			<xsl:call-template name="DrawPathContent">
9330				<xsl:with-param name="picstyle" select="$picstyle"/>
9331			</xsl:call-template>
9332		</xsl:element>
9333	</xsl:template>
9334	<xsl:template name="DrawPolygon">
9335		<xsl:param name="picstyle"/>
9336		<xsl:element name="draw:polygon">
9337			<xsl:call-template name="DrawPathContent">
9338				<xsl:with-param name="picstyle" select="$picstyle"/>
9339			</xsl:call-template>
9340		</xsl:element>
9341	</xsl:template>
9342	<!--xsl:template name="DrawEllipse">
9343		<xsl:param name="picstyle"/>
9344		<xsl:element name="draw:ellipse">
9345			<xsl:call-template name="DrawCommContent">
9346				<xsl:with-param name="picstyle" select="$picstyle"/>
9347			</xsl:call-template>
9348		</xsl:element>
9349	</xsl:template-->
9350	<xsl:template name="CustomShapeType">
9351		<xsl:param name="GraphicID"/>
9352		<xsl:choose>
9353			<xsl:when test="$GraphicID='11'">rectangle</xsl:when>
9354			<xsl:when test="$GraphicID='12'">parallelogram</xsl:when>
9355			<xsl:when test="$GraphicID='13'">trapezoid</xsl:when>
9356			<xsl:when test="$GraphicID='14'">diamond</xsl:when>
9357			<xsl:when test="$GraphicID='15'">round-rectangle</xsl:when>
9358			<xsl:when test="$GraphicID='16'">octagon</xsl:when>
9359			<xsl:when test="$GraphicID='17'">isosceles-triangle</xsl:when>
9360			<xsl:when test="$GraphicID='18'">right-triangle</xsl:when>
9361			<xsl:when test="$GraphicID='19'">ellipse</xsl:when>
9362			<xsl:when test="$GraphicID='21'">right-arrow</xsl:when>
9363			<xsl:when test="$GraphicID='22'">left-arrow</xsl:when>
9364			<xsl:when test="$GraphicID='23'">up-arrow</xsl:when>
9365			<xsl:when test="$GraphicID='24'">down-arrow</xsl:when>
9366			<xsl:when test="$GraphicID='25'">left-right-arrow</xsl:when>
9367			<xsl:when test="$GraphicID='26'">up-down-arrow</xsl:when>
9368			<xsl:when test="$GraphicID='27'">quad-arrow</xsl:when>
9369			<xsl:when test="$GraphicID='28'">mso-spt182</xsl:when>
9370			<xsl:when test="$GraphicID='31'">flowchart-process</xsl:when>
9371			<xsl:when test="$GraphicID='33'">flowchart-decision</xsl:when>
9372			<xsl:when test="$GraphicID='34'">flowchart-data</xsl:when>
9373			<xsl:when test="$GraphicID='35'">flowchart-predefined-process</xsl:when>
9374			<xsl:when test="$GraphicID='36'">flowchart-internal-storage</xsl:when>
9375			<xsl:when test="$GraphicID='37'">flowchart-document</xsl:when>
9376			<xsl:when test="$GraphicID='38'">flowchart-multidocument</xsl:when>
9377			<xsl:when test="$GraphicID='39'">flowchart-terminator</xsl:when>
9378			<xsl:when test="$GraphicID='41'">mso-spt71</xsl:when>
9379			<xsl:when test="$GraphicID='42'">bang</xsl:when>
9380			<xsl:when test="$GraphicID='43'">star4</xsl:when>
9381			<xsl:when test="$GraphicID='44'">star5</xsl:when>
9382			<xsl:when test="$GraphicID='45'">star8</xsl:when>
9383			<xsl:when test="$GraphicID='46'">mso-spt59</xsl:when>
9384			<xsl:when test="$GraphicID='47'">star24</xsl:when>
9385			<xsl:when test="$GraphicID='48'">mso-spt60</xsl:when>
9386			<xsl:when test="$GraphicID='49'">mso-spt54</xsl:when>
9387			<xsl:when test="$GraphicID='51'">rectangular-callout</xsl:when>
9388			<xsl:when test="$GraphicID='52'">round-rectangular-callout</xsl:when>
9389			<xsl:when test="$GraphicID='53'">round-callout</xsl:when>
9390			<xsl:when test="$GraphicID='54'">cloud-callout</xsl:when>
9391			<xsl:when test="$GraphicID='55'">line-callout-1</xsl:when>
9392			<xsl:when test="$GraphicID='56'">line-callout-2</xsl:when>
9393			<xsl:when test="$GraphicID='57'">line-callout-3</xsl:when>
9394			<xsl:when test="$GraphicID='110'">hexagon</xsl:when>
9395			<xsl:when test="$GraphicID='111'">cross</xsl:when>
9396			<xsl:when test="$GraphicID='112'">pentagon</xsl:when>
9397			<xsl:when test="$GraphicID='113'">can</xsl:when>
9398			<xsl:when test="$GraphicID='114'">cube</xsl:when>
9399			<xsl:when test="$GraphicID='115'">quad-bevel</xsl:when>
9400			<xsl:when test="$GraphicID='116'">paper</xsl:when>
9401			<xsl:when test="$GraphicID='117'">smiley</xsl:when>
9402			<xsl:when test="$GraphicID='118'">ring</xsl:when>
9403			<xsl:when test="$GraphicID='119'">forbidden</xsl:when>
9404			<xsl:when test="$GraphicID='120'">block-arc</xsl:when>
9405			<xsl:when test="$GraphicID='121'">heart</xsl:when>
9406			<xsl:when test="$GraphicID='122'">non-primitive</xsl:when>
9407			<xsl:when test="$GraphicID='123'">sun</xsl:when>
9408			<xsl:when test="$GraphicID='124'">moon</xsl:when>
9409			<xsl:when test="$GraphicID='126'">bracket-pair</xsl:when>
9410			<xsl:when test="$GraphicID='127'">brace-pair</xsl:when>
9411			<xsl:when test="$GraphicID='128'">mso-spt21</xsl:when>
9412			<xsl:when test="$GraphicID='129'">left-bracket</xsl:when>
9413			<xsl:when test="$GraphicID='130'">right-bracket</xsl:when>
9414			<xsl:when test="$GraphicID='131'">left-brace</xsl:when>
9415			<xsl:when test="$GraphicID='132'">right-brace</xsl:when>
9416			<xsl:when test="$GraphicID='211'">mso-spt89</xsl:when>
9417			<xsl:when test="$GraphicID='212'">non-primitive</xsl:when>
9418			<xsl:when test="$GraphicID='214'">circular-arrow</xsl:when>
9419			<xsl:when test="$GraphicID='216'">circular-arrow</xsl:when>
9420			<xsl:when test="$GraphicID='217'">mso-spt100</xsl:when>
9421			<xsl:when test="$GraphicID='218'">notched-right-arrow</xsl:when>
9422			<xsl:when test="$GraphicID='219'">pentagon-right</xsl:when>
9423			<xsl:when test="$GraphicID='220'">chevron</xsl:when>
9424			<xsl:when test="$GraphicID='221'">right-arrow-callout</xsl:when>
9425			<xsl:when test="$GraphicID='222'">left-arrow-callout</xsl:when>
9426			<xsl:when test="$GraphicID='223'">up-arrow-callout</xsl:when>
9427			<xsl:when test="$GraphicID='224'">down-arrow-callout</xsl:when>
9428			<xsl:when test="$GraphicID='225'">left-right-arrow-callout</xsl:when>
9429			<xsl:when test="$GraphicID='226'">up-down-arrow-callout</xsl:when>
9430			<xsl:when test="$GraphicID='227'">quad-arrow-callout</xsl:when>
9431			<xsl:when test="$GraphicID='228'">circular-arrow</xsl:when>
9432			<xsl:when test="$GraphicID='310'">flowchart-preparation</xsl:when>
9433			<xsl:when test="$GraphicID='311'">flowchart-manual-input</xsl:when>
9434			<xsl:when test="$GraphicID='312'">flowchart-manual-operation</xsl:when>
9435			<xsl:when test="$GraphicID='313'">flowchart-connector</xsl:when>
9436			<xsl:when test="$GraphicID='314'">flowchart-off-page-connector</xsl:when>
9437			<xsl:when test="$GraphicID='315'">flowchart-card</xsl:when>
9438			<xsl:when test="$GraphicID='316'">flowchart-punched-tape</xsl:when>
9439			<xsl:when test="$GraphicID='317'">flowchart-summing-junction</xsl:when>
9440			<xsl:when test="$GraphicID='318'">flowchart-or</xsl:when>
9441			<xsl:when test="$GraphicID='319'">flowchart-collate</xsl:when>
9442			<xsl:when test="$GraphicID='320'">flowchart-sort</xsl:when>
9443			<xsl:when test="$GraphicID='321'">flowchart-extract</xsl:when>
9444			<xsl:when test="$GraphicID='322'">flowchart-merge</xsl:when>
9445			<xsl:when test="$GraphicID='323'">flowchart-stored-data</xsl:when>
9446			<xsl:when test="$GraphicID='324'">flowchart-delay</xsl:when>
9447			<xsl:when test="$GraphicID='325'">flowchart-sequential-access</xsl:when>
9448			<xsl:when test="$GraphicID='326'">flowchart-magnetic-disk</xsl:when>
9449			<xsl:when test="$GraphicID='327'">flowchart-direct-access-storage</xsl:when>
9450			<xsl:when test="$GraphicID='328'">flowchart-display</xsl:when>
9451			<xsl:when test="$GraphicID='413'">vertical-scroll</xsl:when>
9452			<xsl:when test="$GraphicID='414'">horizontal-scroll</xsl:when>
9453		</xsl:choose>
9454	</xsl:template>
9455	<xsl:template name="DrawCustomshape">
9456		<xsl:param name="picstyle"/>
9457		<xsl:param name="graphtype"/>
9458		<xsl:element name="draw:custom-shape">
9459			<xsl:call-template name="DrawCustomContent">
9460				<xsl:with-param name="picstyle" select="$picstyle"/>
9461				<xsl:with-param name="graphtype" select="$graphtype"/>
9462			</xsl:call-template>
9463		</xsl:element>
9464	</xsl:template>
9465	<xsl:template name="FrmContent">
9466		<xsl:param name="refobject"/>
9467		<xsl:variable name="frmobject">
9468			<xsl:choose>
9469				<xsl:when test="$refobject/@公共类型_D706">
9470					<xsl:choose>
9471						<xsl:when test="$refobject/@公共类型_D706= 'png'">image</xsl:when>
9472						<xsl:when test="$refobject/@公共类型_D706= 'jpg'">image</xsl:when>
9473						<xsl:when test="$refobject/@公共类型_D706= 'gif'">image</xsl:when>
9474						<xsl:when test="$refobject/@公共类型_D706= 'bmp'">image</xsl:when>
9475						<xsl:when test="$refobject/@公共类型_D706= 'pbm'">image</xsl:when>
9476						<xsl:when test="$refobject/@公共类型_D706= 'wav'">plugin</xsl:when>
9477						<xsl:when test="$refobject/@公共类型_D706= 'mid'">plugin</xsl:when>
9478						<xsl:when test="$refobject/@公共类型_D706= 'ra'">plugin</xsl:when>
9479						<xsl:when test="$refobject/@公共类型_D706= 'au'">plugin</xsl:when>
9480						<xsl:when test="$refobject/@公共类型_D706= 'mp3'">plugin</xsl:when>
9481						<xsl:when test="$refobject/@公共类型_D706= 'avi'">plugin</xsl:when>
9482						<xsl:when test="$refobject/@公共类型_D706= 'mpeg'">plugin</xsl:when>
9483						<xsl:when test="$refobject/@公共类型_D706= 'qt'">plugin</xsl:when>
9484						<xsl:when test="$refobject/@公共类型_D706= 'rm'">plugin</xsl:when>
9485						<xsl:when test="$refobject/@公共类型_D706= 'asf'">plugin</xsl:when>
9486						<xsl:when test="$refobject/@公共类型_D706= 'svg'">plugin</xsl:when>
9487						<xsl:otherwise>none</xsl:otherwise>
9488					</xsl:choose>
9489				</xsl:when>
9490				<xsl:when test="$refobject/@私有类型_D707">
9491					<xsl:choose>
9492						<xsl:when test="$refobject/@私有类型_D707= '图片'">image</xsl:when>
9493						<xsl:when test="$refobject/@私有类型_D707= 'emf'">image</xsl:when>
9494						<xsl:when test="$refobject/@私有类型_D707= 'old对象'">objectole</xsl:when>
9495						<xsl:otherwise>
9496							<xsl:value-of select="$refobject/@私有类型_D707"/>
9497						</xsl:otherwise>
9498					</xsl:choose>
9499				</xsl:when>
9500				<xsl:otherwise>none</xsl:otherwise>
9501			</xsl:choose>
9502		</xsl:variable>
9503		<xsl:if test="not($frmobject='none')">
9504			<xsl:choose>
9505				<xsl:when test="$frmobject='image'">
9506					<draw:image xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad">
9507						<xsl:if test="$refobject/对象:路径_D703">
9508							<!-- maybe xlink is a outside picture -->
9509							<xsl:call-template name="AddXLink">
9510								<xsl:with-param name="refobject" select="$refobject"/>
9511							</xsl:call-template>
9512						</xsl:if>
9513						<xsl:if test="$refobject/对象:数据_D702">
9514							<xsl:element name="office:binary-data">
9515								<xsl:value-of select="$refobject/对象:数据_D702"/>
9516							</xsl:element>
9517						</xsl:if>
9518					</draw:image>
9519				</xsl:when>
9520				<xsl:when test="$frmobject='objectole'">
9521					<xsl:element name="draw:object-ole">
9522						<xsl:if test="$refobject/对象:路径_D703">
9523							<!-- extensions of outside picture -->
9524							<xsl:call-template name="AddXLink">
9525								<xsl:with-param name="refobject" select="$refobject"/>
9526							</xsl:call-template>
9527							<!-- object data -->
9528						</xsl:if>
9529						<xsl:if test="$refobject/对象:数据_D702">
9530							<xsl:element name="office:binary-data">
9531								<xsl:value-of select="$refobject/对象:数据_D702"/>
9532							</xsl:element>
9533						</xsl:if>
9534					</xsl:element>
9535				</xsl:when>
9536			</xsl:choose>
9537		</xsl:if>
9538	</xsl:template>
9539	<!-- process pictues including outside pictures -->
9540	<xsl:template name="AddXLink">
9541		<xsl:param name="refobject"/>
9542		<xsl:attribute name="xlink:href"><xsl:variable name="path"><xsl:value-of select="$refobject/对象:路径_D703"/></xsl:variable><xsl:choose><xsl:when test="starts-with( $path,'/data')"><xsl:value-of select="replace($refobject/对象:路径_D703,'/data','Pictures')"/></xsl:when><xsl:otherwise><xsl:choose><!--'/' is for maybe absolute path--><xsl:when test="starts-with($path,'.') or starts-with($path,'/')"><xsl:value-of select="$path"/></xsl:when><xsl:otherwise><xsl:choose><xsl:when test="substring($path,2,1)=':'"><xsl:value-of select="concat( '/',$path)"/></xsl:when><xsl:otherwise><xsl:value-of select="$path"/></xsl:otherwise></xsl:choose></xsl:otherwise></xsl:choose></xsl:otherwise></xsl:choose></xsl:attribute>
9543	</xsl:template>
9544
9545	<xsl:template name="DrawFrame">
9546		<xsl:param name="picstyle"/>
9547		<xsl:element name="draw:frame">
9548			<xsl:attribute name="draw:name"><xsl:value-of select="@图形引用_C62E"/></xsl:attribute>
9549			<xsl:call-template name="DrawCommAttr">
9550				<xsl:with-param name="picstyle" select="$picstyle"/>
9551			</xsl:call-template>
9552			<xsl:if test="$picstyle/图:其他对象引用_8038">
9553				<xsl:variable name="cs">
9554					<xsl:value-of select="$picstyle/图:其他对象引用_8038"/>
9555				</xsl:variable>
9556				<xsl:choose>
9557					<xsl:when test="/uof:UOF_0000/公式:公式集_C200/公式:数学公式_C201[@标识符_C202=$cs]">
9558						<xsl:variable name="refobject" select="/uof:UOF_0000/公式:公式集_C200/公式:数学公式_C201[@标识符_C202=$cs]"/>
9559						<xsl:element name="draw:object">
9560							<xsl:element name="math:math">
9561								<xsl:copy-of select="$refobject/公式:math_C203/*"/>
9562							</xsl:element>
9563						</xsl:element>
9564					</xsl:when>
9565					<xsl:otherwise>
9566						<xsl:variable name="refobject" select="/uof:UOF_0000/对象:对象数据集_D700/对象:对象数据_D701[@标识符_D704=$cs]"/>
9567						<xsl:call-template name="FrmContent">
9568							<xsl:with-param name="refobject" select="$refobject"/>
9569						</xsl:call-template>
9570					</xsl:otherwise>
9571				</xsl:choose>
9572			</xsl:if>
9573			<!-- about Draw::Frame match subElement , starting… -->
9574			<xsl:if test="$picstyle/图:图片数据引用_8037">
9575				<xsl:variable name="titleMap">
9576					<xsl:value-of select="$picstyle/图:图片数据引用_8037"/>
9577				</xsl:variable>
9578				<xsl:variable name="pathMap">
9579					<xsl:for-each select="/uof:UOF_0000/对象:对象数据集_D700/对象:对象数据_D701[@标识符_D704 = $titleMap]">
9580						<xsl:if test="@标识符_D704 = $titleMap">
9581							<xsl:if test="current()/对象:路径_D703 and @是否内嵌_D705 = 'true'">
9582								<!-- Maybe there need to judge if it is an embedded URL path. Outside URL path doesn't allow to be replaced. -->
9583								<!-- Maybe need to judge if gonggongleixing_D706 attribute is existing. -->
9584								<xsl:value-of select="replace(current()/对象:路径_D703,'/data','Pictures')"/>
9585							</xsl:if>
9586							<xsl:if test="current()/对象:路径_D703 and @是否内嵌_D705 = 'false'">
9587								<!-- Maybe there need to judge if it is an embedded URL path. Outside URL path doesn't allow to be replaced. -->
9588								<!-- Maybe need to judge if gonggongleixing_D706 attribute is existing. -->
9589								<xsl:value-of select="current()/对象:路径_D703"/>
9590							</xsl:if>
9591							<xsl:if test="current()/对象:数据_D702">
9592								<xsl:value-of select="''"/>
9593							</xsl:if>
9594						</xsl:if>
9595					</xsl:for-each>
9596				</xsl:variable>
9597				<xsl:variable name="embed">
9598					<!-- embedded attribute, correspond with xlink:show in odf -->
9599					<xsl:for-each select="/uof:UOF_0000/对象:对象数据集_D700/对象:对象数据_D701[@标识符_D704 = $titleMap]">
9600						<xsl:if test="@标识符_D704 = $titleMap">
9601							<!-- If judge ShiFouNeiQian_D705 attribute is existing? -->
9602							<xsl:choose>
9603								<xsl:when test="@是否内嵌_D705 = 'true'">embed<!--xsl:value-of select="'embed'"/-->
9604								</xsl:when>
9605								<xsl:otherwise>new<!--replace-->
9606								</xsl:otherwise>
9607							</xsl:choose>
9608						</xsl:if>
9609					</xsl:for-each>
9610				</xsl:variable>
9611				<xsl:element name="draw:image">
9612					<xsl:choose>
9613						<xsl:when test="$pathMap = ''">
9614							<xsl:for-each select="/uof:UOF_0000/对象:对象数据集_D700/对象:对象数据_D701[@标识符_D704 = $titleMap]">
9615								<xsl:if test="@标识符_D704 = $titleMap">
9616									<xsl:if test="current()/对象:数据_D702">
9617										<xsl:element name="office:binary-data">
9618											<xsl:value-of select="current()/对象:数据_D702"/>
9619										</xsl:element>
9620									</xsl:if>
9621								</xsl:if>
9622							</xsl:for-each>
9623						</xsl:when>
9624						<xsl:otherwise>
9625							<xsl:attribute name="xlink:href">
9626								<xsl:value-of select="$pathMap"/>
9627							</xsl:attribute>
9628							<xsl:attribute name="xlink:show">
9629								<xsl:value-of select="$embed"/>
9630							</xsl:attribute>
9631						</xsl:otherwise>
9632					</xsl:choose>
9633				</xsl:element>
9634			</xsl:if>
9635			<xsl:if test="($document_type = 'presentation') and (name() = 'uof:锚点_C644')">
9636				<xsl:if test="not($picstyle/图:其他对象引用_8038)">
9637					<xsl:choose>
9638						<xsl:when test="uof:占位符_C626/@类型_C627 = 'graphics'">
9639							<draw:image xlink:href=""/>
9640						</xsl:when>
9641						<xsl:when test="uof:占位符_C626/@类型_C627 = 'chart'">
9642							<draw:object/>
9643							<draw:image/>
9644						</xsl:when>
9645						<xsl:when test="uof:占位符_C626/@类型_C627 = 'clipart'">
9646							<draw:image xlink:href=""/>
9647						</xsl:when>
9648						<xsl:when test="uof:占位符_C626/@类型_C627 = 'object'">
9649							<draw:object xlink:href="" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
9650						</xsl:when>
9651						<xsl:when test="uof:占位符_C626/@类型_C627 = 'table'">
9652							<draw:object/>
9653							<draw:image/>
9654						</xsl:when>
9655					</xsl:choose>
9656				</xsl:if>
9657			</xsl:if>
9658			<xsl:choose>
9659				<xsl:when test="name() = 'uof:锚点_C644'">
9660					<xsl:call-template name="DrawCommElementWeb">
9661						<xsl:with-param name="picstyle" select="$picstyle"/>
9662					</xsl:call-template>
9663					<xsl:element name="draw:text-box">
9664						<xsl:variable name="minheight" select="uof:大小_C621/@长_C604"/>
9665						<xsl:if test="@图形引用_C62E">
9666							<xsl:variable name="tempName" select="@图形引用_C62E"/>
9667							<xsl:for-each select="$picstyle/图:文本_803C/图:前后链接_803F[@后一链接_8041]">
9668								<xsl:attribute name="draw:chain-next-name"><xsl:value-of select="@后一链接_8041"/></xsl:attribute>
9669								<!--xsl:variable name="secondName" select="@后一链接_8041"/>
9670								<xsl:attribute name="draw:chain-next-name"><xsl:value-of select="/uof:UOF_0000/字:文字处理文档_4225/字:段落_416B//uof:锚点_C644[@图形引用_C62E = $secondName]/@标识符"/></xsl:attribute-->
9671							</xsl:for-each>
9672						</xsl:if>
9673						<xsl:attribute name="fo:min-height" select="concat($minheight, $uofUnit)"/>
9674						<xsl:call-template name="DrawCommElementText">
9675							<xsl:with-param name="picstyle" select="$picstyle"/>
9676						</xsl:call-template>
9677					</xsl:element>
9678				</xsl:when>
9679				<!--<xsl:when test="name() = 'uof:锚点_C644'">
9680					<xsl:call-template name="DrawCommElementWeb">
9681						<xsl:with-param name="picstyle" select="$picstyle"/>
9682					</xsl:call-template>
9683					<xsl:element name="draw:text-box">
9684						<xsl:call-template name="DrawCommElementText">
9685							<xsl:with-param name="picstyle" select="$picstyle"/>
9686						</xsl:call-template>
9687					</xsl:element>
9688				</xsl:when>-->
9689			</xsl:choose>
9690		</xsl:element>
9691	</xsl:template>
9692	<xsl:template name="GroupContent">
9693		<xsl:param name="zuhe_list"/>
9694		<xsl:variable name="first">
9695			<xsl:value-of select="substring-before($zuhe_list,' ')"/>
9696		</xsl:variable>
9697		<xsl:variable name="picname">
9698			<xsl:choose>
9699				<xsl:when test="not($first='')">
9700					<xsl:value-of select="$first"/>
9701				</xsl:when>
9702				<xsl:otherwise>
9703					<xsl:value-of select="$zuhe_list"/>
9704				</xsl:otherwise>
9705			</xsl:choose>
9706		</xsl:variable>
9707		<xsl:variable name="picstyle" select="key('graph-styles', $picname)"/>
9708		<xsl:call-template name="DrawContent">
9709			<xsl:with-param name="picstyle" select="$picstyle"/>
9710		</xsl:call-template>
9711		<xsl:variable name="other">
9712			<xsl:value-of select="substring-after($zuhe_list,' ')"/>
9713		</xsl:variable>
9714		<xsl:if test="not($other='')">
9715			<xsl:call-template name="GroupContent">
9716				<xsl:with-param name="zuhe_list" select="$other"/>
9717			</xsl:call-template>
9718		</xsl:if>
9719	</xsl:template>
9720	<xsl:template name="DrawSvgContent">
9721		<xsl:param name="picstyle"/>
9722		<xsl:call-template name="DrawCommAttr">
9723			<xsl:with-param name="picstyle" select="$picstyle"/>
9724		</xsl:call-template>
9725		<xsl:variable name="width" select="number($picstyle/图:svg图形对象_8017/@width)*1000"/>
9726		<xsl:variable name="height" select="number($picstyle/图:svg图形对象_8017/@height)*1000"/>
9727		<xsl:attribute name="svg:viewBox"><xsl:value-of select="concat('0 0 ',$width, ' ',$height)"/></xsl:attribute>
9728		<xsl:attribute name="svg:d"><xsl:value-of select="$picstyle/图:svg图形对象_8017/svg:path/@d"/></xsl:attribute>
9729		<xsl:call-template name="DrawCommElement">
9730			<xsl:with-param name="picstyle" select="$picstyle"/>
9731		</xsl:call-template>
9732	</xsl:template>
9733	<xsl:template name="SvgGraph">
9734		<xsl:param name="picstyle"/>
9735		<xsl:element name="draw:path">
9736			<xsl:call-template name="DrawSvgContent">
9737				<xsl:with-param name="picstyle" select="$picstyle"/>
9738			</xsl:call-template>
9739		</xsl:element>
9740	</xsl:template>
9741	<xsl:template name="ChartGraph">
9742		<xsl:param name="picstyle"/>
9743		<draw:frame>
9744			<xsl:attribute name="draw:z-index"><xsl:value-of select="'0'"/></xsl:attribute>
9745			<xsl:attribute name="svg:width"><xsl:value-of select="concat(uof:大小_C621/@宽_C605,$uofUnit)"/></xsl:attribute>
9746			<xsl:attribute name="svg:height"><xsl:value-of select="concat(uof:大小_C621/@长_C604,$uofUnit)"/></xsl:attribute>
9747			<xsl:for-each select="uof:位置_C620">
9748				<xsl:attribute name="svg:x"><xsl:value-of select="concat(uof:水平_4106/uof:绝对_4107/@值_4108,$uofUnit)"/></xsl:attribute>
9749				<xsl:attribute name="svg:y"><xsl:value-of select="concat(uof:垂直_410D/uof:绝对_4107/@值_4108,$uofUnit)"/></xsl:attribute>
9750			</xsl:for-each>
9751			<xsl:for-each select="/uof:UOF_0000/图表:图表集_E836/图表:图表_E837[@标识符_E828=$picstyle/图:图表数据引用_8065]">
9752				<xsl:element name="draw:object">
9753					<xsl:variable name="var_ObjectName">
9754						<xsl:variable name="var_GenerateID" select="generate-id()"/>
9755						<xsl:value-of select="concat('./Object ',$gvar_ChartsIndexes/ChartIndex[@GenerateID = $var_GenerateID]/@Index)"/>
9756					</xsl:variable>
9757					<xsl:attribute name="draw:notify-on-update-of-ranges"><xsl:choose><xsl:when test="图表:绘图区_E747/图表:数据区域_E74B"><xsl:value-of select="图表:绘图区_E747/图表:数据区域_E74B"/></xsl:when><xsl:otherwise><xsl:for-each select="图表:绘图区_E747/图表:图表类型组集_E74C/图表:组_E74D[1]/图表:数据系列集_E74E"><xsl:for-each select="图表:数据系列_E74F[1]"><xsl:if test="@值_E775"><xsl:analyze-string select="@值_E775" regex="='(.*?)'!([A-Z,a-z]{{1,2}}\d+):?([A-Z,a-z]{{1,2}}\d+)?"><xsl:matching-substring><xsl:choose><xsl:when test="regex-group(3) = ''"><xsl:value-of select="concat(regex-group(1), '.', regex-group(2))"/></xsl:when><xsl:otherwise><xsl:value-of select="concat(regex-group(1), '.', regex-group(2), ':', regex-group(1), '.', regex-group(3))"/></xsl:otherwise></xsl:choose><xsl:value-of select="' '"/></xsl:matching-substring></xsl:analyze-string></xsl:if></xsl:for-each><xsl:for-each-group select="图表:数据系列_E74F" group-by="@分类名_E776"><xsl:analyze-string select="current-grouping-key()" regex="='(.*?)'!([A-Z,a-z]{{1,2}}\d+):?([A-Z,a-z]{{1,2}}\d+)?"><xsl:matching-substring><xsl:choose><xsl:when test="regex-group(3) = ''"><xsl:value-of select="concat(regex-group(1), '.', regex-group(2), ':', regex-group(1), '.', regex-group(2))"/></xsl:when><xsl:otherwise><xsl:value-of select="concat(regex-group(1), '.', regex-group(2), ':', regex-group(1), '.', regex-group(3))"/></xsl:otherwise></xsl:choose><xsl:value-of select="' '"/></xsl:matching-substring></xsl:analyze-string></xsl:for-each-group><xsl:for-each-group select="图表:数据系列_E74F" group-by="@名称_E774"><xsl:analyze-string select="current-grouping-key()" regex="='(.*?)'!([A-Z,a-z]{{1,2}}\d+):?([A-Z,a-z]{{1,2}}\d+)?"><xsl:matching-substring><xsl:choose><xsl:when test="regex-group(3) = ''"><xsl:value-of select="concat(regex-group(1), '.', regex-group(2), ':', regex-group(1), '.', regex-group(2))"/></xsl:when><xsl:otherwise><xsl:value-of select="concat(regex-group(1), '.', regex-group(2), ':', regex-group(1), '.', regex-group(3))"/></xsl:otherwise></xsl:choose><xsl:value-of select="' '"/></xsl:matching-substring></xsl:analyze-string></xsl:for-each-group></xsl:for-each></xsl:otherwise></xsl:choose></xsl:attribute>
9758					<xsl:attribute name="xlink:href"><xsl:value-of select="$var_ObjectName"/></xsl:attribute>
9759					<xsl:attribute name="xlink:type">simple</xsl:attribute>
9760					<xsl:attribute name="xlink:show">embed</xsl:attribute>
9761					<xsl:attribute name="xlink:actuate">onLoad</xsl:attribute>
9762				</xsl:element>
9763			</xsl:for-each>
9764		</draw:frame>
9765	</xsl:template>
9766	<xsl:template name="LinePathContent">
9767		<xsl:param name="picstyle"/>
9768		<xsl:call-template name="DrawCommAttr">
9769			<xsl:with-param name="picstyle" select="$picstyle"/>
9770		</xsl:call-template>
9771		<xsl:variable name="pointx">
9772			<xsl:value-of select="$picstyle/图:预定义图形_8018/图:路径_801C/图:视窗_806A/图:左上角_806B/@x_C606"/>
9773		</xsl:variable>
9774		<xsl:variable name="pointy">
9775			<xsl:value-of select="$picstyle/图:预定义图形_8018/图:路径_801C/图:视窗_806A/图:左上角_806B/@y_C607"/>
9776		</xsl:variable>
9777		<xsl:variable name="height">
9778			<xsl:value-of select="$picstyle/图:预定义图形_8018/图:路径_801C/图:视窗_806A/图:大小_806C/@长_C604"/>
9779		</xsl:variable>
9780		<xsl:variable name="width">
9781			<xsl:value-of select="$picstyle/图:预定义图形_8018/图:路径_801C/图:视窗_806A/图:大小_806C/@宽_C605"/>
9782		</xsl:variable>
9783		<xsl:attribute name="svg:viewBox"><xsl:value-of select="concat($pointx,' ',$pointy,' ',$width, ' ',$height)"/></xsl:attribute>
9784		<xsl:attribute name="svg:d"><xsl:value-of select="$picstyle/图:预定义图形_8018/图:路径_801C/图:路径值_8069"/></xsl:attribute>
9785		<xsl:call-template name="DrawCommElement">
9786			<xsl:with-param name="picstyle" select="$picstyle"/>
9787		</xsl:call-template>
9788	</xsl:template>
9789	<xsl:template name="LinePath">
9790		<xsl:param name="picstyle"/>
9791		<xsl:element name="draw:path">
9792			<xsl:call-template name="LinePathContent">
9793				<xsl:with-param name="picstyle" select="$picstyle"/>
9794			</xsl:call-template>
9795		</xsl:element>
9796	</xsl:template>
9797	<xsl:template name="DrawPageThumbnail">
9798		<xsl:param name="picstyle"/>
9799		<draw:page-thumbnail>
9800			<xsl:attribute name="draw:layer">layout</xsl:attribute>
9801			<xsl:attribute name="draw:page-number"><xsl:value-of select="count(../../preceding-sibling::*) + 1"/></xsl:attribute>
9802			<xsl:call-template name="DrawCommAttr">
9803				<xsl:with-param name="picstyle" select="$picstyle"/>
9804			</xsl:call-template>
9805			<xsl:attribute name="presentation:class">page</xsl:attribute>
9806		</draw:page-thumbnail>
9807	</xsl:template>
9808	<xsl:template name="DrawContent">
9809		<xsl:param name="picstyle"/>
9810		<xsl:variable name="id" select="@图形引用_C62E"/>
9811		<xsl:variable name="Isframe">
9812			<xsl:variable name="IsChaining">
9813				<xsl:choose>
9814					<xsl:when test="/uof:UOF_0000/图形:图形集_7C00/图:图形_8062/图:文本_803C/图:前后链接_803F/@前一链接_8040 = $id or /uof:UOF_0000/图形:图形集_7C00/图:图形_8062/图:文本_803C/图:前后链接_803F/@后一链接_8041 = $id">true</xsl:when>
9815					<xsl:otherwise>false</xsl:otherwise>
9816				</xsl:choose>
9817			</xsl:variable>
9818			<xsl:choose>
9819				<xsl:when test="uof:占位符_C626">true</xsl:when>
9820				<xsl:when test="$picstyle/图:文本_803C/图:内容_8043/字:文字表_416C or $picstyle/图:文本_803C//uof:锚点_C644 or $picstyle/图:文本_803C/图:前后链接_803F/@前一链接_8040 or $picstyle/图:文本_803C/图:前后链接_803F/@后一链接_8041 or ($picstyle/图:文本_803C/图:文字排列方向_8042 != '' and $picstyle/图:文本_803C/图:文字排列方向_8042 != 't2b-l2r-0e-0w') or $IsChaining = 'true' or $picstyle/图:其他对象引用_8038 or $picstyle/图:文本_803C//字:域开始_419E">true</xsl:when>
9821				<xsl:otherwise>false</xsl:otherwise>
9822			</xsl:choose>
9823		</xsl:variable>
9824		<xsl:choose>
9825			<xsl:when test="$picstyle/@组合列表_8064">
9826				<xsl:variable name="zuhe_list" select="$picstyle/@组合列表_8064"/>
9827				<xsl:element name="draw:g">
9828					<xsl:call-template name="DrawCommContent">
9829						<xsl:with-param name="picstyle" select="$picstyle"/>
9830					</xsl:call-template>
9831					<xsl:call-template name="GroupContent">
9832						<xsl:with-param name="zuhe_list" select="$zuhe_list"/>
9833					</xsl:call-template>
9834				</xsl:element>
9835			</xsl:when>
9836			<!--xsl:when test="$picstyle/图:其他对象引用_8038 !=''">
9837				<xsl:element name="draw:frame">
9838					<xsl:call-template name="DrawOtherAttr"/>
9839					<xsl:for-each select="key('other-styles',$picstyle/图:其他对象引用_8038)">
9840						<draw:image xlink:actuate="onLoad" xlink:show="embed" xlink:type="simple">
9841							<xsl:attribute name="xlink:href"><xsl:value-of select="对象:路径_D703"/></xsl:attribute>
9842						</draw:image>
9843					</xsl:for-each>
9844				</xsl:element>
9845			</xsl:when-->
9846			<!--integrated Conversion the customshape or frame -->
9847			<!-- change this type to draw:frame -->
9848			<xsl:when test="$picstyle/图:图片数据引用_8037">
9849				<!--用‘图:预定义图形_8018/图:属性_801D/图:图片属性_801E’判断也可以-->
9850				<xsl:call-template name="DrawFrame">
9851					<xsl:with-param name="picstyle" select="$picstyle"/>
9852				</xsl:call-template>
9853			</xsl:when>
9854			<xsl:when test="$picstyle/图:预定义图形_8018/图:类别_8019 = '11' and $Isframe = 'true'">
9855				<xsl:call-template name="DrawFrame">
9856					<xsl:with-param name="picstyle" select="$picstyle"/>
9857				</xsl:call-template>
9858			</xsl:when>
9859			<!--<xsl:when test="$picstyle/图:预定义图形/图:类别 = '11' and uof:占位符_C626 !='' ">-->
9860			<xsl:when test="uof:占位符_C626 !='' ">
9861				<xsl:call-template name="DrawFrame">
9862					<xsl:with-param name="picstyle" select="$picstyle"/>
9863				</xsl:call-template>
9864			</xsl:when>
9865			<xsl:when test="$picstyle/图:svg图形对象_8017">
9866				<xsl:call-template name="SvgGraph">
9867					<xsl:with-param name="picstyle" select="$picstyle"/>
9868				</xsl:call-template>
9869			</xsl:when>
9870			<xsl:when test="$picstyle/图:图表数据引用_8065">
9871				<xsl:call-template name="ChartGraph">
9872					<xsl:with-param name="picstyle" select="$picstyle"/>
9873				</xsl:call-template>
9874			</xsl:when>
9875			<xsl:when test="$picstyle/图:预定义图形_8018/图:路径_801C">
9876				<xsl:call-template name="LinePath">
9877					<xsl:with-param name="picstyle" select="$picstyle"/>
9878				</xsl:call-template>
9879			</xsl:when>
9880			<xsl:otherwise>
9881				<xsl:variable name="graphtype">
9882					<xsl:value-of select="$picstyle[1]/图:预定义图形_8018/图:类别_8019"/>
9883				</xsl:variable>
9884				<xsl:choose>
9885					<!--xsl:when test="$graphtype='11'">
9886						<xsl:call-template name="DrawRect">
9887							<xsl:with-param name="picstyle" select="$picstyle"/>
9888						</xsl:call-template>
9889					</xsl:when-->
9890					<xsl:when test="$graphtype='61'">
9891						<xsl:call-template name="DrawLine">
9892							<xsl:with-param name="picstyle" select="$picstyle"/>
9893						</xsl:call-template>
9894					</xsl:when>
9895					<xsl:when test="$graphtype='66'">
9896						<xsl:call-template name="DrawPolyline">
9897							<xsl:with-param name="picstyle" select="$picstyle"/>
9898						</xsl:call-template>
9899					</xsl:when>
9900					<xsl:when test="$graphtype='65'">
9901						<xsl:call-template name="DrawPolygon">
9902							<xsl:with-param name="picstyle" select="$picstyle"/>
9903						</xsl:call-template>
9904					</xsl:when>
9905					<!--xsl:when test="$graphtype='19'">
9906						<xsl:call-template name="DrawEllipse">
9907							<xsl:with-param name="picstyle" select="$picstyle"/>
9908						</xsl:call-template>
9909					</xsl:when>
9910					<xsl:when test="$graphtype='51'">
9911						<xsl:call-template name="DrawCaption">
9912							<xsl:with-param name="picstyle" select="$picstyle"/>
9913						</xsl:call-template>
9914					</xsl:when-->
9915					<xsl:when test="$graphtype='71' or $graphtype='72' or $graphtype='73' or $graphtype='74' or $graphtype='75' or $graphtype='76' or $graphtype='77' or $graphtype='78' or $graphtype='79'">
9916						<xsl:call-template name="DrawConnector">
9917							<xsl:with-param name="picstyle" select="$picstyle"/>
9918						</xsl:call-template>
9919					</xsl:when>
9920					<xsl:otherwise>
9921						<xsl:call-template name="DrawCustomshape">
9922							<xsl:with-param name="picstyle" select="$picstyle"/>
9923							<xsl:with-param name="graphtype" select="$graphtype"/>
9924						</xsl:call-template>
9925					</xsl:otherwise>
9926				</xsl:choose>
9927			</xsl:otherwise>
9928		</xsl:choose>
9929	</xsl:template>
9930	<xsl:template name="DrawOtherAttr">
9931		<xsl:variable name="posx">
9932			<xsl:choose>
9933				<xsl:when test="uof:位置_C620/@类型_C646 = 'as-char'">
9934					<xsl:value-of select="number(0)"/>
9935				</xsl:when>
9936				<xsl:when test="uof:位置_C620/uof:水平_4106/uof:绝对_4107/@值_4108">
9937					<xsl:value-of select="number(uof:位置_C620/uof:水平_4106/uof:绝对_4107/@值_4108)"/>
9938				</xsl:when>
9939				<xsl:when test="uof:位置_C620/uof:水平_4106/uof:相对_4109">
9940					<xsl:value-of select="number(uof:位置_C620/uof:水平_4106/uof:相对_4109/@值_410B)"/>
9941				</xsl:when>
9942			</xsl:choose>
9943		</xsl:variable>
9944		<xsl:variable name="posy">
9945			<xsl:choose>
9946				<xsl:when test="uof:位置_C620/@类型_C646 = 'as-char'">
9947					<xsl:value-of select="number(0)"/>
9948				</xsl:when>
9949				<xsl:when test="uof:位置_C620/uof:垂直_410D/@相对于_410C = 'line'">
9950					<xsl:value-of select="0 - number(uof:位置_C620/uof:垂直_410D/uof:绝对_4107/@值_4108)"/>
9951				</xsl:when>
9952				<xsl:when test="uof:位置_C620/uof:垂直_410D/uof:绝对_4107/@值_4108">
9953					<xsl:value-of select="number(uof:位置_C620/uof:垂直_410D/uof:绝对_4107/@值_4108)"/>
9954				</xsl:when>
9955				<xsl:when test="uof:位置_C620/uof:垂直_410D/uof:相对_4109">
9956					<xsl:value-of select="number(uof:位置_C620/uof:垂直_410D/uof:相对_4109/@值_410B)"/>
9957				</xsl:when>
9958			</xsl:choose>
9959		</xsl:variable>
9960		<xsl:attribute name="svg:x"><xsl:value-of select="concat($posx,$uofUnit)"/></xsl:attribute>
9961		<xsl:attribute name="svg:y"><xsl:value-of select="concat($posy,$uofUnit)"/></xsl:attribute>
9962		<xsl:variable name="width">
9963			<xsl:value-of select="number(uof:大小_C621/@宽_C605)"/>
9964		</xsl:variable>
9965		<xsl:variable name="height">
9966			<xsl:value-of select="number(uof:大小_C621/@长_C604)"/>
9967		</xsl:variable>
9968		<xsl:attribute name="svg:width"><xsl:value-of select="concat($width,$uofUnit)"/></xsl:attribute>
9969		<xsl:attribute name="svg:height"><xsl:value-of select="concat($height,$uofUnit)"/></xsl:attribute>
9970		<xsl:attribute name="text:anchor-type"><xsl:choose><xsl:when test="uof:位置_C620/@类型_C646='page'">page</xsl:when><xsl:when test="uof:位置_C620/@类型_C646='paragraph'">paragraph</xsl:when><xsl:when test="uof:位置_C620/@类型_C646='char'">char</xsl:when><xsl:when test="uof:位置_C620/@类型_C646='as-char'">as-char</xsl:when><xsl:when test="uof:位置_C620/@类型_C646='frame'">frame</xsl:when><xsl:otherwise>char</xsl:otherwise></xsl:choose></xsl:attribute>
9971		<xsl:attribute name="draw:style-name"><xsl:value-of select="generate-id()"/></xsl:attribute>
9972	</xsl:template>
9973	<xsl:template name="ObjectContent">
9974		<xsl:variable name="picname" select="@图形引用_C62E"/>
9975		<xsl:variable name="picstyle" select="key('graph-styles', $picname)[1]"/>
9976		<xsl:choose>
9977			<xsl:when test="@是否显示缩略图_C630='true' or @是否显示缩略图_C630='1'">
9978				<xsl:call-template name="DrawPageThumbnail">
9979					<xsl:with-param name="picstyle" select="$picstyle"/>
9980				</xsl:call-template>
9981			</xsl:when>
9982			<xsl:when test="name($picstyle[1]) != ''">
9983				<xsl:call-template name="DrawContent">
9984					<xsl:with-param name="picstyle" select="$picstyle"/>
9985				</xsl:call-template>
9986			</xsl:when>
9987			<xsl:otherwise>
9988				<xsl:variable name="objstyle" select="key('other-styles', $picname)"/>
9989				<xsl:choose>
9990					<xsl:when test="$objstyle != ''">
9991						<xsl:element name="draw:frame">
9992							<xsl:call-template name="DrawOtherAttr"/>
9993							<xsl:call-template name="FrmContent">
9994								<xsl:with-param name="refobject" select="$objstyle"/>
9995							</xsl:call-template>
9996						</xsl:element>
9997						<!--<xsl:call-template name="DrawFrame">
9998							<xsl:with-param name="picstyle" select="$objstyle"/>
9999						</xsl:call-template>-->
10000					</xsl:when>
10001					<xsl:otherwise>
10002						<xsl:variable name="mathstyle" select="key('math-styles', $picname)"/>
10003						<xsl:if test="$mathstyle != ''">
10004						</xsl:if>
10005					</xsl:otherwise>
10006				</xsl:choose>
10007			</xsl:otherwise>
10008		</xsl:choose>
10009	</xsl:template>
10010	<!-- if x value is too big, it will overflow. -->
10011	<!-- template sin(x) : sin(x) = x - x^3 / 3! + x^5 / 5! - ... +(-1)^(n-1) * x^(2 * n - 1) / (2 * n - 1) + ...-->
10012	<xsl:template name="sin">
10013		<xsl:param name="arc"/>
10014		<xsl:param name="n">
10015			<xsl:value-of select="'1'"/>
10016		</xsl:param>
10017		<xsl:param name="result"/>
10018		<xsl:choose>
10019			<xsl:when test="$n = '1'">
10020				<xsl:call-template name="sin">
10021					<xsl:with-param name="arc">
10022						<xsl:value-of select="$arc"/>
10023					</xsl:with-param>
10024					<xsl:with-param name="n">
10025						<xsl:value-of select="$n + 1"/>
10026					</xsl:with-param>
10027					<xsl:with-param name="result">
10028						<xsl:value-of select="$arc"/>
10029					</xsl:with-param>
10030				</xsl:call-template>
10031			</xsl:when>
10032			<xsl:when test="($n mod 2) = 0">
10033				<xsl:variable name="NPowerOfArc">
10034					<xsl:call-template name="power">
10035						<xsl:with-param name="x">
10036							<xsl:value-of select="$arc"/>
10037						</xsl:with-param>
10038						<xsl:with-param name="n">
10039							<xsl:value-of select="2 * $n - 1"/>
10040						</xsl:with-param>
10041					</xsl:call-template>
10042				</xsl:variable>
10043				<xsl:variable name="NFactorial">
10044					<xsl:call-template name="factorial">
10045						<xsl:with-param name="n">
10046							<xsl:value-of select="2 * $n - 1"/>
10047						</xsl:with-param>
10048					</xsl:call-template>
10049				</xsl:variable>
10050				<xsl:variable name="factor">
10051					<xsl:value-of select="$NPowerOfArc div $NFactorial"/>
10052				</xsl:variable>
10053				<xsl:choose>
10054					<xsl:when test="$factor &gt; -0.0000001 and $factor &lt; 0.0000001">
10055						<xsl:value-of select="$result - $factor"/>
10056					</xsl:when>
10057					<xsl:otherwise>
10058						<xsl:call-template name="sin">
10059							<xsl:with-param name="arc">
10060								<xsl:value-of select="$arc"/>
10061							</xsl:with-param>
10062							<xsl:with-param name="n">
10063								<xsl:value-of select="$n + 1"/>
10064							</xsl:with-param>
10065							<xsl:with-param name="result">
10066								<xsl:value-of select="$result - $factor"/>
10067							</xsl:with-param>
10068						</xsl:call-template>
10069					</xsl:otherwise>
10070				</xsl:choose>
10071			</xsl:when>
10072			<xsl:when test="($n mod 2) = 1">
10073				<xsl:variable name="NPowerOfArc">
10074					<xsl:call-template name="power">
10075						<xsl:with-param name="x">
10076							<xsl:value-of select="$arc"/>
10077						</xsl:with-param>
10078						<xsl:with-param name="n">
10079							<xsl:value-of select="2 * $n - 1"/>
10080						</xsl:with-param>
10081					</xsl:call-template>
10082				</xsl:variable>
10083				<xsl:variable name="NFactorial">
10084					<xsl:call-template name="factorial">
10085						<xsl:with-param name="n">
10086							<xsl:value-of select="2 * $n - 1"/>
10087						</xsl:with-param>
10088					</xsl:call-template>
10089				</xsl:variable>
10090				<xsl:variable name="factor">
10091					<xsl:value-of select="$NPowerOfArc div $NFactorial"/>
10092				</xsl:variable>
10093				<xsl:choose>
10094					<xsl:when test="$factor &gt; -0.0000001 and $factor &lt; 0.0000001">
10095						<xsl:value-of select="$result + $factor"/>
10096					</xsl:when>
10097					<xsl:otherwise>
10098						<xsl:call-template name="sin">
10099							<xsl:with-param name="arc">
10100								<xsl:value-of select="$arc"/>
10101							</xsl:with-param>
10102							<xsl:with-param name="n">
10103								<xsl:value-of select="$n + 1"/>
10104							</xsl:with-param>
10105							<xsl:with-param name="result">
10106								<xsl:value-of select="$result + $factor"/>
10107							</xsl:with-param>
10108						</xsl:call-template>
10109					</xsl:otherwise>
10110				</xsl:choose>
10111			</xsl:when>
10112		</xsl:choose>
10113	</xsl:template>
10114	<!-- if x value is too big, it will overflow. -->
10115	<!-- template cos(x) : cos(x) = 1 - x^2 / 2! + x^4 / 4! - ... + (-1)^n * x^(2 * n) / (2 * n)! + ...-->
10116	<xsl:template name="cos">
10117		<xsl:param name="arc"/>
10118		<xsl:param name="n">
10119			<xsl:value-of select="'0'"/>
10120		</xsl:param>
10121		<xsl:param name="result"/>
10122		<xsl:choose>
10123			<xsl:when test="$n = '0'">
10124				<xsl:call-template name="cos">
10125					<xsl:with-param name="arc">
10126						<xsl:value-of select="$arc"/>
10127					</xsl:with-param>
10128					<xsl:with-param name="n">
10129						<xsl:value-of select="$n + 1"/>
10130					</xsl:with-param>
10131					<xsl:with-param name="result">
10132						<xsl:value-of select="1"/>
10133					</xsl:with-param>
10134				</xsl:call-template>
10135			</xsl:when>
10136			<xsl:when test="($n mod 2) = 0">
10137				<xsl:variable name="NPowerOfArc">
10138					<xsl:call-template name="power">
10139						<xsl:with-param name="x">
10140							<xsl:value-of select="$arc"/>
10141						</xsl:with-param>
10142						<xsl:with-param name="n">
10143							<xsl:value-of select="2 * $n"/>
10144						</xsl:with-param>
10145					</xsl:call-template>
10146				</xsl:variable>
10147				<xsl:variable name="NFactorial">
10148					<xsl:call-template name="factorial">
10149						<xsl:with-param name="n">
10150							<xsl:value-of select="2 * $n"/>
10151						</xsl:with-param>
10152					</xsl:call-template>
10153				</xsl:variable>
10154				<xsl:variable name="factor">
10155					<xsl:value-of select="$NPowerOfArc div $NFactorial"/>
10156				</xsl:variable>
10157				<xsl:choose>
10158					<xsl:when test="$factor &gt; -0.0000001 and $factor &lt; 0.0000001">
10159						<xsl:value-of select="$result + $factor"/>
10160					</xsl:when>
10161					<xsl:otherwise>
10162						<xsl:call-template name="cos">
10163							<xsl:with-param name="arc">
10164								<xsl:value-of select="$arc"/>
10165							</xsl:with-param>
10166							<xsl:with-param name="n">
10167								<xsl:value-of select="$n + 1"/>
10168							</xsl:with-param>
10169							<xsl:with-param name="result">
10170								<xsl:value-of select="$result + $factor"/>
10171							</xsl:with-param>
10172						</xsl:call-template>
10173					</xsl:otherwise>
10174				</xsl:choose>
10175			</xsl:when>
10176			<xsl:when test="($n mod 2) = 1">
10177				<xsl:variable name="NPowerOfArc">
10178					<xsl:call-template name="power">
10179						<xsl:with-param name="x">
10180							<xsl:value-of select="$arc"/>
10181						</xsl:with-param>
10182						<xsl:with-param name="n">
10183							<xsl:value-of select="2 * $n"/>
10184						</xsl:with-param>
10185					</xsl:call-template>
10186				</xsl:variable>
10187				<xsl:variable name="NFactorial">
10188					<xsl:call-template name="factorial">
10189						<xsl:with-param name="n">
10190							<xsl:value-of select="2 * $n"/>
10191						</xsl:with-param>
10192					</xsl:call-template>
10193				</xsl:variable>
10194				<xsl:variable name="factor">
10195					<xsl:value-of select="$NPowerOfArc div $NFactorial"/>
10196				</xsl:variable>
10197				<xsl:choose>
10198					<xsl:when test="$factor &gt; -0.0000001 and $factor &lt; 0.0000001 ">
10199						<xsl:value-of select="$result - $factor"/>
10200					</xsl:when>
10201					<xsl:otherwise>
10202						<xsl:call-template name="cos">
10203							<xsl:with-param name="arc">
10204								<xsl:value-of select="$arc"/>
10205							</xsl:with-param>
10206							<xsl:with-param name="n">
10207								<xsl:value-of select="$n + 1"/>
10208							</xsl:with-param>
10209							<xsl:with-param name="result">
10210								<xsl:value-of select="$result - $factor"/>
10211							</xsl:with-param>
10212						</xsl:call-template>
10213					</xsl:otherwise>
10214				</xsl:choose>
10215			</xsl:when>
10216		</xsl:choose>
10217	</xsl:template>
10218	<!-- template : n power of x -->
10219	<xsl:template name="power">
10220		<xsl:param name="x"/>
10221		<xsl:param name="n"/>
10222		<xsl:param name="i">
10223			<xsl:value-of select="1"/>
10224		</xsl:param>
10225		<xsl:param name="result">
10226			<xsl:value-of select="1"/>
10227		</xsl:param>
10228		<xsl:choose>
10229			<xsl:when test="$n = 0">
10230				<xsl:value-of select="1"/>
10231			</xsl:when>
10232			<xsl:when test="$i = 1">
10233				<xsl:choose>
10234					<xsl:when test="$n = 1">
10235						<xsl:value-of select="$x"/>
10236					</xsl:when>
10237					<xsl:otherwise>
10238						<xsl:call-template name="power">
10239							<xsl:with-param name="x">
10240								<xsl:value-of select="$x"/>
10241							</xsl:with-param>
10242							<xsl:with-param name="n">
10243								<xsl:value-of select="$n"/>
10244							</xsl:with-param>
10245							<xsl:with-param name="i">
10246								<xsl:value-of select="$i + 1"/>
10247							</xsl:with-param>
10248							<xsl:with-param name="result">
10249								<xsl:value-of select="$x"/>
10250							</xsl:with-param>
10251						</xsl:call-template>
10252					</xsl:otherwise>
10253				</xsl:choose>
10254			</xsl:when>
10255			<xsl:when test="$i = $n">
10256				<xsl:value-of select="$result * $x"/>
10257			</xsl:when>
10258			<xsl:otherwise>
10259				<xsl:call-template name="power">
10260					<xsl:with-param name="x">
10261						<xsl:value-of select="$x"/>
10262					</xsl:with-param>
10263					<xsl:with-param name="n">
10264						<xsl:value-of select="$n"/>
10265					</xsl:with-param>
10266					<xsl:with-param name="i">
10267						<xsl:value-of select="$i + 1"/>
10268					</xsl:with-param>
10269					<xsl:with-param name="result">
10270						<xsl:value-of select="$result * $x"/>
10271					</xsl:with-param>
10272				</xsl:call-template>
10273			</xsl:otherwise>
10274		</xsl:choose>
10275	</xsl:template>
10276	<!-- template : N! -->
10277	<xsl:template name="factorial">
10278		<xsl:param name="n"/>
10279		<xsl:param name="i">
10280			<xsl:value-of select="1"/>
10281		</xsl:param>
10282		<xsl:param name="result">
10283			<xsl:value-of select="1"/>
10284		</xsl:param>
10285		<xsl:choose>
10286			<xsl:when test="$n = 0">
10287				<xsl:value-of select="1"/>
10288			</xsl:when>
10289			<xsl:when test="$i = 1">
10290				<xsl:choose>
10291					<xsl:when test="$n = 1">
10292						<xsl:value-of select="1"/>
10293					</xsl:when>
10294					<xsl:otherwise>
10295						<xsl:call-template name="factorial">
10296							<xsl:with-param name="n">
10297								<xsl:value-of select="$n"/>
10298							</xsl:with-param>
10299							<xsl:with-param name="i">
10300								<xsl:value-of select="$i + 1"/>
10301							</xsl:with-param>
10302							<xsl:with-param name="result">
10303								<xsl:value-of select="1"/>
10304							</xsl:with-param>
10305						</xsl:call-template>
10306					</xsl:otherwise>
10307				</xsl:choose>
10308			</xsl:when>
10309			<xsl:when test="$i = $n">
10310				<xsl:value-of select="$result * $i"/>
10311			</xsl:when>
10312			<xsl:otherwise>
10313				<xsl:call-template name="factorial">
10314					<xsl:with-param name="n">
10315						<xsl:value-of select="$n"/>
10316					</xsl:with-param>
10317					<xsl:with-param name="i">
10318						<xsl:value-of select="$i + 1"/>
10319					</xsl:with-param>
10320					<xsl:with-param name="result">
10321						<xsl:value-of select="$result * $i"/>
10322					</xsl:with-param>
10323				</xsl:call-template>
10324			</xsl:otherwise>
10325		</xsl:choose>
10326	</xsl:template>
10327	<xsl:template name="OfficeSettingsText">
10328		<!-- 关于SW中公共处理规则的相关子元素的处理 -->
10329		<xsl:for-each select="/uof:UOF_0000/规则:公用处理规则_B665/规则:文字处理_B66B/规则:文档设置_B600">
10330			<config:config-item-set config:name="ooo:view-settings">
10331				<config:config-item config:name="InBrowseMode" config:type="boolean">
10332					<xsl:choose>
10333						<xsl:when test="规则:当前视图_B601='web'">true</xsl:when>
10334						<xsl:otherwise>false</xsl:otherwise>
10335					</xsl:choose>
10336				</config:config-item>
10337				<config:config-item config:name="ShowRedlineChanges" config:type="boolean">
10338					<!-- absent function xsl:choose>
10339						<xsl:when test="规则:是否修订_B605 = 'true'">true</xsl:when>
10340						<xsl:otherwise>false</xsl:otherwise>
10341					</xsl:choose-->
10342					<xsl:value-of select="'true'"/>
10343				</config:config-item>
10344				<config:config-item-map-indexed config:name="Views">
10345					<config:config-item-map-entry>
10346						<xsl:if test="规则:缩放_B603">
10347							<config:config-item config:name="VisibleRight" config:type="int">1</config:config-item>
10348							<config:config-item config:name="VisibleBottom" config:type="int">1</config:config-item>
10349							<xsl:choose>
10350								<xsl:when test="string(规则:缩放_B603) = 'best-fit'">
10351									<config:config-item config:name="ZoomType" config:type="short">3</config:config-item>
10352								</xsl:when>
10353								<xsl:when test="string(规则:缩放_B603) = 'full-page'">
10354									<config:config-item config:name="ZoomType" config:type="short">2</config:config-item>
10355								</xsl:when>
10356								<xsl:when test="string(规则:缩放_B603) = 'text-fit'">
10357									<config:config-item config:name="ZoomType" config:type="short">1</config:config-item>
10358								</xsl:when>
10359								<xsl:otherwise>
10360									<config:config-item config:name="ZoomType" config:type="short">0</config:config-item>
10361								</xsl:otherwise>
10362							</xsl:choose>
10363							<config:config-item config:name="ZoomFactor" config:type="short">
10364								<xsl:value-of select="规则:缩放_B603"/>
10365							</config:config-item>
10366						</xsl:if>
10367					</config:config-item-map-entry>
10368				</config:config-item-map-indexed>
10369			</config:config-item-set>
10370			<config:config-item-set config:name="ooo:configuration-settings">
10371				<config:config-item-map-indexed config:name="ForbiddenCharacters">
10372					<config:config-item-map-entry>
10373						<config:config-item config:name="Language" config:type="string">zh</config:config-item>
10374						<config:config-item config:name="Country" config:type="string">CN</config:config-item>
10375						<config:config-item config:name="Variant" config:type="string"/>
10376						<config:config-item config:name="BeginLine" config:type="string">
10377							<xsl:choose>
10378								<xsl:when test="规则:标点禁则_B608/规则:行首字符_B609">
10379									<xsl:value-of select="规则:标点禁则_B608/规则:行首字符_B609"/>
10380								</xsl:when>
10381								<xsl:otherwise>:!),.:;?]}_'"、。〉》」』】〕〗〞︰︱︳﹐_﹒﹔﹕﹖﹗﹚﹜﹞!),.:;?|}︴︶︸︺︼︾﹀﹂﹄﹏_~¢々‖_·ˇˉ―--′</xsl:otherwise>
10382							</xsl:choose>
10383						</config:config-item>
10384						<config:config-item config:name="EndLine" config:type="string">
10385							<xsl:choose>
10386								<xsl:when test="规则:标点禁则_B608/规则:行尾字符_B60A">
10387									<xsl:value-of select="规则:标点禁则_B608/规则:行尾字符_B60A"/>
10388								</xsl:when>
10389								<xsl:otherwise>([{__'"‵〈《「『【〔〖([{£¥〝︵︷︹︻︽︿﹁﹃﹙﹛﹝({</xsl:otherwise>
10390							</xsl:choose>
10391						</config:config-item>
10392					</config:config-item-map-entry>
10393				</config:config-item-map-indexed>
10394				<config:config-item config:name="AddExternalLeading" config:type="boolean">false</config:config-item>
10395				<!--<config:config-item config:name="AddParaTableSpacingAtStart" config:type="boolean">false</config:config-item>-->
10396				<config:config-item config:name="CharacterCompressionType" config:type="short">
10397					<xsl:choose>
10398						<!--<xsl:when test="string(规则:标点压缩_B60B/@是否采用_B60C) = 'true'">1</xsl:when>-->
10399						<xsl:when test="string(规则:字距调整是否用于西文和标点符号_B60B) = 'true'">1</xsl:when>
10400						<xsl:otherwise>0</xsl:otherwise>
10401					</xsl:choose>
10402				</config:config-item>
10403				<config:config-item config:name="CurrentDatabaseDataSource" config:type="string">
10404					<xsl:variable name="alignway">
10405						<xsl:value-of select="concat('!',../../字:分节_416A_416A[1]/字:节属性_421B/字:垂直对齐方式_4213,'#')"/>
10406					</xsl:variable>
10407					<xsl:variable name="view">
10408						<xsl:value-of select="concat(规则:当前视图_B601,'@')"/>
10409					</xsl:variable>
10410					<xsl:variable name="anthor">
10411						<xsl:value-of select="concat(../规则:批注集_B669/规则:批注_B66A[1]/@作者缩写_41DF,'%')"/>
10412					</xsl:variable>
10413					<xsl:variable name="pagesep">
10414						<xsl:value-of select="concat(../../字:分节_416A[1]/字:节属性_421B/字:页码设置_4205/@分隔符_4209,'*')"/>
10415					</xsl:variable>
10416					<xsl:variable name="pagetype">
10417						<xsl:value-of select="concat(../../字:分节_416A[1]/字:节属性_421B/字:节类型_41EA,'/')"/>
10418					</xsl:variable>
10419					<xsl:variable name="pinye">
10420						<xsl:value-of select="concat(../../字:分节_416A[1]/字:节属性_421B/字:是否拼页_41FE,'(')"/>
10421					</xsl:variable>
10422					<xsl:value-of select="concat($alignway,$view,$anthor,$pagesep,$pagetype,$pinye)"/>
10423				</config:config-item>
10424				<config:config-item config:name="IsKernAsianPunctuation" config:type="boolean">
10425					<xsl:choose>
10426						<xsl:when test="规则:字距调整_B606 = 'none'">false</xsl:when>
10427						<xsl:otherwise>true</xsl:otherwise>
10428					</xsl:choose>
10429				</config:config-item>
10430				<xsl:if test="../../字:文字处理文档_4225/字:分节_416A/字:节属性_421B/字:装订线_41FB">
10431					<xsl:variable name="pos">
10432						<xsl:value-of select="../../字:分节_416A/字:节属性_421B/字:装订线_41FB/@位置_4150"/>
10433					</xsl:variable>
10434					<xsl:variable name="val">
10435						<xsl:value-of select="../../字:分节_416A/字:节属性_421B/字:装订线_41FB/@距边界_41FC"/>
10436					</xsl:variable>
10437					<xsl:variable name="danwei">
10438						<xsl:value-of select="../../规则:公用处理规则_B665/规则:长度单位_B666"/>
10439					</xsl:variable>
10440					<xsl:variable name="mer">
10441						<xsl:value-of select="concat($val,$danwei)"/>
10442					</xsl:variable>
10443					<xsl:variable name="val0">
10444						<xsl:call-template name="convert2cm">
10445							<xsl:with-param name="value" select="$mer"/>
10446						</xsl:call-template>
10447					</xsl:variable>
10448					<xsl:variable name="name">
10449						<xsl:value-of select="concat($pos,'-',$val0)"/>
10450					</xsl:variable>
10451					<config:config-item config:name="PrintFaxName" config:type="string">
10452						<xsl:value-of select="$name"/>
10453					</config:config-item>
10454				</xsl:if>
10455			</config:config-item-set>
10456		</xsl:for-each>
10457		<!-- 关于SW中公共处理规则的相关子元素的处理 -->
10458	</xsl:template>
10459	<xsl:template name="default_seqence_declaration">
10460		<text:sequence-decls>
10461			<text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
10462			<text:sequence-decl text:display-outline-level="0" text:name="Table"/>
10463			<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
10464			<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
10465		</text:sequence-decls>
10466	</xsl:template>
10467	<xsl:template name="OneTrackChanges">
10468		<xsl:param name="type"/>
10469		<xsl:variable name="id" select="@标识符_4220"/>
10470		<xsl:variable name="ref" select="@修订信息引用_4222"/>
10471		<xsl:variable name="aid" select="/uof:UOF_0000/规则:公用处理规则_B665/规则:文字处理_B66B/规则:修订信息集_B60E/规则:修订信息_B60F[@标识符_B610=$ref]/@作者_B611"/>
10472		<xsl:variable name="sid" select="/uof:UOF_0000/规则:公用处理规则_B665/规则:用户集_B667/规则:用户_B668[@标识符_4100=$aid]/@姓名_41DC"/>
10473		<xsl:variable name="bid" select="/uof:UOF_0000/规则:公用处理规则_B665/规则:文字处理_B66B/规则:修订信息集_B60E/规则:修订信息_B60F[@标识符_B610=$ref]/@日期_B612"/>
10474		<text:changed-region text:id="{$id}">
10475			<xsl:choose>
10476				<xsl:when test="not(name(following-sibling::*[1])='字:修订结束_4223')">
10477					<xsl:choose>
10478						<xsl:when test="$type='insert'">
10479							<text:insertion>
10480								<office:change-info>
10481									<dc:creator>
10482										<xsl:value-of select="$sid"/>
10483									</dc:creator>
10484									<dc:date>
10485										<xsl:value-of select="$bid"/>
10486									</dc:date>
10487								</office:change-info>
10488							</text:insertion>
10489						</xsl:when>
10490						<xsl:when test="$type='delete'">
10491							<text:deletion>
10492								<office:change-info>
10493									<dc:creator>
10494										<xsl:value-of select="$sid"/>
10495									</dc:creator>
10496									<dc:date>
10497										<xsl:value-of select="$bid"/>
10498									</dc:date>
10499								</office:change-info>
10500							</text:deletion>
10501						</xsl:when>
10502						<xsl:when test="$type='format'">
10503							<text:format-change>
10504								<office:change-info>
10505									<dc:creator>
10506										<xsl:value-of select="$sid"/>
10507									</dc:creator>
10508									<dc:date>
10509										<xsl:value-of select="$bid"/>
10510									</dc:date>
10511								</office:change-info>
10512							</text:format-change>
10513						</xsl:when>
10514					</xsl:choose>
10515				</xsl:when>
10516				<xsl:otherwise>
10517					<text:format-change>
10518						<office:change-info>
10519							<dc:creator>
10520								<xsl:value-of select="$sid"/>
10521							</dc:creator>
10522							<dc:date>
10523								<xsl:value-of select="$bid"/>
10524							</dc:date>
10525						</office:change-info>
10526					</text:format-change>
10527				</xsl:otherwise>
10528			</xsl:choose>
10529		</text:changed-region>
10530	</xsl:template>
10531	<xsl:template name="GenerateTrackChanges">
10532		<xsl:if test="/uof:UOF_0000/规则:公用处理规则_B665/规则:文字处理_B66B/规则:文档设置_B600/规则:是否修订_B605 or //字:修订开始_421F">
10533			<text:tracked-changes>
10534				<xsl:if test="/uof:UOF_0000/规则:公用处理规则_B665/规则:文字处理_B66B/规则:文档设置_B600/规则:是否修订_B605">
10535					<xsl:attribute name="text:track-changes"><xsl:value-of select="/uof:UOF_0000/规则:公用处理规则_B665/规则:文字处理_B66B/规则:文档设置_B600/规则:是否修订_B605"/></xsl:attribute>
10536				</xsl:if>
10537				<xsl:for-each select="//字:段落_416B/字:修订开始_421F[@类型_4221='insert'] | //字:文字处理文档_4225/字:修订开始_421F[@类型_4221='insert']">
10538					<xsl:call-template name="OneTrackChanges">
10539						<xsl:with-param name="type" select="string('insert')"/>
10540					</xsl:call-template>
10541				</xsl:for-each>
10542				<xsl:for-each select="//字:段落_416B/字:修订开始_421F[@类型_4221='delete'] | //字:文字处理文档_4225/字:修订开始_421F[@类型_4221='delete']">
10543					<xsl:call-template name="OneTrackChanges">
10544						<xsl:with-param name="type" select="string('delete')"/>
10545					</xsl:call-template>
10546				</xsl:for-each>
10547				<xsl:for-each select="//字:段落_416B/字:修订开始_421F[@类型_4221='format'] | //字:文字处理文档_4225/字:修订开始_421F[@类型_4221='format']">
10548					<xsl:call-template name="OneTrackChanges">
10549						<xsl:with-param name="type" select="string('format')"/>
10550					</xsl:call-template>
10551				</xsl:for-each>
10552				<xsl:for-each select="//字:段落_416B/字:句_419D/字:修订开始_421F[@类型_4221='format']">
10553					<xsl:call-template name="OneTrackChanges">
10554						<xsl:with-param name="type" select="string('format')"/>
10555					</xsl:call-template>
10556				</xsl:for-each>
10557				<xsl:for-each select="//字:段落_416B/字:句_419D/字:修订开始_421F[@类型_4221='insert'] ">
10558					<xsl:call-template name="OneTrackChanges">
10559						<xsl:with-param name="type" select="string('insert')"/>
10560					</xsl:call-template>
10561				</xsl:for-each>
10562				<xsl:for-each select="//字:段落_416B/字:句_419D/字:修订开始_421F[@类型_4221='delete']">
10563					<xsl:call-template name="OneTrackChanges">
10564						<xsl:with-param name="type" select="string('delete')"/>
10565					</xsl:call-template>
10566				</xsl:for-each>
10567			</text:tracked-changes>
10568		</xsl:if>
10569	</xsl:template>
10570	<xsl:template match="字:文字处理文档_4225">
10571		<xsl:element name="office:body">
10572			<xsl:element name="office:text">
10573				<xsl:call-template name="default_seqence_declaration"/>
10574				<xsl:call-template name="GenerateTrackChanges"/>
10575				<!--xsl:for-each select="字:文字处理文档_4225"-->
10576				<xsl:call-template name="TextContent">
10577					<xsl:with-param name="content" select="."/>
10578				</xsl:call-template>
10579				<!--/xsl:for-each-->
10580			</xsl:element>
10581		</xsl:element>
10582	</xsl:template>
10583	<xsl:template name="CallExpandHatch">
10584		<xsl:if test="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204/扩展:内容_B206[@名称='draw:hatch']">
10585			<xsl:for-each select="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204/扩展:内容_B206[@名称='draw:hatch']/扩展:图案数据">
10586				<draw:hatch>
10587					<xsl:attribute name="draw:name"><xsl:value-of select="@uof:name"/></xsl:attribute>
10588					<xsl:attribute name="draw:display-name"><xsl:value-of select="@uof:display-name"/></xsl:attribute>
10589					<xsl:attribute name="draw:style"><xsl:value-of select="@uof:style"/></xsl:attribute>
10590					<xsl:attribute name="draw:color"><xsl:value-of select="@uof:color"/></xsl:attribute>
10591					<xsl:attribute name="draw:distance"><xsl:value-of select="@uof:distance"/></xsl:attribute>
10592					<xsl:attribute name="draw:rotation"><xsl:value-of select="@uof:rotation"/></xsl:attribute>
10593				</draw:hatch>
10594			</xsl:for-each>
10595		</xsl:if>
10596	</xsl:template>
10597	<!--xsl:template name="CallExpandMarker">
10598		<xsl:if test="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204/扩展:内容_B206[@名称='draw:marker']">
10599			<xsl:for-each select="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204/扩展:内容_B206[@名称='draw:marker']/*">
10600				<draw:marker>
10601					<xsl:attribute name="draw:name"><xsl:value-of select="@uof:name"/></xsl:attribute>
10602					<xsl:attribute name="draw:display-name"><xsl:value-of select="@uof:display-name"/></xsl:attribute>
10603					<xsl:attribute name="svg:viewBox"><xsl:value-of select="@svg:viewBox"/></xsl:attribute>
10604					<xsl:attribute name="svg:d"><xsl:value-of select="@svg:d"/></xsl:attribute>
10605				</draw:marker>
10606			</xsl:for-each>
10607		</xsl:if>
10608	</xsl:template-->
10609	<xsl:template name="CallExpandStroke">
10610		<xsl:if test="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204/扩展:内容_B206[@名称='draw:stroke-dash']">
10611			<xsl:for-each select="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204/扩展:内容_B206[@名称='draw:stroke-dash']/扩展:线型数据">
10612				<draw:stroke-dash>
10613					<xsl:attribute name="draw:name"><xsl:value-of select="@uof:name"/></xsl:attribute>
10614					<xsl:attribute name="draw:display-name"><xsl:value-of select="@uof:display-name"/></xsl:attribute>
10615					<xsl:attribute name="draw:dots1"><xsl:value-of select="@uof:dots1"/></xsl:attribute>
10616					<xsl:attribute name="draw:dots2"><xsl:value-of select="@uof:dots1"/></xsl:attribute>
10617					<xsl:attribute name="draw:dots1-length"><xsl:value-of select="@uof:dots1-length"/></xsl:attribute>
10618					<xsl:attribute name="draw:dots2-length"><xsl:value-of select="@uof:dots2-length"/></xsl:attribute>
10619					<xsl:attribute name="draw:distance"><xsl:value-of select="@uof:distance"/></xsl:attribute>
10620				</draw:stroke-dash>
10621			</xsl:for-each>
10622		</xsl:if>
10623	</xsl:template>
10624	<xsl:template name="FootnoteSetting">
10625		<xsl:element name="text:notes-configuration">
10626			<xsl:attribute name="text:note-class"><xsl:value-of select="'footnote'"/></xsl:attribute>
10627			<xsl:attribute name="text:master-page-name">Footnote</xsl:attribute>
10628			<xsl:for-each select="/uof:UOF_0000/字:文字处理文档_4225/字:分节_416A[1]/字:节属性_421B/字:脚注设置_4203">
10629				<xsl:attribute name="text:footnotes-position"><xsl:choose><xsl:when test="@位置_4150='page-bottom' or @位置_4150='below-text'">page</xsl:when><!--<xsl:otherwise>document</xsl:otherwise>--><xsl:otherwise>page</xsl:otherwise></xsl:choose></xsl:attribute>
10630				<xsl:attribute name="text:start-numbering-at"><xsl:choose><xsl:when test="@编号方式_4153='continuous'">document</xsl:when><xsl:when test="@编号方式_4153='section'">chapter</xsl:when><xsl:when test="@编号方式_4153='page'">page</xsl:when></xsl:choose></xsl:attribute>
10631				<xsl:attribute name="text:start-value"><xsl:value-of select="number(@起始编号_4152) - number(1)"/></xsl:attribute>
10632				<xsl:attribute name="style:num-format"><xsl:call-template name="NumberFormat"><xsl:with-param name="oo_format" select="@格式_4151"/></xsl:call-template></xsl:attribute>
10633			</xsl:for-each>
10634		</xsl:element>
10635	</xsl:template>
10636	<xsl:template name="EndnoteSetting">
10637		<xsl:element name="text:notes-configuration">
10638			<xsl:attribute name="text:note-class">endnote</xsl:attribute>
10639			<xsl:attribute name="text:master-page-name">Endnote</xsl:attribute>
10640			<xsl:for-each select="/uof:UOF_0000/字:文字处理文档_4225/字:分节_416A[1]/字:节属性_421B/字:尾注设置_4204">
10641				<xsl:attribute name="style:num-format"><xsl:call-template name="NumberFormat"><xsl:with-param name="oo_format" select="@格式_4151"/></xsl:call-template></xsl:attribute>
10642				<xsl:attribute name="text:start-value"><xsl:value-of select="number(@起始编号_4152) - 1"/></xsl:attribute>
10643			</xsl:for-each>
10644		</xsl:element>
10645	</xsl:template>
10646	<xsl:template name="LineNumbering">
10647		<xsl:for-each select="/uof:UOF_0000/字:文字处理文档_4225/字:分节_416A[1]/字:节属性_421B/字:行号设置_420A">
10648			<xsl:if test="@是否使用行号_420B='true'">
10649				<xsl:element name="text:linenumbering-configuration">
10650					<xsl:choose>
10651						<xsl:when test="@是否使用行号_420B='true'">
10652							<xsl:attribute name="text:number-lines">true</xsl:attribute>
10653						</xsl:when>
10654						<xsl:otherwise>
10655							<xsl:attribute name="text:style-name">Line numbering</xsl:attribute>
10656						</xsl:otherwise>
10657					</xsl:choose>
10658					<xsl:if test="@编号方式_4153">
10659						<xsl:choose>
10660							<xsl:when test="@编号方式_4153='section'">
10661								<xsl:attribute name="text:count-in-floating-frames">true</xsl:attribute>
10662							</xsl:when>
10663							<xsl:when test="@编号方式_4153='page'">
10664								<xsl:attribute name="text:restart-on-page">true</xsl:attribute>
10665							</xsl:when>
10666							<xsl:when test="编号方式_4153='continuous'">
10667								<xsl:attribute name="text:count-empty-lines">true</xsl:attribute>
10668							</xsl:when>
10669						</xsl:choose>
10670					</xsl:if>
10671					<!--
10672					<xsl:if test="@字:起始编号">
10673						<xsl:attribute name="style:num-format"><xsl:value-of select="@字:起始编号"/></xsl:attribute>
10674					</xsl:if>-->
10675					<!-- 行编号兼容eio 当永中设置距离文本为'自动'时,其默认距离为0.65cm-->
10676					<xsl:if test="@距边界_41F0">
10677						<xsl:attribute name="text:offset"><xsl:choose><xsl:when test="@距边界_41F0='0.0'">0.65cm</xsl:when><xsl:otherwise><xsl:value-of select="concat(@距边界_41F0,$uofUnit)"/></xsl:otherwise></xsl:choose></xsl:attribute>
10678					</xsl:if>
10679					<xsl:if test="@行号间隔_420D">
10680						<xsl:attribute name="text:increment"><xsl:value-of select="@行号间隔_420D"/></xsl:attribute>
10681					</xsl:if>
10682				</xsl:element>
10683			</xsl:if>
10684		</xsl:for-each>
10685	</xsl:template>
10686	<xsl:function name="nsof:NeoShineOfficeID">
10687		<xsl:param name="CurNode"/>
10688		<xsl:for-each select="$CurNode">
10689			<xsl:variable name="curName" select="substring-after(name(),':')"/>
10690			<xsl:choose>
10691				<xsl:when test="$curName != '分节_416A'">
10692					<xsl:value-of select="concat($curName,'-',string(count(../../preceding-sibling::*[name() = '字:分节_416A']) + 1))"/>
10693				</xsl:when>
10694				<xsl:otherwise>
10695					<xsl:value-of select="concat($curName,'-',string(count(preceding-sibling::*[name() = '字:分节_416A']) + 1))"/>
10696				</xsl:otherwise>
10697			</xsl:choose>
10698		</xsl:for-each>
10699	</xsl:function>
10700	<xsl:template name="MasterStyleText">
10701		<xsl:for-each select="/uof:UOF_0000/字:文字处理文档_4225/字:分节_416A/字:节属性_421B">
10702			<xsl:variable name="sectname">
10703				<xsl:value-of select="nsof:NeoShineOfficeID(..)"/>
10704			</xsl:variable>
10705			<xsl:if test="字:是否首页页眉页脚不同_41EE='true' or 字:页码设置_4205/@字:首页显示 = 'false'">
10706				<style:master-page>
10707					<xsl:variable name="mname">
10708						<xsl:choose>
10709							<xsl:when test="字:是否首页页眉页脚不同_41EE='true'">
10710								<xsl:value-of select="nsof:NeoShineOfficeID(字:是否首页页眉页脚不同_41EE)"/>
10711							</xsl:when>
10712							<xsl:when test="字:页码设置_4205/@字:首页显示 = 'false'">
10713								<xsl:value-of select="nsof:NeoShineOfficeID(字:页码设置_4205)"/>
10714							</xsl:when>
10715						</xsl:choose>
10716					</xsl:variable>
10717					<xsl:attribute name="style:name"><xsl:value-of select="$mname"/></xsl:attribute>
10718					<xsl:attribute name="style:page-layout-name"><xsl:value-of select="concat('layout-', $sectname)"/></xsl:attribute>
10719					<xsl:attribute name="style:display-name"><xsl:value-of select="$mname"/></xsl:attribute>
10720					<xsl:attribute name="style:next-style-name"><xsl:value-of select="$sectname"/></xsl:attribute>
10721					<xsl:if test="字:页眉_41F3/字:首页页眉_41F6 or 字:页脚_41F7/字:首页页脚_41FA">
10722						<xsl:choose>
10723							<xsl:when test="字:页眉_41F3/字:首页页眉_41F6">
10724								<style:header>
10725									<xsl:call-template name="TextContent">
10726										<xsl:with-param name="content" select="字:页眉_41F3/字:首页页眉_41F6"/>
10727									</xsl:call-template>
10728								</style:header>
10729							</xsl:when>
10730							<xsl:otherwise>
10731								<style:header>
10732									<xsl:variable name="parastyle" select="key('uof-paragraph-styles',字:段落属性_419B/@式样引用_419C)"/>
10733									<xsl:variable name="level">
10734										<xsl:choose>
10735											<xsl:when test="$document_type = 'presentation'">
10736												<xsl:variable name="graphid" select="ancestor::图形:图形集_7C00/图:图形_8062/@标识符_804B"/>
10737												<xsl:choose>
10738													<xsl:when test="key('rel_graphic_name',$graphid)/uof:占位符_C626/@类型_C627='outline'">
10739														<xsl:variable name="outlinelevel">
10740															<xsl:choose>
10741																<xsl:when test="./字:段落属性_419B/字:大纲级别_417C">
10742																	<xsl:value-of select="./字:段落属性_419B/字:大纲级别_417C"/>
10743																</xsl:when>
10744																<xsl:otherwise>
10745																	<xsl:call-template name="LevelInOutline">
10746																		<xsl:with-param name="parastyle" select="$parastyle"/>
10747																	</xsl:call-template>
10748																</xsl:otherwise>
10749															</xsl:choose>
10750														</xsl:variable>
10751														<xsl:choose>
10752															<xsl:when test="$outlinelevel='F'">
10753																<xsl:call-template name="LevelInNumber">
10754																	<xsl:with-param name="parastyle" select="$parastyle"/>
10755																</xsl:call-template>
10756															</xsl:when>
10757															<xsl:otherwise>
10758																<xsl:value-of select="$outlinelevel"/>
10759															</xsl:otherwise>
10760														</xsl:choose>
10761													</xsl:when>
10762													<xsl:otherwise>
10763														<xsl:call-template name="LevelInNumber">
10764															<xsl:with-param name="parastyle" select="$parastyle"/>
10765														</xsl:call-template>
10766													</xsl:otherwise>
10767												</xsl:choose>
10768											</xsl:when>
10769											<xsl:otherwise>
10770												<xsl:call-template name="LevelInNumber">
10771													<xsl:with-param name="parastyle" select="$parastyle"/>
10772												</xsl:call-template>
10773											</xsl:otherwise>
10774										</xsl:choose>
10775									</xsl:variable>
10776									<xsl:variable name="stylename">
10777										<xsl:choose>
10778											<xsl:when test="number($level) &gt; 0">
10779												<xsl:choose>
10780													<xsl:when test="./字:段落属性_419B/字:自动编号信息_4186/@编号引用_4187">
10781														<xsl:value-of select="字:段落属性_419B/字:自动编号信息_4186/@编号引用_4187"/>
10782													</xsl:when>
10783													<xsl:when test="$parastyle/字:自动编号信息_4186/@编号引用_4187">
10784														<xsl:value-of select="$parastyle/字:自动编号信息_4186/@编号引用_4187"/>
10785													</xsl:when>
10786													<xsl:otherwise>
10787														<xsl:for-each select="key('uof-number-styles',字:段落属性_419B/@式样引用_419C)">
10788															<xsl:value-of select="../@标识符_4169"/>
10789														</xsl:for-each>
10790													</xsl:otherwise>
10791												</xsl:choose>
10792											</xsl:when>
10793										</xsl:choose>
10794									</xsl:variable>
10795									<text:p text:style-name="{$stylename}"/>
10796								</style:header>
10797							</xsl:otherwise>
10798						</xsl:choose>
10799						<xsl:choose>
10800							<xsl:when test="字:页脚_41F7/字:首页页脚_41FA">
10801								<style:footer>
10802									<xsl:call-template name="TextContent">
10803										<xsl:with-param name="content" select="字:页脚_41F7/字:首页页脚_41FA"/>
10804									</xsl:call-template>
10805								</style:footer>
10806							</xsl:when>
10807							<xsl:otherwise>
10808								<style:footer>
10809									<text:p text:style-name="Standard"/>
10810								</style:footer>
10811							</xsl:otherwise>
10812						</xsl:choose>
10813					</xsl:if>
10814				</style:master-page>
10815			</xsl:if>
10816			<xsl:element name="style:master-page">
10817				<xsl:attribute name="style:name"><xsl:value-of select="$sectname"/></xsl:attribute>
10818				<xsl:attribute name="style:page-layout-name"><xsl:value-of select="concat('layout-', $sectname)"/></xsl:attribute>
10819				<xsl:attribute name="style:display-name"><xsl:value-of select="$sectname"/></xsl:attribute>
10820				<xsl:choose>
10821					<xsl:when test="字:是否奇偶页页眉页脚不同_41ED='true'">
10822						<xsl:if test="字:页眉_41F3/字:奇数页页眉_41F4 or 字:页眉_41F3/字:偶数页页眉_41F5">
10823							<xsl:choose>
10824								<xsl:when test="字:页眉_41F3/字:奇数页页眉_41F4">
10825									<style:header>
10826										<xsl:call-template name="TextContent">
10827											<xsl:with-param name="content" select="字:页眉_41F3/字:奇数页页眉_41F4"/>
10828										</xsl:call-template>
10829									</style:header>
10830								</xsl:when>
10831								<xsl:otherwise>
10832									<style:header>
10833										<text:p text:style-name="Standard"/>
10834									</style:header>
10835								</xsl:otherwise>
10836							</xsl:choose>
10837							<xsl:choose>
10838								<xsl:when test="字:页眉_41F3/字:偶数页页眉_41F5">
10839									<style:header-left>
10840										<xsl:call-template name="TextContent">
10841											<xsl:with-param name="content" select="字:页眉_41F3/字:偶数页页眉_41F5"/>
10842										</xsl:call-template>
10843									</style:header-left>
10844								</xsl:when>
10845								<xsl:otherwise>
10846									<style:header-left>
10847										<text:p text:style-name="Standard"/>
10848									</style:header-left>
10849								</xsl:otherwise>
10850							</xsl:choose>
10851						</xsl:if>
10852						<xsl:if test="字:页脚_41F7/字:奇数页页脚_41F8 or 字:页脚_41F7/字:偶数页页脚_41F9">
10853							<xsl:choose>
10854								<xsl:when test="字:页脚_41F7/字:奇数页页脚_41F8">
10855									<style:footer>
10856										<xsl:call-template name="TextContent">
10857											<xsl:with-param name="content" select="字:页脚_41F7/字:奇数页页脚_41F8"/>
10858										</xsl:call-template>
10859									</style:footer>
10860								</xsl:when>
10861								<xsl:otherwise>
10862									<style:footer>
10863										<text:p text:style-name="Standard"/>
10864									</style:footer>
10865								</xsl:otherwise>
10866							</xsl:choose>
10867							<xsl:choose>
10868								<xsl:when test="字:页脚_41F7/字:偶数页页脚_41F9">
10869									<style:footer-left>
10870										<xsl:call-template name="TextContent">
10871											<xsl:with-param name="content" select="字:页脚_41F7/字:偶数页页脚_41F9"/>
10872										</xsl:call-template>
10873									</style:footer-left>
10874								</xsl:when>
10875								<xsl:otherwise>
10876									<style:footer-left>
10877										<text:p text:style-name="Standard"/>
10878									</style:footer-left>
10879								</xsl:otherwise>
10880							</xsl:choose>
10881						</xsl:if>
10882					</xsl:when>
10883					<xsl:otherwise>
10884						<xsl:if test="字:页眉_41F3/字:奇数页页眉_41F4">
10885							<style:header>
10886								<xsl:call-template name="TextContent">
10887									<xsl:with-param name="content" select="字:页眉_41F3/字:奇数页页眉_41F4"/>
10888								</xsl:call-template>
10889							</style:header>
10890						</xsl:if>
10891						<xsl:if test="字:页脚_41F7/字:奇数页页脚_41F8">
10892							<style:footer>
10893								<xsl:call-template name="TextContent">
10894									<xsl:with-param name="content" select="字:页脚_41F7/字:奇数页页脚_41F8"/>
10895								</xsl:call-template>
10896							</style:footer>
10897						</xsl:if>
10898					</xsl:otherwise>
10899				</xsl:choose>
10900			</xsl:element>
10901		</xsl:for-each>
10902	</xsl:template>
10903	<xsl:template name="OneColumn">
10904		<xsl:param name="onewidth"/>
10905		<xsl:param name="gap"/>
10906		<xsl:param name="count"/>
10907		<xsl:param name="pos"/>
10908		<xsl:if test="not($pos &gt; $count)">
10909			<xsl:element name="style:column">
10910				<xsl:attribute name="style:rel-width"><xsl:value-of select="concat($onewidth, '*')"/></xsl:attribute>
10911				<xsl:choose>
10912					<xsl:when test="$pos = 1">
10913						<xsl:attribute name="fo:start-indent">0cm</xsl:attribute>
10914						<xsl:attribute name="fo:end-indent"><xsl:value-of select="concat(number($gap) * 0.5,$uofUnit)"/></xsl:attribute>
10915					</xsl:when>
10916					<xsl:when test="$pos = $count">
10917						<xsl:attribute name="fo:start-indent"><xsl:value-of select="concat(number($gap) * 0.5,$uofUnit)"/></xsl:attribute>
10918						<xsl:attribute name="fo:end-indent">0cm</xsl:attribute>
10919					</xsl:when>
10920					<xsl:otherwise>
10921						<xsl:attribute name="fo:start-indent"><xsl:value-of select="concat(number($gap) * 0.5,$uofUnit)"/></xsl:attribute>
10922						<xsl:attribute name="fo:end-indent"><xsl:value-of select="concat(number($gap) * 0.5,$uofUnit)"/></xsl:attribute>
10923					</xsl:otherwise>
10924				</xsl:choose>
10925			</xsl:element>
10926			<xsl:call-template name="OneColumn">
10927				<xsl:with-param name="onewidth" select="$onewidth"/>
10928				<xsl:with-param name="gap" select="$gap"/>
10929				<xsl:with-param name="count" select="$count"/>
10930				<xsl:with-param name="pos" select="$pos+1"/>
10931			</xsl:call-template>
10932		</xsl:if>
10933	</xsl:template>
10934	<xsl:template match="字:分栏_4215">
10935		<xsl:param name="bodywidth"/>
10936		<xsl:element name="style:columns">
10937			<xsl:attribute name="fo:column-count"><xsl:value-of select="字:栏数_41E8"/></xsl:attribute>
10938			<xsl:variable name="aa" select="字:栏_41E0[position()=1]/@间距_41E2"/>
10939			<xsl:if test="字:是否等宽_41E9='true' ">
10940				<xsl:attribute name="fo:column-gap"><xsl:value-of select="concat($aa,$uofUnit)"/></xsl:attribute>
10941			</xsl:if>
10942			<xsl:if test="字:分隔线_41E3/@分隔线线型_41E4 != '' and 字:分隔线_41E3/@分隔线线型_41E4 != 'none'">
10943				<xsl:element name="style:column-sep">
10944					<xsl:choose>
10945						<xsl:when test="字:分隔线_41E3/@分隔线宽度_41E6 != ''">
10946							<xsl:attribute name="style:width"><xsl:value-of select="concat(字:分隔线_41E3/@分隔线宽度_41E6,$uofUnit)"/></xsl:attribute>
10947						</xsl:when>
10948						<xsl:otherwise>
10949							<xsl:attribute name="style:color"><xsl:value-of select="'#000000'"/></xsl:attribute>
10950						</xsl:otherwise>
10951					</xsl:choose>
10952					<xsl:choose>
10953						<xsl:when test="字:分隔线_41E3/@分隔线颜色_41E7 != ''">
10954							<xsl:attribute name="style:color"><xsl:value-of select="字:分隔线_41E3/@分隔线颜色_41E7"/></xsl:attribute>
10955						</xsl:when>
10956						<xsl:otherwise>
10957							<xsl:attribute name="style:color"><xsl:value-of select="'0.002cm'"/></xsl:attribute>
10958						</xsl:otherwise>
10959					</xsl:choose>
10960					<!-- 以下属性uof没有,其中style:vertical-align是require的 -->
10961					<xsl:attribute name="style:height">100%</xsl:attribute>
10962					<xsl:attribute name="style:vertical-align">top</xsl:attribute>
10963				</xsl:element>
10964			</xsl:if>
10965			<xsl:variable name="bodywidthtwips" select="number(($bodywidth * $other-to-cm-conversion-factor * 1440) div 2.54)"/>
10966			<xsl:variable name="count" select="字:栏数_41E8"/>
10967			<xsl:choose>
10968				<xsl:when test="字:是否等宽_41E9 and (字:是否等宽_41E9='true')">
10969					<xsl:variable name="onewidth" select="number($bodywidthtwips div $count)"/>
10970					<xsl:variable name="gap">
10971						<xsl:choose>
10972							<xsl:when test="字:栏_41E0[1]/@间距_41E2">
10973								<xsl:value-of select="number(字:栏_41E0[1]/@间距_41E2)"/>
10974							</xsl:when>
10975							<xsl:otherwise>0</xsl:otherwise>
10976						</xsl:choose>
10977					</xsl:variable>
10978					<xsl:call-template name="OneColumn">
10979						<xsl:with-param name="onewidth" select="round($onewidth)"/>
10980						<xsl:with-param name="gap" select="$gap"/>
10981						<xsl:with-param name="count" select="$count"/>
10982						<xsl:with-param name="pos" select="1"/>
10983					</xsl:call-template>
10984				</xsl:when>
10985				<xsl:otherwise>
10986					<xsl:for-each select="字:栏_41E0">
10987						<xsl:element name="style:column">
10988							<xsl:variable name="width" select="number(@宽度_41E1)"/>
10989							<xsl:variable name="gap1">
10990								<xsl:choose>
10991									<xsl:when test="position() = 1">0</xsl:when>
10992									<xsl:otherwise>
10993										<xsl:value-of select="number(preceding-sibling::字:栏_41E0[1]/@间距_41E2) div 2"/>
10994									</xsl:otherwise>
10995								</xsl:choose>
10996							</xsl:variable>
10997							<xsl:variable name="gap2">
10998								<xsl:choose>
10999									<xsl:when test="position() = last()">0</xsl:when>
11000									<xsl:otherwise>
11001										<xsl:value-of select="number(@间距_41E2) div 2"/>
11002									</xsl:otherwise>
11003								</xsl:choose>
11004							</xsl:variable>
11005							<xsl:variable name="onewidth" select="round(($width + $gap1 + $gap2) div $bodywidth * $bodywidthtwips)"/>
11006							<xsl:attribute name="style:rel-width"><xsl:value-of select="concat($onewidth, '*')"/></xsl:attribute>
11007							<xsl:attribute name="fo:start-indent"><xsl:value-of select="concat($gap1,$uofUnit)"/></xsl:attribute>
11008							<xsl:attribute name="fo:end-indent"><xsl:value-of select="concat($gap2,$uofUnit)"/></xsl:attribute>
11009						</xsl:element>
11010					</xsl:for-each>
11011				</xsl:otherwise>
11012			</xsl:choose>
11013		</xsl:element>
11014	</xsl:template>
11015	<xsl:template match="字:填充_4134" mode="textpage">
11016		<xsl:call-template name="CommonFill"/>
11017	</xsl:template>
11018	<xsl:template match="字:边框_4133" mode="textpage">
11019		<xsl:if test="@阴影类型_C645 and @阴影类型_C645 !='' and @阴影类型_C645 !='none'">
11020			<xsl:choose>
11021				<xsl:when test="@阴影类型_C645 = 'right-bottom'">
11022					<xsl:attribute name="style:shadow">#808080 5pt 5pt</xsl:attribute>
11023				</xsl:when>
11024				<xsl:when test="@阴影类型_C645 = 'right-top'">
11025					<xsl:attribute name="style:shadow">#808080 5pt -5pt</xsl:attribute>
11026				</xsl:when>
11027				<xsl:when test="@阴影类型_C645 = 'left-bottom'">
11028					<xsl:attribute name="style:shadow">#808080 -5pt 5pt</xsl:attribute>
11029				</xsl:when>
11030				<xsl:when test="@阴影类型_C645 = 'left-top'">
11031					<xsl:attribute name="style:shadow">#808080 -5pt -5pt</xsl:attribute>
11032				</xsl:when>
11033			</xsl:choose>
11034		</xsl:if>
11035		<xsl:call-template name="CommonBorder">
11036			<xsl:with-param name="pUp" select="uof:上_C614"/>
11037			<xsl:with-param name="pDown" select="uof:下_C616"/>
11038			<xsl:with-param name="pLeft" select="uof:左_C613"/>
11039			<xsl:with-param name="pRight" select="uof:右_C615"/>
11040		</xsl:call-template>
11041	</xsl:template>
11042	<xsl:template match="字:页码设置_4205">
11043		<xsl:variable name="format">
11044			<xsl:call-template name="NumberFormat">
11045				<xsl:with-param name="oo_format" select="@格式_4151"/>
11046			</xsl:call-template>
11047		</xsl:variable>
11048		<xsl:attribute name="style:num-format"><xsl:value-of select="$format"/></xsl:attribute>
11049	</xsl:template>
11050	<xsl:template match="字:网格设置_420E">
11051		<xsl:param name="bodywidth"/>
11052		<xsl:param name="bodyheight"/>
11053		<xsl:if test="@网格类型_420F">
11054			<xsl:attribute name="style:layout-grid-mode"><xsl:choose><xsl:when test="@网格类型_420F='line-char'">both</xsl:when><xsl:when test="@网格类型_420F='char'">both</xsl:when><xsl:when test="@网格类型_420F='line'">line</xsl:when><xsl:when test="@网格类型_420F='none'">none</xsl:when></xsl:choose></xsl:attribute>
11055		</xsl:if>
11056		<xsl:if test="@网格类型_420F = 'char'">
11057			<xsl:attribute name="style:layout-grid-snap-to-characters">true</xsl:attribute>
11058		</xsl:if>
11059		<xsl:if test="@网格类型_420F = 'line-char'">
11060			<xsl:attribute name="style:layout-grid-snap-to-characters">false</xsl:attribute>
11061		</xsl:if>
11062		<xsl:variable name="IsType">
11063			<xsl:choose>
11064				<xsl:when test="@字符数_4228 &lt; 1 or @行数_4210 &lt; 1">
11065					<xsl:value-of select="'WrongUOFType'"/>
11066				</xsl:when>
11067				<!--xsl:when test="@字:宽度 = '10.50' or @字:高度 = '15.60'">
11068					<xsl:value-of select="'WrongUOFType'"/>
11069				</xsl:when>
11070				<xsl:when test="@字:宽度 = '10.5' or @字:高度 = '15.6'">
11071					<xsl:value-of select="'WrongUOFType'"/>
11072				</xsl:when>
11073				<xsl:when test="@字:宽度 = '10.50' or @字:高度 = '15.06'">
11074					<xsl:value-of select="'WrongUOFType'"/>
11075				</xsl:when-->
11076				<xsl:otherwise>
11077					<xsl:value-of select="'UOFType'"/>
11078				</xsl:otherwise>
11079			</xsl:choose>
11080		</xsl:variable>
11081		<!-- SPECIAL -->
11082		<xsl:choose>
11083			<xsl:when test="$IsType = 'WrongUOFType'">
11084				<xsl:attribute name="style:layout-grid-base-width"><xsl:value-of select="concat(number(@字符数_4228),$uofUnit)"/></xsl:attribute>
11085				<xsl:attribute name="style:layout-grid-lines"><xsl:value-of select="floor(($bodyheight) div number(@行数_4210))"/></xsl:attribute>
11086				<xsl:attribute name="style:layout-grid-base-height"><xsl:value-of select="concat(number(@行数_4210),$uofUnit)"/></xsl:attribute>
11087			</xsl:when>
11088			<xsl:when test="$IsType = 'UOFType'">
11089				<xsl:variable name="modnum" select="number(1.0015)"/>
11090				<xsl:variable name="gridwidth" select="$bodywidth div ceiling(@字符数_4228) div $modnum"/>
11091				<xsl:variable name="gridheight" select="$bodyheight div ceiling(@行数_4210) div $modnum"/>
11092				<xsl:variable name="gridline" select=" ceiling(@行数_4210)"/>
11093				<xsl:if test="@字符数_4228 and @网格类型_420F != 'none' and @网格类型_420F != 'line'">
11094					<xsl:attribute name="style:layout-grid-base-width"><xsl:value-of select="concat($gridwidth,$uofUnit)"/></xsl:attribute>
11095				</xsl:if>
11096				<xsl:if test="@行数_4210 and @网格类型_420F != 'none'">
11097					<xsl:attribute name="style:layout-grid-lines"><xsl:value-of select="floor($gridline)"/></xsl:attribute>
11098					<xsl:attribute name="style:layout-grid-base-height"><xsl:value-of select="concat($gridheight,$uofUnit)"/></xsl:attribute>
11099					<!--xsl:attribute name="style:layout-grid-base-height"><xsl:value-of select="concat($gridheight * $other-to-cm-conversion-factor, 'cm')"/></xsl:attribute-->
11100				</xsl:if>
11101			</xsl:when>
11102		</xsl:choose>
11103		<xsl:attribute name="style:layout-grid-ruby-height"><xsl:value-of select="concat(0,$uofUnit)"/></xsl:attribute>
11104		<xsl:if test="@是否显示网格_4211 = 'false'">
11105			<xsl:attribute name="style:layout-grid-display">false</xsl:attribute>
11106		</xsl:if>
11107		<xsl:if test="@是否打印网格_4212 = 'false' or not(@是否打印网格_4212)">
11108			<xsl:attribute name="style:layout-grid-print">false</xsl:attribute>
11109		</xsl:if>
11110	</xsl:template>
11111	<xsl:template match="字:稿纸设置_4216">
11112		<xsl:param name="bodywidth"/>
11113		<xsl:param name="bodyheight"/>
11114		<xsl:if test="@格式_4217">
11115			<xsl:choose>
11116				<xsl:when test="@类型_4173='draft-paper'">
11117					<xsl:variable name="row">
11118						<xsl:choose>
11119							<xsl:when test="@格式_4217 = 'first-gear'">10.2</xsl:when>
11120							<xsl:when test="@格式_4217 = 'second-gear'">15.008</xsl:when>
11121							<xsl:when test="@格式_4217 = 'third-gear'">20</xsl:when>
11122							<xsl:when test="@格式_4217 = 'fourth-gear'">20.2</xsl:when>
11123						</xsl:choose>
11124					</xsl:variable>
11125					<xsl:variable name="layout-grid-lines">
11126						<xsl:choose>
11127							<xsl:when test="@格式_4217 = 'first-gear'">10</xsl:when>
11128							<xsl:when test="@格式_4217 = 'second-gear'">15</xsl:when>
11129							<xsl:when test="@格式_4217 = 'third-gear'">20</xsl:when>
11130							<xsl:when test="@格式_4217 = 'fourth-gear'">20</xsl:when>
11131						</xsl:choose>
11132					</xsl:variable>
11133					<xsl:variable name="column">
11134						<xsl:choose>
11135							<xsl:when test="@格式_4217 = 'first-gear'">20.05</xsl:when>
11136							<xsl:when test="@格式_4217 = 'second-gear'">20.05</xsl:when>
11137							<xsl:when test="@格式_4217 = 'third-gear'">20.05</xsl:when>
11138							<xsl:when test="@格式_4217 = 'fourth-gear'">25.02</xsl:when>
11139						</xsl:choose>
11140					</xsl:variable>
11141					<xsl:variable name="basewidth">
11142						<xsl:value-of select="number($bodywidth) div number($column)"/>
11143					</xsl:variable>
11144					<xsl:variable name="allheight">
11145						<xsl:variable name="allheight1">
11146							<xsl:value-of select="number($bodyheight) div (number($layout-grid-lines) + 1)"/>
11147						</xsl:variable>
11148						<xsl:variable name="allheight2">
11149							<xsl:value-of select="number($bodyheight) div number($layout-grid-lines)"/>
11150						</xsl:variable>
11151						<xsl:value-of select="($allheight1 + $allheight2) * 0.5"/>
11152					</xsl:variable>
11153					<xsl:variable name="rubyheight">
11154						<xsl:value-of select="number($allheight) - number($basewidth)"/>
11155					</xsl:variable>
11156					<xsl:attribute name="style:layout-grid-base-width"><xsl:value-of select="concat($basewidth,$uofUnit)"/></xsl:attribute>
11157					<xsl:attribute name="style:layout-grid-base-height"><xsl:value-of select="concat($basewidth,$uofUnit)"/></xsl:attribute>
11158					<xsl:attribute name="style:layout-grid-ruby-height"><xsl:value-of select="concat($rubyheight,$uofUnit)"/></xsl:attribute>
11159					<xsl:attribute name="style:layout-grid-lines" select="$layout-grid-lines"/>
11160					<xsl:attribute name="style:layout-grid-mode">both</xsl:attribute>
11161					<xsl:attribute name="style:layout-grid-display">true</xsl:attribute>
11162					<xsl:attribute name="style:layout-grid-print">true</xsl:attribute>
11163				</xsl:when>
11164				<xsl:when test="@类型_4173='letter-paper'">
11165					<xsl:variable name="RubyHeight">
11166						<xsl:choose>
11167							<xsl:when test="@线型_4218='single-line'">0</xsl:when>
11168							<xsl:otherwise>
11169								<xsl:value-of select="number(0.1 div $other-to-cm-conversion-factor)"/>
11170							</xsl:otherwise>
11171						</xsl:choose>
11172					</xsl:variable>
11173					<xsl:variable name="layout-grid-lines">
11174						<xsl:choose>
11175							<xsl:when test="@格式_4217 = 'first-gear'">10</xsl:when>
11176							<xsl:when test="@格式_4217 = 'second-gear'">15</xsl:when>
11177							<xsl:when test="@格式_4217 = 'third-gear'">20</xsl:when>
11178							<xsl:when test="@格式_4217 = 'fourth-gear'">24</xsl:when>
11179						</xsl:choose>
11180					</xsl:variable>
11181					<xsl:variable name="row">
11182						<xsl:choose>
11183							<xsl:when test="@格式_4217 = 'first-gear'">10.004</xsl:when>
11184							<xsl:when test="@格式_4217 = 'second-gear'">15.008</xsl:when>
11185							<xsl:when test="@格式_4217 = 'third-gear'">20.03</xsl:when>
11186							<xsl:when test="@格式_4217 = 'fourth-gear'">24.01</xsl:when>
11187						</xsl:choose>
11188					</xsl:variable>
11189					<xsl:variable name="layout-grid-base-height" select="($bodyheight div number($row)) - number($RubyHeight)"/>
11190					<xsl:attribute name="style:layout-grid-base-height"><xsl:value-of select="concat($layout-grid-base-height,$uofUnit)"/></xsl:attribute>
11191					<xsl:attribute name="style:layout-grid-ruby-height"><xsl:value-of select="concat($RubyHeight,$uofUnit)"/></xsl:attribute>
11192					<xsl:attribute name="style:layout-grid-lines"><xsl:value-of select="$layout-grid-lines"/></xsl:attribute>
11193					<xsl:attribute name="style:layout-grid-mode">line</xsl:attribute>
11194					<xsl:attribute name="style:layout-grid-display">true</xsl:attribute>
11195					<xsl:attribute name="style:layout-grid-print">true</xsl:attribute>
11196				</xsl:when>
11197			</xsl:choose>
11198			<xsl:if test="@颜色_4219">
11199				<xsl:attribute name="style:layout-grid-color"><xsl:value-of select="@颜色_4219"/></xsl:attribute>
11200			</xsl:if>
11201			<xsl:if test="@方向_421A">
11202				<xsl:variable name="direction">
11203					<xsl:choose>
11204						<xsl:when test="string(@方向_421A)='hori-l2r'">lr-tb</xsl:when>
11205						<xsl:when test="string(@方向_421A)='hori-r2l'">tb-lr</xsl:when>
11206						<xsl:when test="string(@方向_421A)='vert-l2r'">tb-lr</xsl:when>
11207						<xsl:when test="string(@方向_421A)='vert-r2l'">tb-rl</xsl:when>
11208						<xsl:otherwise>page</xsl:otherwise>
11209					</xsl:choose>
11210				</xsl:variable>
11211				<xsl:attribute name="style:writing-mode"><xsl:value-of select="$direction"/></xsl:attribute>
11212			</xsl:if>
11213		</xsl:if>
11214	</xsl:template>
11215	<xsl:template name="GetPageWidth">
11216		<xsl:choose>
11217			<xsl:when test="字:纸张_41EC/@宽_C605">
11218				<xsl:value-of select="字:纸张_41EC/@宽_C605"/>
11219			</xsl:when>
11220			<xsl:when test="字:纸张方向_41FF = 'portrait'">
11221				<xsl:variable name="widthcm">
11222					<xsl:choose>
11223						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'A3'">29.7</xsl:when>
11224						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'A4'">21.0</xsl:when>
11225						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'A5'">14.8</xsl:when>
11226						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'B4'">25.0</xsl:when>
11227						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'B5'">17.6</xsl:when>
11228						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'letter-small'">21.59</xsl:when>
11229						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'letter'">21.59</xsl:when>
11230						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'PRC-16K'">18.4</xsl:when>
11231						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'PRC-32K'">13.0</xsl:when>
11232						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'PRC-32K(Big)'">14.0</xsl:when>
11233					</xsl:choose>
11234				</xsl:variable>
11235				<xsl:value-of select="number($widthcm) div $other-to-cm-conversion-factor"/>
11236			</xsl:when>
11237			<xsl:when test="字:纸张方向_41FF = 'landscape'">
11238				<xsl:variable name="widthcm">
11239					<xsl:choose>
11240						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'A3'">42.0</xsl:when>
11241						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'A4'">29.7</xsl:when>
11242						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'A5'">21.0</xsl:when>
11243						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'B4'">35.3</xsl:when>
11244						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'B5'">25.0</xsl:when>
11245						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'letter-small'">35.57</xsl:when>
11246						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'letter'">27.94</xsl:when>
11247						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'PRC-16K'">26.0</xsl:when>
11248						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'PRC-32K'">18.4</xsl:when>
11249						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'PRC-32K(Big)'">20.3</xsl:when>
11250					</xsl:choose>
11251				</xsl:variable>
11252				<xsl:value-of select="number($widthcm) div $other-to-cm-conversion-factor"/>
11253			</xsl:when>
11254		</xsl:choose>
11255	</xsl:template>
11256	<xsl:template name="GetPageHeight">
11257		<xsl:choose>
11258			<xsl:when test="字:纸张_41EC/@长_C604">
11259				<xsl:value-of select="字:纸张_41EC/@长_C604"/>
11260			</xsl:when>
11261			<xsl:when test="字:纸张方向_41FF = 'portrait'">
11262				<xsl:variable name="heightcm">
11263					<xsl:choose>
11264						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'A3'">42.0</xsl:when>
11265						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'A4'">29.7</xsl:when>
11266						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'A5'">21.0</xsl:when>
11267						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'B4'">35.3</xsl:when>
11268						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'B5'">25.0</xsl:when>
11269						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'letter-small'">35.57</xsl:when>
11270						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'letter'">27.94</xsl:when>
11271						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'PRC-16K'">26.0</xsl:when>
11272						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'PRC-32K'">18.4</xsl:when>
11273						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'PRC-32K(Big)'">20.3</xsl:when>
11274					</xsl:choose>
11275				</xsl:variable>
11276				<xsl:value-of select="number($heightcm) div $other-to-cm-conversion-factor"/>
11277			</xsl:when>
11278			<xsl:when test="字:纸张方向_41FF = 'landscape'">
11279				<xsl:variable name="heightcm">
11280					<xsl:choose>
11281						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'A3'">29.7</xsl:when>
11282						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'A4'">21.0</xsl:when>
11283						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'A5'">14.8</xsl:when>
11284						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'B4'">25.0</xsl:when>
11285						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'B5'">17.6</xsl:when>
11286						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'letter-small'">21.59</xsl:when>
11287						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'letter'">21.59</xsl:when>
11288						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'PRC-16K'">18.4</xsl:when>
11289						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'PRC-32K'">13.0</xsl:when>
11290						<xsl:when test="字:纸张_41EC/@纸型_C60C = 'PRC-32K(Big)'">14.0</xsl:when>
11291					</xsl:choose>
11292				</xsl:variable>
11293				<xsl:value-of select="number($heightcm) div $other-to-cm-conversion-factor"/>
11294			</xsl:when>
11295		</xsl:choose>
11296	</xsl:template>
11297	<xsl:template name="PageLayoutStyle">
11298		<xsl:for-each select="/uof:UOF_0000/字:文字处理文档_4225/字:分节_416A/字:节属性_421B">
11299			<!--
11300			<xsl:variable name="sectname">
11301				<xsl:choose>
11302					<xsl:when test="../@字:名称">
11303						<xsl:value-of select="../@字:名称"/>
11304					</xsl:when>
11305					<xsl:otherwise>
11306						<xsl:value-of select="generate-id(..)"/>
11307					</xsl:otherwise>
11308				</xsl:choose>
11309			</xsl:variable>-->
11310			<xsl:variable name="sectname">
11311				<xsl:value-of select="nsof:NeoShineOfficeID(..)"/>
11312			</xsl:variable>
11313			<xsl:if test="(position()&gt;1) or ((position() = 1) and ($sectname != 'RoStandard'))">
11314				<xsl:element name="style:page-layout">
11315					<xsl:variable name="margintop">
11316						<xsl:choose>
11317							<xsl:when test="字:页边距_41EB/@上_C609">
11318								<xsl:value-of select="字:页边距_41EB/@上_C609"/>
11319							</xsl:when>
11320							<xsl:otherwise>
11321								<xsl:call-template name="convert2cm">
11322									<xsl:with-param name="value" select="'72pt'"/>
11323								</xsl:call-template>
11324							</xsl:otherwise>
11325						</xsl:choose>
11326					</xsl:variable>
11327					<xsl:variable name="marginbottom">
11328						<xsl:choose>
11329							<xsl:when test="字:页边距_41EB/@下_C60B">
11330								<xsl:value-of select="字:页边距_41EB/@下_C60B"/>
11331							</xsl:when>
11332							<xsl:otherwise>
11333								<xsl:call-template name="convert2cm">
11334									<xsl:with-param name="value" select="'72pt'"/>
11335								</xsl:call-template>
11336							</xsl:otherwise>
11337						</xsl:choose>
11338					</xsl:variable>
11339					<xsl:variable name="marginleft">
11340						<xsl:choose>
11341							<xsl:when test="字:页边距_41EB/@左_C608">
11342								<xsl:value-of select="字:页边距_41EB/@左_C608"/>
11343							</xsl:when>
11344							<xsl:otherwise>
11345								<xsl:call-template name="convert2cm">
11346									<xsl:with-param name="value" select="'90pt'"/>
11347								</xsl:call-template>
11348							</xsl:otherwise>
11349						</xsl:choose>
11350					</xsl:variable>
11351					<xsl:variable name="marginright">
11352						<xsl:choose>
11353							<xsl:when test="字:页边距_41EB/@右_C60A">
11354								<xsl:value-of select="字:页边距_41EB/@右_C60A"/>
11355							</xsl:when>
11356							<xsl:otherwise>
11357								<xsl:call-template name="convert2cm">
11358									<xsl:with-param name="value" select="'90pt'"/>
11359								</xsl:call-template>
11360							</xsl:otherwise>
11361						</xsl:choose>
11362					</xsl:variable>
11363					<xsl:variable name="padtop">
11364						<xsl:choose>
11365							<xsl:when test="字:边框_4133/uof:上_C614/@边距_C610">
11366								<xsl:value-of select="字:边框_4133/uof:上_C614/@边距_C610"/>
11367							</xsl:when>
11368							<xsl:otherwise>
11369								<xsl:value-of select="number(0)"/>
11370							</xsl:otherwise>
11371						</xsl:choose>
11372					</xsl:variable>
11373					<xsl:variable name="padbottom">
11374						<xsl:choose>
11375							<xsl:when test="字:边框_4133/uof:下_C616/@边距_C610">
11376								<xsl:value-of select="字:边框_4133/uof:下_C616/@边距_C610"/>
11377							</xsl:when>
11378							<xsl:otherwise>
11379								<xsl:value-of select="number(0)"/>
11380							</xsl:otherwise>
11381						</xsl:choose>
11382					</xsl:variable>
11383					<xsl:variable name="padleft">
11384						<xsl:choose>
11385							<xsl:when test="字:边框_4133/uof:左_C613/@边距_C610">
11386								<xsl:value-of select="字:边框_4133/uof:左_C613/@边距_C610"/>
11387							</xsl:when>
11388							<xsl:otherwise>
11389								<xsl:value-of select="number(0)"/>
11390							</xsl:otherwise>
11391						</xsl:choose>
11392					</xsl:variable>
11393					<xsl:variable name="padright">
11394						<xsl:choose>
11395							<xsl:when test="字:边框_4133/uof:右_C615/@边距_C610">
11396								<xsl:value-of select="字:边框_4133/uof:右_C615/@边距_C610"/>
11397							</xsl:when>
11398							<xsl:otherwise>
11399								<xsl:value-of select="number(0)"/>
11400							</xsl:otherwise>
11401						</xsl:choose>
11402					</xsl:variable>
11403					<xsl:variable name="headerpos">
11404						<xsl:choose>
11405							<xsl:when test="字:页眉位置_41EF/@距边界_41F0">
11406								<xsl:value-of select="字:页眉位置_41EF/@距边界_41F0"/>
11407							</xsl:when>
11408							<xsl:when test="字:页眉位置_41EF/@距版芯_41F1">
11409								<xsl:value-of select="number($margintop)-number(字:页眉位置_41EF/@距版芯_41F1)"/>
11410							</xsl:when>
11411							<xsl:otherwise>
11412								<xsl:value-of select="number(0)"/>
11413							</xsl:otherwise>
11414						</xsl:choose>
11415					</xsl:variable>
11416					<xsl:variable name="footerpos">
11417						<xsl:choose>
11418							<xsl:when test="字:页脚位置_41F2/@距边界_41F0">
11419								<xsl:value-of select="字:页脚位置_41F2/@距边界_41F0"/>
11420							</xsl:when>
11421							<xsl:when test="字:页脚位置_41F2/@距版芯_41F1">
11422								<xsl:value-of select="number($marginbottom)-number(字:页脚位置_41F2/@距版芯_41F1)"/>
11423							</xsl:when>
11424							<xsl:otherwise>
11425								<xsl:value-of select="number(0)"/>
11426							</xsl:otherwise>
11427						</xsl:choose>
11428					</xsl:variable>
11429					<xsl:attribute name="style:name"><xsl:value-of select="concat('layout-', $sectname)"/></xsl:attribute>
11430					<xsl:if test="字:是否对称页边距_41FD='true' or 字:是否对称页边距_41FD='1'">
11431						<xsl:attribute name="style:page-usage">mirrored</xsl:attribute>
11432					</xsl:if>
11433					<xsl:element name="style:page-layout-properties">
11434						<xsl:if test="字:纸张方向_41FF">
11435							<xsl:attribute name="style:print-orientation"><xsl:value-of select="字:纸张方向_41FF"/></xsl:attribute>
11436						</xsl:if>
11437						<xsl:variable name="direction">
11438							<xsl:choose>
11439								<xsl:when test="string(字:文字排列方向_4214)='t2b-l2r-0e-0w'">lr-tb</xsl:when>
11440								<xsl:when test="string(字:文字排列方向_4214)='t2b-r2l-0e-0w'">rl-tb</xsl:when>
11441								<xsl:when test="string(字:文字排列方向_4214)='t2b-r2l-0e-90w'">rl-tb</xsl:when>
11442								<xsl:when test="string(字:文字排列方向_4214)='r2l-t2b-90e-90w'">tb-rl</xsl:when>
11443								<xsl:when test="string(字:文字排列方向_4214)='r2l-t2b-0e-90w'">tb-rl</xsl:when>
11444								<xsl:when test="string(字:文字排列方向_4214)='l2r-b2t-270e-270w'">tb-lr</xsl:when>
11445								<xsl:otherwise>page</xsl:otherwise>
11446							</xsl:choose>
11447						</xsl:variable>
11448						<xsl:attribute name="style:writing-mode"><xsl:value-of select="$direction"/></xsl:attribute>
11449						<xsl:variable name="pagewidth">
11450							<xsl:call-template name="GetPageWidth"/>
11451						</xsl:variable>
11452						<xsl:variable name="pageheight">
11453							<xsl:call-template name="GetPageHeight"/>
11454						</xsl:variable>
11455						<xsl:attribute name="fo:page-width"><xsl:value-of select="concat(number($pagewidth), $uofUnit)"/></xsl:attribute>
11456						<xsl:attribute name="fo:page-height"><xsl:value-of select="concat(number($pageheight), $uofUnit)"/></xsl:attribute>
11457						<xsl:choose>
11458							<xsl:when test="$headerpos=0 and $padtop=0">
11459								<xsl:attribute name="fo:margin-top"><xsl:value-of select="concat($margintop,$uofUnit)"/></xsl:attribute>
11460							</xsl:when>
11461							<xsl:when test="$padtop=0">
11462								<xsl:attribute name="fo:margin-top"><xsl:value-of select="concat($headerpos,$uofUnit)"/></xsl:attribute>
11463							</xsl:when>
11464							<xsl:when test="$headerpos=0">
11465								<xsl:attribute name="fo:margin-top"><xsl:value-of select="concat($margintop - $padtop,$uofUnit)"/></xsl:attribute>
11466								<xsl:attribute name="fo:padding-top"><xsl:value-of select="concat($margintop - $padtop,$uofUnit)"/></xsl:attribute>
11467							</xsl:when>
11468							<xsl:otherwise>
11469								<xsl:choose>
11470									<xsl:when test="$headerpos &lt; $padtop">
11471										<xsl:attribute name="fo:margin-top"><xsl:value-of select="concat($headerpos,$uofUnit)"/></xsl:attribute>
11472									</xsl:when>
11473									<xsl:otherwise>
11474										<xsl:attribute name="fo:margin-top"><xsl:value-of select="concat($headerpos - $padtop,$uofUnit)"/></xsl:attribute>
11475										<xsl:attribute name="fo:padding-top"><xsl:value-of select="concat($headerpos - $padtop,$uofUnit)"/></xsl:attribute>
11476									</xsl:otherwise>
11477								</xsl:choose>
11478							</xsl:otherwise>
11479						</xsl:choose>
11480						<xsl:choose>
11481							<xsl:when test="$footerpos=0 and $padbottom=0">
11482								<xsl:attribute name="fo:margin-bottom"><xsl:value-of select="concat($marginbottom,$uofUnit)"/></xsl:attribute>
11483							</xsl:when>
11484							<xsl:when test="$padtop=0">
11485								<xsl:attribute name="fo:margin-bottom"><xsl:value-of select="concat($footerpos,$uofUnit)"/></xsl:attribute>
11486							</xsl:when>
11487							<xsl:when test="$footerpos=0">
11488								<xsl:attribute name="fo:margin-bottom"><xsl:value-of select="concat($marginbottom - $padbottom,$uofUnit)"/></xsl:attribute>
11489								<xsl:attribute name="fo:padding-bottom"><xsl:value-of select="concat($marginbottom - $padbottom,$uofUnit)"/></xsl:attribute>
11490							</xsl:when>
11491							<xsl:otherwise>
11492								<xsl:choose>
11493									<xsl:when test="$footerpos &lt; $padbottom">
11494										<xsl:attribute name="fo:margin-bottom"><xsl:value-of select="concat($footerpos,$uofUnit)"/></xsl:attribute>
11495									</xsl:when>
11496									<xsl:otherwise>
11497										<xsl:attribute name="fo:margin-bottom"><xsl:value-of select="concat($footerpos - $padbottom,$uofUnit)"/></xsl:attribute>
11498										<xsl:attribute name="fo:padding-bottom"><xsl:value-of select="concat($footerpos - $padbottom,$uofUnit)"/></xsl:attribute>
11499									</xsl:otherwise>
11500								</xsl:choose>
11501							</xsl:otherwise>
11502						</xsl:choose>
11503						<xsl:choose>
11504							<xsl:when test="$padleft=0">
11505								<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat($marginleft,$uofUnit)"/></xsl:attribute>
11506							</xsl:when>
11507							<xsl:otherwise>
11508								<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat($marginleft - $padleft,$uofUnit)"/></xsl:attribute>
11509								<xsl:attribute name="fo:padding-left"><xsl:value-of select="concat($marginleft - $padleft,$uofUnit)"/></xsl:attribute>
11510							</xsl:otherwise>
11511						</xsl:choose>
11512						<xsl:choose>
11513							<xsl:when test="$padright=0">
11514								<xsl:attribute name="fo:margin-right"><xsl:value-of select="concat($marginright,$uofUnit)"/></xsl:attribute>
11515							</xsl:when>
11516							<xsl:otherwise>
11517								<xsl:attribute name="fo:margin-right"><xsl:value-of select="concat($marginright - $padright,$uofUnit)"/></xsl:attribute>
11518								<xsl:attribute name="fo:padding-right"><xsl:value-of select="concat($marginright - $padright,$uofUnit)"/></xsl:attribute>
11519							</xsl:otherwise>
11520						</xsl:choose>
11521						<xsl:if test="字:装订线_41FB/@位置_4150">
11522							<xsl:attribute name="style:gutter-location"><xsl:value-of select="字:装订线_41FB/@位置_4150"/></xsl:attribute>
11523						</xsl:if>
11524						<xsl:if test="字:装订线_41FB/@距边界_41FC">
11525							<xsl:attribute name="style:gutter-margin"><xsl:value-of select="concat(字:装订线_41FB/@距边界_41FC,$uofUnit)"/></xsl:attribute>
11526						</xsl:if>
11527						<xsl:variable name="bodywidth">
11528							<xsl:value-of select="number($pagewidth) - number($marginleft) - number($marginright)"/>
11529						</xsl:variable>
11530						<xsl:variable name="bodyheight">
11531							<xsl:value-of select="number($pageheight) - number($margintop) - number($marginbottom)"/>
11532						</xsl:variable>
11533						<xsl:if test="字:边框_4133">
11534							<xsl:apply-templates select="字:边框_4133" mode="textpage">
11535								<xsl:with-param name="bodywidth" select="$bodywidth"/>
11536							</xsl:apply-templates>
11537						</xsl:if>
11538						<xsl:if test="字:纸张来源_4200/@其他页_4202">
11539							<xsl:attribute name="style:paper-tray-name"><xsl:value-of select="字:纸张来源_4200/@其他页_4202"/></xsl:attribute>
11540						</xsl:if>
11541						<xsl:if test="字:网格设置_420E">
11542							<xsl:apply-templates select="字:网格设置_420E">
11543								<xsl:with-param name="bodywidth" select="$bodywidth"/>
11544								<xsl:with-param name="bodyheight" select="$bodyheight"/>
11545							</xsl:apply-templates>
11546						</xsl:if>
11547						<xsl:if test="字:垂直对齐方式_4213">
11548							<xsl:attribute name="style:vertical-align"><xsl:value-of select="字:垂直对齐方式_4213"/></xsl:attribute>
11549						</xsl:if>
11550						<xsl:if test="字:稿纸设置_4216">
11551							<xsl:apply-templates select="字:稿纸设置_4216">
11552								<xsl:with-param name="bodywidth">
11553									<xsl:choose>
11554										<xsl:when test="字:稿纸设置_4216/@方向_421A = 'hori-l2r'">
11555											<xsl:value-of select="$bodywidth"/>
11556										</xsl:when>
11557										<xsl:when test="字:稿纸设置_4216/@方向_421A = 'hori-r2l'">
11558											<xsl:value-of select="$bodyheight"/>
11559										</xsl:when>
11560										<xsl:otherwise>
11561											<xsl:value-of select="$bodywidth"/>
11562										</xsl:otherwise>
11563									</xsl:choose>
11564								</xsl:with-param>
11565								<xsl:with-param name="bodyheight">
11566									<xsl:choose>
11567										<xsl:when test="字:稿纸设置_4216/@方向_421A = 'hori-l2r'">
11568											<xsl:value-of select="$bodyheight"/>
11569										</xsl:when>
11570										<xsl:when test="字:稿纸设置_4216/@方向_421A = 'hori-r2l'">
11571											<xsl:value-of select="$bodywidth"/>
11572										</xsl:when>
11573										<xsl:otherwise>
11574											<xsl:value-of select="$bodyheight"/>
11575										</xsl:otherwise>
11576									</xsl:choose>
11577								</xsl:with-param>
11578							</xsl:apply-templates>
11579						</xsl:if>
11580						<xsl:if test="字:分栏_4215/字:栏数_41E8">
11581							<xsl:apply-templates select="字:分栏_4215">
11582								<xsl:with-param name="bodywidth" select="number($bodywidth)"/>
11583							</xsl:apply-templates>
11584						</xsl:if>
11585						<xsl:if test="字:填充_4134">
11586							<xsl:apply-templates select="字:填充_4134" mode="textpage"/>
11587						</xsl:if>
11588					</xsl:element>
11589					<xsl:if test="字:页眉位置_41EF">
11590						<style:header-style>
11591							<xsl:element name="style:header-footer-properties">
11592								<xsl:variable name="min_height">
11593									<xsl:value-of select="$margintop - $headerpos"/>
11594								</xsl:variable>
11595								<xsl:attribute name="fo:min-height"><xsl:value-of select="concat($min_height, $uofUnit)"/></xsl:attribute>
11596								<xsl:if test="字:页眉位置_41EF/@距版芯_41F1">
11597									<xsl:attribute name="fo:margin-bottom"><xsl:value-of select="concat(字:页眉位置_41EF/@距版芯_41F1,$uofUnit)"/></xsl:attribute>
11598								</xsl:if>
11599								<xsl:attribute name="style:dynamic-spacing">true</xsl:attribute>
11600							</xsl:element>
11601						</style:header-style>
11602					</xsl:if>
11603					<xsl:if test="字:页脚位置_41F2">
11604						<style:footer-style>
11605							<xsl:element name="style:header-footer-properties">
11606								<xsl:variable name="min_height">
11607									<xsl:value-of select="$marginbottom - $footerpos"/>
11608								</xsl:variable>
11609								<xsl:attribute name="fo:min-height"><xsl:value-of select="concat($min_height,$uofUnit)"/></xsl:attribute>
11610								<xsl:if test="字:页脚位置_41F2/@距版芯_41F1">
11611									<xsl:attribute name="fo:margin-top"><xsl:value-of select="concat(字:页脚位置_41F2/@距版芯_41F1,$uofUnit)"/></xsl:attribute>
11612								</xsl:if>
11613								<xsl:attribute name="style:dynamic-spacing">true</xsl:attribute>
11614							</xsl:element>
11615						</style:footer-style>
11616					</xsl:if>
11617				</xsl:element>
11618			</xsl:if>
11619		</xsl:for-each>
11620	</xsl:template>
11621	<xsl:template name="transform-hex-to-decimal">
11622		<xsl:param name="number"/>
11623		<xsl:variable name="R-color-number">
11624			<xsl:call-template name="color-hex-to-decimal">
11625				<xsl:with-param name="chars" select="substring($number[1],2,2)"/>
11626			</xsl:call-template>
11627		</xsl:variable>
11628		<xsl:variable name="G-color-number">
11629			<xsl:call-template name="color-hex-to-decimal">
11630				<xsl:with-param name="chars" select="substring($number[1],4,2)"/>
11631			</xsl:call-template>
11632		</xsl:variable>
11633		<xsl:variable name="B-color-number">
11634			<xsl:call-template name="color-hex-to-decimal">
11635				<xsl:with-param name="chars" select="substring($number[1],6,2)"/>
11636			</xsl:call-template>
11637		</xsl:variable>
11638		<xsl:value-of select="format-number($R-color-number * 65536 + $G-color-number * 256 + $B-color-number,'#')"/>
11639	</xsl:template>
11640	<xsl:template name="color-hex-to-decimal">
11641		<xsl:param name="chars"/>
11642		<xsl:variable name="first-num">
11643			<xsl:call-template name="hex-to-decimal">
11644				<xsl:with-param name="char" select="substring($chars,1,1)"/>
11645			</xsl:call-template>
11646		</xsl:variable>
11647		<xsl:variable name="second-num">
11648			<xsl:call-template name="hex-to-decimal">
11649				<xsl:with-param name="char" select="substring($chars,2,1)"/>
11650			</xsl:call-template>
11651		</xsl:variable>
11652		<xsl:value-of select="number($first-num) *16 + number($second-num)"/>
11653	</xsl:template>
11654	<xsl:template name="hex-to-decimal">
11655		<xsl:param name="char"/>
11656		<xsl:choose>
11657			<xsl:when test="$char='0'">0</xsl:when>
11658			<xsl:when test="$char='1'">1</xsl:when>
11659			<xsl:when test="$char='2'">2</xsl:when>
11660			<xsl:when test="$char='3'">3</xsl:when>
11661			<xsl:when test="$char='4'">4</xsl:when>
11662			<xsl:when test="$char='5'">5</xsl:when>
11663			<xsl:when test="$char='6'">6</xsl:when>
11664			<xsl:when test="$char='7'">7</xsl:when>
11665			<xsl:when test="$char='8'">8</xsl:when>
11666			<xsl:when test="$char='9'">9</xsl:when>
11667			<xsl:when test="$char='a'">10</xsl:when>
11668			<xsl:when test="$char='b'">11</xsl:when>
11669			<xsl:when test="$char='c'">12</xsl:when>
11670			<xsl:when test="$char='d'">13</xsl:when>
11671			<xsl:when test="$char='e'">14</xsl:when>
11672			<xsl:when test="$char='f'">15</xsl:when>
11673		</xsl:choose>
11674	</xsl:template>
11675	<xsl:template name="OfficeSettingsSpreadsheet">
11676		<xsl:variable name="sheetprop" select="/uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825"/>
11677		<config:config-item-set config:name="ooo:view-settings">
11678			<xsl:variable name="ratio" select="15"/>
11679			<xsl:if test="/uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825/表:工作表内容_E80E/表:行_E7F1/表:单元格_E7F2/表:数据_E7B3/字:句_419D/字:修订开始_421F">
11680				<config:config-item-set config:name="TrackedChangesViewSettings">
11681					<config:config-item config:name="ShowChanges" config:type="boolean">true</config:config-item>
11682					<config:config-item config:name="ShowAcceptedChanges" config:type="boolean">false</config:config-item>
11683					<config:config-item config:name="ShowRejectedChanges" config:type="boolean">false</config:config-item>
11684					<config:config-item config:name="ShowChangesByDatetime" config:type="boolean">false</config:config-item>
11685					<config:config-item config:name="ShowChangesByDatetimeMode" config:type="short">0</config:config-item>
11686					<config:config-item config:name="ShowChangesByDatetimeFirstDatetime" config:type="datetime">2007-01-17T10:56:46.21</config:config-item>
11687					<config:config-item config:name="ShowChangesByDatetimeSecondDatetime" config:type="datetime">2007-01-17T10:56:46.21</config:config-item>
11688					<config:config-item config:name="ShowChangesByAuthor" config:type="boolean">false</config:config-item>
11689					<config:config-item config:name="ShowChangesByAuthorName" config:type="string"/>
11690					<config:config-item config:name="ShowChangesByComment" config:type="boolean">false</config:config-item>
11691					<config:config-item config:name="ShowChangesByCommentText" config:type="string"/>
11692					<config:config-item config:name="ShowChangesByRanges" config:type="boolean">false</config:config-item>
11693					<config:config-item config:name="ShowChangesByRangesList" config:type="string"/>
11694				</config:config-item-set>
11695			</xsl:if>
11696			<config:config-item-map-indexed config:name="Views">
11697				<config:config-item-map-entry>
11698					<config:config-item config:name="ViewId" config:type="string">View1</config:config-item>
11699					<config:config-item-map-named config:name="Tables">
11700						<xsl:element name="config:config-item-map-entry">
11701							<xsl:attribute name="config:name"><xsl:value-of select="/uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825/@名称_E822"/></xsl:attribute>
11702							<xsl:if test="not(/uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825/表:工作表属性_E80D/表:视图_E7D5/表:缩放_E7C4)">
11703								<config:config-item config:name="ZoomValue" config:type="int">100</config:config-item>
11704							</xsl:if>
11705							<xsl:for-each select="/uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825/表:工作表属性_E80D">
11706								<xsl:for-each select="表:视图_E7D5">
11707									<xsl:if test="./表:选中区域_E7E2">
11708										<xsl:variable name="WorkingTableName" select="../../@名称_E822"/>
11709										<xsl:variable name="position" select="./表:选中区域_E7E2"/>
11710										<xsl:variable name="currentX">
11711											<xsl:variable name="CursorX" select="substring-before(substring-after($position,'$'),'$')"/>
11712											<xsl:call-template name="character-to-number">
11713												<xsl:with-param name="character" select="$CursorX"/>
11714											</xsl:call-template>
11715										</xsl:variable>
11716										<config:config-item config:name="CursorPositionX" config:type="int">
11717											<xsl:value-of select="number($currentX) - 1"/>
11718										</config:config-item>
11719										<xsl:variable name="CursorY" select="substring-after(substring-after($position,'$'),'$')"/>
11720										<config:config-item config:name="CursorPositionY" config:type="int">
11721											<xsl:value-of select="number($CursorY) - 1"/>
11722										</config:config-item>
11723									</xsl:if>
11724									<xsl:element name="config:config-item">
11725										<xsl:attribute name="config:name">HorizontalSplitMode</xsl:attribute>
11726										<xsl:attribute name="config:type">short</xsl:attribute>
11727										<xsl:choose>
11728											<xsl:when test="表:冻结_E7D8 and 表:冻结_E7D8/@列号_E7DA!=0">2</xsl:when>
11729											<xsl:when test="表:冻结_E7D8 and 表:冻结_E7D8/@列号_E7DA=0">0</xsl:when>
11730											<xsl:when test="表:拆分_E7D7 and 表:拆分_E7D7/@宽_C605!=0">1</xsl:when>
11731											<xsl:when test="表:拆分_E7D7 and 表:拆分_E7D7/@宽_C605=0">0</xsl:when>
11732										</xsl:choose>
11733									</xsl:element>
11734									<xsl:element name="config:config-item">
11735										<xsl:attribute name="config:name">VerticalSplitMode</xsl:attribute>
11736										<xsl:attribute name="config:type">short</xsl:attribute>
11737										<xsl:choose>
11738											<xsl:when test="表:冻结_E7D8 and 表:冻结_E7D8/@行号_E7D9!=0">2</xsl:when>
11739											<xsl:when test="表:冻结_E7D8 and 表:冻结_E7D8/@行号_E7D9=0">0</xsl:when>
11740											<xsl:when test="表:拆分_E7D7 and 表:拆分_E7D7/@长_C604!=0">1</xsl:when>
11741											<xsl:when test="表:拆分_E7D7 and 表:拆分_E7D7/@长_C604=0">0</xsl:when>
11742										</xsl:choose>
11743									</xsl:element>
11744									<xsl:element name="config:config-item">
11745										<xsl:attribute name="config:name">HorizontalSplitPosition</xsl:attribute>
11746										<xsl:attribute name="config:type">int</xsl:attribute>
11747										<xsl:choose>
11748											<xsl:when test="表:冻结_E7D8 and 表:冻结_E7D8/@列号_E7DA=0">0</xsl:when>
11749											<xsl:when test="表:冻结_E7D8 and 表:冻结_E7D8/@列号_E7DA!=0">
11750												<xsl:value-of select="表:冻结_E7D8/@列号_E7DA"/>
11751											</xsl:when>
11752											<xsl:when test="表:拆分_E7D7 and 表:拆分_E7D7/@宽_C605=0">0</xsl:when>
11753											<xsl:when test="表:拆分_E7D7 and 表:拆分_E7D7/@宽_C605!=0">
11754												<xsl:value-of select="表:拆分_E7D7/@宽_C605"/>
11755											</xsl:when>
11756										</xsl:choose>
11757									</xsl:element>
11758									<xsl:element name="config:config-item">
11759										<xsl:attribute name="config:name">VerticalSplitPosition</xsl:attribute>
11760										<xsl:attribute name="config:type">int</xsl:attribute>
11761										<xsl:choose>
11762											<xsl:when test="表:冻结_E7D8 and 表:冻结_E7D8/@行号_E7D9=0">0</xsl:when>
11763											<xsl:when test="表:冻结_E7D8 and 表:冻结_E7D8/@行号_E7D9!=0">
11764												<xsl:value-of select="表:冻结_E7D8/@行号_E7D9"/>
11765											</xsl:when>
11766											<xsl:when test="表:拆分_E7D7 and 表:拆分_E7D7/@长_C604=0">0</xsl:when>
11767											<xsl:when test="表:拆分_E7D7 and 表:拆分_E7D7/@长_C604!=0">
11768												<xsl:value-of select="表:拆分_E7D7/@长_C604"/>
11769											</xsl:when>
11770										</xsl:choose>
11771									</xsl:element>
11772									<xsl:variable name="position-top">
11773										<xsl:choose>
11774											<xsl:when test="表:最上行_E7DB">
11775												<xsl:value-of select="number(表:最上行_E7DB) -1"/>
11776											</xsl:when>
11777											<xsl:otherwise>0</xsl:otherwise>
11778										</xsl:choose>
11779									</xsl:variable>
11780									<xsl:variable name="position-left">
11781										<xsl:choose>
11782											<xsl:when test="表:最左列_E7DC">
11783												<xsl:value-of select="表:最左列_E7DC - 1"/>
11784											</xsl:when>
11785											<xsl:otherwise>0</xsl:otherwise>
11786										</xsl:choose>
11787									</xsl:variable>
11788									<config:config-item config:name="PositionLeft" config:type="int">
11789										<xsl:value-of select="$position-left"/>
11790									</config:config-item>
11791									<config:config-item config:name="PositionBottom" config:type="int">
11792										<xsl:value-of select="$position-top"/>
11793									</config:config-item>
11794									<!--xsl:if test="表:当前视图">
11795										<xsl:element name="config:config-item">
11796											<xsl:attribute name="config:name">ShowPageBreakPreview</xsl:attribute>
11797											<xsl:attribute name="config:type">boolean</xsl:attribute>
11798											<xsl:choose>
11799												<xsl:when test="表:当前视图/@表:类型='normal'">false</xsl:when>
11800
11801												<xsl:when test="表:当前视图/@表:类型='page'">true</xsl:when>
11802
11803												<xsl:otherwise>true</xsl:otherwise>
11804											</xsl:choose>
11805										</xsl:element>
11806									</xsl:if-->
11807									<xsl:if test="表:是否选中_E7D6">
11808										<xsl:element name="config:config-item">
11809											<xsl:attribute name="config:name">ActiveTable</xsl:attribute>
11810											<xsl:attribute name="config:type">string</xsl:attribute>
11811											<xsl:value-of select="$sheetprop/表:工作表属性_E80D/表:视图_E7D5[表:是否选中_E7D6]/ancestor::表:工作表_E825/@名称_E822"/>
11812										</xsl:element>
11813									</xsl:if>
11814									<xsl:if test="表:缩放_E7C4">
11815										<config:config-item config:name="ZoomValue" config:type="int">
11816											<xsl:value-of select="表:缩放_E7C4"/>
11817										</config:config-item>
11818									</xsl:if>
11819									<xsl:if test="表:分页缩放_E7E1 or 表:缩放_E7C4">
11820										<config:config-item config:name="PageViewZoomValue" config:type="int">
11821											<xsl:choose>
11822												<xsl:when test="表:分页缩放_E7E1">
11823													<xsl:value-of select="表:分页缩放_E7E1"/>
11824												</xsl:when>
11825												<xsl:otherwise>
11826													<xsl:value-of select="表:缩放_E7C4"/>
11827												</xsl:otherwise>
11828											</xsl:choose>
11829										</config:config-item>
11830									</xsl:if>
11831									<config:config-item config:name="HasColumnRowHeaders" config:type="boolean">
11832										<xsl:choose>
11833											<xsl:when test="表:是否显示行号列标_E7E3='true'">true</xsl:when>
11834											<xsl:otherwise>false</xsl:otherwise>
11835										</xsl:choose>
11836									</config:config-item>
11837								</xsl:for-each>
11838								<xsl:if test="表:标签背景色_E7C0">
11839									<config:config-item config:name="sctabcolor" config:type="long">
11840										<xsl:value-of select="substring-after(表:标签背景色_E7C0,'#')"/>
11841									</config:config-item>
11842								</xsl:if>
11843							</xsl:for-each>
11844						</xsl:element>
11845					</config:config-item-map-named>
11846					<xsl:for-each select="/uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825/表:工作表属性_E80D/表:视图_E7D5">
11847						<xsl:if test="表:当前视图类型_E7DD">
11848							<xsl:element name="config:config-item">
11849								<xsl:attribute name="config:name">ShowPageBreakPreview</xsl:attribute>
11850								<xsl:attribute name="config:type">boolean</xsl:attribute>
11851								<xsl:choose>
11852									<xsl:when test="表:当前视图类型_E7DD='normal'">false</xsl:when>
11853									<xsl:when test="表:当前视图类型_E7DD='page'">true</xsl:when>
11854									<xsl:otherwise>true</xsl:otherwise>
11855								</xsl:choose>
11856							</xsl:element>
11857						</xsl:if>
11858						<xsl:if test="表:是否显示网格_E7DF">
11859							<xsl:element name="config:config-item">
11860								<xsl:attribute name="config:name">ShowGrid</xsl:attribute>
11861								<xsl:attribute name="config:type">boolean</xsl:attribute>
11862								<xsl:choose>
11863									<xsl:when test="string(表:是否显示网格_E7DF)='1' or string(表:是否显示网格_E7DF)='true'">true</xsl:when>
11864									<xsl:otherwise>false</xsl:otherwise>
11865								</xsl:choose>
11866							</xsl:element>
11867						</xsl:if>
11868						<xsl:if test="表:网格颜色_E7E0 and 表:网格颜色_E7E0 != ''">
11869							<xsl:element name="config:config-item">
11870								<xsl:attribute name="config:name">GridColor</xsl:attribute>
11871								<xsl:attribute name="config:type">long</xsl:attribute>
11872								<xsl:call-template name="transform-hex-to-decimal">
11873									<xsl:with-param name="number" select="表:网格颜色_E7E0/text()"/>
11874								</xsl:call-template>
11875							</xsl:element>
11876						</xsl:if>
11877					</xsl:for-each>
11878					<xsl:for-each select="/uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825[string(表:工作表属性_E80D/表:视图_E7D5/表:是否选中_E7D6) = 'true' or string(表:工作表属性_E80D/表:视图_E7D5/表:是否选中_E7D6) = '1']">
11879						<config:config-item config:name="ActiveTable" config:type="string">
11880							<xsl:value-of select="@名称_E822"/>
11881						</config:config-item>
11882					</xsl:for-each>
11883					<xsl:for-each select="/uof:UOF_0000/规则:公用处理规则_B665/规则:电子表格_B66C/规则:是否显示工作表标签_B635">
11884						<xsl:choose>
11885							<xsl:when test=".='false'">
11886								<config:config-item config:name="HasSheetTabs" config:type="boolean">false</config:config-item>
11887							</xsl:when>
11888							<xsl:otherwise>
11889								<config:config-item config:name="HasSheetTabs" config:type="boolean">true</config:config-item>
11890							</xsl:otherwise>
11891						</xsl:choose>
11892					</xsl:for-each>
11893				</config:config-item-map-entry>
11894			</config:config-item-map-indexed>
11895		</config:config-item-set>
11896		<config:config-item-set config:name="ooo:configuration-settings">
11897			<xsl:for-each select="/uof:UOF_0000/规则:公用处理规则_B665/规则:电子表格_B66C/规则:是否自动重算_B638">
11898				<xsl:choose>
11899					<xsl:when test="false">
11900						<config:config-item config:name="AutoCalculate" config:type="boolean">false</config:config-item>
11901					</xsl:when>
11902					<xsl:otherwise>
11903						<config:config-item config:name="AutoCalculate" config:type="boolean">true</config:config-item>
11904					</xsl:otherwise>
11905				</xsl:choose>
11906			</xsl:for-each>
11907			<xsl:for-each select="/uof:UOF_0000/规则:公用处理规则_B665/规则:电子表格_B66C/规则:是否显示工作表标签_B635">
11908				<xsl:choose>
11909					<xsl:when test=".='false'">
11910						<config:config-item config:name="HasSheetTabs" config:type="boolean">false</config:config-item>
11911					</xsl:when>
11912					<xsl:otherwise>
11913						<config:config-item config:name="HasSheetTabs" config:type="boolean">true</config:config-item>
11914					</xsl:otherwise>
11915				</xsl:choose>
11916			</xsl:for-each>
11917		</config:config-item-set>
11918	</xsl:template>
11919	<xsl:template name="print_fun">
11920		<xsl:param name="saGrid"/>
11921		<xsl:param name="saHeaders"/>
11922		<xsl:param name="saAnnotations"/>
11923		<xsl:if test="$saGrid != ''">
11924			<xsl:value-of select="'grid '"/>
11925		</xsl:if>
11926		<xsl:if test="$saHeaders != ''">
11927			<xsl:value-of select="'headers '"/>
11928		</xsl:if>
11929		<xsl:if test="$saAnnotations != ''">
11930			<xsl:value-of select="'annotations '"/>
11931		</xsl:if>
11932	</xsl:template>
11933	<xsl:template name="ScPageLayoutStyle">
11934		<xsl:for-each select="/uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825/表:工作表属性_E80D">
11935			<xsl:if test="表:页面设置_E7C1">
11936				<xsl:element name="style:page-layout">
11937					<xsl:attribute name="style:name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
11938					<xsl:element name="style:page-layout-properties">
11939						<xsl:variable name="marginTop">
11940							<xsl:choose>
11941								<xsl:when test="$uofUnit = 'pt' and 表:页面设置_E7C1/表:页眉页脚_E7C6">
11942									<xsl:value-of select="number(表:页面设置_E7C1/表:页边距_E7C5/@上_C609) - 21.29"/>
11943								</xsl:when>
11944								<xsl:when test="$uofUnit = 'cm' and 表:页面设置_E7C1/表:页眉页脚_E7C6">
11945									<xsl:value-of select="number(表:页面设置_E7C1/表:页边距_E7C5/@上_C609) - 0.751"/>
11946								</xsl:when>
11947								<xsl:otherwise>
11948									<xsl:value-of select="表:页面设置_E7C1/表:页边距_E7C5/@上_C609"/>
11949								</xsl:otherwise>
11950							</xsl:choose>
11951						</xsl:variable>
11952						<xsl:variable name="marginBottom">
11953							<xsl:choose>
11954								<xsl:when test="$uofUnit = 'pt' and 表:页面设置_E7C1/表:页眉页脚_E7C6">
11955									<xsl:value-of select="number(表:页面设置_E7C1/表:页边距_E7C5/@下_C60B) - 21.29"/>
11956								</xsl:when>
11957								<xsl:when test="$uofUnit = 'cm' and 表:页面设置_E7C1/表:页眉页脚_E7C6">
11958									<xsl:value-of select="number(表:页面设置_E7C1/表:页边距_E7C5/@下_C60B) - 0.751"/>
11959								</xsl:when>
11960								<xsl:otherwise>
11961									<xsl:value-of select="表:页面设置_E7C1/表:页边距_E7C5/@下_C60B"/>
11962								</xsl:otherwise>
11963							</xsl:choose>
11964						</xsl:variable>
11965						<xsl:if test="表:页面设置_E7C1/表:页边距_E7C5/@左_C608">
11966							<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat(表:页面设置_E7C1/表:页边距_E7C5/@左_C608,$uofUnit)"/></xsl:attribute>
11967						</xsl:if>
11968						<xsl:if test="表:页面设置_E7C1/表:页边距_E7C5/@右_C60A">
11969							<xsl:attribute name="fo:margin-right"><xsl:value-of select="concat(表:页面设置_E7C1/表:页边距_E7C5/@右_C60A,$uofUnit)"/></xsl:attribute>
11970						</xsl:if>
11971						<xsl:if test="表:页面设置_E7C1/表:页边距_E7C5/@上_C609">
11972							<xsl:attribute name="fo:margin-top"><xsl:value-of select="concat(string($marginTop),$uofUnit)"/></xsl:attribute>
11973						</xsl:if>
11974						<xsl:if test="表:页面设置_E7C1/表:页边距_E7C5/@下_C60B">
11975							<xsl:attribute name="fo:margin-bottom"><xsl:value-of select="concat(string($marginBottom),$uofUnit)"/></xsl:attribute>
11976						</xsl:if>
11977						<xsl:if test="表:页面设置_E7C1/表:缩放_E7C4">
11978							<xsl:attribute name="style:scale-to"><xsl:value-of select="concat(表:页面设置_E7C1/表:缩放_E7C4,'%')"/></xsl:attribute>
11979						</xsl:if>
11980						<xsl:variable name="pagewidth">
11981							<xsl:choose>
11982								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'A3'">29.7</xsl:when>
11983								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'A4'">21.0</xsl:when>
11984								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'A5'">14.8</xsl:when>
11985								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'B4'">25.0</xsl:when>
11986								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'B5'">17.6</xsl:when>
11987								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'letter-small'">9.2</xsl:when>
11988								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'letter'">21.59</xsl:when>
11989								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'PRC-16K'">18.4</xsl:when>
11990								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'PRC-32K'">13.0</xsl:when>
11991								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'PRC-32K(Big)'">14.0</xsl:when>
11992							</xsl:choose>
11993						</xsl:variable>
11994						<xsl:variable name="pageheight">
11995							<xsl:choose>
11996								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'A3'">42.0</xsl:when>
11997								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'A4'">29.7</xsl:when>
11998								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'A5'">21.0</xsl:when>
11999								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'B4'">35.3</xsl:when>
12000								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'B5'">25.0</xsl:when>
12001								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'letter-small'">16.5</xsl:when>
12002								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'letter'">27.94</xsl:when>
12003								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'PRC-16K'">26.0</xsl:when>
12004								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'PRC-32K'">18.4</xsl:when>
12005								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C = 'PRC-32K(Big)'">20.3</xsl:when>
12006							</xsl:choose>
12007						</xsl:variable>
12008						<xsl:variable name="page-width">
12009							<xsl:choose>
12010								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C and 表:页面设置_E7C1/表:纸张方向_E7C3 = 'portrait'">
12011									<xsl:value-of select="$pagewidth"/>
12012								</xsl:when>
12013								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C and 表:页面设置_E7C1/表:纸张方向_E7C3 = 'landscape'">
12014									<xsl:value-of select="$pageheight"/>
12015								</xsl:when>
12016								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@宽_C605">
12017									<!--xsl:value-of select="convertOthers2cm(表:页面设置_E7C1/表:纸张_E7C2/@宽_C605,$uofUnit)"/-->
12018									<xsl:call-template name="convertOthers2cm">
12019										<xsl:with-param name="value" select="concat(表:页面设置_E7C1/表:纸张_E7C2/@宽_C605,$uofUnit)"/>
12020									</xsl:call-template>
12021								</xsl:when>
12022							</xsl:choose>
12023						</xsl:variable>
12024						<xsl:variable name="page-height">
12025							<xsl:choose>
12026								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C and 表:页面设置_E7C1/表:纸张方向_E7C3 = 'portrait'">
12027									<xsl:value-of select="$pageheight"/>
12028								</xsl:when>
12029								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@纸型_C60C and 表:页面设置_E7C1/表:纸张方向_E7C3 = 'landscape'">
12030									<xsl:value-of select="$pagewidth"/>
12031								</xsl:when>
12032								<xsl:when test="表:页面设置_E7C1/表:纸张_E7C2/@长_C604">
12033									<!--xsl:value-of select="convertOthers2cm(表:页面设置_E7C1/表:纸张_E7C2/@长_C604,$uofUnit)"/-->
12034									<xsl:call-template name="convertOthers2cm">
12035										<xsl:with-param name="value" select="concat(表:页面设置_E7C1/表:纸张_E7C2/@长_C604,$uofUnit)"/>
12036									</xsl:call-template>
12037								</xsl:when>
12038							</xsl:choose>
12039						</xsl:variable>
12040						<xsl:variable name="wPage">
12041							<xsl:if test="$page-width != ''">
12042								<xsl:choose>
12043									<xsl:when test="number($page-width) &lt; 21.69 and number($page-width) &gt; 21.49 and number($page-height) &lt; 28.04 and number($page-height) &gt; 27.84">
12044										<xsl:value-of select="'21.59'"/>
12045									</xsl:when>
12046									<xsl:when test="number($page-width) &lt; 9.31 and number($page-width) &gt; 9.11 and number($page-height) &lt; 16.61 and number($page-height) &gt; 16.41">
12047										<xsl:value-of select="'9.21'"/>
12048									</xsl:when>
12049									<xsl:when test="number($page-width) &lt; 16.61 and number($page-width) &gt; 16.41 and number($page-height) &lt; 9.31 and number($page-height) &gt; 9.11">
12050										<xsl:value-of select="'16.51'"/>
12051									</xsl:when>
12052									<xsl:when test="number($page-width) &lt; 29.8 and number($page-width) &gt; 29.6 and number($page-height) &lt; 42.1 and number($page-height) &gt; 41.9">
12053										<xsl:value-of select="'29.7'"/>
12054									</xsl:when>
12055									<xsl:when test="number($page-width) &lt; 21.1 and number($page-width) &gt; 20.9 and number($page-height) &lt; 29.6 and number($page-height) &gt; 29.8">
12056										<xsl:value-of select="'21.0'"/>
12057									</xsl:when>
12058									<xsl:when test="number($page-width) &lt; 14.9 and number($page-width) &gt; 14.7 and number($page-height) &lt; 21.1 and number($page-height) &gt; 20.9">
12059										<xsl:value-of select="'14.8'"/>
12060									</xsl:when>
12061									<xsl:when test="number($page-width) &lt; 25.8 and number($page-width) &gt; 25.6 and number($page-height) &lt; 36.5 and number($page-height) &gt; 36.3">
12062										<xsl:value-of select="'25.7'"/>
12063									</xsl:when>
12064									<xsl:when test="number($page-width) &lt; 18.3 and number($page-width) &gt; 18.1 and number($page-height) &lt; 25.8 and number($page-height) &gt; 25.6">
12065										<xsl:value-of select="'18.2'"/>
12066									</xsl:when>
12067									<xsl:when test="number($page-width) &lt; 18.5 and number($page-width) &gt; 18.3 and number($page-height) &lt; 26.1 and number($page-height) &gt; 25.9">
12068										<xsl:value-of select="'18.4'"/>
12069									</xsl:when>
12070									<xsl:when test="number($page-width) &lt; 13.1 and number($page-width) &gt; 12.9 and number($page-height) &lt; 18.5 and number($page-height) &gt; 18.3">
12071										<xsl:value-of select="'13.0'"/>
12072									</xsl:when>
12073									<xsl:when test="number($page-width) &lt; 14.1 and number($page-width) &gt; 13.9 and number($page-height) &lt; 20.4 and number($page-height) &gt; 20.2">
12074										<xsl:value-of select="'14.0'"/>
12075									</xsl:when>
12076									<xsl:otherwise>
12077										<xsl:value-of select="$page-width"/>
12078									</xsl:otherwise>
12079								</xsl:choose>
12080							</xsl:if>
12081						</xsl:variable>
12082						<xsl:attribute name="fo:page-width"><xsl:choose><xsl:when test="$wPage!=''"><xsl:value-of select="concat($wPage,'cm')"/></xsl:when><xsl:otherwise><xsl:value-of select="'21.0cm'"/></xsl:otherwise></xsl:choose></xsl:attribute>
12083						<xsl:variable name="hPage">
12084							<xsl:if test="$page-height != ''">
12085								<xsl:choose>
12086									<xsl:when test="number($page-width) &lt; 21.69 and number($page-width) &gt; 21.49 and number($page-height) &lt; 28.04 and number($page-height) &gt; 27.84">
12087										<xsl:value-of select="'27.94'"/>
12088									</xsl:when>
12089									<xsl:when test="number($page-width) &lt; 9.31 and number($page-width) &gt; 9.11 and number($page-height) &lt; 16.61 and number($page-height) &gt; 16.41">
12090										<xsl:value-of select="'16.51'"/>
12091									</xsl:when>
12092									<xsl:when test="number($page-width) &lt; 16.61 and number($page-width) &gt; 16.41 and number($page-height) &lt; 9.31 and number($page-height) &gt; 9.11">
12093										<xsl:value-of select="'9.21'"/>
12094									</xsl:when>
12095									<xsl:when test="number($page-width) &lt; 29.8 and number($page-width) &gt; 29.6 and number($page-height) &lt; 42.1 and number($page-height) &gt; 41.9">
12096										<xsl:value-of select="'42.0'"/>
12097									</xsl:when>
12098									<xsl:when test="number($page-width) &lt; 21.1 and number($page-width) &gt; 20.9 and number($page-height) &lt; 29.6 and number($page-height) &gt; 29.8">
12099										<xsl:value-of select="'29.7'"/>
12100									</xsl:when>
12101									<xsl:when test="number($page-width) &lt; 14.9 and number($page-width) &gt; 14.7 and number($page-height) &lt; 21.1 and number($page-height) &gt; 20.9">
12102										<xsl:value-of select="'21.0'"/>
12103									</xsl:when>
12104									<xsl:when test="number($page-width) &lt; 25.8 and number($page-width) &gt; 25.6 and number($page-height) &lt; 36.5 and number($page-height) &gt; 36.3">
12105										<xsl:value-of select="'36.4'"/>
12106									</xsl:when>
12107									<xsl:when test="number($page-width) &lt; 18.3 and number($page-width) &gt; 18.1 and number($page-height) &lt; 25.8 and number($page-height) &gt; 25.6">
12108										<xsl:value-of select="'25.7'"/>
12109									</xsl:when>
12110									<xsl:when test="number($page-width) &lt; 18.5 and number($page-width) &gt; 18.3 and number($page-height) &lt; 26.1 and number($page-height) &gt; 25.9">
12111										<xsl:value-of select="'26.0'"/>
12112									</xsl:when>
12113									<xsl:when test="number($page-width) &lt; 13.1 and number($page-width) &gt; 12.9 and number($page-height) &lt; 18.5 and number($page-height) &gt; 18.3">
12114										<xsl:value-of select="'18.4'"/>
12115									</xsl:when>
12116									<xsl:when test="number($page-width) &lt; 14.1 and number($page-width) &gt; 13.9 and number($page-height) &lt; 20.4 and number($page-height) &gt; 20.2">
12117										<xsl:value-of select="'20.3'"/>
12118									</xsl:when>
12119									<xsl:otherwise>
12120										<xsl:value-of select="$page-height"/>
12121									</xsl:otherwise>
12122								</xsl:choose>
12123							</xsl:if>
12124						</xsl:variable>
12125						<xsl:attribute name="fo:page-height"><xsl:choose><xsl:when test="$hPage!=''"><xsl:value-of select="concat($hPage,'cm')"/></xsl:when><xsl:otherwise><xsl:value-of select="'29.7cm'"/></xsl:otherwise></xsl:choose></xsl:attribute>
12126						<xsl:if test="表:页面设置_E7C1/表:纸张方向_E7C3">
12127							<xsl:attribute name="style:print-orientation"><xsl:value-of select="表:页面设置_E7C1/表:纸张方向_E7C3"/></xsl:attribute>
12128						</xsl:if>
12129						<xsl:if test="string(表:页面设置_E7C1/表:打印_E7CA/@是否先列后行_E7CE) = '0' or string(表:页面设置_E7C1/表:打印_E7CA/@是否先列后行_E7CE) = 'false'">
12130							<xsl:attribute name="style:print-page-order">ltr</xsl:attribute>
12131						</xsl:if>
12132						<xsl:if test="string(表:页面设置_E7C1/表:垂直对齐方式_E701) = 'center' and string(表:页面设置_E7C1/表:水平对齐方式_E700) = 'center'">
12133							<xsl:attribute name="style:table-centering">both</xsl:attribute>
12134						</xsl:if>
12135						<xsl:if test="string(表:页面设置_E7C1/表:水平对齐方式_E700) = 'left' and  string(表:页面设置_E7C1/表:垂直对齐方式_E701) = 'center'">
12136							<xsl:attribute name="style:table-centering">vertical</xsl:attribute>
12137						</xsl:if>
12138						<xsl:if test="string(表:页面设置_E7C1/表:水平对齐方式_E700) = 'center' and  string(表:页面设置_E7C1/表:垂直对齐方式_E701) = 'top'">
12139							<xsl:attribute name="style:table-centering">horizontal</xsl:attribute>
12140						</xsl:if>
12141						<xsl:if test="表:页面设置_E7C1/表:调整_E7D1/@页高倍数_E7D2">
12142							<xsl:attribute name="style:scale-to-X"><xsl:value-of select="表:页面设置_E7C1/表:调整_E7D1/@页高倍数_E7D2"/></xsl:attribute>
12143						</xsl:if>
12144						<xsl:if test="表:页面设置_E7C1/表:调整_E7D1/@页宽倍数_E7D3">
12145							<xsl:attribute name="style:scale-to-Y"><xsl:value-of select="表:页面设置_E7C1/表:调整_E7D1/@页宽倍数_E7D3"/></xsl:attribute>
12146						</xsl:if>
12147						<xsl:variable name="saGrid">
12148							<xsl:choose>
12149								<xsl:when test="表:页面设置_E7C1/表:打印_E7CA/@是否带网格线_E7CB = 'true' or number(表:页面设置_E7C1/表:打印_E7CA/@是否带网格线_E7CB) = 1">grid</xsl:when>
12150								<xsl:otherwise>
12151									<xsl:value-of select="''"/>
12152								</xsl:otherwise>
12153							</xsl:choose>
12154						</xsl:variable>
12155						<xsl:variable name="saHeaders">
12156							<xsl:choose>
12157								<xsl:when test="表:页面设置_E7C1/表:打印_E7CA/@是否带行号列标_E7CC = 'true' or number(表:页面设置_E7C1/表:打印_E7CA/@是否带行号列标_E7CC) = 1">headers</xsl:when>
12158								<xsl:otherwise>
12159									<xsl:value-of select="''"/>
12160								</xsl:otherwise>
12161							</xsl:choose>
12162						</xsl:variable>
12163						<xsl:variable name="saAnnotations">
12164							<xsl:choose>
12165								<xsl:when test="表:页面设置_E7C1/表:批注打印方式_E7CF = 'sheet-end'">annotations</xsl:when>
12166								<xsl:otherwise>
12167									<xsl:value-of select="''"/>
12168								</xsl:otherwise>
12169							</xsl:choose>
12170						</xsl:variable>
12171						<xsl:variable name="default_print">
12172							<xsl:value-of select="'charts drawings objects zero-values'"/>
12173						</xsl:variable>
12174						<xsl:variable name="Sc_Print_Result">
12175							<xsl:call-template name="print_fun">
12176								<xsl:with-param name="saGrid" select="$saGrid"/>
12177								<xsl:with-param name="saHeaders" select="$saHeaders"/>
12178								<xsl:with-param name="saAnnotations" select="$saAnnotations"/>
12179							</xsl:call-template>
12180						</xsl:variable>
12181						<xsl:if test="$Sc_Print_Result != ''">
12182							<xsl:attribute name="style:print"><xsl:value-of select="concat($Sc_Print_Result,$default_print)"/></xsl:attribute>
12183						</xsl:if>
12184						<xsl:if test="表:页面设置_E7C1/表:打印_E7CA/@是否按按草稿方式_E7CD">
12185							<xsl:attribute name="style:draft-print"><xsl:value-of select="表:页面设置_E7C1/表:打印_E7CA/@是否按按草稿方式_E7CD"/></xsl:attribute>
12186						</xsl:if>
12187						<xsl:if test="表:页面设置_E7C1/表:错误单元格打印方式_E7D0">
12188							<xsl:attribute name="style:print-errors-as"><xsl:value-of select="表:页面设置_E7C1/表:错误单元格打印方式_E7D0"/></xsl:attribute>
12189						</xsl:if>
12190					</xsl:element>
12191					<xsl:if test="表:页面设置_E7C1/表:页眉页脚_E7C6">
12192						<xsl:element name="style:header-style">
12193							<style:header-footer-properties fo:min-height="0.751cm" fo:margin-left="0cm" fo:margin-right="0cm" fo:margin-bottom="0.25cm"/>
12194						</xsl:element>
12195						<xsl:element name="style:footer-style">
12196							<style:header-footer-properties fo:min-height="0.751cm" fo:margin-left="0cm" fo:margin-right="0cm" fo:margin-bottom="0.25cm"/>
12197						</xsl:element>
12198					</xsl:if>
12199				</xsl:element>
12200			</xsl:if>
12201			<xsl:if test="表:背景填充_E830/图:颜色_8004">
12202				<xsl:element name="style:style">
12203					<xsl:attribute name="style:family">table</xsl:attribute>
12204					<xsl:attribute name="style:name"><xsl:value-of select="generate-id(..)"/></xsl:attribute>
12205					<xsl:element name="style:table-properties">
12206						<xsl:attribute name="fo:background-color"><xsl:value-of select="表:背景填充_E830/图:颜色_8004"/></xsl:attribute>
12207					</xsl:element>
12208				</xsl:element>
12209			</xsl:if>
12210		</xsl:for-each>
12211	</xsl:template>
12212	<xsl:template name="MasterStyleSpreadsheet">
12213		<xsl:for-each select="/uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825/表:工作表属性_E80D">
12214			<xsl:element name="style:master-page">
12215				<xsl:choose>
12216					<xsl:when test="表:页面设置_E7C1/@名称_E7D4 = '工作表1的页面设置' or 表:页面设置_E7C1/@名称_E7D4 = '工作表2的页面设置'">
12217						<xsl:attribute name="style:name"><xsl:value-of select="表:页面设置_E7C1/@名称_E7D4"/></xsl:attribute>
12218					</xsl:when>
12219					<xsl:when test="表:页面设置_E7C1">
12220						<xsl:attribute name="style:name"><xsl:value-of select="generate-id(表:页面设置_E7C1)"/></xsl:attribute>
12221					</xsl:when>
12222				</xsl:choose>
12223				<!--<xsl:attribute name="style:name"><xsl:value-of select="../@表:名称"/></xsl:attribute>-->
12224				<!--xsl:attribute name="style:name"><xsl:value-of select="generate-id(表:页面设置_E7C1)"/></xsl:attribute-->
12225				<xsl:attribute name="style:page-layout-name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
12226				<xsl:for-each select="表:页面设置_E7C1/表:页眉页脚_E7C6[contains(@位置_E7C9,'head')]">
12227					<xsl:element name="style:header">
12228						<xsl:choose>
12229							<xsl:when test="@位置_E7C9='header-right'">
12230								<!--style:region-center>
12231									<text:p>
12232										<text:sheet-name>???</text:sheet-name>
12233									</text:p>
12234								</style:region-center-->
12235								<xsl:element name="style:region-right">
12236									<!--<xsl:element name="text:p">
12237										<xsl:value-of select="字:段落_416B/字:句_419D/字:文本串_415B"/>
12238									</xsl:element>-->
12239									<xsl:apply-templates select="./字:段落_416B"/>
12240								</xsl:element>
12241							</xsl:when>
12242							<xsl:when test="@位置_E7C9='header-left'">
12243								<xsl:element name="style:region-left">
12244									<!--<xsl:element name="text:p">
12245										<xsl:value-of select="字:段落_416B/字:句_419D/字:文本串_415B"/>
12246									</xsl:element>-->
12247									<xsl:apply-templates select="./字:段落_416B"/>
12248								</xsl:element>
12249							</xsl:when>
12250							<xsl:otherwise>
12251								<xsl:element name="style:region-center">
12252									<!--<xsl:element name="text:p">
12253										<xsl:value-of select="字:段落_416B/字:句_419D/字:文本串_415B"/>
12254									</xsl:element>-->
12255									<xsl:apply-templates select="./字:段落_416B"/>
12256								</xsl:element>
12257							</xsl:otherwise>
12258						</xsl:choose>
12259					</xsl:element>
12260					<style:header-left style:display="false"/>
12261				</xsl:for-each>
12262				<xsl:for-each select="表:页面设置_E7C1/表:页眉页脚_E7C6[contains(@位置_E7C9,'foot')]">
12263					<xsl:element name="style:footer">
12264						<xsl:choose>
12265							<xsl:when test="@位置_E7C9='footer-right'">
12266								<!--style:region-center>
12267									<text:p>
12268										<text:sheet-name>???</text:sheet-name>
12269									</text:p>
12270								</style:region-center-->
12271								<xsl:element name="style:region-right">
12272									<!--<xsl:element name="text:p">
12273										<xsl:value-of select="字:段落_416B/字:句_419D/字:文本串_415B"/>
12274
12275									</xsl:element>-->
12276									<xsl:apply-templates select="./字:段落_416B"/>
12277								</xsl:element>
12278							</xsl:when>
12279							<xsl:when test="@位置_E7C9='footer-left'">
12280								<xsl:element name="style:region-left">
12281									<!--<xsl:element name="text:p">
12282										<xsl:value-of select="字:段落_416B/字:句_419D/字:文本串_415B"/>
12283
12284									</xsl:element>-->
12285									<xsl:apply-templates select="./字:段落_416B"/>
12286								</xsl:element>
12287							</xsl:when>
12288							<xsl:otherwise>
12289								<xsl:element name="style:region-center">
12290									<!--<xsl:element name="text:p">
12291										<xsl:value-of select="字:段落_416B/字:句_419D/字:文本串_415B"/>
12292									</xsl:element>-->
12293									<xsl:apply-templates select="./字:段落_416B"/>
12294								</xsl:element>
12295							</xsl:otherwise>
12296						</xsl:choose>
12297					</xsl:element>
12298				</xsl:for-each>
12299				<!--<style:footer>
12300					<text:p>第<text:page-number>1</text:page-number>页</text:p>
12301				</style:footer>-->
12302				<style:footer-left style:display="false"/>
12303			</xsl:element>
12304		</xsl:for-each>
12305	</xsl:template>
12306	<xsl:template name="listValidation">
12307		<xsl:param name="inputString"/>
12308		<xsl:param name="tempString"/>
12309		<xsl:param name="resultString"/>
12310		<xsl:variable name="itemString">
12311			<xsl:choose>
12312				<xsl:when test="contains($inputString,',')">
12313					<xsl:value-of select="concat('&#34;',substring-before($inputString,','),'&#34;')"/>
12314				</xsl:when>
12315				<xsl:otherwise>
12316					<xsl:value-of select="concat('&#34;',$inputString,'&#34;')"/>
12317				</xsl:otherwise>
12318			</xsl:choose>
12319		</xsl:variable>
12320		<xsl:choose>
12321			<xsl:when test="contains($inputString,',')">
12322				<xsl:call-template name="listValidation">
12323					<xsl:with-param name="inputString" select="$tempString"/>
12324					<xsl:with-param name="tempString" select="substring-after($tempString,',')"/>
12325					<xsl:with-param name="resultString" select="concat($resultString,$itemString,';')"/>
12326				</xsl:call-template>
12327			</xsl:when>
12328			<xsl:otherwise>
12329				<xsl:value-of select="concat($resultString,$itemString)"/>
12330			</xsl:otherwise>
12331		</xsl:choose>
12332	</xsl:template>
12333	<xsl:template name="one-content-validation">
12334		<xsl:variable name="condition-text">
12335			<xsl:choose>
12336				<xsl:when test="规则:校验类型_B61C/text()='cell-range'">
12337					<xsl:value-of select="concat('oooc:cell-content-is-in-list',规则:第一操作数_B61E/text())"/>
12338				</xsl:when>
12339				<xsl:when test="规则:校验类型_B61C/text()='list'">
12340					<xsl:variable name="temp">
12341						<xsl:call-template name="listValidation">
12342							<xsl:with-param name="inputString" select="规则:第一操作数_B61E/text()"/>
12343							<xsl:with-param name="tempString" select="substring-after(规则:第一操作数_B61E/text(),',')"/>
12344							<xsl:with-param name="resultString" select="''"/>
12345						</xsl:call-template>
12346					</xsl:variable>
12347					<xsl:value-of select="concat('of:cell-content-is-in-list(',$temp,')')"/>
12348				</xsl:when>
12349				<xsl:when test="规则:校验类型_B61C/text()='text-length'">
12350					<xsl:choose>
12351						<xsl:when test="规则:操作码_B61D/text()='between' ">
12352							<xsl:value-of select="concat('oooc:cell-content-text-length-is-between','(',规则:第一操作数_B61E/text(),',',规则:第二操作数_B61F/text(),')')"/>
12353						</xsl:when>
12354						<xsl:when test="规则:操作码_B61D/text()='not-between'">
12355							<xsl:value-of select="concat('oooc:cell-content-text-length-is-not-between','(',规则:第一操作数_B61E/text(),',',规则:第二操作数_B61F/text(),')')"/>
12356						</xsl:when>
12357						<xsl:when test="规则:操作码_B61D/text()='equal-to'">
12358							<xsl:value-of select="concat('oooc:cell-content-text-length()=',规则:第一操作数_B61E/text())"/>
12359						</xsl:when>
12360						<xsl:when test="规则:操作码_B61D/text()='not-equal-to'">
12361							<xsl:value-of select="concat('oooc:cell-content-text-length()!=',规则:第一操作数_B61E/text())"/>
12362						</xsl:when>
12363						<xsl:when test="规则:操作码_B61D/text()='greater-than'">
12364							<xsl:value-of select="concat('oooc:cell-content-text-length()&gt;',规则:第一操作数_B61E/text())"/>
12365						</xsl:when>
12366						<xsl:when test="规则:操作码_B61D/text()='less-than'">
12367							<xsl:value-of select="concat('oooc:cell-content-text-length()&lt;',规则:第一操作数_B61E/text())"/>
12368						</xsl:when>
12369						<xsl:when test="规则:操作码_B61D/text()='greater-than-or-equal-to'">
12370							<xsl:value-of select="concat('oooc:cell-content-text-length()&gt;=',规则:第一操作数_B61E/text())"/>
12371						</xsl:when>
12372						<xsl:when test="规则:操作码_B61D/text()='less-than-or-equal-to'">
12373							<xsl:value-of select="concat('oooc:cell-content-text-length()&lt;=',规则:第一操作数_B61E/text())"/>
12374						</xsl:when>
12375					</xsl:choose>
12376				</xsl:when>
12377				<xsl:otherwise>
12378					<xsl:variable name="condition-item">
12379						<xsl:choose>
12380							<xsl:when test="规则:操作码_B61D/text()='between' ">
12381								<xsl:value-of select="concat(' and cell-content-is-between','(',规则:第一操作数_B61E/text(),',',规则:第二操作数_B61F/text(),')')"/>
12382							</xsl:when>
12383							<xsl:when test="规则:操作码_B61D/text()='not-between'">
12384								<xsl:value-of select="concat(' and cell-content-is-not-between','(',规则:第一操作数_B61E/text(),',',规则:第二操作数_B61F/text(),')')"/>
12385							</xsl:when>
12386							<xsl:when test="规则:操作码_B61D/text()='equal-to'">
12387								<xsl:value-of select="concat(' and cell-content()=',规则:第一操作数_B61E/text())"/>
12388							</xsl:when>
12389							<xsl:when test="规则:操作码_B61D/text()='not-equal-to'">
12390								<xsl:value-of select="concat(' and cell-content()!=',规则:第一操作数_B61E/text())"/>
12391							</xsl:when>
12392							<xsl:when test="规则:操作码_B61D/text()='greater-than'">
12393								<xsl:value-of select="concat(' and cell-content()&gt;',规则:第一操作数_B61E/text())"/>
12394							</xsl:when>
12395							<xsl:when test="规则:操作码_B61D/text()='less-than'">
12396								<xsl:value-of select="concat(' and cell-content()&lt;',规则:第一操作数_B61E/text())"/>
12397							</xsl:when>
12398							<xsl:when test="规则:操作码_B61D/text()='greater-than-or-equal-to'">
12399								<xsl:value-of select="concat(' and cell-content()&gt;=',规则:第一操作数_B61E/text())"/>
12400							</xsl:when>
12401							<xsl:when test="规则:操作码_B61D/text()='less-than-or-equal-to'">
12402								<xsl:value-of select="concat(' and cell-content()&lt;=',规则:第一操作数_B61E/text())"/>
12403							</xsl:when>
12404							<xsl:otherwise>
12405								<xsl:value-of select="''"/>
12406							</xsl:otherwise>
12407						</xsl:choose>
12408					</xsl:variable>
12409					<xsl:variable name="validation-type">
12410						<xsl:choose>
12411							<xsl:when test="规则:校验类型_B61C/text()='whole-number'">
12412								<xsl:value-of select="'oooc:cell-content-is-whole-number()'"/>
12413							</xsl:when>
12414							<xsl:when test="规则:校验类型_B61C/text()='decimal'">
12415								<xsl:value-of select="'oooc:cell-content-is-decimal-number()'"/>
12416							</xsl:when>
12417							<xsl:when test="规则:校验类型_B61C/text()='date'">
12418								<xsl:value-of select="'oooc:cell-content-is-date()'"/>
12419							</xsl:when>
12420							<xsl:when test="规则:校验类型_B61C/text()='time'">
12421								<xsl:value-of select="'oooc:cell-content-is-time()'"/>
12422							</xsl:when>
12423							<xsl:when test="$condition-item!=''">
12424								<xsl:value-of select="'oooc:cell-content-is-whole-number()'"/>
12425							</xsl:when>
12426							<xsl:otherwise>
12427								<xsl:value-of select="''"/>
12428							</xsl:otherwise>
12429						</xsl:choose>
12430					</xsl:variable>
12431					<xsl:value-of select="concat($validation-type,$condition-item)"/>
12432				</xsl:otherwise>
12433			</xsl:choose>
12434		</xsl:variable>
12435		<xsl:element name="table:content-validation">
12436			<xsl:attribute name="table:name"><xsl:value-of select="@表:name"/></xsl:attribute>
12437			<xsl:if test="not($condition-text='')">
12438				<xsl:attribute name="table:condition"><xsl:value-of select="$condition-text"/></xsl:attribute>
12439			</xsl:if>
12440			<xsl:if test="规则:是否忽略空格_B620">
12441				<xsl:attribute name="table:allow-empty-cell"><xsl:value-of select="规则:是否忽略空格_B620"/></xsl:attribute>
12442			</xsl:if>
12443			<xsl:if test="规则:是否显示下拉箭头_B621">
12444				<xsl:variable name="listshow">
12445					<xsl:choose>
12446						<xsl:when test="string(规则:是否显示下拉箭头_B621)='false'">
12447							<xsl:value-of select="'no'"/>
12448						</xsl:when>
12449						<xsl:otherwise>
12450							<xsl:value-of select="'unsorted'"/>
12451						</xsl:otherwise>
12452					</xsl:choose>
12453				</xsl:variable>
12454				<xsl:attribute name="table:display-list"><xsl:value-of select="$listshow"/></xsl:attribute>
12455			</xsl:if>
12456			<xsl:variable name="danyinhao">&apos;</xsl:variable>
12457			<xsl:variable name="base_cell_address">
12458				<xsl:choose>
12459					<xsl:when test="contains(规则:区域集_B61A/规则:区域_B62A[1]/text(),':')">
12460						<xsl:value-of select="translate(substring-after(规则:区域集_B61A/规则:区域_B62A[1]/text(),':'),'$','')"/>
12461					</xsl:when>
12462					<xsl:otherwise>
12463						<xsl:value-of select="translate(translate(translate(规则:区域集_B61A/规则:区域_B62A[1]/text(),'$',''),$danyinhao,''),'!','.')"/>
12464					</xsl:otherwise>
12465				</xsl:choose>
12466			</xsl:variable>
12467			<xsl:attribute name="table:base-cell-address"><xsl:value-of select="$base_cell_address"/></xsl:attribute>
12468			<xsl:if test="规则:输入提示_B622">
12469				<xsl:element name="table:help-message">
12470					<xsl:if test="规则:输入提示_B622/@标题_B624">
12471						<xsl:attribute name="table:title"><xsl:value-of select="规则:输入提示_B622/@标题_B624"/></xsl:attribute>
12472					</xsl:if>
12473					<xsl:if test="规则:输入提示_B622/@是否显示_B623">
12474						<xsl:attribute name="table:display"><xsl:value-of select="规则:输入提示_B622/@是否显示_B623"/></xsl:attribute>
12475					</xsl:if>
12476					<xsl:if test="规则:输入提示_B622/@内容_B625">
12477						<xsl:element name="text:p">
12478							<xsl:value-of select="规则:输入提示_B622/@内容_B625"/>
12479						</xsl:element>
12480					</xsl:if>
12481				</xsl:element>
12482			</xsl:if>
12483			<xsl:if test="规则:错误提示_B626">
12484				<xsl:element name="table:error-message">
12485					<xsl:if test="规则:错误提示_B626/@标题_B624">
12486						<xsl:attribute name="table:title"><xsl:value-of select="规则:错误提示_B626/@标题_B624"/></xsl:attribute>
12487					</xsl:if>
12488					<xsl:if test="规则:错误提示_B626/@是否显示_B623">
12489						<xsl:attribute name="table:display"><xsl:value-of select="规则:错误提示_B626/@是否显示_B623"/></xsl:attribute>
12490					</xsl:if>
12491					<xsl:if test="规则:错误提示_B626/@类型_B627">
12492						<xsl:attribute name="table:message-type"><xsl:value-of select="规则:错误提示_B626/@类型_B627"/></xsl:attribute>
12493					</xsl:if>
12494					<xsl:if test="规则:错误提示_B626/@内容_B625">
12495						<xsl:element name="text:p">
12496							<xsl:value-of select="规则:错误提示_B626/@内容_B625"/>
12497						</xsl:element>
12498					</xsl:if>
12499				</xsl:element>
12500			</xsl:if>
12501		</xsl:element>
12502	</xsl:template>
12503	<xsl:template name="content-validations">
12504		<xsl:if test="/uof:UOF_0000/规则:公用处理规则_B665/规则:电子表格_B66C/规则:数据有效性集_B618">
12505			<xsl:element name="table:content-validations">
12506				<xsl:for-each select="/uof:UOF_0000/规则:公用处理规则_B665/规则:电子表格_B66C/规则:数据有效性集_B618/*">
12507					<xsl:call-template name="one-content-validation"/>
12508				</xsl:for-each>
12509			</xsl:element>
12510		</xsl:if>
12511	</xsl:template>
12512	<xsl:template name="calculation-settings">
12513		<xsl:element name="table:calculation-settings">
12514			<xsl:attribute name="table:precision-as-shown"><xsl:choose><xsl:when test="string(/uof:UOF_0000/规则:公用处理规则_B665/规则:电子表格_B66C/规则:精确度是否以显示值为准_B613) = 'true'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
12515			<xsl:choose>
12516				<xsl:when test="string(/uof:UOF_0000/规则:公用处理规则_B665/规则:电子表格_B66C/规则:日期系统_B614)='1904'">
12517					<table:null-date table:date-value="1904-01-01"/>
12518				</xsl:when>
12519				<xsl:when test="string(/uof:UOF_0000/规则:公用处理规则_B665/规则:电子表格_B66C/规则:日期系统_B614)='1899'"/>
12520				<xsl:when test="string(/uof:UOF_0000/规则:公用处理规则_B665/规则:电子表格_B66C/规则:日期系统_B614)='iso8601'">
12521					<table:null-date table:date-value="1900-01-01"/>
12522				</xsl:when>
12523			</xsl:choose>
12524			<xsl:if test="/uof:UOF_0000/规则:公用处理规则_B665/规则:电子表格_B66C/规则:计算设置_B615">
12525				<xsl:element name="table:iteration">
12526					<xsl:attribute name="table:status">enable</xsl:attribute>
12527					<xsl:attribute name="table:steps"><xsl:choose><xsl:when test="/uof:UOF_0000/规则:公用处理规则_B665/规则:电子表格_B66C/规则:计算设置_B615/@迭代次数_B616"><xsl:value-of select="/uof:UOF_0000/规则:公用处理规则_B665/规则:电子表格_B66C/规则:计算设置_B615/@迭代次数_B616"/></xsl:when><xsl:otherwise>100</xsl:otherwise></xsl:choose></xsl:attribute>
12528					<xsl:attribute name="table:maximum-difference"><xsl:choose><xsl:when test="/uof:UOF_0000/规则:公用处理规则_B665/规则:电子表格_B66C/规则:计算设置_B615/@偏差值_B617"><xsl:value-of select="/uof:UOF_0000/规则:公用处理规则_B665/规则:电子表格_B66C/规则:计算设置_B615/@偏差值_B617"/></xsl:when><xsl:otherwise>0.001</xsl:otherwise></xsl:choose></xsl:attribute>
12529				</xsl:element>
12530			</xsl:if>
12531		</xsl:element>
12532	</xsl:template>
12533	<xsl:template name="tracked-changes">
12534		<xsl:for-each select="表:工作表_E825/表:工作表内容_E80E//字:修订开始_421F">
12535			<xsl:variable name="num">
12536				<xsl:number level="any" from="表:工作表_E825/表:工作表内容_E80E//*" count="字:修订开始_421F"/>
12537			</xsl:variable>
12538			<table:tracked-changes>
12539				<table:cell-content-change>
12540					<xsl:attribute name="table:id"><xsl:value-of select="concat('ct',$num)"/></xsl:attribute>
12541					<table:cell-address>
12542						<xsl:attribute name="table:column"><xsl:value-of select="substring-after(@标识符_4220,'-')"/></xsl:attribute>
12543						<xsl:attribute name="table:row"><xsl:value-of select="substring-before(@标识符_4220,'-')"/></xsl:attribute>
12544						<xsl:attribute name="table:table">0</xsl:attribute>
12545					</table:cell-address>
12546					<office:change-info>
12547						<dc:creator>
12548							<xsl:choose>
12549								<xsl:when test="starts-with(@修订信息引用_4222,'+')"/>
12550								<xsl:otherwise>
12551									<xsl:value-of select="substring-before(@修订信息引用_4222,'+')"/>
12552								</xsl:otherwise>
12553							</xsl:choose>
12554						</dc:creator>
12555						<dc:date>
12556							<xsl:value-of select="substring-before(substring-after(@修订信息引用_4222,'+'),'%')"/>
12557						</dc:date>
12558					</office:change-info>
12559					<table:previous>
12560						<table:change-track-table-cell>
12561							<text:p>
12562								<xsl:value-of select="substring-after(@修订信息引用_4222,'%')"/>
12563							</text:p>
12564						</table:change-track-table-cell>
12565					</table:previous>
12566				</table:cell-content-change>
12567			</table:tracked-changes>
12568		</xsl:for-each>
12569	</xsl:template>
12570	<xsl:template match="表:电子表格文档_E826">
12571		<office:body>
12572			<office:spreadsheet>
12573				<xsl:call-template name="tracked-changes"/>
12574				<xsl:call-template name="calculation-settings"/>
12575				<xsl:call-template name="content-validations"/>
12576				<xsl:for-each select="/uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825">
12577					<xsl:call-template name="TableSheet"/>
12578				</xsl:for-each>
12579				<!--<xsl:for-each select="/uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825/表:筛选集_E83A/表:筛选_E80F">
12580					<xsl:apply-templates select="."/>
12581				</xsl:for-each>-->
12582				<xsl:apply-templates select="/uof:UOF_0000/书签:书签集_9104" mode="table"/>
12583				<xsl:element name="table:database-ranges">
12584					<xsl:for-each select="表:工作表_E825/表:筛选集_E83A/表:筛选_E80F">
12585						<!--<xsl:element name="table:database-range">
12586							<xsl:if test="@类型_E83B = 'auto'">
12587								<xsl:attribute name="table:display-filter-buttons">true</xsl:attribute>
12588							</xsl:if>
12589							<xsl:attribute name="table:target-range-address">
12590								<xsl:call-template name="getDataRange"/>
12591							</xsl:attribute>
12592							<xsl:if test="表:条件_E811">
12593								<table:filter>
12594									<xsl:choose>
12595										<xsl:when test="表:条件_E811/表:普通_E812">
12596											<xsl:element name="table:filter-condition">
12597												<xsl:variable name="opea" select="表:条件_E811/表:普通_E812/@类型_E7B6"/>
12598												<xsl:variable name="conditionArea">
12599													<xsl:call-template name="character-to-number">
12600														<xsl:with-param name="character" select="substring-before(substring-after(表:范围_E810,'$'),'$')"/>
12601													</xsl:call-template>
12602												</xsl:variable>
12603												<xsl:attribute name="table:field-number">
12604													<xsl:value-of select="number(表:条件_E811/@列号_E819) - number($conditionArea)"/>
12605												</xsl:attribute>
12606												<xsl:attribute name="table:value" select="表:条件_E811/表:普通_E812/@值_E813"/>
12607												<xsl:attribute name="table:operator">
12608													<xsl:choose>
12609														<xsl:when test="$opea = 'bottomitem'">bottom values</xsl:when>
12610														<xsl:when test="$opea = 'bottompercent'">bottom percent</xsl:when>
12611														<xsl:when test="$opea = 'topitem'">top values</xsl:when>
12612														<xsl:when test="$opea = 'toppercent'">top percent</xsl:when>
12613														<xsl:when test="$opea = 'value'">=</xsl:when>
12614														<xsl:otherwise/>
12615													</xsl:choose>
12616												</xsl:attribute>
12617											</xsl:element>
12618										</xsl:when>
12619										<xsl:when test="表:条件_E811/表:自定义_E814/@类型_E75D = 'or'">
12620											<xsl:element name="table:filter-or">
12621												<xsl:for-each select="表:条件_E811/表:自定义_E814/表:操作条件_815">
12622													<xsl:call-template name="表:操作条件_815"/>
12623												</xsl:for-each>
12624											</xsl:element>
12625										</xsl:when>
12626										<xsl:when test="表:条件_E811/表:自定义_E814/@类型_E75D = 'and'">
12627											<xsl:element name="table:filter-and">
12628												<xsl:for-each select="表:条件_E811/表:自定义_E814/表:操作条件_815">
12629													<xsl:call-template name="表:操作条件_815"/>
12630												</xsl:for-each>
12631											</xsl:element>
12632										</xsl:when>
12633										<xsl:otherwise>
12634											<xsl:for-each select="表:条件_E811/表:自定义_E814/表:操作条件_815">
12635												<xsl:call-template name="表:操作条件_815"/>
12636											</xsl:for-each>
12637										</xsl:otherwise>
12638									</xsl:choose>
12639								</table:filter>
12640							</xsl:if>
12641						</xsl:element>-->
12642						<xsl:apply-templates select="."/>
12643					</xsl:for-each>
12644				</xsl:element>
12645			</office:spreadsheet>
12646		</office:body>
12647	</xsl:template>
12648	<xsl:template name="表:操作条件_815">
12649		<xsl:element name="table:filter-condition">
12650			<xsl:variable name="ope" select="规则:操作码_B61D"/>
12651			<xsl:variable name="conditionArea">
12652				<xsl:call-template name="character-to-number">
12653					<xsl:with-param name="character" select="substring-before(substring-after(../../../表:范围_E810,'$'),'$')"/>
12654				</xsl:call-template>
12655			</xsl:variable>
12656			<xsl:attribute name="table:field-number"><xsl:value-of select="number(../../@列号_E819) - number($conditionArea)"/></xsl:attribute>
12657			<xsl:attribute name="table:value"><xsl:value-of select="@值_E817"/></xsl:attribute>
12658			<xsl:attribute name="table:operator"><xsl:choose><xsl:when test="$ope = 'equal to'">=</xsl:when><xsl:when test="$ope = 'not equal to'">!=</xsl:when><xsl:when test="$ope = 'greater than'">&gt;</xsl:when><xsl:when test="$ope = 'greater than or equal to'">&gt;=</xsl:when><xsl:when test="$ope = 'less than'">&lt;</xsl:when><xsl:when test="$ope = 'less than or equal to'">&lt;=</xsl:when><xsl:when test="$ope = 'start with'">begins-with</xsl:when><xsl:when test="$ope = 'not start with'">does-not-begin-with</xsl:when><xsl:when test="$ope = 'end with'">ends-with</xsl:when><xsl:when test="$ope = 'not end with'">does-not-end-with</xsl:when><xsl:when test="$ope = 'contain' or $ope = 'between'">contains</xsl:when><xsl:when test="$ope = 'not contain' or $ope = 'between'">does-not-contain</xsl:when><xsl:otherwise/></xsl:choose></xsl:attribute>
12659		</xsl:element>
12660	</xsl:template>
12661	<xsl:template name="OneTableStyle">
12662		<xsl:element name="style:style">
12663			<xsl:attribute name="style:family">table</xsl:attribute>
12664			<xsl:attribute name="style:name"><xsl:value-of select="concat('ta', generate-id(.))"/></xsl:attribute>
12665			<xsl:choose>
12666				<xsl:when test="表:工作表属性_E80D/表:页面设置_E7C1/@名称_E7D4 = '工作表1的页面设置' or 表:工作表属性_E80D/表:页面设置_E7C1/@名称_E7D4 = '工作表1的页面设置'">
12667					<xsl:attribute name="style:master-page-name"><xsl:value-of select="表:工作表属性_E80D/表:页面设置_E7C1/@名称_E7D4"/></xsl:attribute>
12668				</xsl:when>
12669				<xsl:when test="表:工作表属性_E80D/表:页面设置_E7C1/@名称_E7D4 = '工作表2的页面设置' or 表:工作表属性_E80D/表:页面设置_E7C1/@名称_E7D4 = '工作表2的页面设置'">
12670					<xsl:attribute name="style:master-page-name"><xsl:value-of select="表:工作表属性_E80D/表:页面设置_E7C1/@名称_E7D4"/></xsl:attribute>
12671				</xsl:when>
12672				<xsl:when test="表:工作表属性_E80D/表:页面设置_E7C1">
12673					<xsl:attribute name="style:master-page-name"><xsl:value-of select="generate-id(表:工作表属性_E80D/表:页面设置_E7C1)"/></xsl:attribute>
12674				</xsl:when>
12675			</xsl:choose>
12676			<!--xsl:attribute name="style:master-page-name">
12677				<xsl:value-of select="generate-id(表:工作表属性_E80D/表:页面设置_E7C1)"/>
12678			</xsl:attribute-->
12679			<xsl:element name="style:table-properties">
12680				<xsl:choose>
12681					<xsl:when test="string(@是否隐藏_E73C) = '1' or string(@是否隐藏_E73C) ='true'">
12682						<xsl:attribute name="table:display">false</xsl:attribute>
12683					</xsl:when>
12684					<xsl:otherwise>
12685						<xsl:attribute name="table:display">true</xsl:attribute>
12686					</xsl:otherwise>
12687				</xsl:choose>
12688				<xsl:for-each select="key('CellStyle', @式样引用_E824)">
12689					<xsl:choose>
12690						<xsl:when test="./表:对齐格式_E7A8/表:水平对齐方式_E700='right'">
12691							<xsl:attribute name="style:writing-mode">rl-tb</xsl:attribute>
12692						</xsl:when>
12693						<xsl:otherwise>
12694							<xsl:attribute name="style:writing-mode">lr-tb</xsl:attribute>
12695						</xsl:otherwise>
12696					</xsl:choose>
12697				</xsl:for-each>
12698				<xsl:if test="表:背景_E823">
12699					<xsl:attribute name="fo:background-color"><xsl:value-of select="表:背景_E823"/></xsl:attribute>
12700				</xsl:if>
12701				<xsl:if test="表:工作表属性_E80D/表:标签背景色_E7C0">
12702					<xsl:attribute name="table:tab-color"><xsl:value-of select="表:工作表属性_E80D/表:标签背景色_E7C0"/></xsl:attribute>
12703				</xsl:if>
12704				<xsl:if test="表:工作表属性_E80D/表:标签前景色_E7BF">
12705					<xsl:attribute name="table:tab-font-color"><xsl:value-of select="表:工作表属性_E80D/表:标签前景色_E7BF"/></xsl:attribute>
12706				</xsl:if>
12707				<xsl:if test="表:工作表属性_E80D/表:背景填充_E830">
12708					<xsl:for-each select="表:工作表属性_E80D/表:背景填充_E830">
12709						<xsl:call-template name="CommonFillAttr"/>
12710						<xsl:call-template name="CommonFillElement"/>
12711					</xsl:for-each>
12712				</xsl:if>
12713			</xsl:element>
12714		</xsl:element>
12715	</xsl:template>
12716	<!--从<表:工作表内容>中提取默认的行的式样和列的式样信息。两个模版的结构时类似的,仅在元素命名和属性方面有所不同-->
12717	<xsl:template name="DefaultColumnStyles">
12718		<!--根据'表:工作表'节点generate-id()设定该工作表默认列的式样名称,两个,一个是带PageBreak的,一个是不带PageBreak的-->
12719		<style:style>
12720			<xsl:attribute name="style:name"><xsl:value-of select="concat('co-default',@名称_E822)"/></xsl:attribute>
12721			<xsl:attribute name="style:family">table-column</xsl:attribute>
12722			<style:table-column-properties>
12723				<xsl:attribute name="fo:break-before">auto</xsl:attribute>
12724				<xsl:attribute name="style:column-width"><xsl:choose><xsl:when test="表:工作表内容_E80E[@缺省列宽_E7EB]"><xsl:value-of select="concat(表:工作表内容_E80E/@缺省列宽_E7EB, $uofUnit)"/></xsl:when><xsl:otherwise><xsl:value-of select="string('2.267cm')"/></xsl:otherwise></xsl:choose></xsl:attribute>
12725			</style:table-column-properties>
12726		</style:style>
12727		<style:style>
12728			<xsl:attribute name="style:name"><xsl:value-of select="concat('co-default-page',@名称_E822)"/></xsl:attribute>
12729			<xsl:attribute name="style:family">table-column</xsl:attribute>
12730			<style:table-column-properties>
12731				<xsl:attribute name="fo:break-before">page</xsl:attribute>
12732				<xsl:attribute name="style:column-width"><xsl:choose><xsl:when test="表:工作表内容_E80E[@缺省列宽_E7EB]"><xsl:value-of select="concat(表:工作表内容_E80E/@缺省列宽_E7EB, $uofUnit)"/></xsl:when><xsl:otherwise><xsl:value-of select="string('2.267cm')"/></xsl:otherwise></xsl:choose></xsl:attribute>
12733			</style:table-column-properties>
12734		</style:style>
12735	</xsl:template>
12736	<xsl:template name="DefaultRowStyles">
12737		<!--根据'表:工作表'节点generate-id()设定该工作表默认行的式样名称,两个,一个是带PageBreak的,一个是不带PageBreak的-->
12738		<style:style>
12739			<xsl:attribute name="style:name"><xsl:value-of select="concat('ro-default', @名称_E822)"/></xsl:attribute>
12740			<xsl:attribute name="style:family">table-row</xsl:attribute>
12741			<style:table-row-properties>
12742				<xsl:attribute name="fo:break-before">auto</xsl:attribute>
12743				<xsl:attribute name="style:row-height"><xsl:choose><xsl:when test="表:工作表内容_E80E[@缺省行高列宽_E7E9]"><xsl:value-of select="concat(表:工作表内容_E80E/@缺省行高列宽_E7E9, $uofUnit)"/></xsl:when><xsl:otherwise><xsl:value-of select="string('0.513cm')"/></xsl:otherwise></xsl:choose></xsl:attribute>
12744			</style:table-row-properties>
12745		</style:style>
12746		<style:style>
12747			<xsl:attribute name="style:name"><xsl:value-of select="concat('ro-default-page', @名称_E822)"/></xsl:attribute>
12748			<xsl:attribute name="style:family">table-row</xsl:attribute>
12749			<style:table-row-properties>
12750				<xsl:attribute name="fo:break-before">page</xsl:attribute>
12751				<xsl:attribute name="style:row-height"><xsl:choose><xsl:when test="表:工作表内容_E80E[@缺省行高列宽_E7E9]"><xsl:value-of select="concat(表:工作表内容_E80E/@缺省行高列宽_E7E9, $uofUnit)"/></xsl:when><xsl:otherwise><xsl:value-of select="string('0.513cm')"/></xsl:otherwise></xsl:choose></xsl:attribute>
12752			</style:table-row-properties>
12753		</style:style>
12754	</xsl:template>
12755	<xsl:template match="表:列_E7EC" mode="TableColumStyle">
12756		<xsl:param name="BeginColum" select="number('1')"/>
12757		<!--得到当前列的列号-->
12758		<xsl:variable name="ColumNumber">
12759			<xsl:choose>
12760				<xsl:when test="@列号_E7DA">
12761					<xsl:value-of select="@列号_E7DA"/>
12762				</xsl:when>
12763				<xsl:otherwise>
12764					<xsl:value-of select="$BeginColum"/>
12765				</xsl:otherwise>
12766			</xsl:choose>
12767		</xsl:variable>
12768		<!--为当前列生成列式样,先不考虑当前列有分页符的情况,固定生成一个不含分页信息的列式样-->
12769		<style:style>
12770			<xsl:attribute name="style:name"><xsl:value-of select="concat('co', generate-id())"/></xsl:attribute>
12771			<xsl:attribute name="style:family">table-column</xsl:attribute>
12772			<style:table-column-properties>
12773				<xsl:attribute name="fo:break-before">auto</xsl:attribute>
12774				<xsl:if test="@列宽_E7EE">
12775					<xsl:attribute name="style:column-width"><xsl:value-of select="concat(@列宽_E7EE, $uofUnit)"/></xsl:attribute>
12776				</xsl:if>
12777			</style:table-column-properties>
12778		</style:style>
12779		<!--处理当前列及其跨度列中有分页符的情况-->
12780		<xsl:variable name="repeatColumBeginNum" select="$ColumNumber"/>
12781		<xsl:variable name="repeatColumEndNum">
12782			<xsl:choose>
12783				<xsl:when test="@跨度_E7EF">
12784					<xsl:value-of select="number($ColumNumber) + number(@跨度_E7EF)"/>
12785				</xsl:when>
12786				<xsl:otherwise>
12787					<xsl:value-of select="$ColumNumber"/>
12788				</xsl:otherwise>
12789			</xsl:choose>
12790		</xsl:variable>
12791		<xsl:if test="../../表:分页符集_E81E/表:分页符_E81F[number(@列号_E821) + 1 ge number($repeatColumBeginNum) and number(@列号_E7DA) + 1 le number($repeatColumEndNum)]">
12792			<style:style>
12793				<xsl:attribute name="style:name"><xsl:value-of select="concat('co-page', generate-id())"/></xsl:attribute>
12794				<xsl:attribute name="style:family">table-column</xsl:attribute>
12795				<style:table-column-properties>
12796					<xsl:attribute name="fo:break-before">page</xsl:attribute>
12797					<xsl:choose>
12798						<xsl:when test="@列宽_E7EE">
12799							<xsl:attribute name="style:column-width"><xsl:value-of select="concat(@列宽_E7EE, $uofUnit)"/></xsl:attribute>
12800						</xsl:when>
12801						<xsl:when test="../@缺省列宽_E7EB">
12802							<xsl:attribute name="style:column-width"><xsl:value-of select="concat(../@缺省列宽_E7EB, $uofUnit)"/></xsl:attribute>
12803						</xsl:when>
12804					</xsl:choose>
12805				</style:table-column-properties>
12806			</style:style>
12807		</xsl:if>
12808		<!--递归处理下一个'表:列'定义,传入参数为当前列(包含跨度)的下一个列的列号-->
12809		<xsl:if test="following-sibling::表:列_E7EC">
12810			<xsl:apply-templates select="following-sibling::表:列_E7EC[1]" mode="TableColumStyle">
12811				<xsl:with-param name="BeginColum" select="number($ColumNumber) + number(@跨度_E7EF) + 1"/>
12812			</xsl:apply-templates>
12813		</xsl:if>
12814	</xsl:template>
12815	<xsl:template match="表:行_E7F1" mode="TableRowStyle">
12816		<xsl:param name="BeginRow" select="number('1')"/>
12817		<!--得到当前列的行号-->
12818		<xsl:variable name="RowNumber">
12819			<xsl:choose>
12820				<xsl:when test="@行号_E7F3">
12821					<xsl:value-of select="@行号_E7F3"/>
12822				</xsl:when>
12823				<xsl:otherwise>
12824					<xsl:value-of select="$BeginRow"/>
12825				</xsl:otherwise>
12826			</xsl:choose>
12827		</xsl:variable>
12828		<!--为当前行生成行式样,先不考虑当前列有分页符的情况,固定生成一个不含分页信息的行式样-->
12829		<style:style>
12830			<xsl:attribute name="style:name"><xsl:value-of select="concat('ro', generate-id())"/></xsl:attribute>
12831			<xsl:attribute name="style:family">table-row</xsl:attribute>
12832			<style:table-row-properties>
12833				<xsl:attribute name="fo:break-before">auto</xsl:attribute>
12834				<xsl:choose>
12835					<xsl:when test="@行高_E7F4">
12836						<xsl:attribute name="style:row-height"><xsl:value-of select="concat(@行高_E7F4, $uofUnit)"/></xsl:attribute>
12837					</xsl:when>
12838					<xsl:when test="../表:缺省行高列宽_E7E9/@缺省行高_E7EA">
12839						<xsl:attribute name="style:row-height"><xsl:value-of select="concat(../表:缺省行高列宽_E7E9/@缺省行高_E7EA, $uofUnit)"/></xsl:attribute>
12840					</xsl:when>
12841				</xsl:choose>
12842				<xsl:if test="@是否自适应行高_E7F5">
12843					<xsl:attribute name="style:use-optimal-row-height"><xsl:value-of select="@是否自适应行高_E7F5"/></xsl:attribute>
12844				</xsl:if>
12845			</style:table-row-properties>
12846		</style:style>
12847		<!--处理当前行及其跨度中有分页符的情况-->
12848		<xsl:variable name="repeatRowBeginNum">
12849			<xsl:value-of select="$RowNumber"/>
12850		</xsl:variable>
12851		<xsl:variable name="repeatRowEndNum">
12852			<xsl:choose>
12853				<xsl:when test="@跨度_E7EF">
12854					<xsl:value-of select="number($RowNumber) + number(@跨度_E7EF)"/>
12855				</xsl:when>
12856				<xsl:otherwise>
12857					<xsl:value-of select="$RowNumber"/>
12858				</xsl:otherwise>
12859			</xsl:choose>
12860		</xsl:variable>
12861		<xsl:if test="../../表:分页符集_E81E/表:分页符_E81F[(number(@行号_E7F3) + 1) &gt;= number($repeatRowBeginNum) and (number(@行号_E7F3) + 1) &lt;= number($repeatRowEndNum)]">
12862			<style:style>
12863				<xsl:attribute name="style:name"><xsl:value-of select="concat('ro-page', generate-id())"/></xsl:attribute>
12864				<xsl:attribute name="style:family">table-row</xsl:attribute>
12865				<style:table-row-properties>
12866					<xsl:attribute name="fo:break-before">page</xsl:attribute>
12867					<xsl:if test="../表:缺省行高列宽_E7E9/@缺省行高_E7EA">
12868						<xsl:attribute name="style:row-height"><xsl:value-of select="concat(../表:缺省行高列宽_E7E9/@缺省行高_E7EA, $uofUnit)"/></xsl:attribute>
12869					</xsl:if>
12870					<xsl:if test="@行高_E7F4">
12871						<xsl:attribute name="style:row-width"><xsl:value-of select="concat(@行高_E7F4, $uofUnit)"/></xsl:attribute>
12872					</xsl:if>
12873				</style:table-row-properties>
12874			</style:style>
12875		</xsl:if>
12876		<!--递归处理下一个'表:行_E7F1'定义,传入参数为当前行(包含跨度)的下一个行的行号-->
12877		<xsl:if test="following-sibling::表:行_E7F1">
12878			<xsl:apply-templates select="following-sibling::表:行_E7F1[1]" mode="TableRowStyle">
12879				<xsl:with-param name="BeginRow" select="number($RowNumber) + number(@跨度_E7EF) + 1"/>
12880			</xsl:apply-templates>
12881		</xsl:if>
12882	</xsl:template>
12883	<xsl:template name="BodyTableStyle">
12884		<xsl:for-each select="/uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825">
12885			<xsl:call-template name="OneTableStyle"/>
12886			<xsl:call-template name="DefaultColumnStyles"/>
12887			<xsl:choose>
12888				<xsl:when test="表:工作表内容_E80E/表:列_E7EC">
12889					<xsl:apply-templates select="表:工作表内容_E80E/表:列_E7EC[1]" mode="TableColumStyle"/>
12890				</xsl:when>
12891				<xsl:otherwise>
12892					<xsl:for-each select="表:分页符集_E81E/表:分页符_E81F[@列号_E821]">
12893						<style:style>
12894							<xsl:attribute name="style:name"><xsl:value-of select="concat('co', generate-id())"/></xsl:attribute>
12895							<xsl:attribute name="style:family">table-column</xsl:attribute>
12896							<style:table-column-properties>
12897								<xsl:attribute name="fo:break-before"><xsl:value-of select="string('page')"/></xsl:attribute>
12898							</style:table-column-properties>
12899						</style:style>
12900					</xsl:for-each>
12901				</xsl:otherwise>
12902			</xsl:choose>
12903			<xsl:call-template name="DefaultRowStyles"/>
12904			<xsl:choose>
12905				<xsl:when test="表:工作表内容_E80E/表:行_E7F1">
12906					<xsl:apply-templates select="表:工作表内容_E80E/表:行_E7F1[1]" mode="TableRowStyle"/>
12907				</xsl:when>
12908				<xsl:otherwise>
12909					<xsl:for-each select="表:分页符集_E81E/表:分页符_E81F[@行号_E820]">
12910						<style:style>
12911							<xsl:attribute name="style:name"><xsl:value-of select="concat('ro', generate-id())"/></xsl:attribute>
12912							<xsl:attribute name="style:family">table-row</xsl:attribute>
12913							<style:table-row-properties>
12914								<xsl:attribute name="fo:break-before"><xsl:value-of select="string('page')"/></xsl:attribute>
12915								<xsl:choose>
12916									<xsl:when test="@行高_E7F4">
12917										<xsl:attribute name="style:row-height"><xsl:value-of select="concat(@行高_E7F4, $uofUnit)"/></xsl:attribute>
12918									</xsl:when>
12919									<xsl:when test="../表:缺省行高列宽_E7E9/@缺省行高_E7EA">
12920										<xsl:attribute name="style:row-height"><xsl:value-of select="concat(../表:缺省行高列宽_E7E9/@缺省行高_E7EA, $uofUnit)"/></xsl:attribute>
12921									</xsl:when>
12922								</xsl:choose>
12923							</style:table-row-properties>
12924						</style:style>
12925					</xsl:for-each>
12926				</xsl:otherwise>
12927			</xsl:choose>
12928		</xsl:for-each>
12929	</xsl:template>
12930	<xsl:template name="TableCellProperties">
12931		<xsl:if test="表:对齐格式_E7A8">
12932			<xsl:if test="表:对齐格式_E7A8/表:垂直对齐方式_E701">
12933				<xsl:variable name="vertical-align">
12934					<xsl:choose>
12935						<xsl:when test="表:对齐格式_E7A8/表:垂直对齐方式_E701 = 'top'">top</xsl:when>
12936						<xsl:when test="表:对齐格式_E7A8/表:垂直对齐方式_E701 = 'center'">middle</xsl:when>
12937						<xsl:when test="表:对齐格式_E7A8/表:垂直对齐方式_E701 = 'bottom'">bottom</xsl:when>
12938						<xsl:otherwise>auto</xsl:otherwise>
12939					</xsl:choose>
12940				</xsl:variable>
12941				<xsl:attribute name="style:vertical-align"><xsl:value-of select="$vertical-align"/></xsl:attribute>
12942			</xsl:if>
12943			<xsl:if test="表:对齐格式_E7A8/表:文字排列方向_E703 = 'r2l-t2b-0e-90w'">
12944				<xsl:if test="表:对齐格式_E7A8/表:水平对齐方式_E700 ='general'">
12945					<xsl:attribute name="style:glyph-orientation-vertical">auto</xsl:attribute>
12946				</xsl:if>
12947				<xsl:attribute name="style:direction">ttb</xsl:attribute>
12948				<xsl:if test="not(表:对齐格式_E7A8/字:水平对齐方式_E700)">
12949					<xsl:attribute name="style:text-align-source">fix</xsl:attribute>
12950				</xsl:if>
12951			</xsl:if>
12952			<xsl:if test="表:对齐格式_E7A8/表:文字旋转角度_E704">
12953				<xsl:attribute name="style:rotation-angle"><xsl:choose><xsl:when test="表:对齐格式_E7A8/表:文字旋转角度_E704 &lt; 0"><xsl:value-of select="360 + 表:对齐格式_E7A8/表:文字旋转角度_E704"/></xsl:when><xsl:otherwise><xsl:value-of select="表:对齐格式_E7A8/表:文字旋转角度_E704"/></xsl:otherwise></xsl:choose></xsl:attribute>
12954				<xsl:attribute name="style:rotation-align">none</xsl:attribute>
12955			</xsl:if>
12956			<xsl:if test="表:对齐格式_E7A8/表:是否自动换行_E705 = 'true'">
12957				<xsl:attribute name="fo:wrap-option">wrap</xsl:attribute>
12958			</xsl:if>
12959			<xsl:if test="表:对齐格式_E7A8/表:是否缩小字体填充_E706 = 'true'">
12960				<xsl:attribute name="style:shrink-to-fit">true</xsl:attribute>
12961			</xsl:if>
12962		</xsl:if>
12963		<xsl:if test="表:边框_4133">
12964			<xsl:for-each select="表:边框_4133">
12965				<xsl:if test="@阴影类型_C645 and @阴影类型_C645 !='' and @阴影类型_C645 !='none'">
12966					<xsl:choose>
12967						<xsl:when test="@阴影类型_C645 = 'right-bottom'">
12968							<xsl:attribute name="style:shadow">#808080 5pt 5pt</xsl:attribute>
12969						</xsl:when>
12970						<xsl:when test="@阴影类型_C645 = 'right-top'">
12971							<xsl:attribute name="style:shadow">#808080 5pt -5pt</xsl:attribute>
12972						</xsl:when>
12973						<xsl:when test="@阴影类型_C645 = 'left-bottom'">
12974							<xsl:attribute name="style:shadow">#808080 -5pt 5pt</xsl:attribute>
12975						</xsl:when>
12976						<xsl:when test="@阴影类型_C645 = 'left-top'">
12977							<xsl:attribute name="style:shadow">#808080 -5pt -5pt</xsl:attribute>
12978						</xsl:when>
12979					</xsl:choose>
12980				</xsl:if>
12981				<xsl:call-template name="CommonBorder">
12982					<xsl:with-param name="pUp" select="uof:上_C614"/>
12983					<xsl:with-param name="pDown" select="uof:下_C616"/>
12984					<xsl:with-param name="pLeft" select="uof:左_C613"/>
12985					<xsl:with-param name="pRight" select="uof:右_C615"/>
12986					<xsl:with-param name="pDiagon1" select="uof:对角线1_C617"/>
12987					<xsl:with-param name="pDiagon2" select="uof:对角线2_C618"/>
12988				</xsl:call-template>
12989			</xsl:for-each>
12990		</xsl:if>
12991		<xsl:if test="表:填充_E7A3">
12992			<xsl:for-each select="表:填充_E7A3">
12993				<xsl:call-template name="CommonFill"/>
12994			</xsl:for-each>
12995		</xsl:if>
12996		<xsl:if test="表:字体格式_E7A7/字:是否隐藏文字_413D">
12997			<xsl:choose>
12998				<xsl:when test="string(表:字体格式_E7A7/字:是否隐藏文字_413D) = 'true'">
12999					<xsl:attribute name="style:cell-protect">protected formula-hidden</xsl:attribute>
13000				</xsl:when>
13001				<xsl:otherwise>
13002					<xsl:attribute name="style:cell-protect">none</xsl:attribute>
13003				</xsl:otherwise>
13004			</xsl:choose>
13005		</xsl:if>
13006		<xsl:if test="表:对齐格式_E7A8/表:水平对齐方式_E700 = 'fill'">
13007			<xsl:attribute name="style:repeat-content">true</xsl:attribute>
13008		</xsl:if>
13009	</xsl:template>
13010	<xsl:template name="TableParaProperties">
13011		<xsl:element name="style:paragraph-properties">
13012			<xsl:if test="表:对齐格式_E7A8/表:水平对齐方式_E700">
13013				<xsl:variable name="text-align">
13014					<xsl:choose>
13015						<xsl:when test="表:对齐格式_E7A8/表:水平对齐方式_E700 = 'left'">start</xsl:when>
13016						<xsl:when test="表:对齐格式_E7A8/表:水平对齐方式_E700 = 'center'">center</xsl:when>
13017						<xsl:when test="表:对齐格式_E7A8/表:水平对齐方式_E700 = 'right'">end</xsl:when>
13018						<xsl:when test="表:对齐格式_E7A8/表:水平对齐方式_E700 = 'justify'">justify</xsl:when>
13019						<xsl:when test="表:对齐格式_E7A8/表:水平对齐方式_E700 = 'fill'">start</xsl:when>
13020						<xsl:otherwise>auto</xsl:otherwise>
13021					</xsl:choose>
13022				</xsl:variable>
13023				<xsl:attribute name="fo:text-align"><xsl:value-of select="$text-align"/></xsl:attribute>
13024			</xsl:if>
13025			<xsl:if test="表:对齐格式_E7A8/表:缩进_E702">
13026				<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat(表:对齐格式_E7A8/表:缩进_E702,$uofUnit)"/></xsl:attribute>
13027			</xsl:if>
13028		</xsl:element>
13029	</xsl:template>
13030	<xsl:template name="OneTableCellStyle">
13031		<xsl:attribute name="style:family">table-cell</xsl:attribute>
13032		<xsl:attribute name="style:name"><xsl:value-of select="@标识符_E7AC"/></xsl:attribute>
13033		<xsl:attribute name="style:display-name"><xsl:value-of select="@标识符_E7AC"/></xsl:attribute>
13034		<xsl:attribute name="style:parent-style-name">Default</xsl:attribute>
13035		<xsl:if test="表:数字格式_E7A9">
13036			<xsl:attribute name="style:data-style-name"><xsl:value-of select="concat( @标识符_E7AC, 'F')"/></xsl:attribute>
13037		</xsl:if>
13038		<xsl:element name="style:table-cell-properties">
13039			<xsl:call-template name="TableCellProperties"/>
13040		</xsl:element>
13041		<xsl:if test="表:对齐格式_E7A8">
13042			<xsl:call-template name="TableParaProperties"/>
13043		</xsl:if>
13044		<xsl:if test="表:字体格式_E7A7">
13045			<xsl:element name="style:text-properties">
13046				<xsl:for-each select="表:字体格式_E7A7">
13047					<xsl:call-template name="TextProperties"/>
13048				</xsl:for-each>
13049			</xsl:element>
13050		</xsl:if>
13051		<xsl:apply-templates select="规则:条件格式化_B629"/>
13052	</xsl:template>
13053	<xsl:template match="式样:单元格式样_9916">
13054		<xsl:param name="Type"/>
13055		<xsl:if test="@类型_E7AE=$Type">
13056			<xsl:choose>
13057				<xsl:when test="$Type='default'">
13058					<xsl:element name="style:default-style">
13059						<xsl:attribute name="style:family">table-cell</xsl:attribute>
13060						<xsl:element name="style:table-cell-properties">
13061							<xsl:call-template name="TableCellProperties"/>
13062						</xsl:element>
13063						<xsl:if test="表:对齐格式_E7A8">
13064							<xsl:call-template name="TableParaProperties"/>
13065						</xsl:if>
13066						<xsl:if test="表:字体格式_E7A7">
13067							<xsl:element name="style:text-properties">
13068								<xsl:for-each select="表:字体格式_E7A7">
13069									<xsl:call-template name="TextProperties"/>
13070								</xsl:for-each>
13071							</xsl:element>
13072						</xsl:if>
13073						<xsl:apply-templates select="规则:条件格式化_B629"/>
13074					</xsl:element>
13075					<xsl:element name="style:style">
13076						<xsl:attribute name="style:family">table-cell</xsl:attribute>
13077						<xsl:attribute name="style:name">Default</xsl:attribute>
13078						<xsl:attribute name="style:display-name">Default</xsl:attribute>
13079						<xsl:if test="表:数字格式_E7A9">
13080							<xsl:attribute name="style:data-style-name">DefaultF</xsl:attribute>
13081						</xsl:if>
13082						<xsl:element name="style:table-cell-properties">
13083							<xsl:call-template name="TableCellProperties"/>
13084						</xsl:element>
13085						<xsl:if test="表:对齐格式_E7A8">
13086							<xsl:call-template name="TableParaProperties"/>
13087						</xsl:if>
13088						<xsl:if test="表:字体格式_E7A7">
13089							<xsl:element name="style:text-properties">
13090								<xsl:for-each select="表:字体格式_E7A7">
13091									<xsl:call-template name="TextProperties"/>
13092								</xsl:for-each>
13093							</xsl:element>
13094						</xsl:if>
13095					</xsl:element>
13096					<xsl:if test="表:数字格式_E7A9[@分类名称_E740 and @分类名称_E740 != 'general']">
13097						<xsl:for-each select="表:数字格式_E7A9">
13098							<xsl:call-template name="NumberStyle">
13099								<xsl:with-param name="style-id" select="'Default'"/>
13100							</xsl:call-template>
13101						</xsl:for-each>
13102					</xsl:if>
13103					<xsl:apply-templates select="规则:条件格式化_B629"/>
13104				</xsl:when>
13105				<xsl:otherwise>
13106					<xsl:element name="style:style">
13107						<xsl:call-template name="OneTableCellStyle"/>
13108					</xsl:element>
13109					<xsl:variable name="style-id" select="@标识符_E7AC"/>
13110					<xsl:for-each select="表:数字格式_E7A9[@格式码_E73F]">
13111						<xsl:call-template name="NumberStyle">
13112							<xsl:with-param name="style-id" select="$style-id"/>
13113						</xsl:call-template>
13114					</xsl:for-each>
13115				</xsl:otherwise>
13116			</xsl:choose>
13117		</xsl:if>
13118	</xsl:template>
13119	<!--xsl:key name="condtionalcells" match="/uof:UOF_0000/表:电子表格文档_E826/表:工作表_E825/表:工作表内容_E80E/表:行_E7F1/表:单元格_E7F2" use="@表:条件格式化"/>
13120	<xsl:key name="cellstyles" match="/uof:UOF_0000/式样:式样集_990B/式样:单元格式样集_9915/式样:单元格式样_9916" use="@标识符_E7AC"/-->
13121	<xsl:template match="规则:条件格式化_B629">
13122		<xsl:for-each select="规则:条件_B62B">
13123			<xsl:element name="style:map">
13124				<xsl:variable name="condition-text">
13125					<xsl:choose>
13126						<xsl:when test="@类型_B673='cell-value'">
13127							<xsl:choose>
13128								<xsl:when test="规则:操作码_B62C/text()='between' ">
13129									<xsl:value-of select="concat('cell-content-is-between','(',规则:第一操作数_B61E/text(),',',规则:第二操作数_B61F/text(),')')"/>
13130								</xsl:when>
13131								<xsl:when test=" 规则:操作码_B62C/text()='not-between'">
13132									<xsl:value-of select="concat('cell-content-is-not-between','(',规则:第一操作数_B61E/text(),',',规则:第二操作数_B61F/text(),')')"/>
13133								</xsl:when>
13134								<xsl:when test=" 规则:操作码_B62C/text()='equal-to'">
13135									<xsl:value-of select="concat('cell-content()=',规则:第一操作数_B61E/text())"/>
13136								</xsl:when>
13137								<xsl:when test=" 规则:操作码_B62C/text()='not-equal-to'">
13138									<xsl:value-of select="concat('cell-content()!=',规则:第一操作数_B61E/text())"/>
13139								</xsl:when>
13140								<xsl:when test=" 规则:操作码_B62C/text()='greater-than'">
13141									<xsl:value-of select="concat('cell-content()&gt;',规则:第一操作数_B61E/text())"/>
13142								</xsl:when>
13143								<xsl:when test=" 规则:操作码_B62C/text()='less-than'">
13144									<xsl:value-of select="concat('cell-content()&lt;',规则:第一操作数_B61E/text())"/>
13145								</xsl:when>
13146								<xsl:when test=" 规则:操作码_B62C/text()='greater-than-or-equal-to'">
13147									<xsl:value-of select="concat('cell-content()&gt;=',规则:第一操作数_B61E/text())"/>
13148								</xsl:when>
13149								<xsl:when test=" 规则:操作码_B62C/text()='less-than-or-equal-to'">
13150									<xsl:value-of select="concat('cell-content()&lt;=',规则:第一操作数_B61E/text())"/>
13151								</xsl:when>
13152							</xsl:choose>
13153						</xsl:when>
13154						<xsl:when test="@类型_B673='formula'">
13155							<xsl:value-of select="concat('is-true-formula','(',规则:第一操作数_B61E/text(),')')"/>
13156						</xsl:when>
13157					</xsl:choose>
13158				</xsl:variable>
13159				<xsl:variable name="address">
13160					<xsl:value-of select="../规则:区域集_B61A/规则:区域_B62A[1]"/>
13161				</xsl:variable>
13162				<xsl:variable name="apos">&apos;</xsl:variable>
13163				<xsl:attribute name="style:condition"><xsl:value-of select="$condition-text"/></xsl:attribute>
13164				<xsl:attribute name="style:apply-style-name"><xsl:value-of select="规则:格式_B62D/@式样引用_B62E"/></xsl:attribute>
13165				<xsl:attribute name="style:base-cell-address"><xsl:value-of select="concat(substring-before(substring-after($address,$apos),$apos),'.',substring-before(substring-after(substring-after($address,':'),'$'),'$'),substring-after(substring-after(substring-after($address,':'),'$'),'$'))"/></xsl:attribute>
13166			</xsl:element>
13167		</xsl:for-each>
13168	</xsl:template>
13169	<xsl:template name="BorderLineAttr">
13170		<xsl:variable name="type" select="@线型_C60D"/>
13171		<xsl:variable name="dash" select="@虚实_C60E"/>
13172		<!-- LineStyle -->
13173		<xsl:variable name="draw-stroke">
13174			<xsl:choose>
13175				<xsl:when test="$type='none'">none</xsl:when>
13176				<xsl:when test="string($type)=''">none</xsl:when>
13177				<xsl:when test="$dash='round-dot' or $dash='square-dot' or $dash='dash' or $dash='dash-dot' or $dash='long-dash' or $dash='long-dash-dot' or $dash='dash-dot-dot'">dash</xsl:when>
13178				<xsl:otherwise>solid</xsl:otherwise>
13179			</xsl:choose>
13180		</xsl:variable>
13181		<xsl:attribute name="draw:stroke"><xsl:value-of select="$draw-stroke"/></xsl:attribute>
13182		<xsl:if test="$type='none'">
13183			<xsl:attribute name="fo:border">none</xsl:attribute>
13184		</xsl:if>
13185		<xsl:variable name="stroke-dash">
13186			<xsl:choose>
13187				<xsl:when test="$dash='round-dot'">round-dot</xsl:when>
13188				<xsl:when test="$dash='square-dot'">square-dot</xsl:when>
13189				<xsl:when test="$dash='dash'">dash</xsl:when>
13190				<xsl:when test="$dash='dash-dot'">dash-dot</xsl:when>
13191				<xsl:when test="$dash='long-dash'">long-dash</xsl:when>
13192				<xsl:when test="$dash='long-dash-dot'">long-dash-dot</xsl:when>
13193				<xsl:when test="$dash='dash-dot-dot'">dash-dot-dot</xsl:when>
13194				<xsl:otherwise>Fine Dashed</xsl:otherwise>
13195			</xsl:choose>
13196		</xsl:variable>
13197		<xsl:if test="$draw-stroke != 'none'">
13198			<xsl:attribute name="draw:stroke-dash"><xsl:value-of select="$stroke-dash"/></xsl:attribute>
13199		</xsl:if>
13200		<xsl:if test="@颜色_C611">
13201			<xsl:attribute name="svg:stroke-color"><xsl:value-of select="@颜色_C611"/></xsl:attribute>
13202		</xsl:if>
13203		<xsl:if test="@宽度_C60F">
13204			<xsl:attribute name="svg:stroke-width"><xsl:value-of select="concat(@宽度_C60F, $uofUnit)"/></xsl:attribute>
13205		</xsl:if>
13206		<!-- Waiting, ShadowLine -->
13207	</xsl:template>
13208	<xsl:template match="图表:边框线_4226" mode="chartstyle">
13209		<!-- Waiting, FrameType, including Top, Bottom, Left, Right, On The Cross -->
13210	</xsl:template>
13211	<xsl:template name="GraphicEleAndTextPropEle">
13212		<xsl:param name="par_DefaultColor"/>
13213		<xsl:element name="style:graphic-properties">
13214			<xsl:for-each select="图表:对齐_E726/图表:是否自动换行_E705">
13215				<xsl:variable name="w-o">
13216					<xsl:choose>
13217						<xsl:when test="'true'">wrap</xsl:when>
13218						<xsl:otherwise>no-wrap</xsl:otherwise>
13219					</xsl:choose>
13220				</xsl:variable>
13221				<xsl:attribute name="fo:wrap-option" select="$w-o"/>
13222			</xsl:for-each>
13223			<xsl:for-each select="图表:边框线_4226">
13224				<xsl:call-template name="BorderLineAttr"/>
13225			</xsl:for-each>
13226			<xsl:choose>
13227				<xsl:when test="图表:填充_E746">
13228					<xsl:for-each select="图表:填充_E746">
13229						<xsl:call-template name="FillGraph">
13230							<xsl:with-param name="par_DefaultColor" select="$par_DefaultColor"/>
13231						</xsl:call-template>
13232					</xsl:for-each>
13233				</xsl:when>
13234			</xsl:choose>
13235			<xsl:attribute name="draw:opacity">100%</xsl:attribute>
13236			<!-- no Foreward Color data in ODF -->
13237			<xsl:if test="图表:数据标记_E70E/@背景色E711">
13238				<xsl:attribute name="draw:stroke" select="'solid'"/>
13239				<xsl:attribute name="svg:stroke-color" select="图表:数据标记_E70E/@背景色E711"/>
13240			</xsl:if>
13241		</xsl:element>
13242		<xsl:element name="style:text-properties">
13243			<!-- absent fucntions -->
13244			<xsl:for-each select="图表:图例项_E765[1]/图表:字体_E70B">
13245				<xsl:call-template name="TextProperties"/>
13246			</xsl:for-each>
13247			<xsl:for-each select="图表:字体_E70B">
13248				<xsl:call-template name="TextProperties"/>
13249			</xsl:for-each>
13250		</xsl:element>
13251	</xsl:template>
13252	<xsl:template name="AlignAttr">
13253		<xsl:if test="图表:水平对齐方式_E700">
13254			<xsl:variable name="t-h-a">
13255				<xsl:choose>
13256					<!-- no supported functions in ODF -->
13257					<xsl:when test="图表:水平对齐方式_E700 = 'center'">center</xsl:when>
13258					<xsl:when test="图表:水平对齐方式_E700 = 'left'">left</xsl:when>
13259					<xsl:when test="图表:水平对齐方式_E700 = 'right'">right</xsl:when>
13260					<xsl:when test="图表:水平对齐方式_E700 = 'fill'">justify</xsl:when>
13261					<xsl:when test="图表:水平对齐方式_E700 = 'center across selection'">center</xsl:when>
13262					<xsl:when test="图表:水平对齐方式_E700 = 'distributed'">justify</xsl:when>
13263				</xsl:choose>
13264			</xsl:variable>
13265			<xsl:attribute name="draw:textarea-horizontal-align" select="$t-h-a"/>
13266		</xsl:if>
13267		<xsl:if test="图表:垂直对齐方式_E701">
13268			<xsl:variable name="t-v-a">
13269				<xsl:choose>
13270					<!-- no supported functions in ODF -->
13271					<xsl:when test="图表:垂直对齐方式_E701 = 'top'">top</xsl:when>
13272					<xsl:when test="图表:垂直对齐方式_E701 = 'center'">middle</xsl:when>
13273					<xsl:when test="图表:垂直对齐方式_E701 = 'bottom'">bottom</xsl:when>
13274					<xsl:when test="图表:垂直对齐方式_E701 = 'justify'">justify</xsl:when>
13275					<xsl:when test="图表:垂直对齐方式_E701 = 'distributed'">justify</xsl:when>
13276				</xsl:choose>
13277			</xsl:variable>
13278			<xsl:attribute name="draw:textarea-vertical-align" select="$t-v-a"/>
13279		</xsl:if>
13280		<!-- Waiting, see graphic-properties -->
13281		<xsl:if test="图表:文字排列方向_E703">
13282			<xsl:variable name="d">
13283				<xsl:choose>
13284					<xsl:when test="图表:文字排列方向_E703='r2l-t2b-90e-90w'">ttb</xsl:when>
13285					<xsl:when test="图表:文字排列方向_E703='r2l-t2b-0e-90w'">ttb</xsl:when>
13286					<xsl:when test="图表:文字排列方向_E703='t2b-l2r-0e-0w'">ltr</xsl:when>
13287				</xsl:choose>
13288			</xsl:variable>
13289			<xsl:attribute name="style:direction" select="$d"/>
13290		</xsl:if>
13291		<!--xsl:variable name="r-a">
13292			<xsl:choose>
13293				<xsl:when test="图表:文字旋转角度_E704">
13294					<xsl:value-of select="图表:文字旋转角度_E704"/>
13295				</xsl:when>
13296				<xsl:otherwise>0</xsl:otherwise>
13297			</xsl:choose>
13298		</xsl:variable-->
13299		<xsl:if test="图表:文字旋转角度_E704">
13300			<xsl:attribute name="style:rotation-angle" select="图表:文字旋转角度_E704"/>
13301		</xsl:if>
13302	</xsl:template>
13303	<xsl:template match="图表:图表区_E743" mode="chartstyle">
13304		<style:style style:name="chart-area" style:family="chart">
13305			<xsl:call-template name="GraphicEleAndTextPropEle"/>
13306		</style:style>
13307	</xsl:template>
13308	<xsl:template match="图表:数据标签_E752" mode="chartstyle">
13309		<xsl:attribute name="chart:data-label-text"><xsl:value-of select="@是否显示系列名_E715"/></xsl:attribute>
13310		<xsl:attribute name="chart:data-label-text"><xsl:value-of select="@是否显示类别名_E716"/></xsl:attribute>
13311		<xsl:choose>
13312			<xsl:when test="@是否显示数值_E717='true' and @是否百分数图表_E718='true'">
13313				<!--xsl:attribute name="chart:data-label-number">group-bars-per-axis</xsl:attribute-->
13314				<xsl:attribute name="chart:data-label-number">value-and-percentage</xsl:attribute>
13315			</xsl:when>
13316			<xsl:when test="@是否显示数值_E717='true'">
13317				<xsl:attribute name="chart:data-label-number">value</xsl:attribute>
13318			</xsl:when>
13319			<xsl:when test="@是否百分数图表_E718='true'">
13320				<xsl:attribute name="chart:data-label-number">percentage</xsl:attribute>
13321			</xsl:when>
13322			<xsl:when test="@是否显示数值_E717='false'">
13323				<xsl:attribute name="chart:data-label-number">none</xsl:attribute>
13324			</xsl:when>
13325		</xsl:choose>
13326		<xsl:attribute name="chart:data-label-symbol"><xsl:value-of select="@是否显示图例标志_E719"/></xsl:attribute>
13327		<xsl:if test="@分隔符_E71A">
13328			<xsl:element name="chart:label-separator">
13329				<xsl:element name="text:p">
13330					<xsl:choose>
13331						<xsl:when test="@分隔符_E71A='1'">, </xsl:when>
13332						<xsl:when test="@分隔符_E71A='2'">; </xsl:when>
13333						<xsl:when test="@分隔符_E71A='3'">
13334							<text:line-break/>
13335						</xsl:when>
13336					</xsl:choose>
13337				</xsl:element>
13338			</xsl:element>
13339		</xsl:if>
13340		<!-- no supported functions in ODF -->
13341	</xsl:template>
13342	<xsl:template match="图表:数据标记_E70E" mode="chartstyle">
13343		<xsl:choose>
13344			<xsl:when test="@类型_E70F='none' or not(@类型_E70F)">
13345				<xsl:attribute name="chart:symbol-type" select="'none'"/>
13346			</xsl:when>
13347			<xsl:otherwise>
13348				<xsl:attribute name="chart:symbol-type" select="'named-symbol'"/>
13349				<xsl:variable name="symbol-name">
13350					<xsl:choose>
13351						<xsl:when test="@类型_E70F='triangle'">arrow-up</xsl:when>
13352						<xsl:when test="@类型_E70F='square-cross'">x</xsl:when>
13353						<xsl:when test="@类型_E70F='square-star'">asterisk</xsl:when>
13354						<xsl:when test="@类型_E70F='half-line' or @类型_E70F='line'">horizontal-bar</xsl:when>
13355						<xsl:when test="@类型_E70F='square-plus'">plus</xsl:when>
13356						<xsl:otherwise>
13357							<!-- include square, diamond, circle -->
13358							<xsl:value-of select="@类型_E70F"/>
13359						</xsl:otherwise>
13360						<!-- surplus types in ODF: star, vertical-bar, arrow-down, arrow-right, arrow-left, bow-tie, hourglass -->
13361					</xsl:choose>
13362				</xsl:variable>
13363				<xsl:attribute name="chart:symbol-name"><xsl:value-of select="$symbol-name"/></xsl:attribute>
13364			</xsl:otherwise>
13365		</xsl:choose>
13366		<xsl:choose>
13367			<xsl:when test="@大小_E712='7'">
13368				<xsl:attribute name="chart:symbol-width">0.25cm</xsl:attribute>
13369				<xsl:attribute name="chart:symbol-height">0.25cm</xsl:attribute>
13370			</xsl:when>
13371		</xsl:choose>
13372	</xsl:template>
13373	<xsl:template match="图表:数据点集_E755" mode="chartstyle">
13374		<xsl:for-each select="图表:数据点_E756">
13375			<style:style style:family="chart">
13376				<xsl:attribute name="style:name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
13377				<style:chart-properties>
13378					<xsl:apply-templates select="图表:数据标签_E752" mode="chartstyle"/>
13379					<xsl:apply-templates select="图表:数据标记_E70E" mode="chartstyle"/>
13380				</style:chart-properties>
13381				<xsl:call-template name="GraphicEleAndTextPropEle"/>
13382			</style:style>
13383			<!-- no supported functions in ODF -->
13384		</xsl:for-each>
13385	</xsl:template>
13386	<xsl:template match="图表:误差线_E75A" mode="error-attr">
13387		<!-- no supported functions in ODF, no X error bars -->
13388		<xsl:if test="@方向_E75F='Y'">
13389			<!-- no supported functions in ODF -->
13390			<!-- <xsl:if test="@是否显示误差标记_E75B"></xsl:if> -->
13391			<xsl:if test="@显示方式_E75C">
13392				<xsl:choose>
13393					<xsl:when test="@显示方式_E75C='positive'">
13394						<xsl:attribute name="chart:error-upper-indicator" select="'true'"/>
13395					</xsl:when>
13396					<xsl:when test="@显示方式_E75C='negtive'">
13397						<xsl:attribute name="chart:error-lower-indicator" select="'true'"/>
13398					</xsl:when>
13399					<xsl:when test="@显示方式_E75C='both'">
13400						<xsl:attribute name="chart:error-upper-indicator" select="'true'"/>
13401						<xsl:attribute name="chart:error-lower-indicator" select="'true'"/>
13402					</xsl:when>
13403				</xsl:choose>
13404			</xsl:if>
13405			<xsl:if test="@类型_E75D">
13406				<xsl:choose>
13407					<xsl:when test="@类型_E75D='custom'">
13408						<xsl:attribute name="chart:error-category" select="'constant'"/>
13409						<xsl:attribute name="chart:error-upper-limit"><!--xsl:value-of select="@加_E760"/--><xsl:value-of select="@值_E75E"/></xsl:attribute>
13410						<xsl:attribute name="chart:error-lower-limit"><!--xsl:value-of select="@减_E760"/--><xsl:value-of select="@值_E75E"/></xsl:attribute>
13411					</xsl:when>
13412					<xsl:when test="@类型_E75D='fixed-value'">
13413						<xsl:attribute name="chart:error-category" select="'constant'"/>
13414						<xsl:attribute name="chart:error-upper-limit"><xsl:value-of select="@值_E75E"/></xsl:attribute>
13415						<xsl:attribute name="chart:error-lower-limit"><xsl:value-of select="@值_E75E"/></xsl:attribute>
13416					</xsl:when>
13417					<xsl:when test="@类型_E75D='percentage'">
13418						<xsl:attribute name="chart:error-category" select="'percentage'"/>
13419						<xsl:attribute name="chart:error-percentage" select="@值_E75E"/>
13420					</xsl:when>
13421					<xsl:when test="@类型_E75D='std-dev'">
13422						<xsl:attribute name="chart:error-category" select="'standard-deviation'"/>
13423					</xsl:when>
13424					<!-- 100520版UOF2.0错误 'srd-err' 应为 'std-err' -->
13425					<xsl:when test="@类型_E75D='std-err'">
13426						<!-- this enumeration has not in ODF -->
13427						<xsl:attribute name="chart:error-category" select="'standard-error'"/>
13428					</xsl:when>
13429				</xsl:choose>
13430			</xsl:if>
13431		</xsl:if>
13432	</xsl:template>
13433	<xsl:template match="图表:误差线集_E759" mode="chartstyle">
13434		<xsl:for-each select="图表:误差线_E75A">
13435			<style:style>
13436				<xsl:attribute name="style:name" select="generate-id(.)"/>
13437				<xsl:attribute name="style:family" select="'chart'"/>
13438				<style:chart-properties>
13439					<xsl:variable name="error-category">
13440						<xsl:choose>
13441							<xsl:when test="@类型_E75D='custom'">constant</xsl:when>
13442							<xsl:when test="@类型_E75D='fixed-value'">constant</xsl:when>
13443							<xsl:when test="@类型_E75D='percentage'">percentage</xsl:when>
13444							<xsl:when test="@类型_E75D='std-dev'">standard-deviation</xsl:when>
13445							<xsl:when test="@类型_E75D='srd-err'">standard-error</xsl:when>
13446						</xsl:choose>
13447					</xsl:variable>
13448					<xsl:attribute name="chart:error-category" select="$error-category"/>
13449				</style:chart-properties>
13450				<style:graphic-properties>
13451					<xsl:for-each select="图表:边框线_4226">
13452						<xsl:call-template name="BorderLineAttr"/>
13453					</xsl:for-each>
13454				</style:graphic-properties>
13455			</style:style>
13456		</xsl:for-each>
13457	</xsl:template>
13458	<xsl:template match="图表:趋势线集_E762" mode="chartstyle">
13459		<xsl:for-each select="图表:趋势线_E763[1]">
13460			<style:style>
13461				<xsl:attribute name="style:name" select="generate-id(.)"/>
13462				<xsl:attribute name="style:family" select="'chart'"/>
13463				<style:graphic-properties>
13464					<xsl:for-each select="图表:边框线_4226">
13465						<xsl:call-template name="BorderLineAttr"/>
13466					</xsl:for-each>
13467				</style:graphic-properties>
13468				<!-- TuLiXiang was not supported in ODF -->
13469			</style:style>
13470		</xsl:for-each>
13471	</xsl:template>
13472	<xsl:template match="图表:数据系列集_E74E" mode="chartstyle">
13473		<xsl:for-each select="图表:数据系列_E74F">
13474			<style:style>
13475				<xsl:attribute name="style:family">chart</xsl:attribute>
13476				<xsl:variable name="var_Pos">
13477					<!--xsl:choose>
13478						<xsl:when test="@名称_E774">
13479							<xsl:value-of select="@名称_E774"/>
13480						</xsl:when>
13481						<xsl:otherwise>
13482							<xsl:value-of select="position()"/>
13483						</xsl:otherwise>
13484					</xsl:choose-->
13485					<xsl:value-of select="position()"/>
13486				</xsl:variable>
13487				<!-- Waiting, @FeiLeiMing, Zhi, HuiZhiZhou -->
13488				<xsl:attribute name="style:name"><xsl:value-of select="concat('DataSerial',string($var_Pos))"/></xsl:attribute>
13489				<style:chart-properties>
13490					<xsl:apply-templates select="图表:数据标记_E70E" mode="chartstyle"/>
13491					<xsl:apply-templates select="图表:数据标签_E752" mode="chartstyle"/>
13492					<!--xsl:choose>
13493						< these code is no necessary now >
13494						<xsl:when test="string($par_类型) = 'line'">
13495							<xsl:choose>
13496								<xsl:when test="string($par_子类型) = 'clustered-marker'">
13497									<xsl:attribute name="chart:symbol-type" select="string('named-symbol')"/>
13498									<xsl:attribute name="chart:symbol-name">
13499										<xsl:call-template name="getChartLineSymbol">
13500											<xsl:with-param name="par_Index" select="$par_序号"/>
13501										</xsl:call-template>
13502									</xsl:attribute>
13503								</xsl:when>
13504							</xsl:choose>
13505						</xsl:when>
13506						>
13507					</xsl:choose-->
13508					<xsl:if test="contains(@子类型_E777,'stacked')">
13509						<xsl:attribute name="chart:stacked" select="'true'"/>
13510					</xsl:if>
13511					<xsl:if test="contains(@子类型_E777,'percent')">
13512						<xsl:attribute name="chart:percentage" select="'true'"/>
13513					</xsl:if>
13514					<xsl:if test="@类型_E75D = 'pie' and contains(@子类型_E777,'exploded')">
13515						<xsl:attribute name="chart:pie-offset">20</xsl:attribute>
13516					</xsl:if>
13517					<!-- Waiting, too much subtypes -->
13518					<xsl:apply-templates select="图表:误差线集_E759/图表:误差线_E75A[1]" mode="error-attr"/>
13519					<xsl:for-each select="图表:趋势线集_E762/图表:趋势线_E763[1]">
13520						<xsl:variable name="regression-type">
13521							<xsl:choose>
13522								<!--xsl:when test="@类型_E76C='exponential'">exponential</xsl:when>
13523								<xsl:when test="@类型_E76C='linear'">linear</xsl:when>
13524								<xsl:when test="@类型_E76C='logarithmic'">logarithmic</xsl:when>
13525								<xsl:when test="@类型_E76C='power'">power</xsl:when-->
13526								<!-- Waiting , temporary value is none -->
13527								<xsl:when test="@类型_E76C='moving-average' or @类型_E76C='polynomial'">none</xsl:when>
13528								<xsl:otherwise>
13529									<xsl:value-of select="@类型_E76C"/>
13530								</xsl:otherwise>
13531							</xsl:choose>
13532						</xsl:variable>
13533						<xsl:attribute name="chart:regression-type" select="$regression-type"/>
13534					</xsl:for-each>
13535				</style:chart-properties>
13536				<style:graphic-properties>
13537					<!--xsl:choose>
13538						<xsl:when test="表:边框_4133">
13539							<xsl:apply-templates select="表:边框_4133" mode="chartstyle"/>
13540						</xsl:when>
13541						<-边框的颜色会自动设置
13542						<xsl:otherwise>
13543							<xsl:attribute name="svg:stroke-color">
13544								<xsl:call-template name="getDefaultColor">
13545									<xsl:with-param name="par_Index" select="$var_Pos"/>
13546								</xsl:call-template>
13547							</xsl:attribute>
13548						</xsl:otherwise>
13549						->
13550					</xsl:choose-->
13551					<xsl:for-each select="图表:边框线_4226">
13552						<xsl:call-template name="BorderLineAttr"/>
13553					</xsl:for-each>
13554					<xsl:choose>
13555						<xsl:when test="图表:填充_E746">
13556							<xsl:for-each select="图表:填充_E746">
13557								<xsl:call-template name="FillGraph">
13558									<xsl:with-param name="par_DefaultColor">
13559										<xsl:call-template name="getDefaultColor">
13560											<xsl:with-param name="par_Index" select="$var_Pos"/>
13561										</xsl:call-template>
13562									</xsl:with-param>
13563								</xsl:call-template>
13564							</xsl:for-each>
13565						</xsl:when>
13566						<xsl:otherwise>
13567							<xsl:attribute name="draw:fill-color"><xsl:call-template name="getDefaultColor"><xsl:with-param name="par_Index" select="$var_Pos"/></xsl:call-template></xsl:attribute>
13568						</xsl:otherwise>
13569					</xsl:choose>
13570				</style:graphic-properties>
13571			</style:style>
13572			<xsl:apply-templates select="图表:数据点集_E755" mode="chartstyle"/>
13573			<!-- Waiting, New Funciton : xsl:apply-templates select="图表:引导线_E758" mode="chartstyle" -->
13574			<xsl:apply-templates select="图表:误差线集_E759" mode="chartstyle"/>
13575			<xsl:apply-templates select="图表:趋势线集_E762" mode="chartstyle"/>
13576		</xsl:for-each>
13577	</xsl:template>
13578	<xsl:template name="StockMarkerStyle">
13579		<!-- DieZhuXian, ZhangZhuXian -->
13580		<style:style style:family="chart" style:name="GnMk">
13581			<xsl:attribute name="style:name" select="generate-id()"/>
13582			<style:graphic-properties>
13583				<xsl:for-each select="图表:边框线_4226">
13584					<xsl:call-template name="BorderLineAttr"/>
13585				</xsl:for-each>
13586				<xsl:for-each select="图表:填充_E746">
13587					<xsl:call-template name="FillGraph">
13588						<!--xsl:with-param name="par_DefaultColor" select="$par_DefaultColor"/-->
13589					</xsl:call-template>
13590				</xsl:for-each>
13591			</style:graphic-properties>
13592		</style:style>
13593	</xsl:template>
13594	<xsl:template match="图表:刻度_E71D" mode="chartstyle">
13595		<xsl:if test="图表:最小值_E71E!=''">
13596			<xsl:attribute name="chart:minimum"><xsl:value-of select="图表:最小值_E71E"/></xsl:attribute>
13597		</xsl:if>
13598		<xsl:if test="图表:最大值_E720!=''">
13599			<xsl:attribute name="chart:maximum"><xsl:value-of select="图表:最大值_E720"/></xsl:attribute>
13600		</xsl:if>
13601		<xsl:if test="图表:主单位_E721!=''">
13602			<xsl:attribute name="chart:interval-major"><xsl:value-of select="图表:主单位_E721"/></xsl:attribute>
13603			<xsl:if test="图表:次单位_E722!='' and not(图表:次单位_E722='0')">
13604				<xsl:attribute name="chart:interval-minor-divisor"><xsl:value-of select="number(图表:主单位_E721) div number(图表:次单位_E722)"/></xsl:attribute>
13605			</xsl:if>
13606		</xsl:if>
13607		<xsl:if test="图表:是否显示为对数刻度_E729='true' or 图表:是否显示为对数刻度_E729='1'">
13608			<xsl:attribute name="chart:logarithmic">true</xsl:attribute>
13609		</xsl:if>
13610		<xsl:if test="图表:是否次序反转_E72B">
13611			<xsl:choose>
13612				<xsl:when test="图表:是否次序反转_E72B = 'false'">
13613					<xsl:attribute name="chart:reverse-direction">false</xsl:attribute>
13614				</xsl:when>
13615				<xsl:otherwise>
13616					<xsl:attribute name="chart:reverse-direction">true</xsl:attribute>
13617				</xsl:otherwise>
13618			</xsl:choose>
13619		</xsl:if>
13620		<xsl:choose>
13621			<xsl:when test="../@子类型_E793 = 'value'">
13622				<xsl:if test="图表:数值次序反转">
13623					<xsl:choose>
13624						<xsl:when test="图表:数值次序反转 = 'false'">
13625							<xsl:attribute name="chart:reverse-direction">false</xsl:attribute>
13626						</xsl:when>
13627						<xsl:otherwise>
13628							<xsl:attribute name="chart:reverse-direction">true</xsl:attribute>
13629						</xsl:otherwise>
13630					</xsl:choose>
13631				</xsl:if>
13632				<xsl:if test="图表:交叉点_E723 != ''">
13633					<xsl:attribute name="chart:axis-position"><xsl:value-of select="图表:交叉点_E723"/></xsl:attribute>
13634				</xsl:if>
13635				<xsl:if test="../../图表:坐标轴_E791[@子类型_E793 = 'category']/图表:刻度_E71D/图表:交叉点_E723 !=''">
13636					<xsl:attribute name="chart:origin"><xsl:value-of select="../../图表:坐标轴_E791[@子类型_E793 = 'category']/图表:刻度_E71D/图表:交叉点_E723"/></xsl:attribute>
13637				</xsl:if>
13638			</xsl:when>
13639			<xsl:when test="../@子类型_E793 = 'category'">
13640				<xsl:if test="图表:分类次序反转">
13641					<xsl:choose>
13642						<xsl:when test="图表:分类次序反转 = 'false'">
13643							<xsl:attribute name="chart:reverse-direction">false</xsl:attribute>
13644						</xsl:when>
13645						<xsl:otherwise>
13646							<xsl:attribute name="chart:reverse-direction">true</xsl:attribute>
13647						</xsl:otherwise>
13648					</xsl:choose>
13649				</xsl:if>
13650				<xsl:if test="图表:交叉点_E723 != ''">
13651					<xsl:attribute name="chart:axis-position"><xsl:value-of select="图表:交叉点_E723 != ''"/></xsl:attribute>
13652				</xsl:if>
13653			</xsl:when>
13654		</xsl:choose>
13655		<!--xsl:choose>
13656			<xsl:when test="../@主类型_E792='primary'">
13657				<xsl:for-each select="../../表:坐标轴_E791[@主类型_E792='secondary']/表:刻度_E71D">
13658					<xsl:for-each select="表:交叉点_E723">
13659						<xsl:attribute name="chart:axis-position"><xsl:value-of select="."/></xsl:attribute>
13660					</xsl:for-each>
13661				</xsl:for-each>
13662				<xsl:for-each select="表:分类刻度数_E72D">
13663					<Waiting>
13664					<xsl:attribute name="chart:interval-major"><xsl:value-of select="."/></xsl:attribute>
13665				</xsl:for-each>
13666			</xsl:when>
13667			<xsl:when test="../@主类型_E792='secondary'">
13668				<xsl:for-each select="../../表:坐标轴_E791[@主类型_E792='primary']/表:刻度_E71D">
13669					<xsl:for-each select="表:交叉点_E723">
13670						<xsl:attribute name="chart:axis-position"><xsl:value-of select="."/></xsl:attribute>
13671					</xsl:for-each>
13672					<xsl:for-each select="表:分类标签数_E72C">
13673						<xsl:attribute name="chart:interval-major"><xsl:value-of select="."/></xsl:attribute>
13674					</xsl:for-each>
13675				</xsl:for-each>
13676			</xsl:when>
13677		</xsl:choose-->
13678		<!-- xsl::choose>
13679			<xsl:when test="../../表:坐标轴_E791[@主类型_E792=current()/../@主类型_E792 and @子类型_E793!=(current()/../@子类型_E793)]/表:刻度_E71D">
13680				<xsl:for-each select="../../表:坐标轴_E791[@主类型_E792=current()/../@主类型_E792 and @子类型_E793!=(current()/../@子类型_E793)]/表:刻度_E71D">
13681					<xsl:if test="表:交叉点_E723 !=''">
13682						<xsl:attribute name="chart:axis-position" select="表:交叉点_E723"/>
13683					</xsl:if>
13684					<xsl:if test="表:分类标签数_E72C != ''">
13685						<xsl:attribute name="chart:interval-major" select="表:分类标签数_E72C"/>
13686					</xsl:if>
13687					<Absent Function: xsl:for-each select="表:分类刻度数_E72D">
13688					</xsl:for-each->
13689				</xsl:for-each>
13690			</xsl:when>
13691			<xsl:otherwise>
13692				<xsl:for-each select="../../表:坐标轴_E791[@子类型_E793!=(current()/../@子类型_E793)]/表:刻度_E71D">
13693					<xsl:if test="表:交叉点_E723 !=''">
13694						<xsl:attribute name="chart:axis-position" select="表:交叉点_E723"/>
13695					</xsl:if>
13696					<xsl:if test="表:分类标签数_E72C != ''">
13697						<xsl:attribute name="chart:interval-major" select="表:分类标签数_E72C"/>
13698					</xsl:if>
13699					<!-xsl:for-each select="表:分类刻度数_E72D">
13700					</xsl:for-each->
13701				</xsl:for-each>
13702			</xsl:otherwise>
13703		</xsl:choose-->
13704		<xsl:if test="图表:交叉点_E723 !=''">
13705			<xsl:attribute name="chart:axis-position" select="图表:交叉点_E723"/>
13706		</xsl:if>
13707		<!-- Waiting, 显示单位、 是否交叉于最大值、 数值轴是否至于分类轴之间-->
13708	</xsl:template>
13709	<xsl:template match="图表:网格线集_E733" mode="chartstyle">
13710		<xsl:for-each select="图表:网格线_E734">
13711			<style:style style:family="chart">
13712				<xsl:attribute name="style:name" select="generate-id(.)"/>
13713				<style:graphic-properties>
13714					<xsl:call-template name="BorderLineAttr"/>
13715				</style:graphic-properties>
13716			</style:style>
13717		</xsl:for-each>
13718	</xsl:template>
13719	<xsl:template match="图表:标题_E736" mode="chartstyle">
13720		<style:style style:family="chart">
13721			<xsl:attribute name="style:name" select="generate-id(.)"/>
13722			<style:chart-properties>
13723				<xsl:for-each select="图表:对齐_E726">
13724					<xsl:call-template name="AlignAttr"/>
13725					<!-- Waiting, see graphic-properties -->
13726				</xsl:for-each>
13727			</style:chart-properties>
13728			<xsl:call-template name="GraphicEleAndTextPropEle"/>
13729		</style:style>
13730		<!--@名称 位置 在 chartbody-->
13731	</xsl:template>
13732	<xsl:template match="图表:坐标轴_E791" mode="chartstyle">
13733		<style:style style:family="chart">
13734			<xsl:attribute name="style:name" select="generate-id(.)"/>
13735			<xsl:for-each select="图表:数值_E70D[@分类名称_E740]">
13736				<xsl:attribute name="style:data-style-name"><xsl:value-of select="concat(generate-id(.),'F')"/></xsl:attribute>
13737			</xsl:for-each>
13738			<style:chart-properties>
13739				<xsl:choose>
13740					<!-- @主刻度类型_E737 缺省取"inside"  by yao.wang@cs2c.com.cn, starting -->
13741					<xsl:when test="@主刻度类型_E737='none'">
13742						<xsl:attribute name="chart:tick-marks-major-inner">false</xsl:attribute>
13743						<xsl:attribute name="chart:tick-marks-major-outer">false</xsl:attribute>
13744					</xsl:when>
13745					<xsl:when test="@主刻度类型_E737='cross'">
13746						<xsl:attribute name="chart:tick-marks-major-inner">true</xsl:attribute>
13747						<xsl:attribute name="chart:tick-marks-major-outer">true</xsl:attribute>
13748					</xsl:when>
13749					<xsl:when test="@主刻度类型_E737='outside'">
13750						<xsl:attribute name="chart:tick-marks-major-inner">false</xsl:attribute>
13751						<xsl:attribute name="chart:tick-marks-major-outer">true</xsl:attribute>
13752					</xsl:when>
13753					<xsl:otherwise>
13754						<xsl:attribute name="chart:tick-marks-major-inner">true</xsl:attribute>
13755						<xsl:attribute name="chart:tick-marks-major-outer">false</xsl:attribute>
13756					</xsl:otherwise>
13757					<!-- Ending. -->
13758				</xsl:choose>
13759				<xsl:choose>
13760					<!-- @次刻度类型_E738 缺省取"none" starting -->
13761					<xsl:when test="@次刻度类型_E738='cross'">
13762						<xsl:attribute name="chart:tick-marks-minor-inner">true</xsl:attribute>
13763						<xsl:attribute name="chart:tick-marks-minor-outer">true</xsl:attribute>
13764					</xsl:when>
13765					<xsl:when test="@次刻度类型_E738='inside'">
13766						<xsl:attribute name="chart:tick-marks-minor-inner">true</xsl:attribute>
13767						<xsl:attribute name="chart:tick-marks-minor-outer">false</xsl:attribute>
13768					</xsl:when>
13769					<xsl:when test="@次刻度类型_E738='outside'">
13770						<xsl:attribute name="chart:tick-marks-minor-inner">false</xsl:attribute>
13771						<xsl:attribute name="chart:tick-marks-minor-outer">true</xsl:attribute>
13772					</xsl:when>
13773					<xsl:otherwise>
13774						<xsl:attribute name="chart:tick-marks-minor-inner">false</xsl:attribute>
13775						<xsl:attribute name="chart:tick-marks-minor-outer">false</xsl:attribute>
13776					</xsl:otherwise>
13777					<!-- Ending. -->
13778				</xsl:choose>
13779				<!-- @刻度线标志_E739 缺省取 'next-to-axis' starting -->
13780				<xsl:attribute name="chart:display-label">true</xsl:attribute>
13781				<xsl:choose>
13782					<xsl:when test="@刻度线标志_E739='inside'">
13783						<xsl:attribute name="chart:axis-label-position">outside-maximum</xsl:attribute>
13784						<xsl:attribute name="chart:tick-mark-position">at-labels</xsl:attribute>
13785						<xsl:attribute name="chart:axis-position" select="0"/>
13786					</xsl:when>
13787					<xsl:when test="@刻度线标志_E739='outside'">
13788						<xsl:attribute name="chart:axis-label-position">outside-minimum</xsl:attribute>
13789						<xsl:attribute name="chart:tick-mark-position">at-labels</xsl:attribute>
13790					</xsl:when>
13791					<xsl:when test="@刻度线标志_E739='none'">
13792						<xsl:attribute name="chart:axis-label-position">outside-minimum</xsl:attribute>
13793						<xsl:attribute name="chart:tick-mark-position">at-labels</xsl:attribute>
13794						<xsl:attribute name="chart:display-label">false</xsl:attribute>
13795					</xsl:when>
13796					<xsl:when test="@刻度线标志_E739='next-axis'">
13797						<xsl:attribute name="chart:axis-position">0</xsl:attribute>
13798					</xsl:when>
13799					<xsl:otherwise>
13800						<xsl:attribute name="chart:axis-label-position">next-axis</xsl:attribute>
13801						<xsl:attribute name="chart:tick-mark-position">at-labels</xsl:attribute>
13802					</xsl:otherwise>
13803				</xsl:choose>
13804				<!-- Waiting, @ 主类型 次类型 可能在坐标轴内容 而非式样中 -->
13805				<xsl:for-each select="*">
13806					<xsl:choose>
13807						<xsl:when test="name(.)='表:数值_E70D'">
13808							<xsl:choose>
13809								<xsl:when test="@是否链接到源_E73E">
13810									<xsl:attribute name="chart:link-data-style-to-source" select="@是否链接到源_E73E"/>
13811								</xsl:when>
13812								<xsl:otherwise>
13813									<xsl:attribute name="chart:link-data-style-to-source" select="false"/>
13814								</xsl:otherwise>
13815							</xsl:choose>
13816							<!-- Waiting, @格式码 -->
13817						</xsl:when>
13818						<xsl:when test="name(.)='图表:刻度_E71D'">
13819							<xsl:apply-templates select="." mode="chartstyle"/>
13820						</xsl:when>
13821						<xsl:when test="name(.)='图表:对齐_E730'">
13822							<!--xsl:if test="表:文字排列方向 = 'r2l-t2b-90e-90w'"-->
13823							<xsl:if test="图表:文字排列方向_E703 = 'r2l-t2b-90e-90w' or 图表:文字排列方向_E703 = 'r2l-t2b-0e-90w'">
13824								<!-- Waiting, some enumerations are not supported. -->
13825								<xsl:attribute name="style:direction">ttb</xsl:attribute>
13826							</xsl:if>
13827							<xsl:if test="图表:文字旋转角度_E704">
13828								<xsl:attribute name="style:rotation-angle"><xsl:value-of select="图表:文字旋转角度_E704"/></xsl:attribute>
13829							</xsl:if>
13830							<!-- Waiting, Offset -->
13831						</xsl:when>
13832					</xsl:choose>
13833				</xsl:for-each>
13834			</style:chart-properties>
13835			<xsl:call-template name="GraphicEleAndTextPropEle"/>
13836		</style:style>
13837		<xsl:apply-templates select="图表:网格线集_E733" mode="chartstyle"/>
13838		<!-- Waiting ,UOF2.0图表下也有标题 与此处编号不一致,暂以此为准 -->
13839		<xsl:apply-templates select="图表:标题_E736" mode="chartstyle"/>
13840	</xsl:template>
13841	<xsl:template match="图表:绘图区_E747" mode="chartstyle">
13842		<style:style style:name="chart-wall" style:family="chart">
13843			<xsl:call-template name="GraphicEleAndTextPropEle"/>
13844		</style:style>
13845		<style:style style:name="plot-area" style:family="chart">
13846			<style:chart-properties>
13847				<xsl:for-each select="图表:图表类型组集_E74C/图表:组_E74D[1]/图表:数据系列集_E74E/图表:数据系列_E74F[1]">
13848					<xsl:variable name="table-type" select="@类型_E75D"/>
13849					<xsl:variable name="table-subtype" select="@子类型_E777"/>
13850					<xsl:choose>
13851						<xsl:when test="$table-subtype='stacked'">
13852							<xsl:attribute name="chart:stacked">true</xsl:attribute>
13853						</xsl:when>
13854						<xsl:when test="$table-subtype='percent-stacked'">
13855							<xsl:attribute name="chart:percentage">true</xsl:attribute>
13856						</xsl:when>
13857						<!--UOF2.0 101215版本无此枚举值,暂用stacked-marker代替
13858						<xsl:when test="($table-subtype='clustered' and $table-type != 'line') or $table-subtype='clustered-marker'"-->
13859						<xsl:when test="($table-subtype='clustered' and $table-type != 'line') or $table-subtype='stacked-marker'">
13860							<xsl:attribute name="chart:symbol-type">automatic</xsl:attribute>
13861						</xsl:when>
13862						<xsl:when test="contains($table-subtype[position() =1],'3d')">
13863							<xsl:attribute name="chart:three-dimensional">true</xsl:attribute>
13864							<xsl:attribute name="chart:soft-page-break">true</xsl:attribute>
13865						</xsl:when>
13866					</xsl:choose>
13867					<xsl:attribute name="chart:vertical"><xsl:choose><xsl:when test="$table-type='bar'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
13868					<xsl:variable name="series-value-start">
13869						<xsl:value-of select="@值_E775"/>
13870					</xsl:variable>
13871					<xsl:variable name="series-value-end">
13872						<xsl:value-of select="../图表:数据系列_E74F[last()]/@值_E775"/>
13873					</xsl:variable>
13874					<!-- Waiting, 按行按列 即 表:数据源/@表:系列产生 -->
13875					<!--
13876					<xsl:variable name="series-generate-type">
13877						<xsl:choose>
13878							<xsl:when test="../表:数据源/@表:系列产生">
13879								<xsl:value-of select="表:数据源/@表:系列产生"/>
13880							</xsl:when>
13881							<xsl:when test="substring(substring-after($series-value-start,'!'),2,1)=substring(substring-after($series-value-start,':'),2,1)">row</xsl:when>
13882							<xsl:otherwise>col</xsl:otherwise>
13883						</xsl:choose>
13884					</xsl:variable>
13885					-->
13886					<!--
13887					<xsl:attribute name="chart:series-source">
13888						<xsl:choose>
13889							<xsl:when test="$series-generate-type='row'">rows</xsl:when>
13890							<xsl:otherwise>columns</xsl:otherwise>
13891						</xsl:choose>
13892					</xsl:attribute>
13893					-->
13894					<xsl:for-each select="图表:数据标签_E752">
13895						<xsl:if test="@是否显示类别名_E716">
13896							<xsl:attribute name="chart:data-label-text" select="@是否显示类别名_E716"/>
13897						</xsl:if>
13898						<xsl:attribute name="chart:data-label-number"><xsl:choose><xsl:when test="@是否显示数值_E717='true'">value</xsl:when><xsl:when test="@是否百分数图表_E718='true'">percentage</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
13899						<xsl:if test="@是否显示图例标志_E719">
13900							<xsl:attribute name="chart:data-label-symbol"><xsl:value-of select="@是否显示图例标志_E719"/></xsl:attribute>
13901							<!--分隔符缺省值设为 0-->
13902							<xsl:if test="string(@分隔符_E71A)">
13903								<chart:label-separator>
13904									<xsl:choose>
13905										<xsl:when test="string(@分隔符_E71A) = '4'">
13906											<text:line-break/>
13907										</xsl:when>
13908										<xsl:otherwise>
13909											<text:p>
13910												<xsl:choose>
13911													<xsl:when test="string(@分隔符_E71A) = '1'">, </xsl:when>
13912													<xsl:when test="string(@分隔符_E71A) = '2'">; </xsl:when>
13913													<!-- Absent Function , '3' correnspond with '0' space>
13914													<xsl:when test="string(@分隔符_E71A) = '3'">. </xsl:when-->
13915												</xsl:choose>
13916											</text:p>
13917										</xsl:otherwise>
13918									</xsl:choose>
13919								</chart:label-separator>
13920							</xsl:if>
13921							<!-- Waiting, QiPaoChiCun_E71B -->
13922							<!-- Waiting, some new functions for uof2.0 -->
13923						</xsl:if>
13924					</xsl:for-each>
13925				</xsl:for-each>
13926			</style:chart-properties>
13927		</style:style>
13928		<xsl:for-each select="图表:图表类型组集_E74C/图表:组_E74D[1]">
13929			<xsl:apply-templates select="图表:数据系列集_E74E" mode="chartstyle"/>
13930			<xsl:for-each select="图表:跌柱线_E77E|图表:涨柱线_E780">
13931				<xsl:call-template name="StockMarkerStyle"/>
13932			</xsl:for-each>
13933			<!-- Waiting, some new subelements for uof2.0 -->
13934		</xsl:for-each>
13935		<xsl:for-each select="图表:坐标轴集_E790">
13936			<xsl:apply-templates select="图表:坐标轴_E791" mode="chartstyle"/>
13937		</xsl:for-each>
13938	</xsl:template>
13939	<xsl:template match="图表:图例_E794" mode="chartstyle">
13940		<style:style style:name="legend" style:family="chart">
13941			<xsl:call-template name="GraphicEleAndTextPropEle"/>
13942		</style:style>
13943		<!-- Waiting, Size, TuLiXiang -->
13944	</xsl:template>
13945	<xsl:template match="图表:数据表_E79B" mode="chartstyle">
13946		<style:style style:name="data-table" style:family="chart">
13947			<!--边框 编号及标签名 均不一致-->
13948			<xsl:call-template name="GraphicEleAndTextPropEle"/>
13949		</style:style>
13950		<!-- Waiting, Attributes -->
13951	</xsl:template>
13952	<xsl:template match="图表:背景墙_E7A1" mode="chartstyle">
13953		<style:style style:name="chart-wall" style:family="chart">
13954			<xsl:call-template name="GraphicEleAndTextPropEle"/>
13955		</style:style>
13956	</xsl:template>
13957	<xsl:template match="图表:基底_E7A4" mode="chartstyle">
13958		<style:style style:name="chart-floor" style:family="chart">
13959			<xsl:call-template name="GraphicEleAndTextPropEle"/>
13960		</style:style>
13961	</xsl:template>
13962	<xsl:template name="getChartLineSymbol">
13963		<xsl:param name="par_Index"/>
13964		<xsl:variable name="var_SymbolArray">
13965			<symbolName>square</symbolName>
13966			<symbolName>diamond</symbolName>
13967			<symbolName>arrow-down</symbolName>
13968			<symbolName>arrow-up</symbolName>
13969			<symbolName>arrow-right</symbolName>
13970			<symbolName>arrow-left</symbolName>
13971			<symbolName>bow-tie</symbolName>
13972			<symbolName>hourglass</symbolName>
13973		</xsl:variable>
13974		<xsl:variable name="varIndex">
13975			<xsl:choose>
13976				<xsl:when test="$par_Index mod 8 = 0">
13977					<xsl:value-of select="number('8')"/>
13978				</xsl:when>
13979				<xsl:otherwise>
13980					<xsl:value-of select="$par_Index mod 8"/>
13981				</xsl:otherwise>
13982			</xsl:choose>
13983		</xsl:variable>
13984		<xsl:value-of select="$var_SymbolArray/symbolName[position() = number($varIndex)]"/>
13985	</xsl:template>
13986	<xsl:template name="getDefaultColor">
13987		<xsl:param name="par_Index"/>
13988		<xsl:variable name="var_ColorArray">
13989			<color>#004586</color>
13990			<color>#ff420e</color>
13991			<color>#ffd320</color>
13992			<color>#579d1c</color>
13993			<color>#7e0021</color>
13994			<color>#83caff</color>
13995			<color>#314004</color>
13996			<color>#aecf00</color>
13997			<color>#4b1f6f</color>
13998			<color>#ff950e</color>
13999			<color>#c5000b</color>
14000			<color>#0084d1</color>
14001		</xsl:variable>
14002		<xsl:variable name="varIndex">
14003			<xsl:choose>
14004				<xsl:when test="$par_Index mod 12 = 0">
14005					<xsl:value-of select="number('12')"/>
14006				</xsl:when>
14007				<xsl:otherwise>
14008					<xsl:value-of select="$par_Index mod 12"/>
14009				</xsl:otherwise>
14010			</xsl:choose>
14011		</xsl:variable>
14012		<xsl:value-of select="$var_ColorArray/color[position() = number($varIndex)]"/>
14013	</xsl:template>
14014	<xsl:template name="图表:固定式样式样集">
14015		<office:styles>
14016			<draw:stroke-dash draw:name="Ultrafine_20_Dashed" draw:display-name="Ultrafine Dashed" draw:style="rect" draw:dots1="1" draw:dots1-length="0.051cm" draw:dots2="1" draw:dots2-length="0.051cm" draw:distance="0.051cm"/>
14017			<draw:stroke-dash draw:name="dash" draw:style="rect" draw:dots1="1" draw:dots1-length="0.2cm" draw:dots2="1" draw:dots2-length="0.2cm" draw:distance="0.15cm"/>
14018			<draw:stroke-dash draw:name="dash-dot" draw:style="rect" draw:dots1="1" draw:dots1-length="0.2cm" draw:dots2="1" draw:distance="0.1cm"/>
14019			<draw:stroke-dash draw:name="dot-dash" draw:style="rect" draw:dots1="1" draw:dots1-length="0.21cm" draw:dots2="1" draw:distance="0.1cm"/>
14020			<draw:stroke-dash draw:name="dash-dot-dot" draw:style="rect" draw:dots1="1" draw:dots1-length="0.15cm" draw:dots2="2" draw:distance="0.07cm"/>
14021			<draw:stroke-dash draw:name="dot-dot-dash" draw:style="rect" draw:dots1="1" draw:dots1-length="0.16cm" draw:dots2="2" draw:distance="0.07cm"/>
14022			<draw:stroke-dash draw:name="dash-long" draw:style="rect" draw:dots1="1" draw:dots1-length="0.4cm" draw:dots2="1" draw:dots2-length="0.4cm" draw:distance="0.25cm"/>
14023			<draw:stroke-dash draw:name="round-dot" draw:display-name="round-dot" draw:style="round" draw:dots1="1" draw:dots1-length="0.025cm" draw:distance="0.025cm"/>
14024			<draw:stroke-dash draw:name="square-dot" draw:display-name="square-dot" draw:style="rect" draw:dots1="1" draw:dots1-length="0.026cm" draw:distance="0.026cm"/>
14025			<draw:stroke-dash draw:name="long-dash-dot" draw:display-name="long-dash-dot" draw:style="rect" draw:dots1="1" draw:dots1-length="0.026cm" draw:dots2="1" draw:dots2-length="0.211cm" draw:distance="0.079cm"/>
14026			<draw:stroke-dash draw:name="long-dash" draw:display-name="long-dash" draw:style="rect" draw:dots2="1" draw:dots2-length="0.211cm" draw:distance="0.079cm"/>
14027			<xsl:call-template name="GraphicSetStyle"/>
14028			<xsl:call-template name="HatchSetStyle"/>
14029			<xsl:for-each select=".//图:渐变_800D/..">
14030				<xsl:call-template name="GradientStyle"/>
14031			</xsl:for-each>
14032		</office:styles>
14033	</xsl:template>
14034	<xsl:template name="OfficeAutomaticStyles4chart">
14035		<office:automatic-styles>
14036			<!--number:number-style-->
14037			<!-- no sure, these digit format is necessary. -->
14038			<xsl:if test="图表:数值轴/图表:数值/@图表:分类名称='text'">
14039				<number:text-style style:name="axisYstyle" number:language="zh" number:country="CN">
14040					<number:text-content/>
14041				</number:text-style>
14042			</xsl:if>
14043			<xsl:if test="图表:数值轴/图表:数值/@图表:分类名称='general'">
14044				<number:number-style style:name="axisYstyle">
14045					<number:number number:min-integer-digits="1"/>
14046				</number:number-style>
14047			</xsl:if>
14048			<xsl:for-each select="图表:数值轴/图表:数值[@图表:分类名称]">
14049				<xsl:call-template name="NumberStyle">
14050					<xsl:with-param name="style-id" select="generate-id(.)"/>
14051				</xsl:call-template>
14052			</xsl:for-each>
14053			<xsl:for-each select="*">
14054				<xsl:apply-templates select="." mode="chartstyle"/>
14055				<!--表:图表区_E743|表:绘图区_E747|表:图例_E794|表:数据表_E79B|表:标题_E70A|表:背景墙_E7A1|表:基底_E7A4
14056待转 空白单元格绘制方式 是否显示隐藏单元格-->
14057			</xsl:for-each>
14058		</office:automatic-styles>
14059	</xsl:template>
14060	<xsl:template name="transform-data-area">
14061		<xsl:param name="data-area"/>
14062		<xsl:variable name="apos">&apos;</xsl:variable>
14063		<!--xsl:variable name="MidData1" select="translate($data-area, ',', ' ')"/>
14064		<xsl:variable name="MidData2" select="translate($MidData1, '!', '.')"/>
14065		<xsl:variable name="MidData3" select="translate($MidData2, $apos, '')"/>
14066		<xsl:variable name="MidData4" select="translate($MidData3, '=', '')"/>
14067		<xsl:variable name="TableName" select="substring-before($MidData4,'.')"/>
14068		<xsl:variable name="MidData5" select="concat(substring-before($MidData4,':'), ':', $TableName, '.', substring-after($MidData4,':'))"/>
14069		<xsl:value-of select="$MidData5"/-->
14070		<xsl:analyze-string select="substring-after($data-area,'=')" regex="{','}">
14071			<xsl:non-matching-substring>
14072				<xsl:variable name="tablename" select="substring-before(substring-after(.,$apos),$apos)"/>
14073				<xsl:analyze-string select="." regex="{':'}">
14074					<xsl:non-matching-substring>
14075						<xsl:choose>
14076							<xsl:when test="contains(.,$tablename)">
14077								<xsl:value-of select="translate(translate(.,$apos,''),'!','.')"/>
14078							</xsl:when>
14079							<xsl:otherwise>
14080								<xsl:value-of select="concat($tablename,'.',.)"/>
14081							</xsl:otherwise>
14082						</xsl:choose>
14083					</xsl:non-matching-substring>
14084					<xsl:matching-substring>
14085						<xsl:value-of select="."/>
14086					</xsl:matching-substring>
14087				</xsl:analyze-string>
14088			</xsl:non-matching-substring>
14089			<xsl:matching-substring>
14090				<xsl:value-of select="' '"/>
14091			</xsl:matching-substring>
14092		</xsl:analyze-string>
14093	</xsl:template>
14094	<xsl:template name="CalCellRange">
14095		<xsl:for-each select="图表:图表类型组集_E74C/图表:组_E74D/图表:数据系列集_E74E">
14096			<xsl:for-each select="图表:数据系列_E74F">
14097				<xsl:variable name="odf-area">
14098					<xsl:call-template name="transform-data-area">
14099						<xsl:with-param name="data-area" select="@值_E775"/>
14100					</xsl:call-template>
14101				</xsl:variable>
14102				<xsl:value-of select="$odf-area"/>
14103				<xsl:value-of select="' '"/>
14104				<xsl:if test="@名称_E774 and contains(@名称_E774, '!') and contains(@名称_E774, ':')">
14105					<xsl:variable name="odf-legend">
14106						<xsl:call-template name="transform-data-area">
14107							<xsl:with-param name="data-area" select="@名称_E774"/>
14108						</xsl:call-template>
14109					</xsl:variable>
14110					<xsl:value-of select="$odf-legend"/>
14111					<xsl:value-of select="' '"/>
14112				</xsl:if>
14113			</xsl:for-each>
14114			<xsl:if test="contains(图表:数据系列_E74F[1]/@分类名_E776, '!') and contains(图表:数据系列_E74F[1]/@分类名_E776, ':')">
14115				<xsl:variable name="odf-cata">
14116					<xsl:call-template name="transform-data-area">
14117						<xsl:with-param name="data-area" select="图表:数据系列_E74F[1]/@分类名_E776"/>
14118					</xsl:call-template>
14119				</xsl:variable>
14120				<xsl:value-of select="$odf-cata"/>
14121			</xsl:if>
14122		</xsl:for-each>
14123	</xsl:template>
14124	<xsl:template match="图表:标题_E736" mode="chartbody">
14125		<xsl:param name="ChartSize"/>
14126		<xsl:variable name="plotAreaX">
14127			<xsl:for-each select="../..">
14128				<xsl:call-template name="PlotAreaSize">
14129					<xsl:with-param name="param" select="'x'"/>
14130					<xsl:with-param name="ChartSize" select="$ChartSize"/>
14131				</xsl:call-template>
14132			</xsl:for-each>
14133		</xsl:variable>
14134		<xsl:variable name="plotAreaWidth">
14135			<xsl:for-each select="../..">
14136				<xsl:call-template name="PlotAreaSize">
14137					<xsl:with-param name="param" select="'width'"/>
14138					<xsl:with-param name="ChartSize" select="$ChartSize"/>
14139				</xsl:call-template>
14140			</xsl:for-each>
14141		</xsl:variable>
14142		<xsl:variable name="plotAreaY">
14143			<xsl:for-each select="../..">
14144				<xsl:call-template name="PlotAreaSize">
14145					<xsl:with-param name="param" select="'y'"/>
14146					<xsl:with-param name="ChartSize" select="$ChartSize"/>
14147				</xsl:call-template>
14148			</xsl:for-each>
14149		</xsl:variable>
14150		<xsl:variable name="plotAreaHeight">
14151			<xsl:for-each select="../..">
14152				<xsl:call-template name="PlotAreaSize">
14153					<xsl:with-param name="param" select="'height'"/>
14154					<xsl:with-param name="ChartSize" select="$ChartSize"/>
14155				</xsl:call-template>
14156			</xsl:for-each>
14157		</xsl:variable>
14158		<chart:title>
14159			<xsl:attribute name="chart:style-name" select="generate-id(.)"/>
14160			<xsl:for-each select="图表:位置_E70A">
14161				<xsl:variable name="svgX">
14162					<xsl:choose>
14163						<xsl:when test="@x_C606">
14164							<xsl:value-of select="concat(@x_C606,$uofUnit)"/>
14165						</xsl:when>
14166						<xsl:otherwise>
14167							<xsl:value-of select="concat(number($plotAreaX) + number($plotAreaWidth) div 2.3,$uofUnit)"/>
14168						</xsl:otherwise>
14169					</xsl:choose>
14170				</xsl:variable>
14171				<xsl:variable name="svgY">
14172					<xsl:choose>
14173						<xsl:when test="@y_C607">
14174							<xsl:value-of select="concat(@y_C607,$uofUnit)"/>
14175						</xsl:when>
14176						<xsl:otherwise>
14177							<xsl:value-of select="concat(number($ChartSize/@长_C604) * 0.02,$uofUnit)"/>
14178						</xsl:otherwise>
14179					</xsl:choose>
14180				</xsl:variable>
14181				<xsl:attribute name="svg:x"><xsl:value-of select="$svgX"/></xsl:attribute>
14182				<xsl:attribute name="svg:y"><xsl:value-of select="$svgY"/></xsl:attribute>
14183			</xsl:for-each>
14184			<text:p>
14185				<xsl:value-of select="@名称_E742"/>
14186			</text:p>
14187		</chart:title>
14188	</xsl:template>
14189	<xsl:template match="图表:图例_E794" mode="chartbody">
14190		<xsl:param name="ChartSize"/>
14191		<xsl:variable name="plotAreaX">
14192			<xsl:call-template name="PlotAreaSize">
14193				<xsl:with-param name="param" select="'x'"/>
14194				<xsl:with-param name="ChartSize" select="$ChartSize"/>
14195			</xsl:call-template>
14196		</xsl:variable>
14197		<xsl:variable name="plotAreaWidth">
14198			<xsl:call-template name="PlotAreaSize">
14199				<xsl:with-param name="param" select="'width'"/>
14200				<xsl:with-param name="ChartSize" select="$ChartSize"/>
14201			</xsl:call-template>
14202		</xsl:variable>
14203		<xsl:variable name="plotAreaY">
14204			<xsl:call-template name="PlotAreaSize">
14205				<xsl:with-param name="param" select="'y'"/>
14206				<xsl:with-param name="ChartSize" select="$ChartSize"/>
14207			</xsl:call-template>
14208		</xsl:variable>
14209		<xsl:variable name="plotAreaHeight">
14210			<xsl:call-template name="PlotAreaSize">
14211				<xsl:with-param name="param" select="'height'"/>
14212				<xsl:with-param name="ChartSize" select="$ChartSize"/>
14213			</xsl:call-template>
14214		</xsl:variable>
14215		<xsl:variable name="paddingX" select="number($ChartSize/@宽_C605) * 0.16"/>
14216		<xsl:variable name="paddingY" select="number($ChartSize/@长_C604) * 0.16"/>
14217		<chart:legend chart:style-name="legend">
14218			<xsl:variable name="legend-position">
14219				<xsl:choose>
14220					<xsl:when test="图表:图例位置_E795='right'">end</xsl:when>
14221					<xsl:when test="图表:图例位置_E795='bottom'">bottom</xsl:when>
14222					<xsl:when test="图表:图例位置_E795='top'">top</xsl:when>
14223					<xsl:when test="图表:图例位置_E795='left'">start</xsl:when>
14224					<xsl:when test="图表:图例位置_E795='corner'">top-end</xsl:when>
14225					<xsl:otherwise>end</xsl:otherwise>
14226				</xsl:choose>
14227			</xsl:variable>
14228			<xsl:attribute name="chart:legend-position"><xsl:value-of select="$legend-position"/></xsl:attribute>
14229			<xsl:variable name="xPos">
14230				<xsl:choose>
14231					<xsl:when test="图表:位置_E70A/@x_C606">
14232						<xsl:value-of select="图表:位置_E70A/@x_C606"/>
14233					</xsl:when>
14234					<xsl:otherwise>
14235						<!--xsl:if test="../@表:宽度"-->
14236						<xsl:if test="$ChartSize/@宽_C605">
14237							<xsl:choose>
14238								<xsl:when test="contains($legend-position, 'end')">
14239									<xsl:value-of select="number($plotAreaX) + number($plotAreaWidth) + number($paddingX)"/>
14240								</xsl:when>
14241								<xsl:when test="$legend-position = 'start'">
14242									<xsl:value-of select="number($ChartSize/@宽_C605) * 0.0199"/>
14243								</xsl:when>
14244								<xsl:when test="$legend-position = 'top'">
14245									<xsl:value-of select="number($plotAreaX) + number($plotAreaWidth) div 2.3"/>
14246								</xsl:when>
14247								<xsl:when test="$legend-position = 'bottom'">
14248									<xsl:value-of select="number($plotAreaX) + number($plotAreaWidth) div 2.3"/>
14249								</xsl:when>
14250								<xsl:when test="$legend-position = 'corner'">
14251									<xsl:value-of select="number($plotAreaX) + number($plotAreaWidth) + number($paddingX)"/>
14252								</xsl:when>
14253								<xsl:otherwise>
14254									<xsl:value-of select="这是一个不应出现的值"/>
14255								</xsl:otherwise>
14256							</xsl:choose>
14257						</xsl:if>
14258					</xsl:otherwise>
14259				</xsl:choose>
14260			</xsl:variable>
14261			<xsl:variable name="yPos">
14262				<xsl:choose>
14263					<xsl:when test="图表:位置_E70A/@y_C607">
14264						<xsl:value-of select="图表:位置_E70A/@y_C607"/>
14265					</xsl:when>
14266					<xsl:otherwise>
14267						<!-- Waiting. -->
14268						<xsl:choose>
14269							<xsl:when test="$legend-position = 'end'">
14270								<xsl:value-of select="number($ChartSize/@长_C604) * 0.364"/>
14271							</xsl:when>
14272							<xsl:when test="$legend-position = 'start'">
14273								<xsl:value-of select="number($ChartSize/@长_C604) * 0.364"/>
14274							</xsl:when>
14275							<xsl:when test="contains($legend-position, 'top')">
14276								<xsl:value-of select="number($plotAreaY) - number($plotAreaHeight) * 0.2"/>
14277							</xsl:when>
14278							<xsl:when test="$legend-position = 'bottom'">
14279								<xsl:value-of select="number($plotAreaY) + number($plotAreaHeight) + number($paddingY)"/>
14280							</xsl:when>
14281							<xsl:when test="$legend-position = 'corner'">
14282								<xsl:value-of select="number($ChartSize/@长_C604) * 0.25"/>
14283							</xsl:when>
14284							<xsl:otherwise>
14285								<xsl:value-of select="这是一个不应该出现的值"/>
14286							</xsl:otherwise>
14287						</xsl:choose>
14288					</xsl:otherwise>
14289				</xsl:choose>
14290			</xsl:variable>
14291			<xsl:if test="string($xPos) != '' and string($xPos) != 'NaN'">
14292				<xsl:attribute name="svg:x"><xsl:value-of select="concat($xPos, $uofUnit)"/></xsl:attribute>
14293			</xsl:if>
14294			<xsl:if test="string($yPos) != '' and string($xPos) != 'NaN'">
14295				<xsl:attribute name="svg:y"><xsl:value-of select="concat($yPos, $uofUnit)"/></xsl:attribute>
14296			</xsl:if>
14297			<xsl:attribute name="chart:style-name">legend</xsl:attribute>
14298		</chart:legend>
14299	</xsl:template>
14300	<xsl:template match="图表:坐标轴_E791" mode="chartbody">
14301		<chart:axis>
14302			<xsl:attribute name="chart:style-name" select="generate-id(.)"/>
14303			<xsl:attribute name="chart:name" select="concat(generate-id(.),'-a')"/>
14304			<xsl:choose>
14305				<xsl:when test="@子类型_E793='date' or @子类型_E793='category'">
14306					<xsl:attribute name="chart:dimension" select="'x'"/>
14307					<xsl:for-each select="../../图表:图表类型组集_E74C/图表:组_E74D/图表:数据系列集_E74E/图表:数据系列_E74F[1]">
14308						<xsl:variable name="categories_value" select="string(@分类名_E776)"/>
14309						<xsl:variable name="cellrangeTem">
14310							<xsl:choose>
14311								<xsl:when test="contains($categories_value, ':')">
14312									<xsl:call-template name="transform-data-area">
14313										<xsl:with-param name="data-area" select="$categories_value"/>
14314									</xsl:call-template>
14315								</xsl:when>
14316								<xsl:otherwise>
14317									<xsl:value-of select="$categories_value"/>
14318								</xsl:otherwise>
14319							</xsl:choose>
14320						</xsl:variable>
14321						<xsl:variable name="cellrange">
14322							<xsl:choose>
14323								<xsl:when test="ends-with($cellrangeTem,' ')">
14324									<xsl:value-of select="substring($cellrangeTem,1,string-length($cellrangeTem)-1)"/>
14325								</xsl:when>
14326								<xsl:otherwise>
14327									<xsl:value-of select="$cellrangeTem"/>
14328								</xsl:otherwise>
14329							</xsl:choose>
14330						</xsl:variable>
14331						<xsl:if test="$cellrange!=''">
14332							<chart:categories>
14333								<xsl:attribute name="table:cell-range-address"><xsl:value-of select="$cellrange"/></xsl:attribute>
14334							</chart:categories>
14335						</xsl:if>
14336					</xsl:for-each>
14337				</xsl:when>
14338				<xsl:when test="@子类型_E793='value' or @主类型_E792 = 'secondary'">
14339					<xsl:attribute name="chart:dimension" select="'y'"/>
14340				</xsl:when>
14341				<xsl:when test="@子类型_E793='series'">
14342					<xsl:attribute name="chart:dimension" select="'z'"/>
14343				</xsl:when>
14344			</xsl:choose>
14345			<xsl:for-each select="图表:网格线集_E733/图表:网格线_E734">
14346				<chart:grid>
14347					<xsl:attribute name="chart:class" select="@位置_E735"/>
14348					<xsl:attribute name="chart:style-name" select="generate-id(.)"/>
14349				</chart:grid>
14350			</xsl:for-each>
14351			<xsl:variable name="ChartName" select="../../../@标识符_E828"/>
14352			<!--anchor for chart-->
14353			<xsl:variable name="AnchorChart" select="key('rel_graphic_name',key('graph4chart',$ChartName)/@标识符_804B)"/>
14354			<xsl:apply-templates mode="chartbody" select="图表:标题_E736">
14355				<xsl:with-param name="ChartSize" select="$AnchorChart/uof:大小_C621"/>
14356			</xsl:apply-templates>
14357		</chart:axis>
14358	</xsl:template>
14359	<xsl:template match="图表:数据系列集_E74E" mode="chartbody">
14360		<xsl:for-each select="图表:数据系列_E74F">
14361			<chart:series>
14362				<xsl:attribute name="chart:style-name"><xsl:value-of select="concat('DataSerial',position())"/></xsl:attribute>
14363				<xsl:variable name="attached-axis">
14364					<xsl:choose>
14365						<xsl:when test="@系列坐标系_E779">
14366							<xsl:value-of select="generate-id(ancestor::图表:绘图区_E747/图表:坐标轴集_E790/图表:坐标轴_E791[@子类型_E793='value' and @主类型_E792=current()/@系列坐标系_E779])"/>
14367						</xsl:when>
14368						<xsl:otherwise>
14369							<xsl:value-of select="generate-id(ancestor::图表:绘图区_E747/图表:坐标轴集_E790/图表:坐标轴_E791[@子类型_E793='value' and @主类型_E792='primary'])"/>
14370						</xsl:otherwise>
14371					</xsl:choose>
14372				</xsl:variable>
14373				<xsl:attribute name="chart:attached-axis" select="concat($attached-axis,'-a')"/>
14374				<xsl:variable name="value_address">
14375					<xsl:call-template name="transform-data-area">
14376						<xsl:with-param name="data-area" select="@值_E775"/>
14377					</xsl:call-template>
14378				</xsl:variable>
14379				<xsl:attribute name="chart:values-cell-range-address"><xsl:value-of select="$value_address"/></xsl:attribute>
14380				<xsl:if test="@名称_E774 and contains(@名称_E774, ':')">
14381					<xsl:variable name="label_address">
14382						<xsl:call-template name="transform-data-area">
14383							<xsl:with-param name="data-area" select="@名称_E774"/>
14384						</xsl:call-template>
14385					</xsl:variable>
14386					<xsl:attribute name="chart:label-cell-address"><xsl:value-of select="$label_address"/></xsl:attribute>
14387				</xsl:if>
14388				<xsl:variable name="series-class">
14389					<xsl:choose>
14390						<xsl:when test="@类型_E75D = 'bar'">chart:bar</xsl:when>
14391						<xsl:when test="@类型_E75D = 'column'">chart:bar</xsl:when>
14392						<xsl:when test="@类型_E75D = 'line'">chart:line</xsl:when>
14393						<xsl:when test="@类型_E75D = 'pie'">chart:circle</xsl:when>
14394					</xsl:choose>
14395				</xsl:variable>
14396				<xsl:attribute name="chart:class"><xsl:value-of select="$series-class"/></xsl:attribute>
14397				<xsl:for-each select="图表:数据点集_E755/图表:数据点_E756">
14398					<xsl:variable name="precedingPoint">
14399						<xsl:choose>
14400							<xsl:when test="position() = 1">0</xsl:when>
14401							<xsl:when test="preceding-sibling::*[1]">
14402								<xsl:value-of select="preceding-sibling::*[1]/@点_E757"/>
14403							</xsl:when>
14404							<xsl:otherwise>0</xsl:otherwise>
14405						</xsl:choose>
14406					</xsl:variable>
14407					<xsl:variable name="currentPoint" select="@点_E757"/>
14408					<xsl:element name="chart:data-point">
14409						<xsl:attribute name="chart:style-name"><xsl:value-of select="generate-id()"/></xsl:attribute>
14410						<xsl:if test="number($currentPoint) != number($precedingPoint) + 1">
14411							<xsl:attribute name="chart:repeated"><xsl:value-of select="number($currentPoint) - number($precedingPoint)"/></xsl:attribute>
14412						</xsl:if>
14413					</xsl:element>
14414					<!-- no supported function in ODF : YinDaoXian -->
14415				</xsl:for-each>
14416				<!-- no supported function in ODF : one series with only one error bars -->
14417				<xsl:for-each select="图表:误差线集_E759/图表:误差线_E75A">
14418					<chart:error-indicator>
14419						<xsl:attribute name="chart:style-name" select="generate-id(.)"/>
14420					</chart:error-indicator>
14421				</xsl:for-each>
14422				<!-- no supported function in ODF : one series with only one trendline -->
14423				<xsl:for-each select="图表:趋势线集_E762/图表:趋势线_E763[1]">
14424					<chart:regression-curve>
14425						<xsl:attribute name="chart:style-name" select="generate-id(.)"/>
14426						<chart:equation>
14427							<xsl:if test="@是否显示R平方值_E771='false' or @是否显示R平方值_E771='0'">
14428								<xsl:attribute name="chart:display-r-square" select="'false'"/>
14429							</xsl:if>
14430							<xsl:if test="@是否显示公式_E770='false' or @是否显示公式_E770='0'">
14431								<xsl:attribute name="chart:display-equation" select="'false'"/>
14432							</xsl:if>
14433						</chart:equation>
14434					</chart:regression-curve>
14435					<!-- no supported function in ODF : @ 值 名称 截距 前推预测周期 倒退预测周期;图例项 -->
14436				</xsl:for-each>
14437			</chart:series>
14438		</xsl:for-each>
14439	</xsl:template>
14440	<xsl:template name="PlotArea4chart">
14441		<xsl:param name="ChartSize"/>
14442		<chart:plot-area chart:style-name="plot-area">
14443			<xsl:for-each select="图表:绘图区_E747">
14444				<xsl:variable name="cellrangeTem">
14445					<xsl:choose>
14446						<xsl:when test="图表:数据区域_E74B">
14447							<xsl:call-template name="transform-data-area">
14448								<xsl:with-param name="data-area" select="图表:数据区域_E74B"/>
14449							</xsl:call-template>
14450						</xsl:when>
14451						<xsl:otherwise>
14452							<xsl:call-template name="CalCellRange"/>
14453						</xsl:otherwise>
14454					</xsl:choose>
14455				</xsl:variable>
14456				<xsl:variable name="cellrange">
14457					<xsl:choose>
14458						<xsl:when test="ends-with($cellrangeTem,' ')">
14459							<xsl:value-of select="substring($cellrangeTem,1,string-length($cellrangeTem)-1)"/>
14460						</xsl:when>
14461						<xsl:otherwise>
14462							<xsl:value-of select="$cellrangeTem"/>
14463						</xsl:otherwise>
14464					</xsl:choose>
14465				</xsl:variable>
14466				<xsl:attribute name="table:cell-range-address"><xsl:value-of select="$cellrange"/></xsl:attribute>
14467				<!--<xsl:variable name="svgWidth">
14468					<xsl:choose>
14469						<xsl:when test="表:大小_E748/@宽_C605">
14470							<xsl:value-of select="concat(表:大小_E748/@宽_C605,$uofUnit)"/>
14471						</xsl:when>
14472						<xsl:when test="../../表:图例_E794/表:大小_E748/@宽_C605 and (number($ChartSize/@长_C604) *0.8 &gt; number(../../表:图例_E794/表:位置_E70A/@x_C606))">
14473							<xsl:value-of select="concat((number($ChartSize/@长_C604) - number(../../表:图例_E794/表:大小_E748/@宽_C605)) * 0.8,$uofUnit)"/>
14474						</xsl:when>
14475						<xsl:otherwise>
14476
14477							<xsl:value-of select="concat(number($ChartSize/@长_C604)*0.8,$uofUnit)"/>
14478						</xsl:otherwise>
14479					</xsl:choose>
14480				</xsl:variable>
14481				<xsl:variable name="svgHeight">
14482					<xsl:choose>
14483						<xsl:when test="表:大小_E748/@长_C604">
14484							<xsl:value-of select="concat(表:大小_E748/@长_C604,$uofUnit)"/>
14485						</xsl:when>
14486						<xsl:otherwise>
14487
14488							<xsl:value-of select="concat(number($ChartSize/@宽_C605)*0.7,$uofUnit)"/>
14489						</xsl:otherwise>
14490					</xsl:choose>
14491				</xsl:variable>
14492				<xsl:variable name="svgX">
14493					<xsl:choose>
14494						<xsl:when test="表:位置_E70A/@x_C606">
14495							<xsl:value-of select="concat(表:位置_E70A/@x_C606,$uofUnit)"/>
14496						</xsl:when>
14497						<xsl:when test="../表:图例_E794/表:图例位置_E795 = 'left'">2.067cm</xsl:when>
14498						<xsl:when test="表:坐标轴集_E790/表:坐标轴_E791[@主类型_E792 = 'secondary']/表:标题_E736">
14499							<xsl:value-of select="concat(number(表:大小_E748/@长_C604)*0.1,$uofUnit)"/>
14500						</xsl:when>
14501						<xsl:otherwise>
14502							<xsl:value-of select="concat(number(表:大小_E748/@长_C604)*0.06,$uofUnit)"/>
14503						</xsl:otherwise>
14504					</xsl:choose>
14505				</xsl:variable>
14506				<xsl:variable name="svgY">
14507					<xsl:choose>
14508						<xsl:when test="表:位置_E70A/@y_C607">
14509							<xsl:value-of select="concat(表:位置_E70A/@y_C607,$uofUnit)"/>
14510						</xsl:when>
14511						<xsl:when test="../表:图例_E794/表:图例位置_E795 = 'bottom'">0.1cm</xsl:when>
14512						<xsl:when test="表:坐标轴集_E790/表:坐标轴_E791/表:标题_E736">
14513							<xsl:value-of select="concat(number(表:大小_E748/@宽_C605)*0.1,$uofUnit)"/>
14514						</xsl:when>
14515					</xsl:choose>
14516				</xsl:variable>-->
14517				<xsl:variable name="svgWidth">
14518					<xsl:call-template name="PlotAreaSize">
14519						<xsl:with-param name="param" select="'width'"/>
14520						<xsl:with-param name="ChartSize" select="$ChartSize"/>
14521					</xsl:call-template>
14522				</xsl:variable>
14523				<xsl:variable name="svgHeight">
14524					<xsl:call-template name="PlotAreaSize">
14525						<xsl:with-param name="param" select="'height'"/>
14526						<xsl:with-param name="ChartSize" select="$ChartSize"/>
14527					</xsl:call-template>
14528				</xsl:variable>
14529				<xsl:variable name="svgX">
14530					<xsl:call-template name="PlotAreaSize">
14531						<xsl:with-param name="param" select="'x'"/>
14532						<xsl:with-param name="ChartSize" select="$ChartSize"/>
14533					</xsl:call-template>
14534				</xsl:variable>
14535				<xsl:variable name="svgY">
14536					<xsl:call-template name="PlotAreaSize">
14537						<xsl:with-param name="param" select="'y'"/>
14538						<xsl:with-param name="ChartSize" select="$ChartSize"/>
14539					</xsl:call-template>
14540				</xsl:variable>
14541				<xsl:attribute name="svg:width"><xsl:value-of select="concat($svgWidth,$uofUnit)"/></xsl:attribute>
14542				<xsl:attribute name="svg:height"><xsl:value-of select="concat($svgHeight,$uofUnit)"/></xsl:attribute>
14543				<xsl:attribute name="svg:x"><xsl:value-of select="concat($svgX,$uofUnit)"/></xsl:attribute>
14544				<xsl:attribute name="svg:y"><xsl:value-of select="concat($svgY,$uofUnit)"/></xsl:attribute>
14545				<xsl:for-each select="图表:坐标轴集_E790">
14546					<!-- 按轴定义的先后次序判断主次 -->
14547					<xsl:apply-templates select="图表:坐标轴_E791[@主类型_E792='primary']" mode="chartbody"/>
14548					<xsl:apply-templates select="图表:坐标轴_E791[not(@主类型_E792='primary')]" mode="chartbody"/>
14549				</xsl:for-each>
14550				<xsl:for-each select="图表:图表类型组集_E74C/图表:组_E74D">
14551					<xsl:apply-templates select="图表:数据系列集_E74E" mode="chartbody"/>
14552					<xsl:for-each select="图表:跌柱线_E77E">
14553						<chart:stock-loss-marker>
14554							<xsl:attribute name="chart:style-name" select="generate-id(.)"/>
14555						</chart:stock-loss-marker>
14556					</xsl:for-each>
14557					<xsl:for-each select="图表:涨柱线_E780">
14558						<chart:stock-gain-marker>
14559							<xsl:attribute name="chart:style-name" select="generate-id(.)"/>
14560						</chart:stock-gain-marker>
14561					</xsl:for-each>
14562				</xsl:for-each>
14563			</xsl:for-each>
14564			<chart:wall>
14565				<xsl:attribute name="chart:style-name">chart-wall</xsl:attribute>
14566			</chart:wall>
14567			<chart:floor>
14568				<xsl:attribute name="chart:style-name">chart-floor</xsl:attribute>
14569			</chart:floor>
14570		</chart:plot-area>
14571	</xsl:template>
14572	<xsl:template name="PlotAreaSize">
14573		<xsl:param name="param"/>
14574		<xsl:param name="ChartSize"/>
14575		<xsl:variable name="PaddingX" select="number($ChartSize/@宽_C605) * number(0.04)"/>
14576		<xsl:variable name="PaddingY" select="number($ChartSize/@长_C604) * number(0.019)"/>
14577		<xsl:for-each select="..">
14578			<xsl:variable name="legendPosX">
14579				<xsl:choose>
14580					<xsl:when test="图表:图例_E794/图表:位置_E70A/@x_C606">
14581						<xsl:choose>
14582							<xsl:when test="number(图表:图例_E794/图表:位置_E70A/@x_C606) &lt; number($ChartSize/@宽_C605) div 3">
14583								<xsl:choose>
14584									<xsl:when test="图表:图例_E794/图表:大小_E748/@宽_C605">
14585										<xsl:value-of select="number(图表:图例_E794/图表:位置_E70A/@x_C606) + number(图表:图例_E794/图表:大小_E748/@宽_C605) + $PaddingX"/>
14586									</xsl:when>
14587									<xsl:otherwise>
14588										<xsl:value-of select="number(图表:图例_E794/图表:位置_E70A/@x_C606) + number($ChartSize/@宽_C605) * 0.12 + $PaddingX"/>
14589									</xsl:otherwise>
14590								</xsl:choose>
14591							</xsl:when>
14592							<xsl:otherwise>0</xsl:otherwise>
14593						</xsl:choose>
14594					</xsl:when>
14595					<xsl:when test="图表:图例_E794/图表:图例位置_E795 = 'left'">
14596						<xsl:choose>
14597							<xsl:when test="图表:图例_E794/图表:大小_E748/@宽_C605">
14598								<xsl:value-of select="$PaddingX + number(图表:图例_E794/图表:大小_E748/@宽_C605) + number($ChartSize/@宽_C605) * 0.02"/>
14599							</xsl:when>
14600							<xsl:otherwise>
14601								<xsl:value-of select="$PaddingX + number($ChartSize/@宽_C605) * 0.12 + number($ChartSize/@宽_C605) * 0.02"/>
14602							</xsl:otherwise>
14603						</xsl:choose>
14604					</xsl:when>
14605					<xsl:otherwise>0</xsl:otherwise>
14606				</xsl:choose>
14607			</xsl:variable>
14608			<xsl:variable name="legendPosY">
14609				<xsl:choose>
14610					<xsl:when test="图表:图例_E794/图表:位置_E70A/@y_C607">
14611						<xsl:choose>
14612							<xsl:when test="number(图表:图例_E794/图表:位置_E70A/@y_C607) &lt; number($ChartSize/@长_C604) div 3">
14613								<xsl:choose>
14614									<xsl:when test="图表:图例_E794/图表:大小_E748/@长_C604">
14615										<xsl:value-of select="number(图表:图例_E794/图表:位置_E70A/@y_C607) + number(图表:图例_E794/图表:大小_E748/@长_C604) + $PaddingY"/>
14616									</xsl:when>
14617									<xsl:otherwise>
14618										<xsl:value-of select="number(图表:图例_E794/图表:位置_E70A/@y_C607) + number($ChartSize/@长_C604) div 3 + $PaddingY"/>
14619									</xsl:otherwise>
14620								</xsl:choose>
14621							</xsl:when>
14622							<xsl:otherwise>0</xsl:otherwise>
14623						</xsl:choose>
14624					</xsl:when>
14625					<xsl:when test="图表:图例_E794/图表:图例位置_E795 = 'top'">
14626						<xsl:choose>
14627							<xsl:when test="图表:图例_E794/图表:大小_E748/@长_C604">
14628								<xsl:value-of select="$PaddingY + number(图表:图例_E794/图表:大小_E748/@长_C604) + number($ChartSize/@长_C604) * 0.02"/>
14629							</xsl:when>
14630							<xsl:otherwise>
14631								<xsl:value-of select="$PaddingY + number($ChartSize/@长_C604) * 0.12 + number($ChartSize/@长_C604) * 0.02"/>
14632							</xsl:otherwise>
14633						</xsl:choose>
14634					</xsl:when>
14635					<xsl:otherwise>0</xsl:otherwise>
14636				</xsl:choose>
14637			</xsl:variable>
14638			<xsl:variable name="legendWidth">
14639				<xsl:choose>
14640					<xsl:when test="图表:图例_E794/图表:位置_E70A/@x_C606">
14641						<xsl:choose>
14642							<xsl:when test="(number(图表:图例_E794/图表:位置_E70A/@x_C606) &lt; number($ChartSize/@宽_C605) div 3) or (number(图表:图例_E794/图表:位置_E70A/@x_C606) &gt; number($ChartSize/@宽_C605) *2 div 3)">
14643								<xsl:choose>
14644									<xsl:when test="图表:图例_E794/图表:大小_E748/@宽_C605">
14645										<xsl:value-of select="number(图表:图例_E794/图表:大小_E748/@宽_C605)"/>
14646									</xsl:when>
14647									<xsl:otherwise>
14648										<xsl:value-of select="number($ChartSize/@宽_C605) * 0.12"/>
14649									</xsl:otherwise>
14650								</xsl:choose>
14651							</xsl:when>
14652							<xsl:otherwise>0</xsl:otherwise>
14653						</xsl:choose>
14654					</xsl:when>
14655					<xsl:when test="图表:图例_E794/图表:图例位置_E795 = 'left' or 图表:图例_E794/图表:图例位置_E795 = 'right'">
14656						<xsl:choose>
14657							<xsl:when test="图表:图例_E794/图表:大小_E748/@宽_C605">
14658								<xsl:value-of select="number(图表:图例_E794/图表:大小_E748/@宽_C605)"/>
14659							</xsl:when>
14660							<xsl:otherwise>
14661								<xsl:value-of select="number($ChartSize/@宽_C605) * 0.12"/>
14662							</xsl:otherwise>
14663						</xsl:choose>
14664					</xsl:when>
14665					<xsl:otherwise>0</xsl:otherwise>
14666				</xsl:choose>
14667			</xsl:variable>
14668			<xsl:variable name="legendHeight">
14669				<xsl:choose>
14670					<xsl:when test="图表:图例_E794/图表:位置_E70A/@y_C607">
14671						<xsl:choose>
14672							<xsl:when test="(number(图表:图例_E794/图表:位置_E70A/@y_C607) &lt; number($ChartSize/@长_C604) div 3) or (number(图表:图例_E794/图表:位置_E70A/@y_C607) &gt; number($ChartSize/@长_C604) *2 div 3)">
14673								<xsl:choose>
14674									<xsl:when test="图表:图例_E794/图表:大小_E748/@长_C604">
14675										<xsl:value-of select="number(图表:图例_E794/图表:大小_E748/@长_C604)"/>
14676									</xsl:when>
14677									<xsl:otherwise>
14678										<xsl:value-of select="number($ChartSize/@长_C604) div 3"/>
14679									</xsl:otherwise>
14680								</xsl:choose>
14681							</xsl:when>
14682							<xsl:otherwise>0</xsl:otherwise>
14683						</xsl:choose>
14684					</xsl:when>
14685					<xsl:when test="图表:图例_E794/图表:图例位置_E795 = 'top' or 图表:图例_E794/图表:图例位置_E795 = 'bottom'">
14686						<xsl:choose>
14687							<xsl:when test="图表:图例_E794/图表:大小_E748/@长_C604">
14688								<xsl:value-of select="number(图表:图例_E794/图表:大小_E748/@长_C604)"/>
14689							</xsl:when>
14690							<xsl:otherwise>
14691								<xsl:value-of select="number($ChartSize/@长_C604) div 3"/>
14692							</xsl:otherwise>
14693						</xsl:choose>
14694					</xsl:when>
14695					<xsl:otherwise>0</xsl:otherwise>
14696				</xsl:choose>
14697			</xsl:variable>
14698			<xsl:variable name="titlePosX">
14699				<xsl:choose>
14700					<xsl:when test="图表:绘图区_E747/图表:坐标轴集_E790/图表:坐标轴_E791[@子类型_E793 = 'value']/图表:标题_E736/图表:位置_E70A">
14701						<xsl:choose>
14702							<xsl:when test="图表:绘图区_E747/图表:坐标轴集_E790/图表:坐标轴_E791[@子类型_E793 = 'value']/图表:标题_E736/图表:位置_E70A/@x_C606">
14703								<xsl:value-of select="图表:绘图区_E747/图表:坐标轴集_E790/图表:坐标轴_E791[@子类型_E793 = 'value']/图表:标题_E736/图表:位置_E70A/@x_C606"/>
14704							</xsl:when>
14705							<xsl:otherwise>
14706								<xsl:value-of select="number($ChartSize/@宽_C605)*0.07 + number($ChartSize/@宽_C605) * 0.02 + number($ChartSize/@宽_C605) * 0.02"/>
14707							</xsl:otherwise>
14708						</xsl:choose>
14709					</xsl:when>
14710					<xsl:otherwise>0</xsl:otherwise>
14711				</xsl:choose>
14712			</xsl:variable>
14713			<xsl:variable name="titlePosY">
14714				<xsl:choose>
14715					<xsl:when test="图表:标题_E736/图表:位置_E70A">
14716						<xsl:choose>
14717							<xsl:when test="图表:标题_E736/图表:位置_E70A/@y_C607">
14718								<xsl:value-of select="图表:标题_E736/图表:位置_E70A/@y_C607"/>
14719							</xsl:when>
14720							<xsl:otherwise>
14721								<xsl:value-of select="number($ChartSize/@长_C604) * 0.07 + number($ChartSize/@长_C604) * 0.02 + number($ChartSize/@长_C604) * 0.02"/>
14722							</xsl:otherwise>
14723						</xsl:choose>
14724					</xsl:when>
14725					<xsl:otherwise>0</xsl:otherwise>
14726				</xsl:choose>
14727			</xsl:variable>
14728			<xsl:variable name="titleWidth">
14729				<xsl:choose>
14730					<xsl:when test="图表:绘图区_E747/图表:坐标轴集_E790/图表:坐标轴_E791[@子类型_E793 = 'category']/图表:标题_E736/图表:位置_E70A/@x_C606">
14731						<xsl:value-of select="number($ChartSize/@长_C604) * 0.0689"/>
14732					</xsl:when>
14733					<xsl:otherwise>0</xsl:otherwise>
14734				</xsl:choose>
14735			</xsl:variable>
14736			<xsl:variable name="categoryTitleHeight">
14737				<xsl:choose>
14738					<xsl:when test="图表:绘图区_E747/图表:坐标轴集_E790/图表:坐标轴_E791[@子类型_E793 = 'category']/图表:标题_E736/图表:位置_E70A/@y_C607">
14739						<xsl:value-of select="number($ChartSize/@长_C604) * 0.0689"/>
14740					</xsl:when>
14741					<xsl:otherwise>0</xsl:otherwise>
14742				</xsl:choose>
14743			</xsl:variable>
14744			<xsl:variable name="titleHeight">
14745				<xsl:choose>
14746					<xsl:when test="图表:标题_E736/图表:位置_E70A/@y_C607">
14747						<xsl:value-of select="number($ChartSize/@长_C604) *0.0689"/>
14748					</xsl:when>
14749					<xsl:otherwise>0</xsl:otherwise>
14750				</xsl:choose>
14751			</xsl:variable>
14752			<xsl:choose>
14753				<xsl:when test="$param = 'width'">
14754					<xsl:choose>
14755						<xsl:when test="图表:绘图区_E747/图表:大小_E748/@宽_C605">
14756							<xsl:value-of select="图表:绘图区_E747/图表:大小_E748/@宽_C605"/>
14757						</xsl:when>
14758						<xsl:otherwise>
14759							<xsl:value-of select="(($ChartSize/@宽_C605) - number($legendWidth) - number($titleWidth)) *0.9"/>
14760						</xsl:otherwise>
14761					</xsl:choose>
14762				</xsl:when>
14763				<xsl:when test="$param = 'height'">
14764					<xsl:choose>
14765						<xsl:when test="图表:绘图区_E747/图表:大小_E748/@长_C604">
14766							<xsl:value-of select="图表:绘图区_E747/图表:大小_E748/@长_C604"/>
14767						</xsl:when>
14768						<xsl:otherwise>
14769							<xsl:value-of select="(number($ChartSize/@长_C604) - number($legendHeight) - number($titleHeight) - number($titleHeight)) *0.9"/>
14770						</xsl:otherwise>
14771					</xsl:choose>
14772				</xsl:when>
14773				<xsl:when test="$param = 'x'">
14774					<xsl:choose>
14775						<xsl:when test="图表:绘图区_E747/图表:位置_E70A/@x_C606">
14776							<xsl:value-of select="图表:绘图区_E747/图表:位置_E70A/@x_C606"/>
14777						</xsl:when>
14778						<xsl:otherwise>
14779							<xsl:value-of select="number($legendPosX) + number($titlePosX) + ($ChartSize/@宽_C605) * 0.05"/>
14780						</xsl:otherwise>
14781					</xsl:choose>
14782				</xsl:when>
14783				<xsl:when test="$param = 'y'">
14784					<xsl:choose>
14785						<xsl:when test="图表:绘图区_E747/图表:位置_E70A/@y_C607">
14786							<xsl:value-of select="图表:绘图区_E747/图表:位置_E70A/@y_C607"/>
14787						</xsl:when>
14788						<xsl:otherwise>
14789							<xsl:value-of select="number($legendPosY) + number($titlePosY) + ($ChartSize/@长_C604) * 0.1"/>
14790						</xsl:otherwise>
14791					</xsl:choose>
14792				</xsl:when>
14793			</xsl:choose>
14794		</xsl:for-each>
14795	</xsl:template>
14796	<xsl:template name="CreateTmpLocTable">
14797		<table:table-header-rows>
14798			<table:table-row>
14799				<xsl:if test="图表:绘图区_E747/图表:图表类型组集_E74C/图表:组_E74D/图表:数据系列集_E74E/图表:数据系列_E74F[@分类名_E776][1]/图表:数据标签_E752/@是否显示分类名_E716 = 'true'">
14800					<xsl:for-each select="图表:绘图区_E747/图表:图表类型组集_E74C/图表:组_E74D/图表:数据系列集_E74E/图表:数据系列_E74F[@分类名_E776][1]">
14801						<xsl:variable name="IsRightCatalog">
14802							<xsl:choose>
14803								<xsl:when test="@分类名_E776 and contains(@分类名_E776, '!') and contains(@分类名_E776, '=')">
14804									<xsl:value-of select="'true'"/>
14805								</xsl:when>
14806								<xsl:otherwise>
14807									<xsl:value-of select="'false'"/>
14808								</xsl:otherwise>
14809							</xsl:choose>
14810						</xsl:variable>
14811						<xsl:variable name="CatalogValue">
14812							<xsl:choose>
14813								<xsl:when test="$IsRightCatalog = 'true'">
14814									<xsl:call-template name="All-Header-Cell">
14815										<xsl:with-param name="HeaderAddress" select="@分类名_E776"/>
14816									</xsl:call-template>
14817								</xsl:when>
14818								<xsl:otherwise>
14819									<xsl:value-of select="@分类名_E776"/>
14820								</xsl:otherwise>
14821							</xsl:choose>
14822						</xsl:variable>
14823						<xsl:call-template name="Set-Catalog-Cell">
14824							<xsl:with-param name="SeriesPos" select="position()"/>
14825							<xsl:with-param name="CatalogValue" select="$CatalogValue"/>
14826							<xsl:with-param name="IsRightCatalog" select="$IsRightCatalog"/>
14827						</xsl:call-template>
14828					</xsl:for-each>
14829				</xsl:if>
14830			</table:table-row>
14831		</table:table-header-rows>
14832		<table:table-rows>
14833			<xsl:for-each select="图表:绘图区_E747/图表:图表类型组集_E74C/图表:组_E74D/图表:数据系列集_E74E/图表:数据系列_E74F">
14834				<xsl:variable name="data-area" select="@值_E775"/>
14835				<xsl:variable name="sAddress">
14836					<xsl:choose>
14837						<xsl:when test="contains($data-area, ':')">
14838							<xsl:value-of select="substring-after(substring-before($data-area, ':'), '!')"/>
14839						</xsl:when>
14840						<xsl:otherwise>
14841							<xsl:value-of select="substring-after($data-area, '!')"/>
14842						</xsl:otherwise>
14843					</xsl:choose>
14844				</xsl:variable>
14845				<xsl:variable name="eAddress">
14846					<xsl:choose>
14847						<xsl:when test="contains($data-area, ':')">
14848							<xsl:value-of select="substring-after($data-area, ':')"/>
14849						</xsl:when>
14850						<xsl:otherwise>
14851							<xsl:value-of select="substring-after($data-area, '!')"/>
14852						</xsl:otherwise>
14853					</xsl:choose>
14854				</xsl:variable>
14855				<xsl:variable name="sDivPos">
14856					<xsl:call-template name="DivCellPos">
14857						<xsl:with-param name="CellAddress" select="$sAddress"/>
14858					</xsl:call-template>
14859				</xsl:variable>
14860				<xsl:variable name="eDivPos">
14861					<xsl:call-template name="DivCellPos">
14862						<xsl:with-param name="CellAddress" select="$eAddress"/>
14863					</xsl:call-template>
14864				</xsl:variable>
14865				<xsl:variable name="nStartCol">
14866					<xsl:call-template name="CellColNum">
14867						<xsl:with-param name="CellAddress" select="$sAddress"/>
14868						<xsl:with-param name="DivPos" select="$sDivPos"/>
14869					</xsl:call-template>
14870				</xsl:variable>
14871				<xsl:variable name="nEndCol">
14872					<xsl:call-template name="CellColNum">
14873						<xsl:with-param name="CellAddress" select="$eAddress"/>
14874						<xsl:with-param name="DivPos" select="$eDivPos"/>
14875					</xsl:call-template>
14876				</xsl:variable>
14877				<xsl:variable name="nStartRow">
14878					<xsl:value-of select="number(substring($sAddress, $sDivPos+1))"/>
14879				</xsl:variable>
14880				<xsl:variable name="nEndRow">
14881					<xsl:value-of select="number(substring($eAddress, $eDivPos+1))"/>
14882				</xsl:variable>
14883				<xsl:variable name="TableName">
14884					<xsl:variable name="Tmp1" select="substring-before($data-area, '!')"/>
14885					<xsl:value-of select="substring($data-area, 3, (string-length($Tmp1) - 3))"/>
14886				</xsl:variable>
14887				<xsl:variable name="IsRightSeriesName">
14888					<xsl:choose>
14889						<xsl:when test="@名称_E774 and contains(@名称_E774, '!') and contains(@名称_E774, '=')">
14890							<xsl:value-of select="'true'"/>
14891						</xsl:when>
14892						<xsl:otherwise>
14893							<xsl:value-of select="'false'"/>
14894						</xsl:otherwise>
14895					</xsl:choose>
14896				</xsl:variable>
14897				<xsl:variable name="SeriesNameValue">
14898					<xsl:choose>
14899						<xsl:when test="$IsRightSeriesName = 'true'">
14900							<xsl:call-template name="All-Header-Cell">
14901								<xsl:with-param name="HeaderAddress" select="@名称_E774"/>
14902							</xsl:call-template>
14903						</xsl:when>
14904						<xsl:otherwise>
14905							<xsl:choose>
14906								<xsl:when test="@名称_E774">
14907									<xsl:value-of select="@名称_E774"/>
14908								</xsl:when>
14909								<xsl:otherwise>
14910									<xsl:value-of select="concat('系列', position())"/>
14911								</xsl:otherwise>
14912							</xsl:choose>
14913						</xsl:otherwise>
14914					</xsl:choose>
14915				</xsl:variable>
14916				<xsl:variable name="SeriesPos" select="position()"/>
14917				<table:table-row>
14918					<xsl:call-template name="Set-Series-Cell">
14919						<xsl:with-param name="SeriesPos" select="position()"/>
14920						<xsl:with-param name="SeriesNameValue" select="$SeriesNameValue"/>
14921						<xsl:with-param name="IsRightSeriesName" select="$IsRightSeriesName"/>
14922					</xsl:call-template>
14923					<xsl:for-each select="/uof:UOF_0000/uof:电子表格/表:主体/表:工作表[string(@表:名称) = string($TableName)]">
14924						<xsl:variable name="var_TextID" select="concat(string($TableName),'.',string($sAddress),':',string($TableName),'.',string($eAddress))"/>
14925						<xsl:for-each select="表:工作表内容/表:行[number(@表:行号) &gt; (number($nStartRow) - 1)][number(@表:行号) &lt; (number($nEndRow) + 1)]">
14926							<xsl:for-each select="表:单元格[number(@表:列号) &gt; (number($nStartCol) - 1) and number(@表:列号) &lt; (number($nEndCol) + 1)]">
14927								<xsl:apply-templates select="." mode="chart">
14928									<xsl:with-param name="par_TextID" select="$var_TextID"/>
14929								</xsl:apply-templates>
14930							</xsl:for-each>
14931						</xsl:for-each>
14932					</xsl:for-each>
14933				</table:table-row>
14934			</xsl:for-each>
14935		</table:table-rows>
14936	</xsl:template>
14937	<xsl:template match="表:单元格" mode="chart">
14938		<xsl:param name="par_TextID" select="''"/>
14939		<table:table-cell>
14940			<xsl:variable name="cellContent">
14941				<xsl:for-each select="表:数据/字:句">
14942					<xsl:apply-templates select="."/>
14943				</xsl:for-each>
14944			</xsl:variable>
14945			<xsl:choose>
14946				<xsl:when test="表:数据/@表:数据类型 = 'text'">
14947					<xsl:attribute name="office:value-type" select="'string'"/>
14948				</xsl:when>
14949				<xsl:otherwise>
14950					<xsl:attribute name="office:value-type" select="'float'"/>
14951					<xsl:attribute name="office:value" select="string($cellContent)"/>
14952				</xsl:otherwise>
14953			</xsl:choose>
14954			<text:p>
14955				<xsl:if test="$par_TextID != ''">
14956					<xsl:attribute name="text:id" select="$par_TextID"/>
14957				</xsl:if>
14958				<xsl:value-of select="$cellContent"/>
14959			</text:p>
14960		</table:table-cell>
14961	</xsl:template>
14962	<xsl:template name="DivCellPos">
14963		<xsl:param name="CellAddress"/>
14964		<xsl:variable name="x2" select="substring($CellAddress, 2, 1)"/>
14965		<xsl:variable name="x3" select="substring($CellAddress, 3, 1)"/>
14966		<xsl:choose>
14967			<xsl:when test="not($x3 &lt; 'A') and not($x3 &gt; 'Z')">
14968				<xsl:value-of select="3"/>
14969			</xsl:when>
14970			<xsl:when test="not($x2 &lt; 'A') and not($x2 &gt; 'Z')">
14971				<xsl:value-of select="2"/>
14972			</xsl:when>
14973			<xsl:otherwise>
14974				<xsl:value-of select="1"/>
14975			</xsl:otherwise>
14976		</xsl:choose>
14977	</xsl:template>
14978	<xsl:template name="CellColNum">
14979		<xsl:param name="CellAddress"/>
14980		<xsl:param name="DivPos"/>
14981		<xsl:variable name="StartCol">
14982			<xsl:value-of select="substring($CellAddress, 1, $DivPos)"/>
14983		</xsl:variable>
14984		<xsl:choose>
14985			<xsl:when test="$DivPos = 1">
14986				<xsl:value-of select="string-to-codepoints(substring($CellAddress, 1, 1)) - string-to-codepoints('A') + 1"/>
14987			</xsl:when>
14988			<xsl:when test="$DivPos = 2">
14989				<xsl:variable name="high" select="string-to-codepoints(substring($CellAddress, 2, 1)) - string-to-codepoints('A') + 1"/>
14990				<xsl:variable name="low" select="string-to-codepoints(substring($CellAddress, 1, 1)) - string-to-codepoints('A') + 1"/>
14991				<xsl:value-of select="$high * 26 + $low"/>
14992			</xsl:when>
14993			<xsl:when test="$DivPos = 3">
14994				<xsl:variable name="high" select="string-to-codepoints(substring($CellAddress, 3, 1)) - string-to-codepoints('A') + 1"/>
14995				<xsl:variable name="mid" select="string-to-codepoints(substring($CellAddress, 2, 1)) - string-to-codepoints('A') + 1"/>
14996				<xsl:variable name="low" select="string-to-codepoints(substring($CellAddress, 1, 1)) - string-to-codepoints('A') + 1"/>
14997				<xsl:value-of select="$high * 26 * 26 + $mid * 26 + $low"/>
14998			</xsl:when>
14999		</xsl:choose>
15000	</xsl:template>
15001	<xsl:template name="All-Header-Cell">
15002		<xsl:param name="HeaderAddress"/>
15003		<xsl:variable name="sAddress">
15004			<xsl:choose>
15005				<xsl:when test="contains($HeaderAddress, ':')">
15006					<xsl:value-of select="substring-after(substring-before($HeaderAddress, ':'), '!')"/>
15007				</xsl:when>
15008				<xsl:otherwise>
15009					<xsl:value-of select="substring-after($HeaderAddress, '!')"/>
15010				</xsl:otherwise>
15011			</xsl:choose>
15012		</xsl:variable>
15013		<xsl:variable name="sDivPos">
15014			<xsl:call-template name="DivCellPos">
15015				<xsl:with-param name="CellAddress" select="$sAddress"/>
15016			</xsl:call-template>
15017		</xsl:variable>
15018		<xsl:variable name="nStartCol">
15019			<xsl:call-template name="CellColNum">
15020				<xsl:with-param name="CellAddress" select="$sAddress"/>
15021				<xsl:with-param name="DivPos" select="$sDivPos"/>
15022			</xsl:call-template>
15023		</xsl:variable>
15024		<xsl:variable name="nStartRow">
15025			<xsl:value-of select="number(substring($sAddress, $sDivPos+1))"/>
15026		</xsl:variable>
15027		<xsl:variable name="eAddress">
15028			<xsl:choose>
15029				<xsl:when test="contains($HeaderAddress, ':')">
15030					<xsl:value-of select="substring-after($HeaderAddress, ':')"/>
15031				</xsl:when>
15032				<xsl:otherwise>
15033					<xsl:value-of select="substring-after($HeaderAddress, '!')"/>
15034				</xsl:otherwise>
15035			</xsl:choose>
15036		</xsl:variable>
15037		<xsl:variable name="eDivPos">
15038			<xsl:choose>
15039				<xsl:when test="$eAddress = ''">
15040					<xsl:value-of select="0"/>
15041				</xsl:when>
15042				<xsl:otherwise>
15043					<xsl:call-template name="DivCellPos">
15044						<xsl:with-param name="CellAddress" select="$eAddress"/>
15045					</xsl:call-template>
15046				</xsl:otherwise>
15047			</xsl:choose>
15048		</xsl:variable>
15049		<xsl:variable name="nEndCol">
15050			<xsl:choose>
15051				<xsl:when test="$eAddress = ''">
15052					<xsl:value-of select="$nStartCol"/>
15053				</xsl:when>
15054				<xsl:otherwise>
15055					<xsl:call-template name="CellColNum">
15056						<xsl:with-param name="CellAddress" select="$eAddress"/>
15057						<xsl:with-param name="DivPos" select="$eDivPos"/>
15058					</xsl:call-template>
15059				</xsl:otherwise>
15060			</xsl:choose>
15061		</xsl:variable>
15062		<xsl:variable name="nEndRow">
15063			<xsl:choose>
15064				<xsl:when test="$eAddress = ''">
15065					<xsl:value-of select="$nStartRow"/>
15066				</xsl:when>
15067				<xsl:otherwise>
15068					<xsl:value-of select="number(substring($eAddress, $eDivPos+1))"/>
15069				</xsl:otherwise>
15070			</xsl:choose>
15071		</xsl:variable>
15072		<xsl:variable name="TableName">
15073			<xsl:variable name="Tmp1" select="substring-before($HeaderAddress, '!')"/>
15074			<xsl:value-of select="substring($HeaderAddress, 3, (string-length($Tmp1) - 3))"/>
15075		</xsl:variable>
15076		<xsl:variable name="var_TextID">
15077			<xsl:value-of select="concat( $TableName, '.' , $sAddress, ':', $TableName, '.' , $eAddress)"/>
15078		</xsl:variable>
15079		<xsl:for-each select="/uof:UOF_0000/uof:电子表格/表:主体/表:工作表[@表:名称 = $TableName]">
15080			<xsl:for-each select="表:工作表内容/表:行[@表:行号 &gt; ($nStartRow - 1) and @表:行号 &lt; ($nEndRow + 1)]">
15081				<xsl:for-each select="表:单元格[@表:列号 &gt; ($nStartCol - 1) and @表:列号 &lt; ($nEndCol + 1)]">
15082					<xsl:apply-templates select="." mode="chart">
15083						<xsl:with-param name="par_TextID" select="$var_TextID"/>
15084					</xsl:apply-templates>
15085				</xsl:for-each>
15086			</xsl:for-each>
15087		</xsl:for-each>
15088	</xsl:template>
15089	<xsl:template name="Parse-Catelog-Cell">
15090		<xsl:param name="par_CatelogArray"/>
15091		<xsl:choose>
15092			<xsl:when test="contains($par_CatelogArray, ',')">
15093				<table:table-cell office:value-type="string">
15094					<text:p>
15095						<xsl:value-of select="substring-before($par_CatelogArray, ',')"/>
15096					</text:p>
15097				</table:table-cell>
15098				<xsl:call-template name="Parse-Catelog-Cell">
15099					<xsl:with-param name="par_CatelogArray" select="substring-after($par_CatelogArray, ',')"/>
15100				</xsl:call-template>
15101			</xsl:when>
15102			<xsl:otherwise>
15103				<table:table-cell office:value-type="string">
15104					<text:p>
15105						<xsl:value-of select="$par_CatelogArray"/>
15106					</text:p>
15107				</table:table-cell>
15108			</xsl:otherwise>
15109		</xsl:choose>
15110	</xsl:template>
15111	<xsl:template name="Set-Catalog-Cell">
15112		<xsl:param name="SeriesPos"/>
15113		<xsl:param name="CatalogValue"/>
15114		<xsl:param name="IsRightCatalog"/>
15115		<xsl:choose>
15116			<xsl:when test="$IsRightCatalog = 'true'">
15117				<xsl:copy-of select="$CatalogValue"/>
15118			</xsl:when>
15119			<xsl:otherwise>
15120				<xsl:variable name="quot">&quot;</xsl:variable>
15121				<xsl:choose>
15122					<xsl:when test="contains(string($CatalogValue), '{') and contains(string($CatalogValue), '}')">
15123						<xsl:call-template name="Parse-Catelog-Cell">
15124							<xsl:with-param name="par_CatelogArray" select="replace(substring-before(substring-after($CatalogValue, '{'), '}'), $quot, '')"/>
15125						</xsl:call-template>
15126					</xsl:when>
15127					<xsl:otherwise>
15128						<table:table-cell office:value-type="string">
15129							<text:p>
15130								<xsl:value-of select="$CatalogValue"/>
15131							</text:p>
15132						</table:table-cell>
15133					</xsl:otherwise>
15134				</xsl:choose>
15135			</xsl:otherwise>
15136		</xsl:choose>
15137	</xsl:template>
15138	<xsl:template name="Set-Series-Cell">
15139		<xsl:param name="SeriesPos"/>
15140		<xsl:param name="SeriesNameValue"/>
15141		<xsl:param name="IsRightSeriesName"/>
15142		<xsl:choose>
15143			<xsl:when test="$IsRightSeriesName = 'true'">
15144				<xsl:for-each select="$SeriesNameValue/table:table-cell[1]">
15145					<xsl:copy-of select="."/>
15146				</xsl:for-each>
15147			</xsl:when>
15148			<xsl:otherwise>
15149				<table:table-cell office:value-type="string">
15150					<text:p>
15151						<xsl:value-of select="$SeriesNameValue"/>
15152					</text:p>
15153				</table:table-cell>
15154			</xsl:otherwise>
15155		</xsl:choose>
15156	</xsl:template>
15157	<xsl:template name="MaxColumninLocal-Table">
15158		<xsl:param name="CurMaxCol"/>
15159		<xsl:choose>
15160			<xsl:when test="following-sibling::table:table-row">
15161				<xsl:for-each select="following-sibling::table:table-row[1]">
15162					<xsl:variable name="NewMaxCol">
15163						<xsl:variable name="nColCount" select="count(table:table-cell)"/>
15164						<xsl:choose>
15165							<xsl:when test="CurMaxCol &gt; nColCount">
15166								<xsl:value-of select="$CurMaxCol"/>
15167							</xsl:when>
15168							<xsl:otherwise>
15169								<xsl:value-of select="$nColCount"/>
15170							</xsl:otherwise>
15171						</xsl:choose>
15172					</xsl:variable>
15173					<xsl:call-template name="MaxColumninLocal-Table">
15174						<xsl:with-param name="CurMaxCol" select="$NewMaxCol"/>
15175					</xsl:call-template>
15176				</xsl:for-each>
15177			</xsl:when>
15178			<xsl:otherwise>
15179				<xsl:value-of select="$CurMaxCol"/>
15180			</xsl:otherwise>
15181		</xsl:choose>
15182	</xsl:template>
15183	<xsl:template name="CreateEmptyTableCell">
15184		<xsl:param name="par_Num" select="number('0')"/>
15185		<xsl:if test="number($par_Num) gt 0">
15186			<table:table-cell>
15187				<text:p/>
15188			</table:table-cell>
15189			<xsl:call-template name="CreateEmptyTableCell">
15190				<xsl:with-param name="par_Num" select="number($par_Num) - 1"/>
15191			</xsl:call-template>
15192		</xsl:if>
15193	</xsl:template>
15194	<xsl:template name="CreateDefaultCatelogs">
15195		<xsl:param name="par_Num" select="number('0')"/>
15196		<xsl:if test="number($par_Num) gt 0">
15197			<xsl:call-template name="CreateDefaultCatelogs">
15198				<xsl:with-param name="par_Num" select="number($par_Num) - 1"/>
15199			</xsl:call-template>
15200			<table:table-cell office:value-type="string">
15201				<text:p>
15202					<xsl:value-of select="$par_Num"/>
15203				</text:p>
15204			</table:table-cell>
15205		</xsl:if>
15206	</xsl:template>
15207	<xsl:template name="TableTable4chart">
15208		<table:table table:name="local-table">
15209			<xsl:variable name="reverse-row">
15210				<xsl:call-template name="CreateTmpLocTable"/>
15211			</xsl:variable>
15212			<!--test><xsl:copy-of select="$reverse-row"/></test-->
15213			<xsl:variable name="ColCount">
15214				<xsl:for-each select="$reverse-row/table:table-rows/table:table-row[1]">
15215					<xsl:variable name="CurMaxCol" select="count(table:table-cell)"/>
15216					<xsl:call-template name="MaxColumninLocal-Table">
15217						<xsl:with-param name="CurMaxCol" select="$CurMaxCol"/>
15218					</xsl:call-template>
15219				</xsl:for-each>
15220			</xsl:variable>
15221			<table:table-header-columns>
15222				<table:table-column/>
15223			</table:table-header-columns>
15224			<table:table-columns>
15225				<table:table-column>
15226					<xsl:attribute name="table:number-columns-repeated" select="number($ColCount)-1"/>
15227				</table:table-column>
15228			</table:table-columns>
15229			<!--table:table-header-rows-->
15230			<table:table-header-rows>
15231				<table:table-row>
15232					<table:table-cell>
15233						<text:p/>
15234					</table:table-cell>
15235					<xsl:for-each select="$reverse-row/table:table-header-rows/table:table-row">
15236						<xsl:choose>
15237							<xsl:when test="count(table:table-cell) = 0">
15238								<xsl:call-template name="CreateDefaultCatelogs">
15239									<xsl:with-param name="par_Num" select="number($ColCount) - 1"/>
15240								</xsl:call-template>
15241							</xsl:when>
15242							<xsl:when test="count(table:table-cell) ge number($ColCount) - 1 ">
15243								<xsl:copy-of select="table:table-cell[position() lt number($ColCount)]"/>
15244							</xsl:when>
15245							<xsl:otherwise>
15246								<xsl:copy-of select="table:table-cell"/>
15247								<xsl:call-template name="CreateEmptyTableCell">
15248									<xsl:with-param name="par_Num" select="number($ColCount) - count(table:table-cell) - 1"/>
15249								</xsl:call-template>
15250							</xsl:otherwise>
15251						</xsl:choose>
15252					</xsl:for-each>
15253				</table:table-row>
15254			</table:table-header-rows>
15255			<!--table:table-rows-->
15256			<xsl:copy-of select="$reverse-row/table:table-rows"/>
15257		</table:table>
15258	</xsl:template>
15259	<xsl:template name="LocalTableForChart">
15260		<xsl:param name="chartName"/>
15261		<xsl:for-each select="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201/扩展:扩展内容_B204[扩展:路径_B205 = $chartName]/扩展:内容_B206/扩展:local-table">
15262			<table:table table:name="local-table">
15263				<xsl:copy-of select="@*|node()"/>
15264			</table:table>
15265		</xsl:for-each>
15266	</xsl:template>
15267	<xsl:template name="OfficeBody4chart">
15268		<office:body>
15269			<office:chart>
15270				<chart:chart>
15271					<!--@xlink:href 用于读取local-table中的数据-->
15272					<xsl:if test="$document_type != 'spreadsheet'">
15273						<xsl:attribute name="xlink:href" select="'.'"/>
15274					</xsl:if>
15275					<xsl:variable name="ChartName" select="@标识符_E828"/>
15276					<!--anchor for chart-->
15277					<xsl:variable name="AnchorChart" select="key('rel_graphic_name',key('graph4chart',$ChartName)/@标识符_804B)"/>
15278					<xsl:for-each select="$AnchorChart">
15279						<xsl:for-each select="uof:位置_C620">
15280							<xsl:for-each select="uof:水平_4106/uof:绝对_4107">
15281								<xsl:if test="@值_4108">
15282									<xsl:attribute name="svg:x" select="concat(@值_4108,$uofUnit)"/>
15283								</xsl:if>
15284							</xsl:for-each>
15285							<xsl:for-each select="uof:垂直_410D/uof:绝对_4107">
15286								<xsl:if test="@值_4108">
15287									<xsl:attribute name="svg:y" select="concat(@值_4108,$uofUnit)"/>
15288								</xsl:if>
15289							</xsl:for-each>
15290						</xsl:for-each>
15291						<xsl:for-each select="uof:大小_C621">
15292							<xsl:if test="@宽_C605">
15293								<xsl:attribute name="svg:width" select="concat(@宽_C605,$uofUnit)"/>
15294							</xsl:if>
15295							<xsl:if test="@长_C604">
15296								<xsl:attribute name="svg:height" select="concat(@长_C604,$uofUnit)"/>
15297							</xsl:if>
15298						</xsl:for-each>
15299					</xsl:for-each>
15300					<xsl:for-each select="图表:绘图区_E747/图表:图表类型组集_E74C/图表:组_E74D[1]/图表:数据系列集_E74E/图表:数据系列_E74F[1]">
15301						<xsl:variable name="table-type" select="@类型_E75D"/>
15302						<xsl:variable name="table-subtype" select="@子类型_E777"/>
15303						<xsl:variable name="odfclass">
15304							<xsl:choose>
15305								<!--xsl:when test="$table-type='bar'">chart:bar</xsl:when>
15306						<xsl:when test="$table-type='line'">chart:line</xsl:when>
15307						<xsl:when test="$table-type='pie'">
15308							<xsl:choose>
15309								<xsl:when test="$table-subtype='pie_ring'">chart:ring</xsl:when>
15310								<xsl:otherwise>chart:circle</xsl:otherwise>
15311							</xsl:choose>
15312						</xsl:when-->
15313								<xsl:when test="$table-type='pie'">
15314									<xsl:value-of select="'chart:circle'"/>
15315								</xsl:when>
15316								<xsl:when test="$table-type='doughnut'">
15317									<xsl:value-of select="'chart:ring'"/>
15318								</xsl:when>
15319								<xsl:otherwise>
15320									<xsl:value-of select="concat('chart:',$table-type)"/>
15321								</xsl:otherwise>
15322							</xsl:choose>
15323						</xsl:variable>
15324						<xsl:attribute name="chart:class" select="$odfclass"/>
15325					</xsl:for-each>
15326					<xsl:attribute name="chart:style-name">chart-area</xsl:attribute>
15327					<!--UOF2.0的标题定义存在问题:坐标轴、图表下标题编号E736,E7A0不一致-->
15328					<xsl:apply-templates select="图表:标题_E736" mode="chartbody">
15329						<xsl:with-param name="ChartSize" select="$AnchorChart/uof:大小_C621"/>
15330					</xsl:apply-templates>
15331					<xsl:apply-templates select="图表:图例_E794" mode="chartbody">
15332						<xsl:with-param name="ChartSize" select="$AnchorChart/uof:大小_C621"/>
15333					</xsl:apply-templates>
15334					<xsl:call-template name="PlotArea4chart">
15335						<xsl:with-param name="ChartSize" select="$AnchorChart/uof:大小_C621"/>
15336					</xsl:call-template>
15337					<xsl:choose>
15338						<xsl:when test="$document_type != 'spreadsheet'">
15339							<!--处理文字处理和演示文稿模块的图表功能-->
15340							<xsl:call-template name="LocalTableForChart">
15341								<xsl:with-param name="chartName" select="$ChartName"/>
15342							</xsl:call-template>
15343						</xsl:when>
15344						<xsl:otherwise>
15345							<xsl:call-template name="TableTable4chart"/>
15346						</xsl:otherwise>
15347					</xsl:choose>
15348				</chart:chart>
15349			</office:chart>
15350		</office:body>
15351	</xsl:template>
15352	<xsl:template match="图表:图表_E837">
15353		<xsl:variable name="var_ObjectName">
15354			<xsl:variable name="var_GenerateID" select="generate-id(.)"/>
15355			<xsl:value-of select="concat('./Object ',$var_GenerateID)"/>
15356		</xsl:variable>
15357		<xsl:element name="draw:frame">
15358			<!-- Waiting, 目前对图表的定位仍存在问题 xsl:attribute name="draw:z-index"><xsl:value-of select="'0'"/></xsl:attribute>
15359			<xsl:attribute name="svg:width"><xsl:value-of select="concat(@表:宽度,$uofUnit)"/></xsl:attribute>
15360			<xsl:attribute name="svg:height"><xsl:value-of select="concat(@表:高度,$uofUnit)"/></xsl:attribute>
15361			<xsl:attribute name="svg:x"><xsl:value-of select="concat(@表:x坐标,$uofUnit)"/></xsl:attribute>
15362			<xsl:attribute name="svg:y"><xsl:value-of select="concat(@表:y坐标,$uofUnit)"/></xsl:attribute-->
15363			<xsl:element name="draw:object">
15364				<!-- no sure, these attributes's relation , xsl:attribute name="draw:notify-on-update-of-ranges"><xsl:choose><xsl:when test="表:数据源/@表:数据区域"><xsl:value-of select="表:数据源/@表:数据区域"/></xsl:when><xsl:otherwise><xsl:for-each select="表:数据源/表:系列"><xsl:if test="@表:系列值"><xsl:analyze-string select="@表:系列值" regex="='(.*?)'!([A-Z,a-z]{{1,2}}\d+):?([A-Z,a-z]{{1,2}}\d+)?"><xsl:matching-substring><xsl:choose><xsl:when test="regex-group(3) = ''"><xsl:value-of select="concat(regex-group(1), '.', regex-group(2))"/></xsl:when><xsl:otherwise><xsl:value-of select="concat(regex-group(1), '.', regex-group(2), ':', regex-group(1), '.', regex-group(3))"/></xsl:otherwise></xsl:choose><xsl:value-of select="' '"/></xsl:matching-substring></xsl:analyze-string></xsl:if></xsl:for-each><xsl:for-each-group select="表:数据源/表:系列" group-by="@表:分类名"><xsl:analyze-string select="current-grouping-key()" regex="='(.*?)'!([A-Z,a-z]{{1,2}}\d+):?([A-Z,a-z]{{1,2}}\d+)?"><xsl:matching-substring><xsl:choose><xsl:when test="regex-group(3) = ''"><xsl:value-of select="concat(regex-group(1), '.', regex-group(2), ':', regex-group(1), '.', regex-group(2))"/></xsl:when><xsl:otherwise><xsl:value-of select="concat(regex-group(1), '.', regex-group(2), ':', regex-group(1), '.', regex-group(3))"/></xsl:otherwise></xsl:choose><xsl:value-of select="' '"/></xsl:matching-substring></xsl:analyze-string></xsl:for-each-group><xsl:for-each-group select="表:数据源/表:系列" group-by="@表:系列名"><xsl:analyze-string select="current-grouping-key()" regex="='(.*?)'!([A-Z,a-z]{{1,2}}\d+):?([A-Z,a-z]{{1,2}}\d+)?"><xsl:matching-substring><xsl:choose><xsl:when test="regex-group(3) = ''"><xsl:value-of select="concat(regex-group(1), '.', regex-group(2), ':', regex-group(1), '.', regex-group(2))"/></xsl:when><xsl:otherwise><xsl:value-of select="concat(regex-group(1), '.', regex-group(2), ':', regex-group(1), '.', regex-group(3))"/></xsl:otherwise></xsl:choose><xsl:value-of select="' '"/></xsl:matching-substring></xsl:analyze-string></xsl:for-each-group></xsl:otherwise></xsl:choose></xsl:attribute>
15365				<xsl:attribute name="xlink:href"><xsl:value-of select="$var_ObjectName"/></xsl:attribute-->
15366				<xsl:attribute name="xlink:type">simple</xsl:attribute>
15367				<xsl:attribute name="xlink:show">embed</xsl:attribute>
15368				<xsl:attribute name="xlink:actuate">onLoad</xsl:attribute>
15369			</xsl:element>
15370		</xsl:element>
15371	</xsl:template>
15372	<xsl:variable name="ooMaxColumnNum" select="1024"/>
15373	<xsl:variable name="ooMaxRowNum" select="65536"/>
15374	<!--xsl:template match="uof:锚点_C644|演:锚点_E7BA|uof:锚点_E7BA" mode="table"-->
15375	<xsl:template match="uof:锚点_C644" mode="table">
15376		<xsl:call-template name="ObjectContent"/>
15377	</xsl:template>
15378	<!-- OASIS OpenDocument Format change:
15379		Excel   "=RC4*6"
15380		OOoXML "=$D22*6"
15381	 OASIS XML "of:=[.$D22]*6" -->
15382	<xsl:template name="translate-expression">
15383		<!--  return position or range for formula or other -->
15384		<xsl:param name="cell-row-pos"/>
15385		<!-- the position in row (vertical) of cell -->
15386		<xsl:param name="cell-column-pos"/>
15387		<!-- the position in column (horizontal of cell -->
15388		<xsl:param name="expression"/>
15389		<!-- as mode changes a '[.' resp. ']' is written out  -->
15390		<xsl:param name="return-value"/>
15391		<!-- expression of table:cell-range-address is different than formula (e.g. no prefix)  -->
15392		<xsl:param name="isRangeAddress"/>
15393		<!-- determines if RC translate -->
15394		<xsl:param name="isRCtrans"/>
15395		<!-- recomposed expression containing cell positions after every conversion -->
15396		<xsl:param name="is-range-mode" select="'false'"/>
15397		<!-- value to be given out later -->
15398		<!-- to judge whether this input expression contains any cell position to convert -->
15399		<xsl:variable name="temp-range">
15400			<xsl:choose>
15401				<xsl:when test="$expression != ''">
15402					<xsl:call-template name="parse-range-name">
15403						<xsl:with-param name="expression" select="$expression"/>
15404						<xsl:with-param name="return-value" select="''"/>
15405					</xsl:call-template>
15406				</xsl:when>
15407				<xsl:otherwise>
15408					<xsl:value-of select="''"/>
15409				</xsl:otherwise>
15410			</xsl:choose>
15411		</xsl:variable>
15412		<!-- if $range-type = 1, then range is representing a sheet, function's name or separated symbol, but not cell position,
15413			 or if $range-type = 2, range should be handled because it contains certain cell position.
15414			 The first character marks the type of that expression. -->
15415		<xsl:variable name="range-type">
15416			<xsl:choose>
15417				<xsl:when test="substring($temp-range, 1, 1) = '1'">
15418					<xsl:value-of select="1"/>
15419				</xsl:when>
15420				<xsl:when test="substring($temp-range, 1, 1) = '2'">
15421					<xsl:value-of select="2"/>
15422				</xsl:when>
15423				<xsl:otherwise>
15424					<xsl:value-of select="2"/>
15425				</xsl:otherwise>
15426			</xsl:choose>
15427		</xsl:variable>
15428		<!-- remove that added range type token -->
15429		<xsl:variable name="current-range">
15430			<xsl:value-of select="substring($temp-range, 2)"/>
15431		</xsl:variable>
15432		<xsl:choose>
15433			<xsl:when test="$range-type = 1">
15434				<!-- Nothing to convert, so just join the front and behind strings. -->
15435				<xsl:call-template name="translate-expression">
15436					<xsl:with-param name="cell-row-pos" select="$cell-row-pos"/>
15437					<xsl:with-param name="cell-column-pos" select="$cell-column-pos"/>
15438					<xsl:with-param name="expression">
15439						<!-- get current converting position from $temp-token or $current-range, then join the expression. -->
15440						<xsl:choose>
15441							<xsl:when test="contains($current-range, &quot;&apos;!&quot;)">
15442								<xsl:value-of select="substring-after($expression, '!')"/>
15443							</xsl:when>
15444							<xsl:when test="contains($current-range, '#$')">
15445								<!-- because of recomposing of string, the $current-range may not be the pit
15446							of $expression, so the char #$ should not be used for nominal -->
15447								<xsl:variable name="temp-token">
15448									<xsl:choose>
15449										<xsl:when test="contains($current-range, '\')">
15450											<xsl:value-of select="concat(']', substring-after($current-range, '#$'), &quot;&apos;&quot;)"/>
15451										</xsl:when>
15452										<xsl:otherwise>
15453											<xsl:value-of select="substring-after($current-range, '#$')"/>
15454										</xsl:otherwise>
15455									</xsl:choose>
15456								</xsl:variable>
15457								<xsl:value-of select="substring-after($expression, $temp-token)"/>
15458							</xsl:when>
15459							<xsl:otherwise>
15460								<xsl:value-of select="substring-after($expression, $current-range)"/>
15461							</xsl:otherwise>
15462						</xsl:choose>
15463					</xsl:with-param>
15464					<xsl:with-param name="return-value">
15465						<!-- react on range mode change (when to insert closing ']' or in case of '!' change the mode to RANGE and create open '[' -->
15466						<xsl:choose>
15467							<xsl:when test="$current-range = '=' and $return-value = '' and not($isRangeAddress)">
15468								<xsl:text>of:=</xsl:text>
15469							</xsl:when>
15470							<xsl:when test="contains($current-range, '!') and not($isRangeAddress)">
15471								<xsl:choose>
15472									<xsl:when test="$isRCtrans = 'true'">
15473										<xsl:value-of select="concat($return-value, '[', $current-range)"/>
15474									</xsl:when>
15475									<xsl:otherwise>
15476										<xsl:value-of select="concat($return-value, $current-range)"/>
15477									</xsl:otherwise>
15478								</xsl:choose>
15479							</xsl:when>
15480							<xsl:otherwise>
15481								<xsl:choose>
15482									<xsl:when test="$is-range-mode = 'true' and $current-range != ':' and not($isRangeAddress)">
15483										<xsl:value-of select="concat($return-value, ']', substring-before($expression, $current-range), $current-range)"/>
15484									</xsl:when>
15485									<xsl:otherwise>
15486										<xsl:value-of select="concat($return-value, substring-before($expression, $current-range), $current-range)"/>
15487									</xsl:otherwise>
15488								</xsl:choose>
15489							</xsl:otherwise>
15490						</xsl:choose>
15491					</xsl:with-param>
15492					<xsl:with-param name="is-range-mode">
15493						<xsl:choose>
15494							<!-- ! is the separator of worksheet and range
15495								 : is the separator for a cell range -->
15496							<xsl:when test="contains($current-range, '!') or $current-range = ':'">
15497								<xsl:value-of select="'true'"/>
15498							</xsl:when>
15499							<xsl:otherwise>
15500								<xsl:value-of select="'false'"/>
15501							</xsl:otherwise>
15502						</xsl:choose>
15503					</xsl:with-param>
15504					<xsl:with-param name="isRangeAddress" select="$isRangeAddress"/>
15505					<xsl:with-param name="isRCtrans" select="$isRCtrans"/>
15506				</xsl:call-template>
15507			</xsl:when>
15508			<xsl:otherwise>
15509				<!-- types of range to handle in $current-range, i.e. the cell position expression to convert
15510					1: special cell including row and column; e.g. R4C5
15511					2: whole row; e.g. R3
15512					3: whole column; e.g. C5
15513					4: other name not for cell or row/column; e.g. RANDOM() or something unknown
15514				-->
15515				<xsl:variable name="handle-type">
15516					<xsl:choose>
15517						<xsl:when test="$isRCtrans = 'false'">
15518							<xsl:value-of select="0"/>
15519						</xsl:when>
15520						<xsl:when test="starts-with($current-range, 'R')">
15521							<!-- It's type 1 or type 2 or 4/unknown cell position. -->
15522							<xsl:choose>
15523								<xsl:when test="contains($current-range, 'C')">
15524									<!-- It's type 1, specifying the cell position or 4/unknown -->
15525									<xsl:variable name="part-type-r">
15526										<xsl:call-template name="handle-type-number">
15527											<xsl:with-param name="t-part" select="substring-before( substring-after($current-range, 'R'), 'C')"/>
15528										</xsl:call-template>
15529									</xsl:variable>
15530									<xsl:variable name="part-type-c">
15531										<xsl:call-template name="handle-type-number">
15532											<xsl:with-param name="t-part" select="substring-after($current-range, 'C')"/>
15533										</xsl:call-template>
15534									</xsl:variable>
15535									<xsl:choose>
15536										<xsl:when test="($part-type-r = 1) and ($part-type-c = 1)">
15537											<xsl:value-of select="1"/>
15538										</xsl:when>
15539										<xsl:otherwise>
15540											<xsl:value-of select="4"/>
15541										</xsl:otherwise>
15542									</xsl:choose>
15543								</xsl:when>
15544								<xsl:otherwise>
15545									<!-- It's type 2 specifying the cell position, or 4/unknown. -->
15546									<xsl:variable name="part-type">
15547										<xsl:call-template name="handle-type-number">
15548											<xsl:with-param name="t-part" select="substring-after($current-range, 'R')"/>
15549										</xsl:call-template>
15550									</xsl:variable>
15551									<xsl:choose>
15552										<xsl:when test="$part-type = 1">
15553											<xsl:value-of select="2"/>
15554										</xsl:when>
15555										<xsl:when test="$part-type = 2">
15556											<xsl:value-of select="4"/>
15557										</xsl:when>
15558										<xsl:otherwise>
15559											<xsl:value-of select="4"/>
15560										</xsl:otherwise>
15561									</xsl:choose>
15562								</xsl:otherwise>
15563							</xsl:choose>
15564						</xsl:when>
15565						<xsl:when test="starts-with($current-range, 'C')">
15566							<!-- It's type 3 of cell position, or 4/unknown -->
15567							<xsl:variable name="part-type">
15568								<xsl:call-template name="handle-type-number">
15569									<xsl:with-param name="t-part" select="substring-after($current-range, 'C')"/>
15570								</xsl:call-template>
15571							</xsl:variable>
15572							<xsl:choose>
15573								<xsl:when test="$part-type = 1">
15574									<xsl:value-of select="3"/>
15575								</xsl:when>
15576								<xsl:when test="$part-type = 2">
15577									<xsl:value-of select="4"/>
15578								</xsl:when>
15579								<xsl:otherwise>
15580									<xsl:value-of select="4"/>
15581								</xsl:otherwise>
15582							</xsl:choose>
15583						</xsl:when>
15584						<xsl:otherwise>
15585							<!-- It's type 4, not cell position -->
15586							<xsl:value-of select="4"/>
15587						</xsl:otherwise>
15588					</xsl:choose>
15589				</xsl:variable>
15590				<!-- Start to convert that cell position expression, that cell position unit -->
15591				<xsl:choose>
15592					<xsl:when test="$handle-type = 1">
15593						<!-- It's type 1, e.g. R1C2 -->
15594						<!-- process the row part -->
15595						<xsl:variable name="after-R">
15596							<xsl:value-of select="substring(substring-after($current-range,'R'),1,1)"/>
15597						</xsl:variable>
15598						<xsl:choose>
15599							<!-- found one cell unit -->
15600							<xsl:when test="$after-R='C' or $after-R='[' or $after-R='0' or $after-R='1' or $after-R='2' or $after-R='3' or $after-R='4' or $after-R='5' or $after-R='6' or $after-R='7' or $after-R='8' or $after-R='9'">
15601								<xsl:variable name="row-pos">
15602									<xsl:choose>
15603										<xsl:when test="$after-R='['">
15604											<xsl:value-of select="$cell-row-pos + number(substring-before( substring-after($current-range,'R['),']'))"/>
15605										</xsl:when>
15606										<xsl:when test="$after-R='C'">
15607											<xsl:value-of select="$cell-row-pos"/>
15608										</xsl:when>
15609										<xsl:otherwise>
15610											<xsl:value-of select="substring-before(substring-after($current-range,'R'),'C')"/>
15611										</xsl:otherwise>
15612									</xsl:choose>
15613								</xsl:variable>
15614								<xsl:variable name="row-pos-style">
15615									<xsl:choose>
15616										<xsl:when test="$after-R='[' or $after-R='C'">relative</xsl:when>
15617										<xsl:otherwise>absolute</xsl:otherwise>
15618									</xsl:choose>
15619								</xsl:variable>
15620								<!-- process the column part -->
15621								<xsl:variable name="after-C">
15622									<xsl:value-of select="substring(substring-after(substring-after($current-range,'R'),'C'),1,1)"/>
15623								</xsl:variable>
15624								<xsl:variable name="column-digit-length">
15625									<xsl:choose>
15626										<xsl:when test="$after-C='0' or $after-C='1' or $after-C='2' or $after-C='3' or $after-C='4' or $after-C='5' or $after-C='6' or $after-C='7' or $after-C='8' or $after-C='9'">
15627											<xsl:call-template name="get-digit-length">
15628												<xsl:with-param name="complexive-string" select="substring-after(substring-after($current-range,'R'),'C')"/>
15629											</xsl:call-template>
15630										</xsl:when>
15631									</xsl:choose>
15632								</xsl:variable>
15633								<xsl:variable name="column-pos">
15634									<xsl:choose>
15635										<xsl:when test="$after-C='['">
15636											<xsl:value-of select="$cell-column-pos + number(substring-before(substring-after(substring-after($current-range,'R'),'C['),']'))"/>
15637										</xsl:when>
15638										<xsl:when test="$after-C='0' or $after-C='1' or $after-C='2' or $after-C='3' or $after-C='4' or $after-C='5' or $after-C='6' or $after-C='7' or $after-C='8' or $after-C='9'">
15639											<xsl:value-of select="substring(substring-after(substring-after($current-range,'R'),'C'),1,$column-digit-length)"/>
15640										</xsl:when>
15641										<xsl:otherwise>
15642											<xsl:value-of select="$cell-column-pos"/>
15643										</xsl:otherwise>
15644									</xsl:choose>
15645								</xsl:variable>
15646								<xsl:variable name="column-pos-style">
15647									<xsl:choose>
15648										<xsl:when test="$after-C='0' or $after-C='1' or $after-C='2' or $after-C='3' or $after-C='4' or $after-C='5' or $after-C='6' or $after-C='7' or $after-C='8' or $after-C='9'">absolute</xsl:when>
15649										<xsl:otherwise>relative</xsl:otherwise>
15650									</xsl:choose>
15651								</xsl:variable>
15652								<xsl:variable name="trans-unit">
15653									<xsl:call-template name="translate-unit">
15654										<xsl:with-param name="column-number" select="$column-pos"/>
15655										<xsl:with-param name="row-number" select="$row-pos"/>
15656										<xsl:with-param name="column-pos-style" select="$column-pos-style"/>
15657										<xsl:with-param name="row-pos-style" select="$row-pos-style"/>
15658									</xsl:call-template>
15659								</xsl:variable>
15660								<xsl:variable name="name-unit" select="concat(substring-before($expression, $current-range), $trans-unit)"/>
15661								<xsl:call-template name="translate-expression">
15662									<xsl:with-param name="cell-row-pos" select="$cell-row-pos"/>
15663									<xsl:with-param name="cell-column-pos" select="$cell-column-pos"/>
15664									<xsl:with-param name="expression" select="substring-after($expression, $current-range)"/>
15665									<xsl:with-param name="return-value">
15666										<xsl:choose>
15667											<xsl:when test="$is-range-mode = 'true'">
15668												<xsl:value-of select="concat($return-value, '.', $name-unit)"/>
15669											</xsl:when>
15670											<xsl:otherwise>
15671												<xsl:value-of select="concat($return-value, '[.', $name-unit)"/>
15672											</xsl:otherwise>
15673										</xsl:choose>
15674									</xsl:with-param>
15675									<xsl:with-param name="is-range-mode" select="'true'"/>
15676									<xsl:with-param name="isRangeAddress" select="$isRangeAddress"/>
15677									<xsl:with-param name="isRCtrans" select="$isRCtrans"/>
15678								</xsl:call-template>
15679							</xsl:when>
15680							<xsl:otherwise>
15681								<xsl:variable name="name-unit" select="concat(substring-before($expression, $current-range), translate( substring-before(substring-after($expression, '('),'R'),',!', ';.'))"/>
15682								<xsl:call-template name="translate-expression">
15683									<xsl:with-param name="cell-row-pos" select="$cell-row-pos"/>
15684									<xsl:with-param name="cell-column-pos" select="$cell-column-pos"/>
15685									<xsl:with-param name="expression" select="substring-after($current-range,'R')"/>
15686									<xsl:with-param name="return-value">
15687										<xsl:choose>
15688											<xsl:when test="$is-range-mode = 'true'">
15689												<xsl:value-of select="concat($return-value, $name-unit)"/>
15690											</xsl:when>
15691											<xsl:otherwise>
15692												<xsl:value-of select="concat($return-value, '[.', $name-unit)"/>
15693											</xsl:otherwise>
15694										</xsl:choose>
15695									</xsl:with-param>
15696									<xsl:with-param name="is-range-mode" select="'true'"/>
15697									<xsl:with-param name="isRangeAddress" select="$isRangeAddress"/>
15698									<xsl:with-param name="isRCtrans" select="$isRCtrans"/>
15699								</xsl:call-template>
15700							</xsl:otherwise>
15701						</xsl:choose>
15702					</xsl:when>
15703					<xsl:when test="$handle-type = 2">
15704						<!-- It's type 2, e.g. R3 -->
15705						<!-- process the range only including a whole row -->
15706						<xsl:variable name="after-R">
15707							<xsl:value-of select="substring(substring-after($current-range,'R'),1,1)"/>
15708						</xsl:variable>
15709						<xsl:choose>
15710							<xsl:when test="$after-R='[' or $after-R='0' or $after-R='1' or $after-R='2' or $after-R='3' or $after-R='4' or $after-R='5' or $after-R='6' or $after-R='7' or $after-R='8' or $after-R='9'">
15711								<xsl:variable name="row-number">
15712									<xsl:choose>
15713										<xsl:when test="$after-R = '['">
15714											<xsl:value-of select="substring-before(substring-after($current-range, 'R['), ']')"/>
15715										</xsl:when>
15716										<xsl:otherwise>
15717											<xsl:value-of select="substring-after($current-range, 'R')"/>
15718										</xsl:otherwise>
15719									</xsl:choose>
15720								</xsl:variable>
15721								<xsl:variable name="row-pos">
15722									<xsl:choose>
15723										<xsl:when test="$after-R='['">
15724											<xsl:value-of select="$cell-row-pos + $row-number"/>
15725										</xsl:when>
15726										<xsl:when test="$after-R='0' or $after-R='1' or $after-R='2' or $after-R='3' or $after-R='4' or $after-R='5' or $after-R='6' or $after-R='7' or $after-R='8' or $after-R='9'">
15727											<xsl:value-of select="$row-number"/>
15728										</xsl:when>
15729										<xsl:otherwise>
15730											<xsl:value-of select="$cell-row-pos"/>
15731										</xsl:otherwise>
15732									</xsl:choose>
15733								</xsl:variable>
15734								<xsl:variable name="trans-unit1">
15735									<xsl:call-template name="translate-unit">
15736										<xsl:with-param name="column-number" select="1"/>
15737										<xsl:with-param name="row-number" select="$row-pos"/>
15738										<xsl:with-param name="column-pos-style" select="'relative'"/>
15739										<xsl:with-param name="row-pos-style" select="'relative'"/>
15740									</xsl:call-template>
15741								</xsl:variable>
15742								<xsl:variable name="trans-unit2">
15743									<xsl:call-template name="translate-unit">
15744										<xsl:with-param name="column-number" select="256"/>
15745										<xsl:with-param name="row-number" select="$row-pos"/>
15746										<xsl:with-param name="column-pos-style" select="'relative'"/>
15747										<xsl:with-param name="row-pos-style" select="'relative'"/>
15748									</xsl:call-template>
15749								</xsl:variable>
15750								<xsl:variable name="name-unit" select="concat(substring-before($expression, $current-range), $trans-unit1, ':.', $trans-unit2)"/>
15751								<xsl:call-template name="translate-expression">
15752									<xsl:with-param name="cell-row-pos" select="$cell-row-pos"/>
15753									<xsl:with-param name="cell-column-pos" select="$cell-column-pos"/>
15754									<xsl:with-param name="expression" select="substring-after($expression, $current-range)"/>
15755									<xsl:with-param name="return-value">
15756										<xsl:choose>
15757											<xsl:when test="$is-range-mode = 'true'">
15758												<xsl:value-of select="concat($return-value, '.', $name-unit)"/>
15759											</xsl:when>
15760											<xsl:otherwise>
15761												<xsl:value-of select="concat($return-value, '[.', $name-unit)"/>
15762											</xsl:otherwise>
15763										</xsl:choose>
15764									</xsl:with-param>
15765									<xsl:with-param name="is-range-mode" select="'true'"/>
15766									<xsl:with-param name="isRangeAddress" select="$isRangeAddress"/>
15767									<xsl:with-param name="isRCtrans" select="$isRCtrans"/>
15768								</xsl:call-template>
15769							</xsl:when>
15770							<xsl:otherwise>
15771								<xsl:variable name="name-unit" select="concat(substring-before($expression, $current-range), translate( substring-before($current-range,'R'),',!', ';.'),'R')"/>
15772								<xsl:call-template name="translate-expression">
15773									<xsl:with-param name="cell-row-pos" select="$cell-row-pos"/>
15774									<xsl:with-param name="cell-column-pos" select="$cell-column-pos"/>
15775									<xsl:with-param name="expression" select="substring-after($current-range,'R')"/>
15776									<xsl:with-param name="return-value">
15777										<xsl:choose>
15778											<xsl:when test="$is-range-mode = 'true'">
15779												<xsl:value-of select="concat($return-value, '.', $name-unit)"/>
15780											</xsl:when>
15781											<xsl:otherwise>
15782												<xsl:value-of select="concat($return-value, '[.', $name-unit)"/>
15783											</xsl:otherwise>
15784										</xsl:choose>
15785									</xsl:with-param>
15786									<xsl:with-param name="is-range-mode" select="'true'"/>
15787									<xsl:with-param name="isRangeAddress" select="$isRangeAddress"/>
15788									<xsl:with-param name="isRCtrans" select="$isRCtrans"/>
15789								</xsl:call-template>
15790							</xsl:otherwise>
15791						</xsl:choose>
15792					</xsl:when>
15793					<xsl:when test="$handle-type = 3">
15794						<!-- It's type 3, e.g. C4 -->
15795						<!-- process the range only including a whole column -->
15796						<xsl:variable name="after-C">
15797							<xsl:value-of select="substring(substring-after($current-range,'C'),1,1)"/>
15798						</xsl:variable>
15799						<xsl:choose>
15800							<xsl:when test="$after-C='[' or $after-C='0' or $after-C='1' or $after-C='2' or $after-C='3' or $after-C='4' or $after-C='5' or $after-C='6' or $after-C='7' or $after-C='8' or $after-C='9'">
15801								<xsl:variable name="column-number">
15802									<xsl:choose>
15803										<xsl:when test="$after-C = '['">
15804											<xsl:value-of select="substring-before(substring-after($current-range, 'C['), ']')"/>
15805										</xsl:when>
15806										<xsl:otherwise>
15807											<xsl:value-of select="substring-after($current-range, 'C')"/>
15808										</xsl:otherwise>
15809									</xsl:choose>
15810								</xsl:variable>
15811								<xsl:variable name="column-pos">
15812									<xsl:choose>
15813										<xsl:when test="$after-C='['">
15814											<xsl:value-of select="$cell-column-pos + $column-number"/>
15815										</xsl:when>
15816										<xsl:when test="$after-C='0' or $after-C='1' or $after-C='2' or $after-C='3' or $after-C='4' or $after-C='5' or $after-C='6' or $after-C='7' or $after-C='8' or $after-C='9'">
15817											<xsl:value-of select="$column-number"/>
15818										</xsl:when>
15819										<xsl:otherwise>
15820											<xsl:value-of select="$cell-column-pos"/>
15821										</xsl:otherwise>
15822									</xsl:choose>
15823								</xsl:variable>
15824								<xsl:variable name="trans-unit1">
15825									<xsl:call-template name="translate-unit">
15826										<xsl:with-param name="column-number" select="$column-pos"/>
15827										<xsl:with-param name="row-number" select="1"/>
15828										<xsl:with-param name="column-pos-style" select="'relative'"/>
15829										<xsl:with-param name="row-pos-style" select="'relative'"/>
15830									</xsl:call-template>
15831								</xsl:variable>
15832								<xsl:variable name="trans-unit2">
15833									<xsl:call-template name="translate-unit">
15834										<xsl:with-param name="column-number" select="$column-pos"/>
15835										<xsl:with-param name="row-number" select="65565"/>
15836										<xsl:with-param name="column-pos-style" select="'relative'"/>
15837										<xsl:with-param name="row-pos-style" select="'relative'"/>
15838									</xsl:call-template>
15839								</xsl:variable>
15840								<xsl:variable name="name-unit" select="concat(substring-before($expression, $current-range), $trans-unit1, ':.', $trans-unit2)"/>
15841								<xsl:call-template name="translate-expression">
15842									<xsl:with-param name="cell-row-pos" select="$cell-row-pos"/>
15843									<xsl:with-param name="cell-column-pos" select="$cell-column-pos"/>
15844									<xsl:with-param name="expression" select="substring-after($expression, $current-range)"/>
15845									<xsl:with-param name="return-value">
15846										<xsl:choose>
15847											<xsl:when test="$is-range-mode = 'true'">
15848												<xsl:value-of select="concat($return-value, '.', $name-unit)"/>
15849											</xsl:when>
15850											<xsl:otherwise>
15851												<xsl:value-of select="concat($return-value, '[.', $name-unit)"/>
15852											</xsl:otherwise>
15853										</xsl:choose>
15854									</xsl:with-param>
15855									<xsl:with-param name="is-range-mode" select="'true'"/>
15856									<xsl:with-param name="isRangeAddress" select="$isRangeAddress"/>
15857									<xsl:with-param name="isRCtrans" select="$isRCtrans"/>
15858								</xsl:call-template>
15859							</xsl:when>
15860							<xsl:otherwise>
15861								<xsl:variable name="name-unit" select="concat(substring-before($expression, $current-range), translate( substring-before($current-range,'C'),',!', ';.'),'C')"/>
15862								<xsl:call-template name="translate-expression">
15863									<xsl:with-param name="cell-row-pos" select="$cell-row-pos"/>
15864									<xsl:with-param name="cell-column-pos" select="$cell-column-pos"/>
15865									<xsl:with-param name="expression" select="substring-after($current-range,'C')"/>
15866									<xsl:with-param name="return-value">
15867										<xsl:choose>
15868											<xsl:when test="$is-range-mode = 'true'">
15869												<xsl:value-of select="concat($return-value, '.', $name-unit)"/>
15870											</xsl:when>
15871											<xsl:otherwise>
15872												<xsl:value-of select="concat($return-value, '[.', $name-unit)"/>
15873											</xsl:otherwise>
15874										</xsl:choose>
15875									</xsl:with-param>
15876									<xsl:with-param name="is-range-mode" select="'true'"/>
15877									<xsl:with-param name="isRangeAddress" select="$isRangeAddress"/>
15878									<xsl:with-param name="isRCtrans" select="$isRCtrans"/>
15879								</xsl:call-template>
15880							</xsl:otherwise>
15881						</xsl:choose>
15882					</xsl:when>
15883					<xsl:otherwise>
15884						<!-- It's unknown, so just jump over it -->
15885						<xsl:variable name="next-pit" select="substring-after($expression, $current-range)"/>
15886						<xsl:choose>
15887							<xsl:when test="contains($next-pit, '+') or contains($next-pit, '-') or contains($next-pit, '*') or contains($next-pit, '/') or contains($next-pit, ')') or contains($next-pit, '^') or contains($next-pit, ':') or contains($next-pit, '&quot;') or contains($next-pit, ';') or contains($next-pit, ',') or contains($next-pit, '[')">
15888								<xsl:call-template name="translate-expression">
15889									<xsl:with-param name="cell-row-pos" select="$cell-row-pos"/>
15890									<xsl:with-param name="cell-column-pos" select="$cell-column-pos"/>
15891									<xsl:with-param name="expression" select="substring-after($expression, $current-range)"/>
15892									<xsl:with-param name="return-value" select="concat($return-value, substring-before($expression, $current-range), $current-range)"/>
15893									<xsl:with-param name="is-range-mode" select="'false'"/>
15894									<xsl:with-param name="isRangeAddress" select="$isRangeAddress"/>
15895									<xsl:with-param name="isRCtrans" select="$isRCtrans"/>
15896								</xsl:call-template>
15897							</xsl:when>
15898							<xsl:otherwise>
15899								<!-- return the final range or formula -->
15900								<xsl:choose>
15901									<!-- in case the closing bracket of the range wasn't set, do it now  -->
15902									<xsl:when test="$is-range-mode = 'true' and $current-range = ''">
15903										<xsl:choose>
15904											<xsl:when test="$isRCtrans = 'false'">
15905												<xsl:value-of select="translate( concat($return-value, ']'),',!', ';.')"/>
15906											</xsl:when>
15907											<xsl:otherwise>
15908												<xsl:value-of select="translate( concat($return-value, ']'),',!', ';')"/>
15909											</xsl:otherwise>
15910										</xsl:choose>
15911									</xsl:when>
15912									<xsl:otherwise>
15913										<xsl:choose>
15914											<xsl:when test="$isRCtrans = 'false'">
15915												<xsl:value-of select="translate( concat($return-value, substring-before($expression, $current-range), $current-range),',!', ';.')"/>
15916											</xsl:when>
15917											<xsl:otherwise>
15918												<xsl:value-of select="translate( concat($return-value, substring-before($expression, $current-range), $current-range),',!', ';')"/>
15919											</xsl:otherwise>
15920										</xsl:choose>
15921									</xsl:otherwise>
15922								</xsl:choose>
15923							</xsl:otherwise>
15924						</xsl:choose>
15925					</xsl:otherwise>
15926				</xsl:choose>
15927			</xsl:otherwise>
15928		</xsl:choose>
15929	</xsl:template>
15930	<xsl:template name="parse-range-name">
15931		<!-- return the string or name for next handle. the type 1 is names of function, sheet, special separated symbol, not to parse as range; type 2 is the range including R/C to be parsed -->
15932		<xsl:param name="expression"/>
15933		<xsl:param name="return-value"/>
15934		<xsl:variable name="first-one" select="substring($expression,1,1)"/>
15935		<xsl:choose>
15936			<xsl:when test="$first-one = '='">
15937				<xsl:choose>
15938					<xsl:when test="string-length(normalize-space($return-value)) &gt; 0">
15939						<xsl:value-of select="concat('2', $return-value)"/>
15940					</xsl:when>
15941					<xsl:otherwise>
15942						<xsl:text>1=</xsl:text>
15943					</xsl:otherwise>
15944				</xsl:choose>
15945			</xsl:when>
15946			<xsl:when test="$first-one='(' or $first-one='!' or $first-one='&amp;'">
15947				<xsl:value-of select="concat('1', $return-value, $first-one)"/>
15948			</xsl:when>
15949			<xsl:when test="$first-one='['">
15950				<xsl:choose>
15951					<xsl:when test="starts-with(substring-after($expression, ']'), 'C')">
15952						<xsl:call-template name="parse-range-name">
15953							<xsl:with-param name="expression" select="substring-after($expression, ']')"/>
15954							<xsl:with-param name="return-value" select="concat($return-value, substring-before($expression, ']'), ']')"/>
15955						</xsl:call-template>
15956					</xsl:when>
15957					<xsl:when test="contains(substring-before($expression, ']'), '.') and contains(substring-after($expression, ']'), '!')">
15958						<xsl:variable name="str-out">
15959							<xsl:value-of select="concat(&quot;&apos;&quot;, substring-before(substring-after($expression, '['), ']'), &quot;&apos;&quot;, '#$', substring-before(substring-after($expression, ']'), '!'))"/>
15960						</xsl:variable>
15961						<xsl:call-template name="parse-range-name">
15962							<xsl:with-param name="expression" select="concat('!', substring-after($expression, '!'))"/>
15963							<xsl:with-param name="return-value" select="concat($return-value, $str-out)"/>
15964						</xsl:call-template>
15965					</xsl:when>
15966					<xsl:otherwise>
15967						<xsl:value-of select="concat('2', $return-value, substring-before($expression, ']'), ']')"/>
15968					</xsl:otherwise>
15969				</xsl:choose>
15970			</xsl:when>
15971			<xsl:when test="$first-one='&quot;'">
15972				<xsl:value-of select="concat('1', $first-one, substring-before(substring-after($expression, '&quot;'), '&quot;'), '&quot;')"/>
15973			</xsl:when>
15974			<xsl:when test="$first-one=&quot;&apos;&quot;">
15975				<!-- here the string &quot;&apos;&quot; represents a char &apos;  -->
15976				<xsl:variable name="str-in" select="substring-before(substring-after($expression, &quot;&apos;&quot;), &quot;&apos;&quot;)"/>
15977				<xsl:choose>
15978					<xsl:when test="substring(substring-after(substring($expression, 2), &quot;&apos;&quot;), 1, 1) = '!'">
15979						<xsl:variable name="str-out">
15980							<xsl:choose>
15981								<xsl:when test="contains($str-in, '[') and contains($str-in, ']')">
15982									<xsl:variable name="first-pos" select="substring-before($str-in, '[')"/>
15983									<xsl:variable name="second-pos" select="substring-before(substring-after($str-in, '['), ']')"/>
15984									<xsl:variable name="third-pos" select="substring-after($str-in, ']')"/>
15985									<xsl:value-of select="concat(&quot;&apos;&quot;, $first-pos, $second-pos, &quot;&apos;&quot;, '#$', &quot;&apos;&quot;, $third-pos, &quot;&apos;&quot;)"/>
15986								</xsl:when>
15987								<xsl:otherwise>
15988									<xsl:value-of select="concat(&quot;&apos;&quot;, $str-in, &quot;&apos;&quot;)"/>
15989								</xsl:otherwise>
15990							</xsl:choose>
15991						</xsl:variable>
15992						<xsl:call-template name="parse-range-name">
15993							<xsl:with-param name="expression" select="substring($expression, string-length($str-in)+3)"/>
15994							<xsl:with-param name="return-value" select="concat($return-value, $str-out)"/>
15995						</xsl:call-template>
15996					</xsl:when>
15997					<xsl:otherwise>
15998						<xsl:choose>
15999							<!-- for file path transformation -->
16000							<xsl:when test="contains($str-in, '\') and contains($str-in, '[') and contains($str-in, ']')">
16001								<xsl:variable name="first-pos" select="substring-before($str-in, '[')"/>
16002								<xsl:variable name="second-pos" select="substring-before(substring-after($str-in, '['), ']')"/>
16003								<xsl:variable name="third-pos" select="substring-after($str-in, ']')"/>
16004								<xsl:value-of select="concat('1', &quot;&apos;&quot;, $first-pos, $second-pos, &quot;&apos;&quot;, '#$', $third-pos)"/>
16005							</xsl:when>
16006							<xsl:otherwise>
16007								<xsl:value-of select="concat('1', &quot;&apos;&quot;, $str-in, &quot;&apos;&quot;)"/>
16008							</xsl:otherwise>
16009						</xsl:choose>
16010					</xsl:otherwise>
16011				</xsl:choose>
16012			</xsl:when>
16013			<xsl:when test="$first-one='+' or $first-one='-' or $first-one='*' or $first-one='/' or $first-one=')' or $first-one='^' or $first-one=':' or $first-one='&quot;' or $first-one=';' or $first-one=',' or $first-one='&gt;' or $first-one='&lt;'">
16014				<xsl:choose>
16015					<xsl:when test="$return-value = ''">
16016						<xsl:value-of select="concat('1', $first-one)"/>
16017					</xsl:when>
16018					<xsl:otherwise>
16019						<xsl:value-of select="concat('2', $return-value)"/>
16020					</xsl:otherwise>
16021				</xsl:choose>
16022			</xsl:when>
16023			<xsl:otherwise>
16024				<xsl:choose>
16025					<xsl:when test="$expression = ''">
16026						<xsl:value-of select="concat('2', $return-value)"/>
16027					</xsl:when>
16028					<xsl:otherwise>
16029						<xsl:call-template name="parse-range-name">
16030							<xsl:with-param name="expression" select="substring($expression, 2, string-length($expression)-1)"/>
16031							<xsl:with-param name="return-value" select="concat($return-value, substring($expression, 1, 1))"/>
16032						</xsl:call-template>
16033					</xsl:otherwise>
16034				</xsl:choose>
16035			</xsl:otherwise>
16036		</xsl:choose>
16037	</xsl:template>
16038	<xsl:template name="handle-type-number">
16039		<!-- to handle the part between R and C, or after C in range string in translate-expression. return type: 1: number or cell range; 2: other, not for next step -->
16040		<xsl:param name="t-part"/>
16041		<xsl:choose>
16042			<xsl:when test="starts-with($t-part, '[')">
16043				<xsl:variable name="tt-str" select="substring-before( substring-after( $t-part, '['), ']')"/>
16044				<xsl:choose>
16045					<xsl:when test="(number($tt-str) &lt; 0) or (number($tt-str) &gt; 0) or (number($tt-str) = 0)">
16046						<xsl:value-of select="1"/>
16047					</xsl:when>
16048					<xsl:otherwise>
16049						<xsl:value-of select="2"/>
16050					</xsl:otherwise>
16051				</xsl:choose>
16052			</xsl:when>
16053			<xsl:when test="(number($t-part) &lt; 0) or (number($t-part) &gt; 0) or (number($t-part) = 0)">
16054				<xsl:value-of select="1"/>
16055			</xsl:when>
16056			<xsl:when test="$t-part = ''">
16057				<xsl:value-of select="1"/>
16058			</xsl:when>
16059			<xsl:otherwise>
16060				<xsl:value-of select="2"/>
16061			</xsl:otherwise>
16062		</xsl:choose>
16063	</xsl:template>
16064	<xsl:template name="translate-unit">
16065		<!-- convert cell position expression unit, R1C1, R3, C4 -->
16066		<xsl:param name="column-number"/>
16067		<xsl:param name="row-number"/>
16068		<xsl:param name="column-pos-style"/>
16069		<xsl:param name="row-pos-style"/>
16070		<xsl:variable name="column-number1">
16071			<xsl:value-of select="floor( $column-number div 26 )"/>
16072		</xsl:variable>
16073		<xsl:variable name="column-number2">
16074			<xsl:value-of select="$column-number mod 26"/>
16075		</xsl:variable>
16076		<xsl:variable name="column-character1">
16077			<xsl:call-template name="number-to-character">
16078				<xsl:with-param name="number" select="$column-number1"/>
16079			</xsl:call-template>
16080		</xsl:variable>
16081		<xsl:variable name="column-character2">
16082			<xsl:call-template name="number-to-character">
16083				<xsl:with-param name="number" select="$column-number2"/>
16084			</xsl:call-template>
16085		</xsl:variable>
16086		<!-- position styles are 'absolute' or 'relative', -->
16087		<xsl:choose>
16088			<xsl:when test="$column-pos-style = 'absolute'">
16089				<xsl:value-of select="concat( '$', $column-character1, $column-character2)"/>
16090			</xsl:when>
16091			<xsl:otherwise>
16092				<xsl:value-of select="concat( $column-character1, $column-character2)"/>
16093			</xsl:otherwise>
16094		</xsl:choose>
16095		<xsl:choose>
16096			<xsl:when test="$row-pos-style ='absolute'">
16097				<xsl:value-of select="concat( '$', $row-number)"/>
16098			</xsl:when>
16099			<xsl:otherwise>
16100				<xsl:value-of select="$row-number"/>
16101			</xsl:otherwise>
16102		</xsl:choose>
16103	</xsl:template>
16104	<xsl:template name="get-digit-length">
16105		<xsl:param name="complexive-string"/>
16106		<xsl:variable name="first-char">
16107			<xsl:value-of select="substring( $complexive-string, 1, 1)"/>
16108		</xsl:variable>
16109		<xsl:choose>
16110			<xsl:when test="$first-char = '1' or $first-char = '2' or $first-char = '3' or $first-char = '4' or $first-char = '5' or $first-char = '6' or $first-char = '7' or $first-char = '8' or $first-char = '9' or $first-char = '0' ">
16111				<xsl:variable name="temp">
16112					<xsl:call-template name="get-digit-length">
16113						<xsl:with-param name="complexive-string" select="substring( $complexive-string, 2)"/>
16114					</xsl:call-template>
16115				</xsl:variable>
16116				<xsl:value-of select="$temp+1"/>
16117			</xsl:when>
16118			<xsl:otherwise>0</xsl:otherwise>
16119		</xsl:choose>
16120	</xsl:template>
16121	<xsl:template match="表:数据_E7B3" mode="table">
16122		<xsl:param name="hyperDest"/>
16123		<xsl:choose>
16124			<xsl:when test="not($hyperDest) or $hyperDest = ''">
16125				<xsl:element name="text:p">
16126					<xsl:for-each select="字:句_419D">
16127						<xsl:apply-templates select="."/>
16128					</xsl:for-each>
16129				</xsl:element>
16130			</xsl:when>
16131			<xsl:otherwise>
16132				<xsl:element name="text:p">
16133					<xsl:element name="text:a">
16134						<xsl:attribute name="xlink:type" select="'simple'"/>
16135						<xsl:for-each select="key('hyperlinkID', $hyperDest)">
16136							<xsl:variable name="var_Target">
16137								<xsl:value-of select="超链:目标_AA01"/>
16138							</xsl:variable>
16139							<xsl:variable name="href">
16140								<xsl:choose>
16141									<xsl:when test="@书签_AA0D and key('bookmark', @书签_AA0D)/uof:命名表达式/@区域引用_41CE">
16142										<xsl:value-of select="concat('#',@书签_AA0D)"/>
16143									</xsl:when>
16144									<!-- case Bookmark: outside or inside -->
16145									<xsl:when test="key('bookmark',超链:目标_AA01)">
16146										<xsl:value-of select="concat('#',$var_Target)"/>
16147									</xsl:when>
16148									<xsl:otherwise>
16149										<xsl:analyze-string select="$var_Target" regex="=?'?(.*?)'?!\$?([A-Z,a-z]{{1,2}})\$?(\d+)">
16150											<xsl:matching-substring>
16151												<xsl:value-of select="concat('#', '$', regex-group(1), '.', '$', regex-group(2), '$', regex-group(3))"/>
16152											</xsl:matching-substring>
16153											<xsl:non-matching-substring>
16154												<xsl:choose>
16155													<xsl:when test="contains($var_Target,'\')">
16156														<xsl:value-of select="concat('/',translate($var_Target,'\','/'))"/>
16157													</xsl:when>
16158													<xsl:otherwise>
16159														<xsl:value-of select="$var_Target"/>
16160													</xsl:otherwise>
16161												</xsl:choose>
16162											</xsl:non-matching-substring>
16163										</xsl:analyze-string>
16164									</xsl:otherwise>
16165								</xsl:choose>
16166							</xsl:variable>
16167							<xsl:attribute name="xlink:href" select="$href"/>
16168							<xsl:variable name="visited">
16169								<xsl:value-of select="超链:式样_AA02/@已访问式样引用_AA04"/>
16170							</xsl:variable>
16171							<xsl:variable name="stylename">
16172								<xsl:value-of select="超链:式样_AA02/@未访问式样引用_AA03"/>
16173							</xsl:variable>
16174							<xsl:attribute name="text:style-name" select="$stylename"/>
16175							<xsl:attribute name="text:visited-style-name" select="$visited"/>
16176						</xsl:for-each>
16177						<xsl:for-each select="字:句_419D">
16178							<xsl:apply-templates select="."/>
16179						</xsl:for-each>
16180					</xsl:element>
16181				</xsl:element>
16182			</xsl:otherwise>
16183		</xsl:choose>
16184	</xsl:template>
16185	<!--uof2.0 has deleted the below elements-->
16186	<xsl:template match="表:批注_E7B7" mode="table">
16187		<xsl:element name="office:annotation">
16188			<xsl:if test="string(@是否显示_E7B9) = 'true'">
16189				<xsl:attribute name="office:display">true</xsl:attribute>
16190			</xsl:if>
16191			<xsl:attribute name="draw:style-name"><xsl:value-of select="uof:锚点_C644/@图形引用_C62E"/></xsl:attribute>
16192			<xsl:attribute name="svg:height"><xsl:value-of select="concat(uof:锚点_C644/uof:大小_C621/@长_C604,$uofUnit)"/></xsl:attribute>
16193			<xsl:attribute name="svg:width"><xsl:value-of select="concat(uof:锚点_C644/uof:大小_C621/@宽_C605,$uofUnit)"/></xsl:attribute>
16194			<xsl:attribute name="svg:x"><xsl:value-of select="concat(uof:锚点_C644/uof:位置_C620/uof:水平_4106/uof:绝对_4107/@值_4108,$uofUnit)"/></xsl:attribute>
16195			<xsl:attribute name="svg:y"><xsl:value-of select="concat(uof:锚点_C644/uof:位置_C620/uof:垂直_410D/uof:绝对_4107/@值_4108,$uofUnit)"/></xsl:attribute>
16196			<xsl:variable name="graph-name">
16197				<xsl:value-of select="./uof:锚点_C644/@图形引用_C62E"/>
16198			</xsl:variable>
16199			<xsl:for-each select="key('graph-styles',$graph-name)/图:文本_803C/图:内容_8043/*">
16200				<xsl:choose>
16201					<xsl:when test="name(.)='字:段落_416B'">
16202						<xsl:apply-templates select="."/>
16203					</xsl:when>
16204					<xsl:when test="name(.)='字:文字表_416C'">
16205						<xsl:apply-templates select="."/>
16206					</xsl:when>
16207				</xsl:choose>
16208			</xsl:for-each>
16209			<!--xsl:apply-templates select="uof:锚点_C644" mode="table"/-->
16210		</xsl:element>
16211	</xsl:template>
16212	<xsl:template name="CreateRowCells">
16213		<xsl:param name="par_curCellColumnNum" select="1"/>
16214		<xsl:variable name="var_curCellColumnNum">
16215			<xsl:choose>
16216				<xsl:when test="@列号_E7ED">
16217					<xsl:value-of select="@列号_E7ED"/>
16218				</xsl:when>
16219				<!-- 列中的列号和单元格中的列号编号不同 -->
16220				<xsl:when test="@列号_E7BC">
16221					<xsl:value-of select="@列号_E7BC"/>
16222				</xsl:when>
16223				<xsl:otherwise>
16224					<xsl:value-of select="$par_curCellColumnNum"/>
16225				</xsl:otherwise>
16226			</xsl:choose>
16227		</xsl:variable>
16228		<xsl:variable name="var_curCellSpanAfter">
16229			<xsl:choose>
16230				<xsl:when test="表:合并_E7AF/@列数_E7B0">
16231					<xsl:value-of select="number(表:合并_E7AF/@列数_E7B0) + 1"/>
16232				</xsl:when>
16233				<xsl:otherwise>0</xsl:otherwise>
16234			</xsl:choose>
16235		</xsl:variable>
16236		<xsl:variable name="var_curCellRepeatAfter">
16237			<xsl:choose>
16238				<xsl:when test="@跨度_E7EF">
16239					<xsl:value-of select="@跨度_E7EF"/>
16240				</xsl:when>
16241				<xsl:otherwise>0</xsl:otherwise>
16242			</xsl:choose>
16243		</xsl:variable>
16244		<xsl:variable name="tabelCellName">
16245			<xsl:choose>
16246				<xsl:when test="name(.) = '表:单元格_E7F2'">table:table-cell</xsl:when>
16247				<xsl:otherwise>table:covered-table-cell</xsl:otherwise>
16248			</xsl:choose>
16249		</xsl:variable>
16250		<!-- no sure : 跨度已在预处理中换算 -->
16251		<xsl:if test="number($var_curCellColumnNum) &gt; number($par_curCellColumnNum)">
16252			<xsl:element name="table:table-cell">
16253				<xsl:attribute name="table:number-columns-repeated"><xsl:value-of select="$var_curCellColumnNum - $par_curCellColumnNum"/></xsl:attribute>
16254			</xsl:element>
16255		</xsl:if>
16256		<xsl:element name="{$tabelCellName}">
16257			<!--xsl:choose>
16258				<xsl:when test="@表:条件格式化 and @式样引用_E7BD">
16259					<xsl:attribute name="table:style-name"><xsl:value-of select="concat(@表:条件格式化, @式样引用_E7BD)"/></xsl:attribute>
16260				</xsl:when>
16261				<xsl:when test="@表:条件格式化">
16262					<xsl:attribute name="table:style-name"><xsl:value-of select="@表:条件格式化"/></xsl:attribute>
16263				</xsl:when>
16264				<xsl:when test="@式样引用_E7BD">
16265					<xsl:attribute name="table:style-name"><xsl:value-of select="@式样引用_E7BD"/></xsl:attribute>
16266				</xsl:when>
16267			</xsl:choose-->
16268			<xsl:if test="@式样引用_E7BD">
16269				<xsl:attribute name="table:style-name"><xsl:value-of select="@式样引用_E7BD"/></xsl:attribute>
16270			</xsl:if>
16271			<xsl:for-each select="表:合并_E7AF">
16272				<xsl:if test="@列数_E7B0">
16273					<!--xsl:attribute name="table:number-columns-spanned"><xsl:value-of select="表:合并_E7AF/@列数_E7B0 + 1"/></xsl:attribute-->
16274					<xsl:attribute name="table:number-columns-spanned" select="number(@列数_E7B0) + 1"/>
16275				</xsl:if>
16276				<xsl:if test="@行数_E7B1">
16277					<!--xsl:attribute name="table:number-rows-spanned"><xsl:value-of select="表:合并_E7AF/@行数_E7B1 + 1"/></xsl:attribute-->
16278					<xsl:attribute name="table:number-rows-spanned" select="number(@行数_E7B1) + 1"/>
16279				</xsl:if>
16280			</xsl:for-each>
16281			<xsl:if test="@跨度_E7EF">
16282				<xsl:attribute name="table:number-columns-repeated"><xsl:value-of select="@跨度_E7EF + 1"/></xsl:attribute>
16283			</xsl:if>
16284			<xsl:if test="@表:content-validation-name">
16285				<xsl:attribute name="table:content-validation-name" select="@表:content-validation-name"/>
16286			</xsl:if>
16287			<xsl:choose>
16288				<xsl:when test="表:数据_E7B3/@类型_E7B6 = 'number'">
16289					<xsl:variable name="table-stylename" select="@式样引用_E7BD"/>
16290					<xsl:variable name="data-format">
16291						<xsl:for-each select="key('CellStyle', $table-stylename)">
16292							<xsl:value-of select="表:数字格式_E7A9/@分类名称_E740"/>
16293						</xsl:for-each>
16294					</xsl:variable>
16295					<xsl:variable name="data-formatcode">
16296						<xsl:for-each select="key('CellStyle', $table-stylename)">
16297							<xsl:value-of select="表:数字格式_E7A9/@格式码_E73F"/>
16298						</xsl:for-each>
16299					</xsl:variable>
16300					<xsl:choose>
16301						<xsl:when test="$data-format = 'percentage' or contains( $data-formatcode, '%')">
16302							<xsl:attribute name="office:value-type">percentage</xsl:attribute>
16303						</xsl:when>
16304						<xsl:when test="contains($data-format, 'currency')">
16305							<xsl:attribute name="office:value-type">currency</xsl:attribute>
16306							<xsl:attribute name="office:currency">CNY</xsl:attribute>
16307						</xsl:when>
16308						<xsl:otherwise>
16309							<xsl:attribute name="office:value-type">float</xsl:attribute>
16310						</xsl:otherwise>
16311					</xsl:choose>
16312					<xsl:variable name="value">
16313						<xsl:choose>
16314							<xsl:when test="$data-format = 'percentage' or contains( $data-formatcode, '%')">
16315								<xsl:value-of select="表:数据_E7B3/字:句_419D/字:文本串_415B"/>
16316							</xsl:when>
16317							<xsl:otherwise>
16318								<xsl:value-of select="表:数据_E7B3/字:句_419D/字:文本串_415B"/>
16319							</xsl:otherwise>
16320						</xsl:choose>
16321					</xsl:variable>
16322					<xsl:attribute name="office:value"><xsl:value-of select="$value"/></xsl:attribute>
16323				</xsl:when>
16324				<xsl:when test="表:数据_E7B3/@类型_E7B6 = 'date'">
16325					<xsl:attribute name="office:value-type">date</xsl:attribute>
16326					<xsl:attribute name="office:date-value"><xsl:value-of select="表:数据_E7B3/字:句_419D/字:文本串_415B"/></xsl:attribute>
16327				</xsl:when>
16328				<xsl:when test="表:数据_E7B3/@类型_E7B6 = 'time' or 表:数据_E7B3/@类型_E7B6 = 'error'">
16329					<xsl:attribute name="office:value-type">time</xsl:attribute>
16330					<xsl:attribute name="office:time-value"><xsl:value-of select="表:数据_E7B3/字:句_419D/字:文本串_415B"/></xsl:attribute>
16331				</xsl:when>
16332				<xsl:when test="表:数据_E7B3/@类型_E7B6 = 'boolean'">
16333					<xsl:attribute name="office:value-type">boolean</xsl:attribute>
16334					<xsl:variable name="BooleanValue">
16335						<xsl:choose>
16336							<xsl:when test="表:数据_E7B3/字:句_419D/字:文本串_415B = 'true'">true</xsl:when>
16337							<xsl:when test="表:数据_E7B3/字:句_419D/字:文本串_415B = '1'">true</xsl:when>
16338							<xsl:otherwise>false</xsl:otherwise>
16339						</xsl:choose>
16340					</xsl:variable>
16341					<xsl:attribute name="office:boolean-value"><xsl:value-of select="$BooleanValue"/></xsl:attribute>
16342				</xsl:when>
16343				<xsl:when test="表:数据_E7B3/@类型_E7B6 = 'text'">
16344					<xsl:attribute name="office:value-type">string</xsl:attribute>
16345				</xsl:when>
16346			</xsl:choose>
16347			<xsl:if test="表:数据_E7B3/表:公式_E7B5">
16348				<xsl:variable name="sCellFormula">
16349					<xsl:choose>
16350						<xsl:when test="contains(表:数据_E7B3/表:公式_E7B5,'=TABLE')">
16351							<xsl:variable name="firstTemp">
16352								<xsl:value-of select="substring-after(表:数据_E7B3/表:公式_E7B5,'=TABLE')"/>
16353							</xsl:variable>
16354							<xsl:value-of select="concat('=MULTIPLE.OPERATIONS',$firstTemp)"/>
16355						</xsl:when>
16356						<xsl:otherwise>
16357							<xsl:value-of select="表:数据_E7B3/表:公式_E7B5"/>
16358						</xsl:otherwise>
16359					</xsl:choose>
16360				</xsl:variable>
16361				<xsl:variable name="calc-formula">
16362					<xsl:choose>
16363						<xsl:when test="$isRCCellAddress = 'true'">
16364							<xsl:variable name="cell-row-pos">
16365								<xsl:choose>
16366									<xsl:when test="../@行号_E7F3 != ''">
16367										<xsl:value-of select="../@行号_E7F3"/>
16368									</xsl:when>
16369									<xsl:otherwise>
16370										<xsl:value-of select="9"/>
16371									</xsl:otherwise>
16372								</xsl:choose>
16373							</xsl:variable>
16374							<xsl:variable name="cell-column-pos">
16375								<xsl:choose>
16376									<xsl:when test="@列号_E7ED != ''">
16377										<xsl:value-of select="@列号_E7ED"/>
16378									</xsl:when>
16379									<!--列中的列号和单元格中的列号编号不同-->
16380									<xsl:when test="@列号_E7BC != ''">
16381										<xsl:value-of select="@列号_E7BC"/>
16382									</xsl:when>
16383									<xsl:otherwise>
16384										<xsl:value-of select="9"/>
16385									</xsl:otherwise>
16386								</xsl:choose>
16387							</xsl:variable>
16388							<xsl:call-template name="translate-expression">
16389								<xsl:with-param name="cell-row-pos" select="$cell-row-pos"/>
16390								<xsl:with-param name="cell-column-pos" select="$cell-column-pos"/>
16391								<xsl:with-param name="expression" select="$sCellFormula"/>
16392								<xsl:with-param name="return-value" select="''"/>
16393								<xsl:with-param name="isRCtrans" select="'true'"/>
16394							</xsl:call-template>
16395						</xsl:when>
16396						<xsl:otherwise>
16397							<xsl:call-template name="translate-expression">
16398								<xsl:with-param name="cell-row-pos" select="0"/>
16399								<xsl:with-param name="cell-column-pos" select="0"/>
16400								<xsl:with-param name="expression" select="$sCellFormula"/>
16401								<xsl:with-param name="return-value" select="''"/>
16402								<xsl:with-param name="isRCtrans" select="'false'"/>
16403							</xsl:call-template>
16404						</xsl:otherwise>
16405					</xsl:choose>
16406				</xsl:variable>
16407				<xsl:attribute name="table:formula" select="$calc-formula"/>
16408			</xsl:if>
16409			<xsl:for-each select="*">
16410				<xsl:choose>
16411					<xsl:when test="name(.) = '表:数据_E7B3'">
16412						<xsl:apply-templates select="." mode="table">
16413							<xsl:with-param name="hyperDest" select="../@超链接引用_E7BE"/>
16414						</xsl:apply-templates>
16415					</xsl:when>
16416					<xsl:otherwise>
16417						<xsl:apply-templates select="." mode="table"/>
16418					</xsl:otherwise>
16419				</xsl:choose>
16420			</xsl:for-each>
16421		</xsl:element>
16422		<xsl:choose>
16423			<xsl:when test="following-sibling::*[name() = '表:单元格_E7F2' or name() = '表:covered-table-cell']">
16424				<xsl:for-each select="following-sibling::*[1]">
16425					<xsl:call-template name="CreateRowCells">
16426						<xsl:with-param name="par_curCellColumnNum">
16427							<xsl:value-of select="$var_curCellColumnNum + $var_curCellSpanAfter + $var_curCellRepeatAfter + 1"/>
16428						</xsl:with-param>
16429					</xsl:call-template>
16430				</xsl:for-each>
16431			</xsl:when>
16432			<xsl:otherwise>
16433				<xsl:variable name="columnLeft">
16434					<xsl:value-of select="$ooMaxColumnNum - $var_curCellColumnNum - $var_curCellSpanAfter - $var_curCellRepeatAfter"/>
16435				</xsl:variable>
16436				<xsl:if test="$columnLeft &gt; 0">
16437					<xsl:element name="table:table-cell">
16438						<xsl:attribute name="table:number-columns-repeated"><xsl:value-of select="$columnLeft"/></xsl:attribute>
16439					</xsl:element>
16440				</xsl:if>
16441			</xsl:otherwise>
16442		</xsl:choose>
16443	</xsl:template>
16444	<xsl:template name="OneTableRow">
16445		<xsl:param name="IsVirtual"/>
16446		<xsl:param name="nRepeatInclude"/>
16447		<xsl:param name="PageBreak"/>
16448		<xsl:param name="IsCollapse"/>
16449		<xsl:variable name="var_TableName">
16450			<xsl:choose>
16451				<xsl:when test="name(.)='表:工作表_E825'">
16452					<xsl:value-of select="@名称_E822"/>
16453				</xsl:when>
16454				<xsl:when test="name(.)='表:行_E7F1'">
16455					<xsl:value-of select="../../@名称_E822"/>
16456				</xsl:when>
16457			</xsl:choose>
16458		</xsl:variable>
16459		<xsl:choose>
16460			<xsl:when test="$IsVirtual = 'true'">
16461				<xsl:element name="table:table-row">
16462					<xsl:choose>
16463						<xsl:when test="$PageBreak != 'true'">
16464							<xsl:attribute name="table:style-name"><xsl:value-of select="concat('ro-default', $var_TableName)"/></xsl:attribute>
16465						</xsl:when>
16466						<xsl:otherwise>
16467							<xsl:attribute name="table:style-name"><xsl:value-of select="concat('ro-default-page', $var_TableName)"/></xsl:attribute>
16468						</xsl:otherwise>
16469					</xsl:choose>
16470					<xsl:if test="$nRepeatInclude &gt; 1">
16471						<xsl:attribute name="table:number-rows-repeated"><xsl:value-of select="$nRepeatInclude"/></xsl:attribute>
16472					</xsl:if>
16473					<xsl:if test="$IsCollapse = 'true'">
16474						<xsl:attribute name="table:visibility" select="'collapse'"/>
16475					</xsl:if>
16476					<xsl:element name="table:table-cell">
16477						<xsl:attribute name="table:number-columns-repeated"><xsl:value-of select="$ooMaxColumnNum"/></xsl:attribute>
16478					</xsl:element>
16479				</xsl:element>
16480			</xsl:when>
16481			<xsl:otherwise>
16482				<xsl:element name="table:table-row">
16483					<xsl:choose>
16484						<xsl:when test="$PageBreak != 'true'">
16485							<xsl:attribute name="table:style-name"><xsl:value-of select="concat('ro', generate-id())"/></xsl:attribute>
16486						</xsl:when>
16487						<xsl:otherwise>
16488							<xsl:attribute name="table:style-name"><xsl:value-of select="concat('ro-page', generate-id())"/></xsl:attribute>
16489						</xsl:otherwise>
16490					</xsl:choose>
16491					<xsl:choose>
16492						<xsl:when test="@式样引用_E7BD">
16493							<xsl:attribute name="table:default-cell-style-name"><xsl:value-of select="@式样引用_E7BD"/></xsl:attribute>
16494						</xsl:when>
16495					</xsl:choose>
16496					<xsl:if test="$nRepeatInclude &gt; 1">
16497						<xsl:attribute name="table:number-rows-repeated"><xsl:value-of select="$nRepeatInclude"/></xsl:attribute>
16498					</xsl:if>
16499					<xsl:if test="$IsCollapse = 'true' or @是否隐藏_E73C = 'true'">
16500						<xsl:attribute name="table:visibility" select="'collapse'"/>
16501					</xsl:if>
16502					<xsl:choose>
16503						<xsl:when test="*[name()='表:单元格_E7F2' or name() = '表:covered-table-cell']">
16504							<xsl:for-each select="*[1]">
16505								<xsl:call-template name="CreateRowCells"/>
16506							</xsl:for-each>
16507						</xsl:when>
16508						<xsl:otherwise>
16509							<xsl:element name="table:table-cell">
16510								<xsl:attribute name="table:number-columns-repeated"><xsl:value-of select="$ooMaxColumnNum"/></xsl:attribute>
16511							</xsl:element>
16512						</xsl:otherwise>
16513					</xsl:choose>
16514				</xsl:element>
16515			</xsl:otherwise>
16516		</xsl:choose>
16517	</xsl:template>
16518	<xsl:template match="表:行_E7F1" mode="table">
16519		<xsl:param name="curPos"/>
16520		<xsl:param name="lastPos"/>
16521		<xsl:param name="SpecialSet"/>
16522		<xsl:variable name="RowStart" select="@行号_E7F3"/>
16523		<xsl:variable name="RowEnd">
16524			<xsl:choose>
16525				<xsl:when test="@跨度_E7EF">
16526					<xsl:value-of select="number($RowStart) + number(@跨度_E7EF)"/>
16527				</xsl:when>
16528				<xsl:otherwise>
16529					<xsl:value-of select="$RowStart"/>
16530				</xsl:otherwise>
16531			</xsl:choose>
16532		</xsl:variable>
16533		<xsl:variable name="DisplayMode">
16534			<xsl:if test="@是否隐藏_E73C = 'true'">
16535				<xsl:value-of select="concat(' @table:display=', 'false')"/>
16536			</xsl:if>
16537		</xsl:variable>
16538		<xsl:choose>
16539			<xsl:when test="$curPos = 1">
16540				<xsl:if test="$RowStart &gt; 1">
16541					<xsl:call-template name="GroupSet">
16542						<xsl:with-param name="IsVirtual" select="'true'"/>
16543						<xsl:with-param name="GroupType" select="'row'"/>
16544						<xsl:with-param name="SpecialSet" select="$SpecialSet"/>
16545						<xsl:with-param name="nStart" select="number('1')"/>
16546						<xsl:with-param name="nEnd" select="number($RowStart - 1)"/>
16547						<xsl:with-param name="DisplayMode" select="$DisplayMode"/>
16548					</xsl:call-template>
16549				</xsl:if>
16550			</xsl:when>
16551			<xsl:otherwise>
16552				<xsl:variable name="PrevRowStart" select="preceding-sibling::*[1]/@行号_E7F3"/>
16553				<xsl:variable name="PrevRowEnd">
16554					<xsl:choose>
16555						<xsl:when test="preceding-sibling::*[1]/@跨度_E7EF">
16556							<xsl:value-of select="number($PrevRowStart + preceding-sibling::*[1]/@跨度_E7EF)"/>
16557						</xsl:when>
16558						<xsl:otherwise>
16559							<xsl:value-of select="$PrevRowStart"/>
16560						</xsl:otherwise>
16561					</xsl:choose>
16562				</xsl:variable>
16563				<xsl:if test="(number($PrevRowEnd) + 1) &lt; $RowStart">
16564					<xsl:call-template name="GroupSet">
16565						<xsl:with-param name="IsVirtual" select="'true'"/>
16566						<xsl:with-param name="GroupType" select="'row'"/>
16567						<xsl:with-param name="SpecialSet" select="$SpecialSet"/>
16568						<xsl:with-param name="nStart" select="number($PrevRowEnd + 1)"/>
16569						<xsl:with-param name="nEnd" select="number($RowStart - 1)"/>
16570						<xsl:with-param name="DisplayMode" select="$DisplayMode"/>
16571					</xsl:call-template>
16572				</xsl:if>
16573			</xsl:otherwise>
16574		</xsl:choose>
16575		<xsl:call-template name="GroupSet">
16576			<xsl:with-param name="IsVirtual" select="'false'"/>
16577			<xsl:with-param name="GroupType" select="'row'"/>
16578			<xsl:with-param name="SpecialSet" select="$SpecialSet"/>
16579			<xsl:with-param name="nStart" select="$RowStart"/>
16580			<xsl:with-param name="nEnd" select="$RowEnd"/>
16581			<xsl:with-param name="DisplayMode" select="$DisplayMode"/>
16582		</xsl:call-template>
16583		<xsl:if test="$curPos = $lastPos">
16584			<xsl:if test="$ooMaxRowNum &gt; $RowEnd">
16585				<xsl:call-template name="GroupSet">
16586					<xsl:with-param name="IsVirtual" select="'true'"/>
16587					<xsl:with-param name="GroupType" select="'row'"/>
16588					<xsl:with-param name="SpecialSet" select="$SpecialSet"/>
16589					<xsl:with-param name="nStart" select="$RowEnd + 1"/>
16590					<xsl:with-param name="nEnd" select="$ooMaxRowNum"/>
16591					<xsl:with-param name="DisplayMode" select="$DisplayMode"/>
16592				</xsl:call-template>
16593			</xsl:if>
16594		</xsl:if>
16595	</xsl:template>
16596	<xsl:template name="OneTableColumn">
16597		<xsl:param name="IsVirtual"/>
16598		<xsl:param name="nRepeatInclude"/>
16599		<xsl:param name="PageBreak"/>
16600		<xsl:param name="IsCollapse"/>
16601		<xsl:choose>
16602			<xsl:when test="$IsVirtual = 'true'">
16603				<xsl:variable name="var_TableName">
16604					<xsl:choose>
16605						<xsl:when test="name(.)='表:工作表_E825'">
16606							<xsl:value-of select="@名称_E822"/>
16607						</xsl:when>
16608						<xsl:when test="name(.)='表:列_E7EC'">
16609							<xsl:value-of select="../../@名称_E822"/>
16610						</xsl:when>
16611					</xsl:choose>
16612				</xsl:variable>
16613				<xsl:variable name="var_DefaultCellStyle">
16614					<xsl:choose>
16615						<xsl:when test="name(.)='表:工作表_E825'">
16616							<xsl:value-of select="@式样引用_E824"/>
16617						</xsl:when>
16618						<xsl:when test="name(.)='表:列_E7EC'">
16619							<xsl:value-of select="../../@式样引用_E824"/>
16620						</xsl:when>
16621					</xsl:choose>
16622				</xsl:variable>
16623				<xsl:element name="table:table-column">
16624					<xsl:choose>
16625						<xsl:when test="$PageBreak != 'true'">
16626							<xsl:attribute name="table:style-name"><xsl:value-of select="concat('co-default', $var_TableName)"/></xsl:attribute>
16627						</xsl:when>
16628						<xsl:otherwise>
16629							<xsl:attribute name="table:style-name"><xsl:value-of select="concat('co-default-page',$var_TableName)"/></xsl:attribute>
16630						</xsl:otherwise>
16631					</xsl:choose>
16632					<xsl:if test="not($var_DefaultCellStyle = '')">
16633						<xsl:attribute name="table:default-cell-style-name"><xsl:value-of select="$var_DefaultCellStyle"/></xsl:attribute>
16634					</xsl:if>
16635					<xsl:if test="$IsCollapse = 'true'">
16636						<xsl:attribute name="table:visibility" select="'collapse'"/>
16637					</xsl:if>
16638					<xsl:if test="number($nRepeatInclude) &gt; 1">
16639						<xsl:attribute name="table:number-columns-repeated"><xsl:value-of select="$nRepeatInclude"/></xsl:attribute>
16640					</xsl:if>
16641				</xsl:element>
16642			</xsl:when>
16643			<xsl:otherwise>
16644				<xsl:element name="table:table-column">
16645					<xsl:choose>
16646						<xsl:when test="$PageBreak != 'true'">
16647							<xsl:attribute name="table:style-name"><xsl:value-of select="concat('co', generate-id())"/></xsl:attribute>
16648						</xsl:when>
16649						<xsl:otherwise>
16650							<xsl:attribute name="table:style-name"><xsl:value-of select="concat('co-page', generate-id())"/></xsl:attribute>
16651						</xsl:otherwise>
16652					</xsl:choose>
16653					<xsl:choose>
16654						<xsl:when test="@式样引用_E7BD">
16655							<xsl:attribute name="table:default-cell-style-name"><xsl:value-of select="@式样引用_E7BD"/></xsl:attribute>
16656						</xsl:when>
16657						<xsl:when test="../../@式样引用_E824">
16658							<xsl:attribute name="table:default-cell-style-name"><xsl:value-of select="../../@式样引用_E824"/></xsl:attribute>
16659						</xsl:when>
16660					</xsl:choose>
16661					<xsl:if test="number($nRepeatInclude) &gt; 1">
16662						<xsl:attribute name="table:number-columns-repeated"><xsl:value-of select="$nRepeatInclude"/></xsl:attribute>
16663					</xsl:if>
16664					<xsl:if test="$IsCollapse = 'true' or @是否隐藏_E73C = 'true'">
16665						<xsl:attribute name="table:visibility" select="'collapse'"/>
16666					</xsl:if>
16667				</xsl:element>
16668			</xsl:otherwise>
16669		</xsl:choose>
16670	</xsl:template>
16671	<xsl:template name="OneCreateElement">
16672		<xsl:param name="IsVirtual"/>
16673		<xsl:param name="GroupType"/>
16674		<xsl:param name="nRepeatAfter"/>
16675		<xsl:param name="PageBreak"/>
16676		<xsl:param name="IsCollapse"/>
16677		<xsl:choose>
16678			<xsl:when test="$GroupType = 'col'">
16679				<xsl:call-template name="OneTableColumn">
16680					<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
16681					<xsl:with-param name="nRepeatInclude" select="$nRepeatAfter+1"/>
16682					<xsl:with-param name="PageBreak" select="$PageBreak"/>
16683					<xsl:with-param name="IsCollapse" select="$IsCollapse"/>
16684				</xsl:call-template>
16685			</xsl:when>
16686			<xsl:when test="$GroupType = 'row'">
16687				<xsl:call-template name="OneTableRow">
16688					<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
16689					<xsl:with-param name="nRepeatInclude" select="$nRepeatAfter+1"/>
16690					<xsl:with-param name="PageBreak" select="$PageBreak"/>
16691					<xsl:with-param name="IsCollapse" select="$IsCollapse"/>
16692				</xsl:call-template>
16693			</xsl:when>
16694		</xsl:choose>
16695	</xsl:template>
16696	<xsl:template name="GroupHalf">
16697		<xsl:param name="GroupType"/>
16698		<xsl:param name="GroupPos"/>
16699		<xsl:param name="DisplayMode"/>
16700		<xsl:choose>
16701			<xsl:when test="$GroupType = 'col'">
16702				<xsl:choose>
16703					<xsl:when test="$GroupPos = 'start'">
16704						<xsl:text disable-output-escaping="yes">&lt;table:table-column-group</xsl:text>
16705						<xsl:if test="$DisplayMode != ''">
16706							<xsl:text disable-output-escaping="yes"> table:display = </xsl:text>
16707							<xsl:text disable-output-escaping="yes">"</xsl:text>
16708							<xsl:value-of select="$DisplayMode"/>
16709							<xsl:text disable-output-escaping="yes">"</xsl:text>
16710						</xsl:if>
16711						<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
16712					</xsl:when>
16713					<xsl:when test="$GroupPos = 'end'">
16714						<xsl:text disable-output-escaping="yes">&lt;/table:table-column-group&gt;</xsl:text>
16715					</xsl:when>
16716				</xsl:choose>
16717			</xsl:when>
16718			<xsl:when test="$GroupType = 'row'">
16719				<xsl:choose>
16720					<xsl:when test="$GroupPos = 'start'">
16721						<xsl:text disable-output-escaping="yes">&lt;table:table-row-group</xsl:text>
16722						<xsl:if test="$DisplayMode != ''">
16723							<xsl:text disable-output-escaping="yes"> table:display = </xsl:text>
16724							<xsl:text disable-output-escaping="yes">"</xsl:text>
16725							<xsl:value-of select="$DisplayMode"/>
16726							<xsl:text disable-output-escaping="yes">"</xsl:text>
16727						</xsl:if>
16728						<xsl:text disable-output-escaping="yes">&gt;</xsl:text>
16729					</xsl:when>
16730					<xsl:when test="$GroupPos = 'end'">
16731						<xsl:text disable-output-escaping="yes">&lt;/table:table-row-group&gt;</xsl:text>
16732					</xsl:when>
16733				</xsl:choose>
16734			</xsl:when>
16735		</xsl:choose>
16736	</xsl:template>
16737	<xsl:template name="GroupSet">
16738		<xsl:param name="IsVirtual"/>
16739		<xsl:param name="GroupType"/>
16740		<xsl:param name="SpecialSet"/>
16741		<xsl:param name="nStart"/>
16742		<xsl:param name="nEnd"/>
16743		<xsl:param name="DisplayMode"/>
16744		<xsl:choose>
16745			<xsl:when test="count($SpecialSet/sGroup[not(number(nNumber) &lt; $nStart) and not($nEnd &lt; number(nNumber))]) &gt; 0">
16746				<xsl:variable name="CurNode" select="."/>
16747				<xsl:for-each select="$SpecialSet/sGroup[not(number(nNumber) &lt; $nStart) and not($nEnd &lt; number(nNumber))]">
16748					<xsl:variable name="var_PreIsCollapse">
16749						<xsl:if test="preceding-sibling::node()[1]/text() = 'iscollapse'">true</xsl:if>
16750					</xsl:variable>
16751					<xsl:variable name="var_NextIsCollapse">
16752						<xsl:if test="following-sibling::node()[1]/text() = 'iscollapse'">true</xsl:if>
16753					</xsl:variable>
16754					<xsl:choose>
16755						<xsl:when test="sType = 'pagebreak'">
16756							<xsl:choose>
16757								<!--首先考虑给定的区间只有一个行或列的情况-->
16758								<xsl:when test="$nStart = $nEnd">
16759									<!--如果给定区间内只有一个sGroup元素,也就是没有组起始截止符的情况-->
16760									<xsl:if test="position() = last()">
16761										<xsl:for-each select="$CurNode">
16762											<xsl:choose>
16763												<xsl:when test="$SpecialSet/sGroup/nNumber = @列号_E7ED or $SpecialSet/sGroup/nNumber = @行号_E7F3">
16764													<xsl:call-template name="OneCreateElement">
16765														<xsl:with-param name="IsVirtual" select="'true'"/>
16766														<xsl:with-param name="GroupType" select="$GroupType"/>
16767														<xsl:with-param name="nRepeatAfter" select="0"/>
16768														<xsl:with-param name="PageBreak" select="'true'"/>
16769														<xsl:with-param name="IsCollapse" select="$var_PreIsCollapse"/>
16770													</xsl:call-template>
16771												</xsl:when>
16772												<xsl:otherwise>
16773													<xsl:call-template name="OneCreateElement">
16774														<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
16775														<xsl:with-param name="GroupType" select="$GroupType"/>
16776														<xsl:with-param name="nRepeatAfter" select="0"/>
16777														<xsl:with-param name="PageBreak" select="'true'"/>
16778														<xsl:with-param name="IsCollapse" select="$var_PreIsCollapse"/>
16779													</xsl:call-template>
16780												</xsl:otherwise>
16781											</xsl:choose>
16782											<!--xsl:call-template name="OneCreateElement">
16783												<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
16784												<xsl:with-param name="GroupType" select="$GroupType"/>
16785												<xsl:with-param name="nRepeatAfter" select="0"/>
16786												<xsl:with-param name="PageBreak" select="'true'"/>
16787												<xsl:with-param name="IsCollapse" select="$var_PreIsCollapse"/>
16788											</xsl:call-template-->
16789										</xsl:for-each>
16790									</xsl:if>
16791									<!--给定区间只有一个行或列,但区间内内有多个元素的情况会在后面一起处理-->
16792								</xsl:when>
16793								<xsl:otherwise>
16794									<!--当前的pagebreak元素是给定区间内的第一个sGroup元素-->
16795									<!--这里好像逻辑上有些漏洞,因为可能出现在同一个行或列上既有pagebreak信息,又有分组信息的情况,这时候是否能保证分组信息一定排在pagebreak前面?这依赖于xslt内部的实现逻辑-->
16796									<xsl:if test="position() = 1">
16797										<!--这里处理了pagebreak元素之前的行或列-->
16798										<xsl:if test="not(nNumber &lt; $nStart)">
16799											<xsl:variable name="nRepeatAfter">
16800												<xsl:value-of select="nNumber - $nStart - 1"/>
16801											</xsl:variable>
16802											<xsl:for-each select="$CurNode">
16803												<xsl:if test="number($nRepeatAfter) ge 1">
16804													<xsl:call-template name="OneCreateElement">
16805														<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
16806														<xsl:with-param name="GroupType" select="$GroupType"/>
16807														<xsl:with-param name="nRepeatAfter" select="$nRepeatAfter"/>
16808														<xsl:with-param name="IsCollapse" select="$var_PreIsCollapse"/>
16809													</xsl:call-template>
16810												</xsl:if>
16811												<xsl:call-template name="OneCreateElement">
16812													<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
16813													<xsl:with-param name="GroupType" select="$GroupType"/>
16814													<xsl:with-param name="nRepeatAfter" select="0"/>
16815													<xsl:with-param name="PageBreak" select="'true'"/>
16816													<xsl:with-param name="IsCollapse" select="$var_PreIsCollapse"/>
16817												</xsl:call-template>
16818											</xsl:for-each>
16819										</xsl:if>
16820									</xsl:if>
16821									<!--在给定的区间里,当前pagebreak元素之前还有分组信息或pagebreak元素-->
16822									<xsl:if test="position() != 1">
16823										<!--当前pagebreak元素不在给定区间的起始位置,并且当前pagebreak元素的上一个元素与当前元素不在同一个行或列-->
16824										<xsl:if test="(nNumber &gt; $nStart) and (preceding-sibling::*[1]/nNumber != nNumber)">
16825											<xsl:variable name="nRepeatAfter">
16826												<xsl:choose>
16827													<!--这句话的逻辑好像是错的,因为跟前面的 <xsl:if test="position() != 1">冲突-->
16828													<xsl:when test="not(preceding-sibling::*[1])">
16829														<xsl:value-of select="nNumber - $nStart - 1"/>
16830													</xsl:when>
16831													<!--当前pagebreak元素的上一个元素不在给定的区间内-->
16832													<xsl:when test="preceding-sibling::*[1] &lt; $nStart">
16833														<xsl:value-of select="nNumber - $nStart - 1"/>
16834													</xsl:when>
16835													<!--在给定的区间里,当前pagebreak元素之前还有分组信息或pagebreak元素,且这些元素与当前元素不在同一个行或列-->
16836													<xsl:otherwise>
16837														<xsl:choose>
16838															<xsl:when test="preceding-sibling::*[1]/sType = 'end'">
16839																<xsl:value-of select="nNumber - preceding-sibling::sGroup[1]/nNumber - 1 - 1"/>
16840															</xsl:when>
16841															<xsl:otherwise>
16842																<xsl:value-of select="nNumber - preceding-sibling::sGroup[1]/nNumber - 1"/>
16843															</xsl:otherwise>
16844														</xsl:choose>
16845													</xsl:otherwise>
16846												</xsl:choose>
16847											</xsl:variable>
16848											<xsl:for-each select="$CurNode">
16849												<xsl:call-template name="OneCreateElement">
16850													<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
16851													<xsl:with-param name="GroupType" select="$GroupType"/>
16852													<xsl:with-param name="nRepeatAfter" select="0"/>
16853													<xsl:with-param name="PageBreak" select="'true'"/>
16854													<xsl:with-param name="IsCollapse" select="$var_NextIsCollapse"/>
16855												</xsl:call-template>
16856												<xsl:if test="number($nRepeatAfter) ge 1">
16857													<xsl:call-template name="OneCreateElement">
16858														<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
16859														<xsl:with-param name="GroupType" select="$GroupType"/>
16860														<xsl:with-param name="nRepeatAfter" select="$nRepeatAfter"/>
16861														<xsl:with-param name="IsCollapse" select="$var_NextIsCollapse"/>
16862													</xsl:call-template>
16863												</xsl:if>
16864											</xsl:for-each>
16865										</xsl:if>
16866									</xsl:if>
16867									<!--给定区间内只有当前pagebreak元素这一个sGroup元素,这个条件与前面的<xsl:if test="position() = 1">条件是共同起作用的-->
16868									<xsl:if test="position() = last()">
16869										<xsl:variable name="nRepeatAfter">
16870											<xsl:value-of select="$nEnd - ( number($nStart) + 1)"/>
16871										</xsl:variable>
16872										<xsl:for-each select="$CurNode">
16873											<xsl:call-template name="OneCreateElement">
16874												<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
16875												<xsl:with-param name="GroupType" select="$GroupType"/>
16876												<xsl:with-param name="nRepeatAfter" select="$nRepeatAfter"/>
16877												<xsl:with-param name="IsCollapse" select="$var_NextIsCollapse"/>
16878											</xsl:call-template>
16879										</xsl:for-each>
16880									</xsl:if>
16881								</xsl:otherwise>
16882							</xsl:choose>
16883						</xsl:when>
16884						<xsl:otherwise>
16885							<xsl:choose>
16886								<!--首先考虑给定的区间只有一个行或列的情况-->
16887								<xsl:when test="$nStart = $nEnd">
16888									<xsl:choose>
16889										<xsl:when test="sType = 'start'">
16890											<xsl:call-template name="GroupHalf">
16891												<xsl:with-param name="GroupType" select="$GroupType"/>
16892												<xsl:with-param name="GroupPos" select="sType"/>
16893												<xsl:with-param name="DisplayMode" select="sDisplay"/>
16894											</xsl:call-template>
16895											<xsl:if test="position() = last()">
16896												<xsl:for-each select="$CurNode">
16897													<xsl:call-template name="OneCreateElement">
16898														<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
16899														<xsl:with-param name="GroupType" select="$GroupType"/>
16900														<xsl:with-param name="nRepeatAfter" select="0"/>
16901														<xsl:with-param name="IsCollapse" select="$var_NextIsCollapse"/>
16902													</xsl:call-template>
16903												</xsl:for-each>
16904											</xsl:if>
16905										</xsl:when>
16906										<xsl:when test="sType = 'end'">
16907											<xsl:if test="position() = 1">
16908												<xsl:for-each select="$CurNode">
16909													<xsl:call-template name="OneCreateElement">
16910														<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
16911														<xsl:with-param name="GroupType" select="$GroupType"/>
16912														<xsl:with-param name="nRepeatAfter" select="0"/>
16913														<xsl:with-param name="IsCollapse" select="$var_PreIsCollapse"/>
16914													</xsl:call-template>
16915												</xsl:for-each>
16916											</xsl:if>
16917											<xsl:call-template name="GroupHalf">
16918												<xsl:with-param name="GroupType" select="$GroupType"/>
16919												<xsl:with-param name="GroupPos" select="sType"/>
16920												<xsl:with-param name="DisplayMode" select="sDisplay"/>
16921											</xsl:call-template>
16922										</xsl:when>
16923									</xsl:choose>
16924								</xsl:when>
16925								<!--其次考虑区间有多个行列的情况-->
16926								<xsl:otherwise>
16927									<xsl:if test="position() = 1">
16928										<xsl:if test="nNumber &gt; $nStart">
16929											<xsl:variable name="curPos">
16930												<xsl:choose>
16931													<xsl:when test="sType = 'start'">
16932														<xsl:value-of select="nNumber"/>
16933													</xsl:when>
16934													<xsl:otherwise>
16935														<xsl:value-of select="nNumber + 1"/>
16936													</xsl:otherwise>
16937												</xsl:choose>
16938											</xsl:variable>
16939											<xsl:variable name="nRepeatAfter">
16940												<xsl:value-of select="$curPos -1 - $nStart"/>
16941											</xsl:variable>
16942											<xsl:for-each select="$CurNode">
16943												<xsl:call-template name="OneCreateElement">
16944													<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
16945													<xsl:with-param name="GroupType" select="$GroupType"/>
16946													<xsl:with-param name="nRepeatAfter" select="$nRepeatAfter"/>
16947													<xsl:with-param name="IsCollapse" select="$var_PreIsCollapse"/>
16948												</xsl:call-template>
16949											</xsl:for-each>
16950										</xsl:if>
16951									</xsl:if>
16952									<xsl:if test="position() != 1">
16953										<xsl:if test="(nNumber &gt; $nStart) and (preceding-sibling::sGroup[1]/nNumber != nNumber)">
16954											<xsl:variable name="curPos">
16955												<xsl:choose>
16956													<xsl:when test="sType = 'start'">
16957														<xsl:value-of select="nNumber"/>
16958													</xsl:when>
16959													<xsl:otherwise>
16960														<xsl:value-of select="nNumber + 1"/>
16961													</xsl:otherwise>
16962												</xsl:choose>
16963											</xsl:variable>
16964											<xsl:variable name="nRepeatAfter">
16965												<xsl:choose>
16966													<xsl:when test="not(preceding-sibling::*[1])">
16967														<xsl:value-of select="$curPos -1 - $nStart"/>
16968													</xsl:when>
16969													<xsl:when test="preceding-sibling::*[1]/nNumber &lt; $nStart">
16970														<xsl:value-of select="$curPos -1 - $nStart"/>
16971													</xsl:when>
16972													<xsl:otherwise>
16973														<xsl:choose>
16974															<xsl:when test="preceding-sibling::*[1]/sType = 'end'">
16975																<xsl:value-of select="$curPos -1 - preceding-sibling::sGroup[1]/nNumber - 1"/>
16976															</xsl:when>
16977															<xsl:otherwise>
16978																<xsl:value-of select="$curPos -1 - preceding-sibling::sGroup[1]/nNumber"/>
16979															</xsl:otherwise>
16980														</xsl:choose>
16981														<!--<xsl:value-of select="$curPos - preceding-sibling::node()[1]/nNumber"/>-->
16982													</xsl:otherwise>
16983												</xsl:choose>
16984											</xsl:variable>
16985											<xsl:for-each select="$CurNode">
16986												<xsl:call-template name="OneCreateElement">
16987													<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
16988													<xsl:with-param name="GroupType" select="$GroupType"/>
16989													<xsl:with-param name="nRepeatAfter" select="$nRepeatAfter"/>
16990													<xsl:with-param name="IsCollapse" select="$var_PreIsCollapse"/>
16991												</xsl:call-template>
16992											</xsl:for-each>
16993										</xsl:if>
16994									</xsl:if>
16995									<xsl:call-template name="GroupHalf">
16996										<xsl:with-param name="GroupType" select="$GroupType"/>
16997										<xsl:with-param name="GroupPos" select="sType"/>
16998										<xsl:with-param name="DisplayMode" select="sDisplay"/>
16999									</xsl:call-template>
17000									<xsl:if test="position() = last()">
17001										<xsl:choose>
17002											<xsl:when test="nNumber = $nEnd">
17003												<xsl:if test="sType = 'start'">
17004													<xsl:for-each select="$CurNode">
17005														<xsl:call-template name="OneCreateElement">
17006															<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
17007															<xsl:with-param name="GroupType" select="$GroupType"/>
17008															<xsl:with-param name="nRepeatAfter" select="0"/>
17009															<xsl:with-param name="IsCollapse" select="$var_NextIsCollapse"/>
17010														</xsl:call-template>
17011													</xsl:for-each>
17012												</xsl:if>
17013											</xsl:when>
17014											<xsl:otherwise>
17015												<xsl:variable name="curPos">
17016													<xsl:choose>
17017														<xsl:when test="sType = 'start'">
17018															<xsl:value-of select="nNumber"/>
17019														</xsl:when>
17020														<xsl:otherwise>
17021															<xsl:value-of select="nNumber + 1"/>
17022														</xsl:otherwise>
17023													</xsl:choose>
17024												</xsl:variable>
17025												<xsl:variable name="nRepeatAfter">
17026													<xsl:value-of select="$nEnd - $curPos"/>
17027												</xsl:variable>
17028												<xsl:for-each select="$CurNode">
17029													<xsl:call-template name="OneCreateElement">
17030														<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
17031														<xsl:with-param name="GroupType" select="$GroupType"/>
17032														<xsl:with-param name="nRepeatAfter" select="$nRepeatAfter"/>
17033														<xsl:with-param name="IsCollapse" select="$var_NextIsCollapse"/>
17034													</xsl:call-template>
17035												</xsl:for-each>
17036											</xsl:otherwise>
17037										</xsl:choose>
17038									</xsl:if>
17039								</xsl:otherwise>
17040							</xsl:choose>
17041						</xsl:otherwise>
17042					</xsl:choose>
17043				</xsl:for-each>
17044			</xsl:when>
17045			<xsl:otherwise>
17046				<xsl:variable name="var_IsCollapse">
17047					<xsl:if test="$SpecialSet/sGroup[number(nNumber) gt number($nEnd)] and $SpecialSet/sGroup[number(nNumber) lt number($nStart)]">
17048						<xsl:for-each select="$SpecialSet/sGroup[number(nNumber) gt number($nEnd)][1]">
17049							<xsl:if test="preceding-sibling::node()[1]/text() ='iscollapse'">
17050								<xsl:value-of select="'true'"/>
17051							</xsl:if>
17052						</xsl:for-each>
17053					</xsl:if>
17054				</xsl:variable>
17055				<xsl:variable name="nRepeatAfter">
17056					<xsl:value-of select="number($nEnd - $nStart)"/>
17057				</xsl:variable>
17058				<xsl:call-template name="OneCreateElement">
17059					<xsl:with-param name="IsVirtual" select="$IsVirtual"/>
17060					<xsl:with-param name="GroupType" select="$GroupType"/>
17061					<xsl:with-param name="nRepeatAfter" select="$nRepeatAfter"/>
17062					<xsl:with-param name="IsCollapse" select="$var_IsCollapse"/>
17063				</xsl:call-template>
17064			</xsl:otherwise>
17065		</xsl:choose>
17066	</xsl:template>
17067	<xsl:template match="表:列_E7EC" mode="table">
17068		<xsl:param name="curPos"/>
17069		<xsl:param name="lastPos"/>
17070		<xsl:param name="SpecialSet"/>
17071		<xsl:variable name="ColStart" select="number(@列号_E7ED)"/>
17072		<xsl:variable name="ColEnd">
17073			<xsl:choose>
17074				<xsl:when test="@跨度_E7EF">
17075					<xsl:value-of select="number($ColStart + @跨度_E7EF)"/>
17076				</xsl:when>
17077				<xsl:otherwise>
17078					<xsl:value-of select="number($ColStart)"/>
17079				</xsl:otherwise>
17080			</xsl:choose>
17081		</xsl:variable>
17082		<xsl:variable name="DisplayMode">
17083			<xsl:if test="@是否隐藏_E73C = 'true'">
17084				<xsl:value-of select="concat(' @table:display=', 'false')"/>
17085			</xsl:if>
17086		</xsl:variable>
17087		<xsl:choose>
17088			<xsl:when test="$curPos = 1">
17089				<xsl:if test="$ColStart &gt; 1">
17090					<xsl:call-template name="GroupSet">
17091						<xsl:with-param name="IsVirtual" select="'true'"/>
17092						<xsl:with-param name="GroupType" select="'col'"/>
17093						<xsl:with-param name="SpecialSet" select="$SpecialSet"/>
17094						<xsl:with-param name="nStart" select="number('1')"/>
17095						<xsl:with-param name="nEnd" select="number($ColStart - 1)"/>
17096					</xsl:call-template>
17097				</xsl:if>
17098			</xsl:when>
17099			<xsl:otherwise>
17100				<xsl:variable name="PrevColStart" select="preceding-sibling::*[1]/@列号_E7ED"/>
17101				<xsl:variable name="PrevColEnd">
17102					<xsl:choose>
17103						<xsl:when test="preceding-sibling::*[1]/@跨度_E7EF">
17104							<xsl:value-of select="number($PrevColStart + preceding-sibling::*[1]/@跨度_E7EF)"/>
17105						</xsl:when>
17106						<xsl:otherwise>
17107							<xsl:value-of select="$PrevColStart"/>
17108						</xsl:otherwise>
17109					</xsl:choose>
17110				</xsl:variable>
17111				<xsl:if test="number($PrevColEnd + 1) &lt; $ColStart">
17112					<xsl:call-template name="GroupSet">
17113						<xsl:with-param name="IsVirtual" select="'true'"/>
17114						<xsl:with-param name="GroupType" select="'col'"/>
17115						<xsl:with-param name="SpecialSet" select="$SpecialSet"/>
17116						<xsl:with-param name="nStart" select="number($PrevColEnd + 1)"/>
17117						<xsl:with-param name="nEnd" select="number($ColStart - 1)"/>
17118						<xsl:with-param name="DisplayMode" select="$DisplayMode"/>
17119					</xsl:call-template>
17120				</xsl:if>
17121			</xsl:otherwise>
17122		</xsl:choose>
17123		<xsl:call-template name="GroupSet">
17124			<xsl:with-param name="IsVirtual" select="'false'"/>
17125			<xsl:with-param name="GroupType" select="'col'"/>
17126			<xsl:with-param name="SpecialSet" select="$SpecialSet"/>
17127			<xsl:with-param name="nStart" select="$ColStart"/>
17128			<xsl:with-param name="nEnd" select="$ColEnd"/>
17129			<xsl:with-param name="DisplayMode" select="$DisplayMode"/>
17130		</xsl:call-template>
17131		<xsl:if test="$curPos = $lastPos">
17132			<xsl:if test="$ooMaxColumnNum &gt; $ColEnd">
17133				<xsl:call-template name="GroupSet">
17134					<xsl:with-param name="IsVirtual" select="'true'"/>
17135					<xsl:with-param name="GroupType" select="'col'"/>
17136					<xsl:with-param name="SpecialSet" select="$SpecialSet"/>
17137					<xsl:with-param name="nStart" select="$ColEnd + 1"/>
17138					<xsl:with-param name="nEnd" select="$ooMaxColumnNum"/>
17139					<xsl:with-param name="DisplayMode" select="$DisplayMode"/>
17140				</xsl:call-template>
17141			</xsl:if>
17142		</xsl:if>
17143	</xsl:template>
17144	<xsl:template name="NoColumnProcess">
17145		<xsl:param name="SpecialSet"/>
17146		<xsl:variable name="ColStart" select="1"/>
17147		<xsl:call-template name="GroupSet">
17148			<xsl:with-param name="IsVirtual" select="'true'"/>
17149			<xsl:with-param name="GroupType" select="'col'"/>
17150			<xsl:with-param name="SpecialSet" select="$SpecialSet"/>
17151			<xsl:with-param name="nStart" select="$ColStart"/>
17152			<xsl:with-param name="nEnd" select="$ooMaxColumnNum"/>
17153		</xsl:call-template>
17154	</xsl:template>
17155	<xsl:template name="NoRowProcess">
17156		<xsl:param name="SpecialSet"/>
17157		<xsl:variable name="RowStart" select="1"/>
17158		<xsl:call-template name="GroupSet">
17159			<xsl:with-param name="IsVirtual" select="'true'"/>
17160			<xsl:with-param name="GroupType" select="'row'"/>
17161			<xsl:with-param name="SpecialSet" select="$SpecialSet"/>
17162			<xsl:with-param name="nStart" select="$RowStart"/>
17163			<xsl:with-param name="nEnd" select="$ooMaxRowNum"/>
17164		</xsl:call-template>
17165	</xsl:template>
17166	<xsl:template name="TableSheet">
17167		<xsl:element name="table:table">
17168			<xsl:attribute name="table:name"><xsl:value-of select="@名称_E822"/></xsl:attribute>
17169			<xsl:attribute name="table:style-name"><xsl:value-of select="concat('ta', generate-id(.))"/></xsl:attribute>
17170			<!--xsl:if test="表:工作表内容_E80E/uof:锚点_C644 or 表:工作表内容_E80E/表:行_E7F1/表:单元格_E7F2/uof:锚点_C644"-->
17171			<xsl:if test="表:工作表内容_E80E/uof:锚点_C644">
17172				<table:shapes>
17173					<xsl:for-each select="表:工作表内容_E80E/uof:锚点_C644">
17174						<xsl:apply-templates select="." mode="table"/>
17175					</xsl:for-each>
17176				</table:shapes>
17177			</xsl:if>
17178			<xsl:if test="表:工作表内容_E80E">
17179				<xsl:variable name="SpecialColumnSet">
17180					<xsl:variable name="tmp">
17181						<xsl:for-each select="表:工作表内容_E80E/表:分组集_E7F6/表:列_E841">
17182							<sGroup>
17183								<sType>start</sType>
17184								<sDisplay>
17185									<xsl:choose>
17186										<xsl:when test="@是否隐藏_E73C = 'true'">false</xsl:when>
17187										<xsl:when test="@是否隐藏_E73C = 'false'">true</xsl:when>
17188									</xsl:choose>
17189								</sDisplay>
17190								<nNumber>
17191									<xsl:value-of select="@起始_E73A"/>
17192								</nNumber>
17193							</sGroup>
17194							<sGroup>
17195								<sType>end</sType>
17196								<nNumber>
17197									<xsl:value-of select="@终止_E73B"/>
17198								</nNumber>
17199							</sGroup>
17200						</xsl:for-each>
17201						<xsl:for-each select="表:分页符集_E81E/表:分页符_E81F[@列号_E821]">
17202							<sGroup>
17203								<sType>pagebreak</sType>
17204								<nNumber>
17205									<xsl:value-of select="@列号_E821 + 1"/>
17206								</nNumber>
17207							</sGroup>
17208						</xsl:for-each>
17209					</xsl:variable>
17210					<xsl:variable name="collapseArea">
17211						<xsl:for-each select="表:工作表内容_E80E/表:分组集_E7F6/表:列_E841">
17212							<xsl:if test="@是否隐藏_E73C = 'true'">
17213								<xsl:copy-of select="."/>
17214							</xsl:if>
17215						</xsl:for-each>
17216					</xsl:variable>
17217					<xsl:for-each select="$tmp/sGroup">
17218						<xsl:sort select="nNumber" data-type="number"/>
17219						<xsl:copy-of select="."/>
17220						<xsl:variable name="var_number" select="number(nNumber/text())"/>
17221						<xsl:choose>
17222							<xsl:when test="sType = 'start' or sType = 'pagebreak'">
17223								<xsl:if test="$collapseArea/表:列_E7EC[@是否隐藏_E73C = 'true'][number(@起始_E73A) le $var_number and number(@终止_E73B) ge $var_number]">
17224									<sElement>iscollapse</sElement>
17225								</xsl:if>
17226							</xsl:when>
17227							<xsl:when test="sType = 'end'">
17228								<xsl:if test="$collapseArea/表:列_E7EC[@是否隐藏_E73C = 'true'][number(@起始_E73A) le $var_number and number(@终止_E73B) gt $var_number]">
17229									<sElement>iscollapse</sElement>
17230								</xsl:if>
17231							</xsl:when>
17232						</xsl:choose>
17233					</xsl:for-each>
17234				</xsl:variable>
17235				<xsl:variable name="SpecialRowSet">
17236					<xsl:variable name="tmp">
17237						<xsl:for-each select="表:工作表内容_E80E/表:分组集_E7F6/表:行_E842">
17238							<sGroup>
17239								<sType>start</sType>
17240								<sDisplay>
17241									<xsl:choose>
17242										<xsl:when test="@是否隐藏_E73C = 'true'">false</xsl:when>
17243										<xsl:when test="@是否隐藏_E73C = 'false'">true</xsl:when>
17244									</xsl:choose>
17245								</sDisplay>
17246								<nNumber>
17247									<xsl:value-of select="@起始_E73A"/>
17248								</nNumber>
17249							</sGroup>
17250							<sGroup>
17251								<sType>end</sType>
17252								<nNumber>
17253									<xsl:value-of select="@终止_E73B"/>
17254								</nNumber>
17255							</sGroup>
17256						</xsl:for-each>
17257						<xsl:for-each select="表:分页符集_E81E/表:分页符_E81F[@行号_E820]">
17258							<sGroup>
17259								<sType>pagebreak</sType>
17260								<nNumber>
17261									<xsl:value-of select="@行号_E820 + 1"/>
17262								</nNumber>
17263							</sGroup>
17264						</xsl:for-each>
17265					</xsl:variable>
17266					<xsl:variable name="collapseArea">
17267						<xsl:for-each select="表:工作表内容_E80E/表:分组集_E7F6/表:行_E842">
17268							<xsl:if test="@是否隐藏_E73C = 'true'">
17269								<xsl:copy-of select="."/>
17270							</xsl:if>
17271						</xsl:for-each>
17272					</xsl:variable>
17273					<xsl:for-each select="$tmp/sGroup">
17274						<xsl:sort select="nNumber" data-type="number"/>
17275						<xsl:copy-of select="."/>
17276						<xsl:variable name="var_number" select="number(nNumber/text())"/>
17277						<xsl:choose>
17278							<xsl:when test="sType = 'start' or sType = 'pagebreak'">
17279								<xsl:if test="$collapseArea/表:行_E7F1[@是否隐藏_E73C = 'true'][number(@起始_E73A) le $var_number and number(@终止_E73B) ge $var_number]">
17280									<sElement>iscollapse</sElement>
17281								</xsl:if>
17282							</xsl:when>
17283							<xsl:when test="sType = 'end'">
17284								<xsl:if test="$collapseArea/表:行_E7F1[@是否隐藏_E73C = 'true'][number(@起始_E73A) le $var_number and number(@终止_E73B) gt $var_number]">
17285									<sElement>iscollapse</sElement>
17286								</xsl:if>
17287							</xsl:when>
17288						</xsl:choose>
17289					</xsl:for-each>
17290				</xsl:variable>
17291				<xsl:choose>
17292					<xsl:when test="表:工作表内容_E80E/表:列_E7EC">
17293						<xsl:for-each select="表:工作表内容_E80E/表:列_E7EC">
17294							<xsl:apply-templates select="." mode="table">
17295								<xsl:with-param name="curPos" select="position()"/>
17296								<xsl:with-param name="lastPos" select="last()"/>
17297								<xsl:with-param name="SpecialSet" select="$SpecialColumnSet"/>
17298							</xsl:apply-templates>
17299						</xsl:for-each>
17300					</xsl:when>
17301					<xsl:otherwise>
17302						<xsl:call-template name="NoColumnProcess">
17303							<xsl:with-param name="SpecialSet" select="$SpecialColumnSet"/>
17304						</xsl:call-template>
17305					</xsl:otherwise>
17306				</xsl:choose>
17307				<xsl:choose>
17308					<xsl:when test="表:工作表内容_E80E/表:行_E7F1">
17309						<xsl:for-each select="表:工作表内容_E80E/表:行_E7F1">
17310							<xsl:sort data-type="number" select="@行号_E7F3"/>
17311							<xsl:apply-templates select="." mode="table">
17312								<xsl:with-param name="curPos" select="position()"/>
17313								<xsl:with-param name="lastPos" select="last()"/>
17314								<xsl:with-param name="SpecialSet" select="$SpecialRowSet"/>
17315							</xsl:apply-templates>
17316						</xsl:for-each>
17317					</xsl:when>
17318					<xsl:otherwise>
17319						<xsl:call-template name="NoRowProcess">
17320							<xsl:with-param name="SpecialSet" select="$SpecialRowSet"/>
17321						</xsl:call-template>
17322					</xsl:otherwise>
17323				</xsl:choose>
17324			</xsl:if>
17325		</xsl:element>
17326	</xsl:template>
17327	<xsl:template match="表:操作条件_E815">
17328		<xsl:element name="table:filter-condition">
17329			<xsl:variable name="ope" select="表:操作码_E816"/>
17330			<xsl:variable name="conditionArea">
17331				<xsl:call-template name="character-to-number">
17332					<xsl:with-param name="character" select="substring-before(substring-after(../../../表:范围_E810,'$'),'$')"/>
17333				</xsl:call-template>
17334			</xsl:variable>
17335			<xsl:attribute name="table:field-number"><xsl:value-of select="number(../../@列号_E819) - 1"/></xsl:attribute>
17336			<xsl:attribute name="table:value"><xsl:value-of select="表:值_E817"/></xsl:attribute>
17337			<xsl:attribute name="table:operator"><xsl:choose><xsl:when test="$ope = 'equal to'">=</xsl:when><xsl:when test="$ope = 'not equal to'">!=</xsl:when><xsl:when test="$ope = 'greater than'">&gt;</xsl:when><xsl:when test="$ope = 'greater than or equal to'">&gt;=</xsl:when><xsl:when test="$ope = 'less than'">&lt;</xsl:when><xsl:when test="$ope = 'less than or equal to'">&lt;=</xsl:when><xsl:when test="$ope = 'start with'">begins-with</xsl:when><xsl:when test="$ope = 'not start with'">does-not-begin-with</xsl:when><xsl:when test="$ope = 'end with'">ends-with</xsl:when><xsl:when test="$ope = 'not end with'">does-not-end-with</xsl:when><xsl:when test="$ope = 'contain' or $ope = 'between'">contains</xsl:when><xsl:when test="$ope = 'not contain' or $ope = 'between'">does-not-contain</xsl:when><xsl:otherwise/></xsl:choose></xsl:attribute>
17338		</xsl:element>
17339	</xsl:template>
17340	<xsl:template name="getDataRange">
17341		<xsl:variable name="first">
17342			<xsl:value-of select="表:范围_E810"/>
17343		</xsl:variable>
17344		<xsl:variable name="quote">'</xsl:variable>
17345		<xsl:variable name="tempTableName">
17346			<xsl:value-of select="substring-after(substring-before($first,'!'), $quote)"/>
17347		</xsl:variable>
17348		<xsl:variable name="tableName">
17349			<xsl:value-of select="substring-before($tempTableName, $quote)"/>
17350		</xsl:variable>
17351		<xsl:variable name="firstTempAddress">
17352			<xsl:value-of select="substring-after(substring-before($first,':'),'!')"/>
17353		</xsl:variable>
17354		<xsl:variable name="firstHorizonAddress">
17355			<xsl:value-of select="substring-before(substring-after($firstTempAddress,'$'),'$')"/>
17356		</xsl:variable>
17357		<xsl:variable name="firstVerticalAddress">
17358			<xsl:value-of select="substring-after(substring-after($firstTempAddress,'$'),'$')"/>
17359		</xsl:variable>
17360		<xsl:variable name="secondTempAddress">
17361			<xsl:value-of select="substring-after($first,':')"/>
17362		</xsl:variable>
17363		<xsl:variable name="secondHorizonAddress">
17364			<xsl:value-of select="substring-before(substring-after($secondTempAddress,'$'),'$')"/>
17365		</xsl:variable>
17366		<xsl:variable name="secondVerticalAddress">
17367			<xsl:value-of select="substring-after(substring-after($secondTempAddress,'$'),'$')"/>
17368		</xsl:variable>
17369		<xsl:value-of select="concat($tableName,'.',$firstHorizonAddress,$firstVerticalAddress,':',$tableName,'.',$secondHorizonAddress,$secondVerticalAddress)"/>
17370	</xsl:template>
17371	<xsl:template match="表:筛选_E80F">
17372		<xsl:element name="table:database-range">
17373			<xsl:if test="@类型_E83B = 'auto'">
17374				<xsl:attribute name="table:display-filter-buttons">true</xsl:attribute>
17375			</xsl:if>
17376			<xsl:attribute name="table:target-range-address"><xsl:call-template name="getDataRange"/></xsl:attribute>
17377			<xsl:if test="表:条件_E811">
17378				<table:filter>
17379					<xsl:if test="表:条件区域_E81A">
17380						<xsl:attribute name="table:condition-source-range-address"><xsl:value-of select="表:条件区域_E81A"/></xsl:attribute>
17381					</xsl:if>
17382					<xsl:if test="表:结果区域_E81B">
17383						<xsl:attribute name="table:display-duplicates"><xsl:value-of select="表:结果区域_E81B"/></xsl:attribute>
17384					</xsl:if>
17385					<xsl:choose>
17386						<xsl:when test="表:条件_E811/表:普通_E812">
17387							<xsl:element name="table:filter-condition">
17388								<xsl:variable name="opea" select="表:条件_E811/表:普通_E812/@类型_E7B6"/>
17389								<xsl:attribute name="table:field-number" select="number(表:条件_E811/@列号_E819) - 1"/>
17390								<xsl:attribute name="table:value" select="表:条件_E811/表:普通_E812/@值_E813"/>
17391								<xsl:attribute name="table:operator"><xsl:choose><xsl:when test="$opea = 'bottomitem'">bottom values</xsl:when><xsl:when test="$opea = 'bottompercent'">bottom percent</xsl:when><xsl:when test="$opea = 'topitem'">top values</xsl:when><xsl:when test="$opea = 'toppercent'">top percent</xsl:when><xsl:when test="$opea = 'value'">=</xsl:when><xsl:otherwise/></xsl:choose></xsl:attribute>
17392							</xsl:element>
17393						</xsl:when>
17394						<xsl:when test="表:条件_E811/表:自定义_E814/@类型_E7B6 = 'or'">
17395							<xsl:element name="table:filter-or">
17396								<xsl:for-each select="表:条件_E811/表:自定义_E814/表:操作条件_E815">
17397									<xsl:apply-templates select="."/>
17398								</xsl:for-each>
17399							</xsl:element>
17400						</xsl:when>
17401						<xsl:when test="表:条件_E811/表:自定义_E814/@类型_E7B6 = 'and'">
17402							<xsl:element name="table:filter-and">
17403								<xsl:for-each select="表:条件_E811/表:自定义_E814/表:操作条件_E815">
17404									<xsl:apply-templates select="."/>
17405								</xsl:for-each>
17406							</xsl:element>
17407						</xsl:when>
17408						<xsl:otherwise>
17409							<xsl:for-each select="表:条件_E811/表:自定义_E814/表:操作条件_E815">
17410								<xsl:apply-templates select="."/>
17411							</xsl:for-each>
17412						</xsl:otherwise>
17413					</xsl:choose>
17414				</table:filter>
17415			</xsl:if>
17416		</xsl:element>
17417	</xsl:template>
17418	<!--
17419	<xsl:template match="uof:链接集" mode="table">
17420		<table:named-expressions>
17421			<xsl:for-each select="uof:超级链接">
17422				<xsl:if test="@uof:目标 and @uof:书签">
17423					<xsl:variable name="var_TagetUrl">
17424						<xsl:choose>
17425							<xsl:when test="@uof:目标 = @uof:书签">
17426								<xsl:if test="key('bookmark', @uof:书签)/uof:命名表达式/@uof:区域引用">
17427									<xsl:value-of select="key('bookmark', @uof:书签)/uof:命名表达式/@uof:区域引用"/>
17428								</xsl:if>
17429							</xsl:when>
17430							<xsl:otherwise>
17431								<xsl:value-of select="@uof:目标"/>
17432							</xsl:otherwise>
17433						</xsl:choose>
17434					</xsl:variable>
17435					<xsl:variable name="var_Name">
17436						<xsl:value-of select="@uof:书签"/>
17437					</xsl:variable>
17438					<xsl:analyze-string select="$var_TagetUrl" regex="=?'?(.*?)'?!\$?([A-Z,a-z]{{1,2}})\$?(\d+)">
17439						<xsl:matching-substring>
17440							<xsl:variable name="apos">&apos;</xsl:variable>
17441							<table:named-range>
17442								<xsl:attribute name ='table:name'>
17443									<xsl:value-of select="$var_Name"/>
17444								</xsl:attribute>
17445								<xsl:attribute name="table:base-cell-address">
17446									<xsl:value-of select="concat( '$', regex-group(1), '.', '$', regex-group(2), '$', regex-group(3)) "/>
17447								</xsl:attribute>
17448								<xsl:attribute name="table:cell-range-address">
17449									<xsl:value-of select="concat( '$', regex-group(1), '.', '$', regex-group(2), '$', regex-group(3)) "/>
17450								</xsl:attribute>
17451							</table:named-range>
17452						</xsl:matching-substring>
17453					</xsl:analyze-string>
17454				</xsl:if>
17455			</xsl:for-each>
17456		</table:named-expressions>
17457	</xsl:template>
17458	-->
17459	<xsl:template match="书签:书签集_9104" mode="table">
17460		<table:named-expressions>
17461			<xsl:for-each select="书签:书签_9105">
17462				<xsl:variable name="var_BookmarkName" select="@名称_9103"/>
17463				<xsl:if test="书签:区域_9100/@区域引用_41CE">
17464					<xsl:analyze-string select="书签:区域_9100/@区域引用_41CE" regex="=?'?(.*?)'?!\$?([A-Z,a-z]{{0,3}})\$?(\d*)(:?)\$?([A-Z,a-z]{{0,3}})\$?(\d*)">
17465						<xsl:matching-substring>
17466							<table:named-range>
17467								<xsl:attribute name="table:name" select="$var_BookmarkName"/>
17468								<xsl:variable name="tablename" select="regex-group(1)"/>
17469								<xsl:variable name="UOFbeginColum" select="regex-group(2)"/>
17470								<xsl:variable name="UOFbeginRow" select="regex-group(3)"/>
17471								<xsl:variable name="breakChar" select="regex-group(4)"/>
17472								<xsl:variable name="UOFendColum" select="regex-group(5)"/>
17473								<xsl:variable name="UOFendRow" select="regex-group(6)"/>
17474								<xsl:variable name="ODFbeginColum">
17475									<xsl:choose>
17476										<xsl:when test="$UOFbeginColum = ''">A</xsl:when>
17477										<xsl:otherwise>
17478											<xsl:value-of select="$UOFbeginColum"/>
17479										</xsl:otherwise>
17480									</xsl:choose>
17481								</xsl:variable>
17482								<xsl:variable name="ODFbeginRow">
17483									<xsl:choose>
17484										<xsl:when test="$UOFbeginRow = ''">1</xsl:when>
17485										<xsl:otherwise>
17486											<xsl:value-of select="$UOFbeginRow"/>
17487										</xsl:otherwise>
17488									</xsl:choose>
17489								</xsl:variable>
17490								<xsl:variable name="ODFendColum">
17491									<xsl:choose>
17492										<xsl:when test="$UOFendColum = ''">AMJ</xsl:when>
17493										<xsl:otherwise>
17494											<xsl:value-of select="$UOFendColum"/>
17495										</xsl:otherwise>
17496									</xsl:choose>
17497								</xsl:variable>
17498								<xsl:variable name="ODFendRow">
17499									<xsl:choose>
17500										<xsl:when test="$UOFendRow = ''">65536</xsl:when>
17501										<xsl:otherwise>
17502											<xsl:value-of select="$UOFendRow"/>
17503										</xsl:otherwise>
17504									</xsl:choose>
17505								</xsl:variable>
17506								<xsl:choose>
17507									<xsl:when test="$breakChar = ''">
17508										<xsl:attribute name="table:base-cell-address" select="concat($tablename, '.', '$', $ODFbeginColum, '$', $ODFbeginRow)"/>
17509										<xsl:attribute name="table:cell-range-address" select="concat($tablename, '.', '$', $ODFbeginColum, '$', $ODFbeginRow)"/>
17510									</xsl:when>
17511									<xsl:otherwise>
17512										<xsl:attribute name="table:base-cell-address" select="concat($tablename, '.', '$', $ODFbeginColum, '$', $ODFbeginRow)"/>
17513										<xsl:attribute name="table:cell-range-address" select="concat($tablename, '.', '$', $ODFbeginColum, '$', $ODFbeginRow, ':.', '$', $ODFendColum, '$', $ODFendRow)"/>
17514									</xsl:otherwise>
17515								</xsl:choose>
17516							</table:named-range>
17517						</xsl:matching-substring>
17518					</xsl:analyze-string>
17519				</xsl:if>
17520			</xsl:for-each>
17521		</table:named-expressions>
17522	</xsl:template>
17523	<xsl:template name="OfficeSettingsPresentation">
17524		<config:config-item-set config:name="ooo:view-settings">
17525			<config:config-item config:name="VisibleAreaTop" config:type="int">0</config:config-item>
17526			<config:config-item config:name="VisibleAreaLeft" config:type="int">0</config:config-item>
17527			<config:config-item config:name="VisibleAreaWidth" config:type="int">14098</config:config-item>
17528			<config:config-item config:name="VisibleAreaHeight" config:type="int">9998</config:config-item>
17529			<config:config-item-map-indexed config:name="Views">
17530				<config:config-item-map-entry>
17531					<config:config-item config:name="IsSnapToSnapLines" config:type="boolean">true</config:config-item>
17532					<xsl:for-each select="规则:公用处理规则_B665/规则:演示文稿_B66D/规则:最后视图_B639">
17533						<xsl:variable name="PageKind">
17534							<xsl:value-of select="规则:类型_B63A"/>
17535						</xsl:variable>
17536						<config:config-item config:name="PageKind" config:type="short">
17537							<xsl:choose>
17538								<xsl:when test="$PageKind='normal' or $PageKind='sort'">0</xsl:when>
17539								<xsl:when test="$PageKind='note-page'">1</xsl:when>
17540								<xsl:when test="$PageKind='note-master'">1</xsl:when>
17541								<xsl:when test="$PageKind='handout-master'">2</xsl:when>
17542							</xsl:choose>
17543						</config:config-item>
17544						<config:config-item config:name="EditModeStandard" config:type="int">
17545							<xsl:choose>
17546								<xsl:when test="$PageKind='slide-master'">1</xsl:when>
17547								<xsl:when test="$PageKind='note-master'">0</xsl:when>
17548								<xsl:when test="$PageKind='normal'">0</xsl:when>
17549							</xsl:choose>
17550						</config:config-item>
17551						<config:config-item config:name="EditModeNotes" config:type="int">
17552							<xsl:choose>
17553								<xsl:when test="$PageKind='note-page'">0</xsl:when>
17554								<xsl:when test="$PageKind='note-master'">1</xsl:when>
17555							</xsl:choose>
17556						</config:config-item>
17557						<config:config-item config:name="ViewId" config:type="string">
17558							<xsl:choose>
17559								<xsl:when test="$PageKind='normal' or $PageKind='handout-master' or $PageKind='note-page'">view1</xsl:when>
17560								<xsl:when test="$PageKind='sort'">view2</xsl:when>
17561							</xsl:choose>
17562						</config:config-item>
17563					</xsl:for-each>
17564					<xsl:apply-templates select="/uof:UOF_0000/扩展:扩展区_B200/扩展:扩展_B201[扩展:软件名称_B202= 'NeoShineOffice']/扩展:扩展内容_B204[扩展:路径 = '/office:document/office:settings']/uof:内容/配置/分类配置项集[@类属 = '视图配置']/配置项索引表[@名称 = '视图']/配置列表条目" mode="Views"/>
17565				</config:config-item-map-entry>
17566			</config:config-item-map-indexed>
17567		</config:config-item-set>
17568		<config:config-item-set config:name="ooo:configuration-settings">
17569			<config:config-item config:name="PageNumberFormat" config:type="int">
17570				<xsl:choose>
17571					<xsl:when test="规则:公用处理规则_B665/规则:演示文稿_B66D/规则:页面设置集_B670/规则:页面设置_B638/演:页码格式_6BDF[1]">
17572						<xsl:variable name="pageNumberFormat" select="规则:公用处理规则_B665/规则:演示文稿_B66D/规则:页面设置集_B670/规则:页面设置_B638/演:页码格式_6BDF[1]"/>
17573						<xsl:choose>
17574							<xsl:when test="$pageNumberFormat='upper-letter'">0</xsl:when>
17575							<xsl:when test="$pageNumberFormat='lower-letter'">1</xsl:when>
17576							<xsl:when test="$pageNumberFormat='upper-roman'">2</xsl:when>
17577							<xsl:when test="$pageNumberFormat='lower-roman'">3</xsl:when>
17578							<xsl:when test="$pageNumberFormat='decimal'">4</xsl:when>
17579							<xsl:otherwise>5</xsl:otherwise>
17580						</xsl:choose>
17581					</xsl:when>
17582					<xsl:otherwise>5</xsl:otherwise>
17583				</xsl:choose>
17584			</config:config-item>
17585		</config:config-item-set>
17586	</xsl:template>
17587	<xsl:template match="式样:段落式样_9912" mode="presentation-default">
17588		<xsl:element name="style:default-style">
17589			<xsl:attribute name="style:family">graphic</xsl:attribute>
17590			<xsl:element name="style:paragraph-properties">
17591				<xsl:call-template name="ParaPropertiesAll">
17592					<xsl:with-param name="tabstop" select="string('default')"/>
17593				</xsl:call-template>
17594			</xsl:element>
17595			<xsl:element name="style:text-properties">
17596				<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:句式样集_990F/式样:句式样_9910[@类型_4102='default'][1]">
17597					<xsl:call-template name="TextProperties"/>
17598				</xsl:for-each>
17599				<xsl:for-each select="字:句属性_4158">
17600					<xsl:call-template name="TextProperties"/>
17601				</xsl:for-each>
17602			</xsl:element>
17603		</xsl:element>
17604	</xsl:template>
17605	<xsl:template name="OfficeStylePresentation">
17606		<!--xsl:for-each select="uof:演示文稿">
17607			<xsl:for-each select="演:公用处理规则">
17608				<xsl:for-each select="演:页面版式集">
17609					<xsl:apply-templates select="演:页面版式"/>
17610				</xsl:for-each>
17611			</xsl:for-each>
17612			<xsl:for-each select="演:主体/演:母版集/演:母版">
17613				<xsl:if test="@演:类型='slide'">
17614					<xsl:apply-templates select="." mode="OfficeStyle"/>
17615				</xsl:if>
17616			</xsl:for-each>
17617		</xsl:for-each-->
17618		<xsl:apply-templates select="规则:公用处理规则_B665/规则:演示文稿_B66D/规则:页面版式集_B651/规则:页面版式_B652"/>
17619		<xsl:for-each select="演:演示文稿文档_6C10/演:母版集_6C0C/演:母版_6C0D">
17620			<xsl:if test="@类型_6BEA='slide'">
17621				<xsl:apply-templates select="." mode="OfficeStyle"/>
17622			</xsl:if>
17623		</xsl:for-each>
17624	</xsl:template>
17625	<xsl:template match="演:母版_6C0D" mode="OfficeStyle">
17626		<xsl:variable name="TextStyle" select="key('MasterTextStyle',@文本式样引用_6BED)"/>
17627		<xsl:variable name="MasterName" select="@标识符_6BE8"/>
17628		<xsl:for-each select="uof:锚点_C644">
17629			<xsl:choose>
17630				<xsl:when test="uof:占位符_C626/@类型_C627='title'">
17631					<style:style style:family="presentation">
17632						<xsl:attribute name="style:name"><xsl:value-of select="concat($MasterName,'-title')"/></xsl:attribute>
17633						<xsl:call-template name="OfficeStyleGraphProp">
17634							<xsl:with-param name="NumberID" select="$TextStyle/式样:段落式样_9912[字:大纲级别_417C='0'][1]/字:自动编号信息_4186/@编号引用_4187"/>
17635						</xsl:call-template>
17636						<xsl:for-each select="$TextStyle/式样:段落式样_9912[字:大纲级别_417C='0'][1]">
17637							<xsl:apply-templates select="." mode="OfficeStyle">
17638								<xsl:with-param name="TextStyle" select="$TextStyle"/>
17639								<xsl:with-param name="SetDefaultTitle" select="'true'"/>
17640							</xsl:apply-templates>
17641						</xsl:for-each>
17642						<xsl:if test="count($TextStyle/式样:段落式样_9912[字:大纲级别_417C='0'])=0">
17643							<style:paragraph-properties fo:text-align="center" style:text-autospace="ideograph-alpha" style:punctuation-wrap="simple" style:line-break="strict"/>
17644							<style:text-properties style:text-outline="false" fo:font-family="'Times New Roman'" fo:font-size="44pt" fo:letter-spacing="normal" fo:font-style="normal" fo:text-shadow="none" style:text-underline-style="none" style:letter-kerning="true" style:font-family-asian="宋体" style:font-size-asian="44pt" style:font-style-asian="normal" style:font-size-complex="44pt" style:font-style-complex="normal" style:text-emphasize="none" style:text-scale="100%" style:font-relief="none"/>
17645						</xsl:if>
17646					</style:style>
17647				</xsl:when>
17648				<xsl:when test="uof:占位符_C626/@类型_C627='text' or uof:占位符_C626/@类型_C627='outline'">
17649					<xsl:variable name="GraphName" select="@图形引用_C62E"/>
17650					<style:style style:family="presentation">
17651						<xsl:attribute name="style:name"><xsl:value-of select="concat($MasterName,'-outline1')"/></xsl:attribute>
17652						<xsl:call-template name="OfficeStyleGraphProp">
17653							<xsl:with-param name="NumberID" select="$TextStyle/式样:段落式样_9912[字:大纲级别_417C='1'][1]/字:自动编号信息_4186/@编号引用_4187"/>
17654						</xsl:call-template>
17655						<xsl:for-each select="$TextStyle/式样:段落式样_9912[字:大纲级别_417C='1'][1]">
17656							<xsl:apply-templates select="." mode="OfficeStyle">
17657								<xsl:with-param name="TextStyle" select="$TextStyle"/>
17658							</xsl:apply-templates>
17659						</xsl:for-each>
17660					</style:style>
17661					<!-- 若存在相同大纲级别的多个段落式样,取第一个 -->
17662					<xsl:for-each-group select="$TextStyle/式样:段落式样_9912" group-by="字:大纲级别_417C">
17663						<xsl:if test="not(字:大纲级别_417C='0' or 字:大纲级别_417C='1')">
17664							<style:style style:family="presentation">
17665								<xsl:attribute name="style:name"><xsl:value-of select="concat($MasterName,'-outline',string(字:大纲级别_417C))"/></xsl:attribute>
17666								<xsl:variable name="SetDefaultOutLine">
17667									<xsl:variable name="OutlineNumber" select="number(字:大纲级别_417C)"/>
17668									<xsl:variable name="Parent" select="@基式样引用_4104"/>
17669									<xsl:variable name="ParentPart" select="concat('-outline',string($OutlineNumber - 1))"/>
17670									<xsl:choose>
17671										<xsl:when test="contains($Parent, $ParentPart)">
17672											<xsl:value-of select="'false'"/>
17673										</xsl:when>
17674										<xsl:otherwise>
17675											<xsl:value-of select="'true'"/>
17676										</xsl:otherwise>
17677									</xsl:choose>
17678								</xsl:variable>
17679								<xsl:apply-templates select="." mode="OfficeStyle">
17680									<xsl:with-param name="TextStyle" select="$TextStyle"/>
17681									<xsl:with-param name="SetDefaultOutLine" select="$SetDefaultOutLine"/>
17682								</xsl:apply-templates>
17683							</style:style>
17684						</xsl:if>
17685					</xsl:for-each-group>
17686				</xsl:when>
17687			</xsl:choose>
17688		</xsl:for-each>
17689	</xsl:template>
17690	<!--<xsl:template name="DefaultMasterFooterOrHeaderOrDatetimeSize">
17691		<xsl:param name="textAreaHeight"/>
17692		<xsl:param name="textAreaWidth"/>
17693		<xsl:variable name="dateX" select="0.05 * number($textAreaWidth)"/>
17694		<xsl:variable name="footerX" select="0.342 * number($textAreaWidth)"/>
17695		<xsl:variable name="numberX" select="0.717 * number($textAreaWidth)"/>
17696		<xsl:variable name="dateOrNumberWidth">
17697			<xsl:value-of select="number(0.2329643) * number($textAreaWidth)"/>
17698		</xsl:variable>
17699		<xsl:variable name="footerWidth" select="0.31696 * number($textAreaWidth)"/>
17700		<xsl:variable name="Y" select="0.911 * $textAreaHeight"/>
17701		<xsl:variable name="Height" select="0.0689524 * $textAreaHeight"/>
17702		<xsl:if test="not(uof:锚点_C644/uof:占位符_C626[@类型_C627 = 'date'])">
17703			<draw:frame presentation:style-name="Mpr1" draw:text-style-name="MP1" draw:layer="backgroundobjects" svg:width="6.523cm" svg:height="1.448cm" svg:x="1.4cm" svg:y="19.131cm" presentation:class="date-time">
17704				<xsl:attribute name="svg:width"><xsl:value-of select="concat($dateOrNumberWidth,$uofUnit)"/></xsl:attribute>
17705				<xsl:attribute name="svg:height"><xsl:value-of select="concat($Height,$uofUnit)"/></xsl:attribute>
17706				<xsl:attribute name="svg:x"><xsl:value-of select="concat($dateX,$uofUnit)"/></xsl:attribute>
17707				<xsl:attribute name="svg:y"><xsl:value-of select="concat($Y,$uofUnit)"/></xsl:attribute>
17708				<draw:text-box>
17709					<text:p text:style-name="MP1">
17710						<presentation:date-time/>
17711					</text:p>
17712				</draw:text-box>
17713			</draw:frame>
17714		</xsl:if>
17715		<xsl:if test="not(uof:锚点_C644/uof:占位符_C626[@类型_C627 = 'footer'])">
17716			<draw:frame presentation:style-name="Mpr1" draw:text-style-name="MP3" draw:layer="backgroundobjects" svg:width="8.875cm" svg:height="1.448cm" svg:x="9.576cm" svg:y="19.131cm" presentation:class="footer">
17717				<xsl:attribute name="svg:width"><xsl:value-of select="concat($footerWidth,$uofUnit)"/></xsl:attribute>
17718				<xsl:attribute name="svg:height"><xsl:value-of select="concat($Height,$uofUnit)"/></xsl:attribute>
17719				<xsl:attribute name="svg:x"><xsl:value-of select="concat($footerX,$uofUnit)"/></xsl:attribute>
17720				<xsl:attribute name="svg:y"><xsl:value-of select="concat($Y,$uofUnit)"/></xsl:attribute>
17721				<draw:text-box>
17722					<text:p text:style-name="MP3">
17723						<presentation:footer/>
17724					</text:p>
17725				</draw:text-box>
17726			</draw:frame>
17727		</xsl:if>
17728		<xsl:if test="not(uof:锚点_C644/uof:占位符_C626[@类型_C627 = 'number'])">
17729			<draw:frame presentation:style-name="Mpr1" draw:text-style-name="MP2" draw:layer="backgroundobjects" svg:width="6.523cm" svg:height="1.448cm" svg:x="20.076cm" svg:y="19.131cm" presentation:class="page-number">
17730				<xsl:attribute name="svg:width"><xsl:value-of select="concat($dateOrNumberWidth,$uofUnit)"/></xsl:attribute>
17731				<xsl:attribute name="svg:height"><xsl:value-of select="concat($Height,$uofUnit)"/></xsl:attribute>
17732				<xsl:attribute name="svg:x"><xsl:value-of select="concat($numberX,$uofUnit)"/></xsl:attribute>
17733				<xsl:attribute name="svg:y"><xsl:value-of select="concat($Y,$uofUnit)"/></xsl:attribute>
17734				<draw:text-box>
17735					<text:p text:style-name="MP2">
17736						<text:page-number>&lt;编号&gt;</text:page-number>
17737					</text:p>
17738				</draw:text-box>
17739			</draw:frame>
17740		</xsl:if>
17741	</xsl:template>-->
17742	<xsl:template name="OfficeStyleGraphProp">
17743		<xsl:param name="NumberID"/>
17744		<xsl:variable name="GraphName" select="@图形引用_C62E"/>
17745		<xsl:variable name="textanchor" select="."/>
17746		<style:graphic-properties draw:stroke="none">
17747			<!--增加演示文稿文本框中min-height属性-->
17748			<xsl:if test="uof:占位符_C626/@类型_C627">
17749				<xsl:attribute name="fo:min-height"><xsl:value-of select="concat(uof:大小_C621/@长_C604,$uofUnit)"/></xsl:attribute>
17750			</xsl:if>
17751			<xsl:for-each select="key('graph-styles',$GraphName)">
17752				<xsl:apply-templates select="图:预定义图形_8018" mode="Graph">
17753					<xsl:with-param name="textanchor" select="$textanchor"/>
17754				</xsl:apply-templates>
17755				<xsl:apply-templates select="图:文本_803C" mode="Graph">
17756					<xsl:with-param name="textanchor" select="$textanchor"/>
17757				</xsl:apply-templates>
17758			</xsl:for-each>
17759			<xsl:if test="$NumberID != ''">
17760				<xsl:for-each select="key('AutoNumber',$NumberID)">
17761					<xsl:apply-templates select="." mode="liststyle"/>
17762				</xsl:for-each>
17763			</xsl:if>
17764		</style:graphic-properties>
17765	</xsl:template>
17766	<xsl:template name="DefaultParaTitle">
17767		<xsl:attribute name="fo:text-align" select="'center'"/>
17768	</xsl:template>
17769	<xsl:template name="DefaultParaOutLine">
17770		<xsl:attribute name="fo:margin-left" select="'0cm'"/>
17771		<xsl:attribute name="fo:margin-right" select="'0cm'"/>
17772		<xsl:attribute name="fo:margin-top" select="'0cm'"/>
17773		<xsl:attribute name="fo:margin-bottom" select="'0cm'"/>
17774		<xsl:attribute name="fo:line-height" select="'100%'"/>
17775		<xsl:attribute name="fo:text-indent" select="'0cm'"/>
17776	</xsl:template>
17777	<xsl:template name="DefaultTextTitle">
17778		<xsl:attribute name="fo:font-size" select="'44pt'"/>
17779		<xsl:attribute name="style:font-size-asian" select="'44pt'"/>
17780		<xsl:attribute name="style:font-size-complex" select="'44pt'"/>
17781	</xsl:template>
17782	<xsl:template name="DefaultTextOutLine">
17783		<xsl:attribute name="style:use-window-font-color" select="'true'"/>
17784		<xsl:attribute name="style:text-outline" select="'false'"/>
17785		<xsl:attribute name="style:text-line-through-style" select="'none'"/>
17786		<!--<xsl:attribute name="fo:font-family" select="'&apos;Times New Roman&apos;'"/>-->
17787		<xsl:attribute name="style:font-family-generic" select="'roman'"/>
17788		<xsl:attribute name="style:font-pitch" select="'variable'"/>
17789		<xsl:attribute name="fo:font-size" select="'18pt'"/>
17790		<xsl:attribute name="fo:font-style" select="'normal'"/>
17791		<xsl:attribute name="fo:text-shadow" select="'none'"/>
17792		<xsl:attribute name="style:text-underline-style" select="'none'"/>
17793		<xsl:attribute name="fo:font-weight" select="'normal'"/>
17794		<xsl:attribute name="style:letter-kerning" select="'true'"/>
17795		<xsl:attribute name="style:font-family-asian" select="'宋体'"/>
17796		<xsl:attribute name="style:font-family-generic-asian" select="'system'"/>
17797		<xsl:attribute name="style:font-pitch-asian" select="'variable'"/>
17798		<xsl:attribute name="style:font-size-asian" select="'18pt'"/>
17799		<xsl:attribute name="style:font-style-asian" select="'normal'"/>
17800		<xsl:attribute name="style:font-weight-asian" select="'normal'"/>
17801		<xsl:attribute name="style:font-family-complex" select="'Tahoma'"/>
17802		<xsl:attribute name="style:font-family-generic-complex" select="'system'"/>
17803		<xsl:attribute name="style:font-pitch-complex" select="'variable'"/>
17804		<xsl:attribute name="style:font-size-complex" select="'18pt'"/>
17805		<xsl:attribute name="style:font-style-complex" select="'normal'"/>
17806		<xsl:attribute name="style:font-weight-complex" select="'normal'"/>
17807		<xsl:attribute name="style:text-emphasize" select="'none'"/>
17808		<xsl:attribute name="style:font-relief" select="'none'"/>
17809		<xsl:attribute name="style:text-overline-style" select="'none'"/>
17810		<xsl:attribute name="style:text-overline-color" select="'font-color'"/>
17811	</xsl:template>
17812	<xsl:template match="式样:段落式样_9912" mode="OfficeStyle">
17813		<xsl:param name="TextStyle"/>
17814		<xsl:param name="SetDefaultTitle"/>
17815		<xsl:param name="SetDefaultOutLine"/>
17816		<xsl:variable name="parentName" select="@基式样引用_4104"/>
17817		<xsl:element name="style:paragraph-properties">
17818			<xsl:if test="$SetDefaultTitle = 'true'">
17819				<xsl:call-template name="DefaultParaTitle"/>
17820			</xsl:if>
17821			<xsl:if test="$SetDefaultOutLine = 'true'">
17822				<xsl:call-template name="DefaultParaOutLine"/>
17823			</xsl:if>
17824			<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:段落式样集_9911/式样:段落式样[@类型_4102 = 'default'][1]">
17825				<xsl:call-template name="ParaPropertiesAttr"/>
17826			</xsl:for-each>
17827			<!-- xsl:call-template name="ParaParentProperties">
17828				<xsl:with-param name="Stylename" select="$parentName"/>
17829			</xsl:call-template>
17830			<xsl:call-template name="ParaPropertiesAttr"/-->
17831			<xsl:call-template name="ParaPropertiesAll">
17832				<xsl:with-param name="Stylename" select="$parentName"/>
17833			</xsl:call-template>
17834		</xsl:element>
17835		<xsl:element name="style:text-properties">
17836			<xsl:if test="$SetDefaultTitle = 'true'">
17837				<xsl:call-template name="DefaultTextTitle"/>
17838			</xsl:if>
17839			<xsl:if test="$SetDefaultOutLine = 'true'">
17840				<xsl:call-template name="DefaultTextOutLine"/>
17841			</xsl:if>
17842			<xsl:attribute name="fo:text-shadow">none</xsl:attribute>
17843			<xsl:attribute name="style:text-scale">100%</xsl:attribute>
17844			<xsl:attribute name="fo:letter-spacing">normal</xsl:attribute>
17845			<xsl:for-each select="/uof:UOF_0000/式样:式样集_990B/式样:段落式样集_9911/式样:段落式样[@类型_4102 = 'default'][1]/字:句属性_4158">
17846				<xsl:call-template name="TextProperties"/>
17847			</xsl:for-each>
17848			<xsl:call-template name="TextParaParentProperties">
17849				<xsl:with-param name="Stylename" select="$parentName"/>
17850			</xsl:call-template>
17851			<xsl:for-each select="字:句属性_4158">
17852				<xsl:call-template name="TextProperties"/>
17853			</xsl:for-each>
17854		</xsl:element>
17855	</xsl:template>
17856	<xsl:template match="规则:页面版式_B652">
17857		<xsl:element name="style:presentation-page-layout">
17858			<xsl:attribute name="style:name"><xsl:value-of select="@标识符_6B0D"/></xsl:attribute>
17859			<xsl:for-each select="uof:锚点_C644">
17860				<presentation:placeholder>
17861					<xsl:variable name="placeChar">
17862						<xsl:choose>
17863							<xsl:when test="uof:占位符_C626/@类型_C627 = 'clipart'">graphic</xsl:when>
17864							<xsl:when test="uof:占位符_C626/@类型_C627 = 'media_clip'">graphic</xsl:when>
17865							<xsl:when test="uof:占位符_C626/@类型_C627 = 'graphics'">graphic</xsl:when>
17866							<xsl:when test="uof:占位符_C626/@类型_C627 = 'number'">page-number</xsl:when>
17867							<xsl:when test="uof:占位符_C626/@类型_C627 = 'centertitle'">title</xsl:when>
17868							<xsl:when test="uof:占位符_C626/@类型_C627 = 'date'">date-time</xsl:when>
17869							<xsl:when test="uof:占位符_C626/@类型_C627 = 'chart'">chart</xsl:when>
17870							<xsl:when test="uof:占位符_C626/@类型_C627 = 'title'">
17871								<xsl:choose>
17872									<xsl:when test="../uof:锚点_6B19/uof:占位符_C626[@类型_C627='centertitle']">subtitle</xsl:when>
17873									<xsl:otherwise>title</xsl:otherwise>
17874								</xsl:choose>
17875							</xsl:when>
17876							<xsl:when test="uof:占位符_C626/@类型_C627 = 'subtitle'">subtitle</xsl:when>
17877							<xsl:when test="uof:占位符_C626/@类型_C627 = 'text'">outline</xsl:when>
17878							<xsl:when test="uof:占位符_C626/@类型_C627 = 'object'">object</xsl:when>
17879							<xsl:when test="uof:占位符_C626/@类型_C627 = 'header'">header</xsl:when>
17880							<xsl:when test="uof:占位符_C626/@类型_C627 = 'footer'">footer</xsl:when>
17881							<xsl:when test="uof:占位符_C626/@类型_C627 = 'table'">table</xsl:when>
17882							<xsl:when test="uof:占位符_C626/@类型_C627 = 'outline'">outline</xsl:when>
17883							<xsl:when test="uof:占位符_C626/@类型_C627 = 'handout'">handout</xsl:when>
17884							<xsl:when test="uof:占位符_C626/@类型_C627 = 'notes'">notes</xsl:when>
17885							<xsl:when test="uof:占位符_C626/@类型_C627 = 'vertical_text'">outline</xsl:when>
17886							<xsl:when test="uof:占位符_C626/@类型_C627 = 'vertical_title'">title</xsl:when>
17887							<xsl:when test="uof:占位符_C626/@类型_C627 = 'vertical_subtitle'">subtitle</xsl:when>
17888						</xsl:choose>
17889					</xsl:variable>
17890					<xsl:attribute name="presentation:object"><xsl:value-of select="$placeChar"/></xsl:attribute>
17891					<xsl:attribute name="svg:x"><xsl:value-of select="concat(uof:位置_C620/uof:水平_4106/uof:绝对_4107/@值_4108,$uofUnit)"/></xsl:attribute>
17892					<xsl:attribute name="svg:y"><xsl:value-of select="concat(uof:位置_C620/uof:垂直_410D/uof:绝对_4107/@值_4108,$uofUnit)"/></xsl:attribute>
17893					<xsl:attribute name="svg:width"><xsl:value-of select="concat(uof:大小_C621/@宽_C605,$uofUnit)"/></xsl:attribute>
17894					<xsl:attribute name="svg:height"><xsl:value-of select="concat(uof:大小_C621/@长_C604,$uofUnit)"/></xsl:attribute>
17895				</presentation:placeholder>
17896			</xsl:for-each>
17897		</xsl:element>
17898	</xsl:template>
17899	<xsl:template name="AutoStylePresentation">
17900		<!--xsl:for-each select="uof:演示文稿">
17901			<xsl:for-each select="演:公用处理规则">
17902				<xsl:for-each select="演:页面设置集">
17903					<xsl:apply-templates select="演:页面设置"/>
17904				</xsl:for-each>
17905				<xsl:for-each select="演:文本式样集">
17906					<xsl:apply-templates select="演:文本式样/演:段落式样" mode="AutoStyle"/>
17907				</xsl:for-each>
17908			</xsl:for-each>
17909			<xsl:for-each select="演:主体">
17910				<xsl:apply-templates select="演:母版集/演:母版" mode="AutoStyle"/>
17911				<xsl:apply-templates select="演:幻灯片集/演:幻灯片" mode="AutoStyle"/>
17912			</xsl:for-each>
17913		</xsl:for-each-->
17914		<!--设置母板页眉页脚的默认式样-->
17915		<xsl:if test="not(演:演示文稿文档_6C10/演:母版集_6C0C/演:母版_6C0D/uof:锚点_C644/uof:占位符_C626[@类型_C627 = 'header']) or not(演:演示文稿文档_6C10/演:母版集_6C0C/演:母版_6C0D/uof:锚点_C644/uof:占位符_C626[@类型_C627 = 'date']) or not(演:演示文稿文档_6C10/演:母版集_6C0C/演:母版_6C0D/uof:锚点_C644/uof:占位符_C626[@类型_C627 = 'number'])">
17916			<style:style style:name="Mpr1" style:family="presentation">
17917				<style:graphic-properties draw:stroke="none" draw:fill="none" draw:fill-color="#ffffff" draw:auto-grow-height="false"/>
17918			</style:style>
17919			<style:style style:name="MP1" style:family="paragraph">
17920				<style:text-properties fo:font-size="14pt" style:font-size-asian="14pt" style:font-size-complex="14pt"/>
17921			</style:style>
17922			<style:style style:name="MP2" style:family="paragraph">
17923				<style:paragraph-properties fo:text-align="end"/>
17924				<style:text-properties fo:font-size="14pt" style:font-size-asian="14pt" style:font-size-complex="14pt"/>
17925			</style:style>
17926			<style:style style:name="MP3" style:family="paragraph">
17927				<style:paragraph-properties fo:text-align="center"/>
17928				<style:text-properties fo:font-size="14pt" style:font-size-asian="14pt" style:font-size-complex="14pt"/>
17929			</style:style>
17930		</xsl:if>
17931		<xsl:apply-templates select="规则:公用处理规则_B665/规则:演示文稿_B66D/规则:页面设置集_B670/规则:页面设置_B638"/>
17932		<xsl:apply-templates select="演:演示文稿文档_6C10/演:母版集_6C0C/演:母版_6C0D" mode="AutoStyle"/>
17933		<!--xsl:apply-templates select="演:演示文稿文档_6C10/演:幻灯片集_6C0E/演:幻灯片_6C0F" mode="AutoStyle"/-->
17934	</xsl:template>
17935	<xsl:template match="规则:页面设置_B638">
17936		<xsl:element name="style:page-layout">
17937			<xsl:attribute name="style:name"><xsl:value-of select="@标识符_B671"/></xsl:attribute>
17938			<xsl:element name="style:page-layout-properties">
17939				<xsl:variable name="page-width">
17940					<xsl:choose>
17941						<xsl:when test="演:纸张_6BDD/@宽_C605">
17942							<xsl:value-of select="concat(演:纸张_6BDD/@宽_C605,$uofUnit)"/>
17943						</xsl:when>
17944						<xsl:when test="演:纸张方向_6BE1 = 'portrait'">
17945							<xsl:choose>
17946								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'A3'">297mm</xsl:when>
17947								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'A4'">210mm</xsl:when>
17948								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'A5'">148mm</xsl:when>
17949								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'B4'">250mm</xsl:when>
17950								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'B5'">176mm</xsl:when>
17951								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'letter-small'">215.9mm</xsl:when>
17952								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'letter'">215.9mm</xsl:when>
17953								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'PRC-16K'">184mm</xsl:when>
17954								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'PRC-32K'">130mm</xsl:when>
17955								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'PRC-32K(Big)'">140mm</xsl:when>
17956							</xsl:choose>
17957						</xsl:when>
17958						<xsl:when test="演:纸张方向_6BE1 = 'landscape'">
17959							<xsl:choose>
17960								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'A3'">420mm</xsl:when>
17961								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'A4'">297mm</xsl:when>
17962								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'A5'">210mm</xsl:when>
17963								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'B4'">353mm</xsl:when>
17964								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'B5'">250mm</xsl:when>
17965								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'letter-small'">355.7mm</xsl:when>
17966								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'letter'">279.4mm</xsl:when>
17967								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'PRC-16K'">260mm</xsl:when>
17968								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'PRC-32K'">184mm</xsl:when>
17969								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'PRC-32K(Big)'">203mm</xsl:when>
17970							</xsl:choose>
17971						</xsl:when>
17972					</xsl:choose>
17973				</xsl:variable>
17974				<xsl:variable name="page-height">
17975					<xsl:choose>
17976						<xsl:when test="演:纸张_6BDD/@长_C604">
17977							<xsl:value-of select="concat(演:纸张_6BDD/@长_C604,$uofUnit)"/>
17978						</xsl:when>
17979						<xsl:when test="演:纸张方向_6BE1 = 'portrait'">
17980							<xsl:choose>
17981								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'A3'">420mm</xsl:when>
17982								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'A4'">297mm</xsl:when>
17983								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'A5'">210mm</xsl:when>
17984								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'B4'">353mm</xsl:when>
17985								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'B5'">250mm</xsl:when>
17986								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'letter-small'">355.7mm</xsl:when>
17987								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'letter'">279.4mm</xsl:when>
17988								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'PRC-16K'">260mm</xsl:when>
17989								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'PRC-32K'">184mm</xsl:when>
17990								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'PRC-32K(Big)'">203mm</xsl:when>
17991							</xsl:choose>
17992						</xsl:when>
17993						<xsl:when test="演:纸张方向_6BE1 = 'landscape'">
17994							<xsl:choose>
17995								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'A3'">297mm</xsl:when>
17996								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'A4'">210mm</xsl:when>
17997								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'A5'">148mm</xsl:when>
17998								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'B4'">250mm</xsl:when>
17999								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'B5'">176mm</xsl:when>
18000								<xsl:when test="演:纸张_6BDD/@u纸型_C60C = 'letter-small'">215.9mm</xsl:when>
18001								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'letter'">215.9mm</xsl:when>
18002								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'PRC-16K'">184mm</xsl:when>
18003								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'PRC-32K'">130mm</xsl:when>
18004								<xsl:when test="演:纸张_6BDD/@纸型_C60C = 'PRC-32K(Big)'">140mm</xsl:when>
18005							</xsl:choose>
18006						</xsl:when>
18007					</xsl:choose>
18008				</xsl:variable>
18009				<xsl:attribute name="fo:page-width"><xsl:value-of select="$page-width"/></xsl:attribute>
18010				<xsl:attribute name="fo:page-height"><xsl:value-of select="$page-height"/></xsl:attribute>
18011				<xsl:for-each select="演:页边距_6BDE">
18012					<xsl:attribute name="fo:margin-top"><xsl:value-of select="concat(@上_C609,$uofUnit)"/></xsl:attribute>
18013					<xsl:attribute name="fo:margin-bottom"><xsl:value-of select="concat(@下_C60B,$uofUnit)"/></xsl:attribute>
18014					<xsl:attribute name="fo:margin-left"><xsl:value-of select="concat(@左_C608,$uofUnit)"/></xsl:attribute>
18015					<xsl:attribute name="fo:margin-right"><xsl:value-of select="concat(@右_C60A,$uofUnit)"/></xsl:attribute>
18016				</xsl:for-each>
18017				<xsl:choose>
18018					<xsl:when test="演:纸张方向_6BE1 = 'landscape'">
18019						<xsl:attribute name="style:print-orientation">landscape</xsl:attribute>
18020					</xsl:when>
18021					<xsl:otherwise>
18022						<xsl:attribute name="style:print-orientation">portrait</xsl:attribute>
18023					</xsl:otherwise>
18024				</xsl:choose>
18025			</xsl:element>
18026		</xsl:element>
18027	</xsl:template>
18028	<xsl:template match="式样:段落式样_9912" mode="AutoStyle">
18029		<!--部分案例不规范 式样类型写成default  造成丢失 故稍作修改
18030		<xsl:call-template name="UOFParagraphStyle">
18031			<xsl:with-param name="Type" select="string('auto')"/>
18032		</xsl:call-template-->
18033		<xsl:element name="style:style">
18034			<xsl:call-template name="OneParagraphStyle"/>
18035		</xsl:element>
18036	</xsl:template>
18037	<xsl:template name="showSettings">
18038		<xsl:variable name="displayorderref" select="规则:放映顺序_B658"/>
18039		<xsl:element name="presentation:settings">
18040			<xsl:attribute name="presentation:mouse-visible">false</xsl:attribute>
18041			<xsl:if test="string(规则:是否循环放映_B65A)='true'">
18042				<xsl:attribute name="presentation:endless">true</xsl:attribute>
18043			</xsl:if>
18044			<xsl:if test="规则:幻灯片序列_B654[@标识符_B655=$displayorderref]/@是否自定义_B657='true'">
18045				<xsl:attribute name="presentation:show"><xsl:value-of select="$displayorderref"/></xsl:attribute>
18046			</xsl:if>
18047			<xsl:if test="string(规则:是否全屏放映_B659)='false'">
18048				<xsl:attribute name="presentation:full-screen">false</xsl:attribute>
18049			</xsl:if>
18050			<xsl:if test="string(规则:是否手动方式_B65C)='true'">
18051				<xsl:attribute name="presentation:force-manual">true</xsl:attribute>
18052			</xsl:if>
18053			<xsl:if test="string(规则:是否使用导航帮助_B65D)='true'">
18054				<xsl:attribute name="presentation:start-with-navigator">true</xsl:attribute>
18055			</xsl:if>
18056			<xsl:if test="string(规则:是否放映动画_B65E)='false'">
18057				<xsl:attribute name="presentation:animations">disabled</xsl:attribute>
18058			</xsl:if>
18059			<xsl:if test="string(规则:是否前端显示_B65F)='true'">
18060				<xsl:attribute name="presentation:stay-on-top">true</xsl:attribute>
18061			</xsl:if>
18062			<xsl:if test="规则:放映间隔_B65B">
18063				<xsl:variable name="displayinterval" select="规则:放映间隔_B65B"/>
18064				<xsl:attribute name="presentation:pause"><xsl:if test="contains($displayinterval,'P0Y0M0DT')"><xsl:variable name="OOtime"><xsl:value-of select="substring-after(规则:放映间隔_B65B,'P0Y0M0DT')"/></xsl:variable><xsl:value-of select="concat('PT',$OOtime)"/></xsl:if><xsl:if test="contains($displayinterval,'PT')"><xsl:value-of select="$displayinterval"/></xsl:if></xsl:attribute>
18065			</xsl:if>
18066			<xsl:for-each select="规则:幻灯片序列_B654">
18067				<xsl:choose>
18068					<xsl:when test="@标识符_B655=$displayorderref">
18069						<xsl:variable name="space" select="."/>
18070						<xsl:choose>
18071							<xsl:when test="@是否自定义_B657='false'">
18072								<xsl:variable name="start">
18073									<xsl:choose>
18074										<xsl:when test="contains($space,' ')">
18075											<xsl:value-of select="substring-before($space,' ')"/>
18076										</xsl:when>
18077										<xsl:otherwise>
18078											<xsl:value-of select="$space"/>
18079										</xsl:otherwise>
18080									</xsl:choose>
18081								</xsl:variable>
18082								<xsl:variable name="end">
18083									<xsl:choose>
18084										<xsl:when test="contains($space,' ')">
18085											<xsl:value-of select="substring-after($space,' ')"/>
18086										</xsl:when>
18087										<xsl:otherwise>
18088											<xsl:value-of select="$space"/>
18089										</xsl:otherwise>
18090									</xsl:choose>
18091								</xsl:variable>
18092								<xsl:if test="not($start='')">
18093									<xsl:attribute name="presentation:start-page"><xsl:value-of select="$start"/></xsl:attribute>
18094								</xsl:if>
18095								<xsl:if test="not($end='')">
18096									<xsl:attribute name="presentation:end-page"><xsl:value-of select="$end"/></xsl:attribute>
18097								</xsl:if>
18098							</xsl:when>
18099							<xsl:otherwise>
18100								<xsl:attribute name="presentation:show"><xsl:value-of select="$displayorderref"/></xsl:attribute>
18101							</xsl:otherwise>
18102						</xsl:choose>
18103					</xsl:when>
18104				</xsl:choose>
18105			</xsl:for-each>
18106			<xsl:for-each select="规则:幻灯片序列_B654">
18107				<xsl:element name="presentation:show">
18108					<xsl:attribute name="presentation:name" select="@标识符_B655"/>
18109					<xsl:attribute name="presentation:pages" select="replace(.,' ',',')"/>
18110				</xsl:element>
18111			</xsl:for-each>
18112		</xsl:element>
18113	</xsl:template>
18114	<xsl:template match="演:母版_6C0D" mode="AutoStyle">
18115		<xsl:variable name="MasterName" select="@标识符_6BE8"/>
18116		<xsl:element name="style:style">
18117			<xsl:attribute name="style:name" select="concat($MasterName,'_draw')"/>
18118			<xsl:attribute name="style:family">drawing-page</xsl:attribute>
18119			<xsl:element name="style:drawing-page-properties">
18120				<xsl:for-each select="演:背景_6B2C">
18121					<xsl:call-template name="FillGraph"/>
18122				</xsl:for-each>
18123				<!--母版页面式样设置页眉页脚是否显示不起作用,故不应用PlaceholderDisplay模板-->
18124			</xsl:element>
18125		</xsl:element>
18126		<!--动画在幻灯片页中处理-->
18127	</xsl:template>
18128	<xsl:template match="演:幻灯片_6C0F" mode="AutoStyle">
18129		<xsl:variable name="MasterName" select="@母版引用_6B26"/>
18130		<xsl:variable name="SlideName" select="@标识符_6B0A"/>
18131		<xsl:element name="style:style">
18132			<xsl:attribute name="style:name" select="concat($SlideName,'_draw')"/>
18133			<xsl:attribute name="style:family">drawing-page</xsl:attribute>
18134			<xsl:element name="style:drawing-page-properties">
18135				<xsl:for-each select="演:背景_6B2C">
18136					<xsl:call-template name="FillGraph"/>
18137				</xsl:for-each>
18138				<xsl:attribute name="presentation:visibility"><xsl:choose><xsl:when test="@是否显示_6B28='false' or @是否显示_6B28='0'">hidden</xsl:when><xsl:otherwise>visible</xsl:otherwise></xsl:choose></xsl:attribute>
18139				<xsl:attribute name="presentation:background-visible"><xsl:choose><xsl:when test="@是否显示背景_6B29='false' or @是否显示背景_6B29='0'">false</xsl:when><xsl:otherwise>true</xsl:otherwise></xsl:choose></xsl:attribute>
18140				<xsl:attribute name="presentation:background-objects-visible"><xsl:choose><xsl:when test="@是否显示背景对象_6B2A='false' or @是否显示背景对象_6B2A='0'">false</xsl:when><xsl:otherwise>true</xsl:otherwise></xsl:choose></xsl:attribute>
18141				<xsl:for-each select="演:切换_6B1F">
18142					<xsl:for-each select="演:方式_6B23">
18143						<!--切换声音在动画中处理-->
18144						<xsl:attribute name="presentation:transition-type"><xsl:value-of select="'manual'"/></xsl:attribute>
18145						<xsl:if test="演:单击鼠标_6B24='false' or 演:单击鼠标_6B24='0'">
18146							<xsl:attribute name="presentation:transition-type"><xsl:value-of select="'none'"/></xsl:attribute>
18147							<xsl:if test="演:时间间隔_6B25">
18148								<xsl:attribute name="presentation:transition-type"><xsl:value-of select="'automatic'"/></xsl:attribute>
18149							</xsl:if>
18150						</xsl:if>
18151						<xsl:if test="演:时间间隔_6B25">
18152							<xsl:attribute name="presentation:duration"><!--UOF的时间表示如果与ODF不一致需做进一步处理--><xsl:value-of select="演:时间间隔_6B25"/></xsl:attribute>
18153						</xsl:if>
18154					</xsl:for-each>
18155					<xsl:if test="演:速度_6B21">
18156						<xsl:attribute name="presentation:transition-speed"><xsl:value-of select="演:速度_6B21"/></xsl:attribute>
18157					</xsl:if>
18158				</xsl:for-each>
18159				<xsl:variable name="isFirstSld">
18160					<xsl:choose>
18161						<xsl:when test="preceding-sibling::演:幻灯片_6C0F">0</xsl:when>
18162						<xsl:otherwise>1</xsl:otherwise>
18163					</xsl:choose>
18164				</xsl:variable>
18165				<xsl:for-each select="key('HeaderFooterP','规则:幻灯片_B641')">
18166					<xsl:choose>
18167						<xsl:when test="@标题幻灯片中是否显示_B64B='true'and $isFirstSld='1' ">
18168							<xsl:attribute name="presentation:display-date-time" select="'false'"/>
18169							<xsl:attribute name="presentation:display-footer" select="'false'"/>
18170							<xsl:attribute name="presentation:display-page-number" select="'false'"/>
18171						</xsl:when>
18172						<xsl:otherwise>
18173							<xsl:attribute name="presentation:display-page-number"><xsl:choose><xsl:when test="@是否显示幻灯片编号_B64A='true'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
18174							<xsl:attribute name="presentation:display-date-time"><xsl:choose><xsl:when test="@是否显示日期和时间_B647='false'">false</xsl:when><xsl:otherwise>true</xsl:otherwise></xsl:choose></xsl:attribute>
18175							<xsl:attribute name="presentation:display-footer"><xsl:choose><xsl:when test="@是否显示页脚_B648='false'">false</xsl:when><xsl:otherwise>true</xsl:otherwise></xsl:choose></xsl:attribute>
18176						</xsl:otherwise>
18177					</xsl:choose>
18178				</xsl:for-each>
18179			</xsl:element>
18180		</xsl:element>
18181		<xsl:element name="style:style">
18182			<xsl:attribute name="style:name" select="concat($SlideName,'_N_draw')"/>
18183			<xsl:attribute name="style:family">drawing-page</xsl:attribute>
18184			<xsl:element name="style:drawing-page-properties">
18185				<xsl:for-each select="演:幻灯片备注_6B1D/演:背景_6B2C">
18186					<xsl:call-template name="FillGraph"/>
18187				</xsl:for-each>
18188				<xsl:for-each select="key('HeaderFooterP','规则:讲义和备注_B64C')">
18189					<xsl:attribute name="presentation:display-header"><xsl:choose><xsl:when test="@是否显示页眉_B64F='false'">false</xsl:when><xsl:otherwise>true</xsl:otherwise></xsl:choose></xsl:attribute>
18190					<xsl:attribute name="presentation:display-page-number"><xsl:choose><xsl:when test="@是否显示页码_B650='false'">false</xsl:when><xsl:otherwise>true</xsl:otherwise></xsl:choose></xsl:attribute>
18191					<xsl:attribute name="presentation:display-date-time"><xsl:choose><xsl:when test="@是否显示日期和时间_B647='false'">false</xsl:when><xsl:otherwise>true</xsl:otherwise></xsl:choose></xsl:attribute>
18192					<xsl:attribute name="presentation:display-footer"><xsl:choose><xsl:when test="@是否显示页脚_B648='false'">false</xsl:when><xsl:otherwise>true</xsl:otherwise></xsl:choose></xsl:attribute>
18193				</xsl:for-each>
18194			</xsl:element>
18195		</xsl:element>
18196		<!--动画在幻灯片页中处理-->
18197	</xsl:template>
18198	<xsl:template name="MasterStylePresentation">
18199		<draw:layer-set>
18200			<!-- uof中无对应项 -->
18201			<draw:layer draw:name="layout"/>
18202			<draw:layer draw:name="background"/>
18203			<draw:layer draw:name="backgroundobjects"/>
18204			<draw:layer draw:name="controls"/>
18205			<draw:layer draw:name="measurelines"/>
18206		</draw:layer-set>
18207		<xsl:apply-templates select="演:演示文稿文档_6C10/演:母版集_6C0C/演:母版_6C0D"/>
18208	</xsl:template>
18209	<xsl:template match="演:母版_6C0D">
18210		<xsl:variable name="pageLayoutStyleName" select="@页面设置引用_6C18"/>
18211		<xsl:variable name="textAreaHeight">
18212			<xsl:for-each select="/uof:UOF_0000/规则:公用处理规则_B665/规则:演示文稿_B66D/规则:页面设置集_B670/规则:页面设置_B638[@标识符_B671 = $pageLayoutStyleName]">
18213				<xsl:variable name="top">
18214					<xsl:choose>
18215						<xsl:when test="演:页边距_6BDE/@上_C609">
18216							<xsl:value-of select="演:页边距_6BDE/@上_C609"/>
18217						</xsl:when>
18218						<xsl:otherwise>0</xsl:otherwise>
18219					</xsl:choose>
18220				</xsl:variable>
18221				<xsl:variable name="bottom">
18222					<xsl:choose>
18223						<xsl:when test="演:页边距_6BDE/@下_C60B">
18224							<xsl:value-of select="演:页边距_6BDE/@下_C60B"/>
18225						</xsl:when>
18226						<xsl:otherwise>0</xsl:otherwise>
18227					</xsl:choose>
18228				</xsl:variable>
18229				<xsl:value-of select="number(演:纸张_6BDD/@长_C604) - number($top) - number($bottom)"/>
18230			</xsl:for-each>
18231		</xsl:variable>
18232		<xsl:variable name="textAreaWidth">
18233			<xsl:for-each select="/uof:UOF_0000/规则:公用处理规则_B665/规则:演示文稿_B66D/规则:页面设置集_B670/规则:页面设置_B638[@标识符_B671 = $pageLayoutStyleName]">
18234				<xsl:variable name="left">
18235					<xsl:choose>
18236						<xsl:when test="演:页边距_6BDE/@左_C608">
18237							<xsl:value-of select="演:页边距_6BDE/@左_C608"/>
18238						</xsl:when>
18239						<xsl:otherwise>0</xsl:otherwise>
18240					</xsl:choose>
18241				</xsl:variable>
18242				<xsl:variable name="right">
18243					<xsl:choose>
18244						<xsl:when test="演:页边距_6BDE/@右_C60A">
18245							<xsl:value-of select="演:页边距_6BDE/@右_C60A"/>
18246						</xsl:when>
18247						<xsl:otherwise>0</xsl:otherwise>
18248					</xsl:choose>
18249				</xsl:variable>
18250				<xsl:value-of select="number(演:纸张_6BDD/@宽_C605) - number($left) - number($right)"/>
18251			</xsl:for-each>
18252		</xsl:variable>
18253		<xsl:choose>
18254			<xsl:when test="@类型_6BEA = 'handout' ">
18255				<xsl:element name="style:handout-master">
18256					<xsl:variable name="MasterName" select="@标识符_6BE8"/>
18257					<xsl:attribute name="style:name"><xsl:value-of select="$MasterName"/></xsl:attribute>
18258					<xsl:attribute name="style:page-layout-name"><xsl:value-of select="@页面设置引用_6C18"/></xsl:attribute>
18259					<xsl:attribute name="draw:style-name" select="concat($MasterName,'_draw')"/>
18260					<xsl:if test="@页面版式引用_6BEC">
18261						<xsl:attribute name="presentation:presentation-page-layout-name"><xsl:value-of select="@页面版式引用_6BEC"/></xsl:attribute>
18262					</xsl:if>
18263					<xsl:for-each select="uof:锚点_C644">
18264						<xsl:call-template name="ObjectContent"/>
18265					</xsl:for-each>
18266				</xsl:element>
18267			</xsl:when>
18268			<xsl:when test="@类型_6BEA = 'slide' or not(@类型_6BEA)">
18269				<xsl:element name="style:master-page">
18270					<xsl:variable name="MasterName" select="@标识符_6BE8"/>
18271					<xsl:attribute name="style:name"><xsl:value-of select="$MasterName"/></xsl:attribute>
18272					<!-- 只要@style:name和@style:display-name不一致,则幻灯片、母版中的文字默认采用软件预设的段落式样,实际设置的式样信息丢失 -->
18273					<!--<xsl:attribute name="style:display-name"><xsl:value-of select="@演:名称"/></xsl:attribute>
18274					-->
18275					<xsl:attribute name="style:display-name"><xsl:value-of select="$MasterName"/></xsl:attribute>
18276					<!-- <xsl:attribute name="style:page-layout-name"><xsl:value-of select="'PM1'"/></xsl:attribute>
18277                     -->
18278					<xsl:attribute name="style:page-layout-name"><xsl:value-of select="@页面设置引用_6C18"/></xsl:attribute>
18279					<xsl:attribute name="draw:style-name" select="concat($MasterName,'_draw')"/>
18280					<xsl:for-each select="uof:锚点_C644">
18281						<xsl:call-template name="ObjectContent"/>
18282					</xsl:for-each>
18283					<!--演示文稿母板中默认页眉页脚
18284					<xsl:call-template name="DefaultMasterFooterOrHeaderOrDatetimeSize">
18285						<xsl:with-param name="textAreaHeight" select="$textAreaHeight"/>
18286						<xsl:with-param name="textAreaWidth" select="$textAreaWidth"/>
18287					</xsl:call-template>-->
18288					<!--可能在不同幻灯片中出现不一致slide母版-note母版引用,取第一次出现的note母版放入slide母版下-->
18289					<xsl:variable name="NoteMasterName" select="key('Slide',$MasterName)[1]/演:幻灯片备注_6B1D/@备注母版引用_6B2D"/>
18290					<xsl:for-each select="../演:母版_6C0D[@标识符_6BE8=$NoteMasterName]">
18291						<xsl:if test="@类型_6BEA = 'notes'">
18292							<xsl:element name="presentation:notes">
18293								<!-- <xsl:attribute name="style:page-layout-name"><xsl:value-of select="'PM1'"/></xsl:attribute>
18294								 -->
18295								<xsl:attribute name="style:page-layout-name"><xsl:value-of select="@页面设置引用_6C18"/></xsl:attribute>
18296								<xsl:attribute name="draw:style-name"><xsl:value-of select="concat($NoteMasterName,'_draw')"/></xsl:attribute>
18297								<xsl:for-each select="uof:锚点_C644">
18298									<xsl:call-template name="ObjectContent"/>
18299								</xsl:for-each>
18300							</xsl:element>
18301						</xsl:if>
18302					</xsl:for-each>
18303				</xsl:element>
18304			</xsl:when>
18305		</xsl:choose>
18306	</xsl:template>
18307	<xsl:template match="演:演示文稿文档_6C10">
18308		<office:body>
18309			<office:presentation>
18310				<xsl:for-each select="../规则:公用处理规则_B665/规则:演示文稿_B66D">
18311					<xsl:apply-templates select="规则:页眉页脚集_B640"/>
18312				</xsl:for-each>
18313				<xsl:for-each select="演:幻灯片集_6C0E/演:幻灯片_6C0F">
18314					<xsl:apply-templates select="."/>
18315				</xsl:for-each>
18316				<xsl:for-each select="../规则:公用处理规则_B665/规则:演示文稿_B66D/规则:放映设置_B653">
18317					<xsl:call-template name="showSettings"/>
18318				</xsl:for-each>
18319			</office:presentation>
18320		</office:body>
18321	</xsl:template>
18322	<xsl:template match="规则:页眉页脚集_B640">
18323		<xsl:for-each select="规则:幻灯片_B641">
18324			<xsl:for-each select="规则:页脚_B644">
18325				<xsl:element name="presentation:footer-decl">
18326					<xsl:attribute name="presentation:name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
18327					<xsl:value-of select="."/>
18328				</xsl:element>
18329			</xsl:for-each>
18330			<xsl:element name="presentation:date-time-decl">
18331				<xsl:attribute name="presentation:name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
18332				<xsl:choose>
18333					<xsl:when test="string(@是否自动更新日期和时间_B649)='true'">
18334						<xsl:attribute name="presentation:source">current-date</xsl:attribute>
18335					</xsl:when>
18336					<xsl:otherwise>
18337						<xsl:attribute name="presentation:source">fixed</xsl:attribute>
18338						<xsl:value-of select="规则:日期和时间字符串_B643"/>
18339					</xsl:otherwise>
18340				</xsl:choose>
18341			</xsl:element>
18342		</xsl:for-each>
18343		<xsl:for-each select="规则:讲义和备注_B64C">
18344			<xsl:for-each select="规则:页脚_B644">
18345				<xsl:element name="presentation:footer-decl">
18346					<xsl:attribute name="presentation:name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
18347					<xsl:value-of select="string(.)"/>
18348				</xsl:element>
18349			</xsl:for-each>
18350			<xsl:for-each select="规则:页眉_B64D">
18351				<xsl:element name="presentation:header-decl">
18352					<xsl:attribute name="presentation:name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
18353					<xsl:value-of select="string(.)"/>
18354				</xsl:element>
18355			</xsl:for-each>
18356			<xsl:element name="presentation:date-time-decl">
18357				<xsl:attribute name="presentation:name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
18358				<xsl:choose>
18359					<xsl:when test="string(@是否自动更新日期和时间_B649)='true'">
18360						<xsl:attribute name="presentation:source">current-date</xsl:attribute>
18361					</xsl:when>
18362					<xsl:otherwise>
18363						<xsl:attribute name="presentation:source">fixed</xsl:attribute>
18364					</xsl:otherwise>
18365				</xsl:choose>
18366			</xsl:element>
18367		</xsl:for-each>
18368	</xsl:template>
18369	<xsl:template match="演:幻灯片_6C0F">
18370		<xsl:variable name="SlideName" select="@标识符_6B0A"/>
18371		<xsl:element name="draw:page">
18372			<xsl:attribute name="draw:name"><xsl:value-of select="$SlideName"/></xsl:attribute>
18373			<xsl:attribute name="draw:style-name"><xsl:value-of select="concat($SlideName,'_draw')"/></xsl:attribute>
18374			<xsl:attribute name="draw:display-name"><xsl:value-of select="@名称_6B0B"/></xsl:attribute>
18375			<xsl:attribute name="draw:master-page-name"><xsl:value-of select="@母版引用_6B26"/></xsl:attribute>
18376			<xsl:if test="@页面版式引用_6B27">
18377				<xsl:attribute name="presentation:presentation-page-layout-name"><xsl:value-of select="@页面版式引用_6B27"/></xsl:attribute>
18378			</xsl:if>
18379			<xsl:for-each select="key('HeaderFooterP','规则:幻灯片_B641')">
18380				<xsl:for-each select="规则:页脚_B644">
18381					<xsl:attribute name="presentation:use-footer-name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
18382				</xsl:for-each>
18383				<xsl:attribute name="presentation:use-date-time-name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
18384			</xsl:for-each>
18385			<xsl:if test="(演:切换_6B1F/演:效果_6B20 and 演:切换_6B1F/演:效果_6B20 !='none') or 演:切换_6B1F/演:声音_6B22">
18386				<xsl:attribute name="draw:id"><xsl:value-of select="generate-id()"/></xsl:attribute>
18387			</xsl:if>
18388			<xsl:for-each select="uof:锚点_C644">
18389				<xsl:if test="not(uof:占位符_C626/@类型_C627='date' or uof:占位符_C626/@类型_C627='footer' or uof:占位符_C626/@类型_C627='number')">
18390					<xsl:call-template name="ObjectContent"/>
18391				</xsl:if>
18392			</xsl:for-each>
18393			<xsl:if test="演:动画_6B1A or (演:切换_6B1F/演:效果_6B20 and 演:切换_6B1F/演:效果_6B20 !='none') or 演:切换_6B1F/演:声音_6B22 or (/uof:UOF_0000/规则:公用处理规则_B665/规则:演示文稿_B66D/规则:放映设置_B653/规则:声音_B660 and position()= 1)">
18394				<xsl:element name="anim:par">
18395					<xsl:attribute name="presentation:node-type">timing-root</xsl:attribute>
18396					<xsl:if test="(演:切换_6B1F/演:效果_6B20 and 演:切换_6B1F/演:效果_6B20 !='none') or 演:切换_6B1F/演:声音_6B22">
18397						<xsl:apply-templates select="演:切换_6B1F"/>
18398					</xsl:if>
18399					<!--用幻灯片切换声音模拟背景音乐-->
18400					<xsl:if test="/uof:UOF_0000/规则:公用处理规则_B665/规则:演示文稿_B66D/规则:放映设置_B653/规则:声音_B660">
18401						<xsl:element name="anim:par">
18402							<xsl:attribute name="smil:begin"><xsl:value-of select="concat(generate-id(),'.begin')"/></xsl:attribute>
18403							<xsl:variable name="VoicePath">
18404								<xsl:call-template name="TranslateVoicePath">
18405									<xsl:with-param name="voicetype" select="/uof:UOF_0000/规则:公用处理规则_B665/规则:演示文稿_B66D/规则:放映设置_B653/规则:声音_B660/@预定义声音_C631"/>
18406								</xsl:call-template>
18407							</xsl:variable>
18408							<xsl:element name="anim:audio">
18409								<xsl:choose>
18410									<xsl:when test="/uof:UOF_0000/规则:公用处理规则_B665/规则:演示文稿_B66D/规则:放映设置_B653/规则:声音_B660/@预定义声音_C631 and /uof:UOF_0000/规则:公用处理规则_B665/规则:演示文稿_B66D/规则:放映设置_B653/规则:声音_B660/@预定义声音_C631 != 'none'">
18411										<xsl:attribute name="xlink:href"><xsl:value-of select="$VoicePath"/></xsl:attribute>
18412									</xsl:when>
18413									<xsl:when test="/uof:UOF_0000/规则:公用处理规则_B665/规则:演示文稿_B66D/规则:放映设置_B653/规则:声音_B660/@自定义声音_C632">
18414										<xsl:attribute name="xlink:href"><xsl:value-of select="/uof:UOF_0000/规则:公用处理规则_B665/规则:演示文稿_B66D/规则:放映设置_B653/规则:声音_B660/@自定义声音_C632"/></xsl:attribute>
18415									</xsl:when>
18416								</xsl:choose>
18417								<xsl:if test="/uof:UOF_0000/规则:公用处理规则_B665/规则:演示文稿_B66D/规则:放映设置_B653/规则:声音_B660/@是否循环播放_C633 = 'true'">
18418									<xsl:attribute name="smil:repeatCount">indefinite</xsl:attribute>
18419								</xsl:if>
18420							</xsl:element>
18421						</xsl:element>
18422					</xsl:if>
18423					<xsl:apply-templates select="演:动画_6B1A"/>
18424				</xsl:element>
18425			</xsl:if>
18426			<!-- 目前版本默认幻灯片均有notes,故写出。由此可保证页眉页脚的相关设置 -->
18427			<xsl:element name="presentation:notes">
18428				<xsl:for-each select="key('HeaderFooterP','规则:讲义和备注_B64C')">
18429					<xsl:for-each select="演:页脚_B644">
18430						<xsl:attribute name="presentation:use-footer-name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
18431					</xsl:for-each>
18432					<xsl:for-each select="演:页眉_B64D">
18433						<xsl:attribute name="presentation:use-header-name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
18434					</xsl:for-each>
18435					<xsl:attribute name="presentation:use-date-time-name"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
18436				</xsl:for-each>
18437				<xsl:attribute name="draw:style-name"><xsl:value-of select="concat($SlideName,'_N_draw')"/></xsl:attribute>
18438				<xsl:for-each select="演:幻灯片备注_6B1D/uof:锚点_C644">
18439					<xsl:if test="not(uof:占位符_C626/@类型_C627='date' or uof:占位符_C626/@类型_C627='footer' or uof:占位符_C626/@类型_C627='number' or uof:占位符_C626/@类型_C627='header')">
18440						<xsl:call-template name="ObjectContent"/>
18441					</xsl:if>
18442				</xsl:for-each>
18443			</xsl:element>
18444		</xsl:element>
18445	</xsl:template>
18446	<!--预处理了一个uof:RoGalleryPath元素,存放声音文件路径-->
18447	<xsl:variable name="RoGalleryPath">
18448		<xsl:value-of select="/uof:UOF_0000/uof:RoGalleryPath"/>
18449	</xsl:variable>
18450	<xsl:template name="TranslateVoicePath">
18451		<xsl:param name="voicetype"/>
18452		<xsl:choose>
18453			<xsl:when test="$voicetype = 'applause'">
18454				<xsl:value-of select="concat('/',$RoGalleryPath,'/applause.wav')"/>
18455			</xsl:when>
18456			<xsl:when test="$voicetype = 'arrow'">
18457				<xsl:value-of select="concat('/',$RoGalleryPath,'/arrow.wav')"/>
18458			</xsl:when>
18459			<xsl:when test="$voicetype = 'bomb'">
18460				<xsl:value-of select="concat('/',$RoGalleryPath,'/bomb.wav')"/>
18461			</xsl:when>
18462			<xsl:when test="$voicetype = 'breeze'">
18463				<xsl:value-of select="concat('/',$RoGalleryPath,'/breeze.wav')"/>
18464			</xsl:when>
18465			<xsl:when test="$voicetype = 'camera'">
18466				<xsl:value-of select="concat('/',$RoGalleryPath,'/camera.wav')"/>
18467			</xsl:when>
18468			<xsl:when test="$voicetype = 'cash register'">
18469				<xsl:value-of select="concat('/',$RoGalleryPath,'/cashregister.wav')"/>
18470			</xsl:when>
18471			<xsl:when test="$voicetype = 'chime'">
18472				<xsl:value-of select="concat('/',$RoGalleryPath,'/chime.wav')"/>
18473			</xsl:when>
18474			<xsl:when test="$voicetype = 'click'">
18475				<xsl:value-of select="concat('/',$RoGalleryPath,'/click.wav')"/>
18476			</xsl:when>
18477			<xsl:when test="$voicetype = 'coin'">
18478				<xsl:value-of select="concat('/',$RoGalleryPath,'/coin.wav')"/>
18479			</xsl:when>
18480			<xsl:when test="$voicetype = 'drum roll'">
18481				<xsl:value-of select="concat('/',$RoGalleryPath,'/drumroll.wav')"/>
18482			</xsl:when>
18483			<xsl:when test="$voicetype = 'explosion'">
18484				<xsl:value-of select="concat('/',$RoGalleryPath,'/explosion.wav')"/>
18485			</xsl:when>
18486			<xsl:when test="$voicetype = 'hammer'">
18487				<xsl:value-of select="concat('/',$RoGalleryPath,'/hammer.wav')"/>
18488			</xsl:when>
18489			<xsl:when test="$voicetype = 'laser'">
18490				<xsl:value-of select="concat('/',$RoGalleryPath,'/laser.wav')"/>
18491			</xsl:when>
18492			<xsl:when test="$voicetype = 'push'">
18493				<xsl:value-of select="concat('/',$RoGalleryPath,'/push.wav')"/>
18494			</xsl:when>
18495			<xsl:when test="$voicetype = 'suction'">
18496				<xsl:value-of select="concat('/',$RoGalleryPath,'/suction.wav')"/>
18497			</xsl:when>
18498			<xsl:when test="$voicetype = 'typewriter'">
18499				<xsl:value-of select="concat('/',$RoGalleryPath,'/typewriter.wav')"/>
18500			</xsl:when>
18501			<xsl:when test="$voicetype = 'voltage'">
18502				<xsl:value-of select="concat('/',$RoGalleryPath,'/voltage.wav')"/>
18503			</xsl:when>
18504			<xsl:when test="$voicetype = 'whoosh'">
18505				<xsl:value-of select="concat('/',$RoGalleryPath,'/whoosh.wav')"/>
18506			</xsl:when>
18507			<xsl:when test="$voicetype = 'wind'">
18508				<xsl:value-of select="concat('/',$RoGalleryPath,'/wind.wav')"/>
18509			</xsl:when>
18510		</xsl:choose>
18511	</xsl:template>
18512	<xsl:template name="SlideSwitchAtrr">
18513		<xsl:variable name="switchSpeed">
18514			<xsl:choose>
18515				<xsl:when test="演:速度_6B21='slow'">3s</xsl:when>
18516				<xsl:when test="演:速度_6B21='middle'">2s</xsl:when>
18517				<xsl:when test="演:速度_6B21='fast'">1s</xsl:when>
18518				<xsl:otherwise>3s</xsl:otherwise>
18519			</xsl:choose>
18520		</xsl:variable>
18521		<xsl:attribute name="smil:dur"><xsl:value-of select="$switchSpeed"/></xsl:attribute>
18522		<xsl:if test="演:效果_6B20 and 演:效果_6B20 != 'none'">
18523			<xsl:variable name="effect">
18524				<xsl:value-of select="演:效果_6B20"/>
18525			</xsl:variable>
18526			<xsl:choose>
18527				<xsl:when test="$effect='box in'">
18528					<xsl:attribute name="smil:type">irisWipe</xsl:attribute>
18529					<xsl:attribute name="smil:subtype">rectangle</xsl:attribute>
18530					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
18531				</xsl:when>
18532				<xsl:when test="$effect='box out'">
18533					<xsl:attribute name="smil:type">irisWipe</xsl:attribute>
18534					<xsl:attribute name="smil:subtype">rectangle</xsl:attribute>
18535				</xsl:when>
18536				<xsl:when test="$effect='checkerboard across'">
18537					<xsl:attribute name="smil:type">checkerBoardWipe</xsl:attribute>
18538					<xsl:attribute name="smil:subtype">across</xsl:attribute>
18539				</xsl:when>
18540				<xsl:when test="$effect='checkerboard down'">
18541					<xsl:attribute name="smil:type">checkerBoardWipe</xsl:attribute>
18542					<xsl:attribute name="smil:subtype">down</xsl:attribute>
18543				</xsl:when>
18544				<xsl:when test="$effect='comb horizontal'">
18545					<xsl:attribute name="smil:type">pushWipe</xsl:attribute>
18546					<xsl:attribute name="smil:subtype">combHorizontal</xsl:attribute>
18547				</xsl:when>
18548				<xsl:when test="$effect='comb vertical'">
18549					<xsl:attribute name="smil:type">pushWipe</xsl:attribute>
18550					<xsl:attribute name="smil:subtype">combVertical</xsl:attribute>
18551				</xsl:when>
18552				<xsl:when test="$effect='uncover down'">
18553					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18554					<xsl:attribute name="smil:subtype">fromTop</xsl:attribute>
18555					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
18556				</xsl:when>
18557				<xsl:when test="$effect='uncover left'">
18558					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18559					<xsl:attribute name="smil:subtype">fromRight</xsl:attribute>
18560					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
18561				</xsl:when>
18562				<xsl:when test="$effect='uncover right'">
18563					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18564					<xsl:attribute name="smil:subtype">fromLeft</xsl:attribute>
18565					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
18566				</xsl:when>
18567				<xsl:when test="$effect='uncover up'">
18568					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18569					<xsl:attribute name="smil:subtype">fromBottom</xsl:attribute>
18570					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
18571				</xsl:when>
18572				<xsl:when test="$effect='uncover left-down'">
18573					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18574					<xsl:attribute name="smil:subtype">fromTopRight</xsl:attribute>
18575					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
18576				</xsl:when>
18577				<xsl:when test="$effect='uncover left-up'">
18578					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18579					<xsl:attribute name="smil:subtype">fromBottomRight</xsl:attribute>
18580					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
18581				</xsl:when>
18582				<xsl:when test="$effect='uncover right-down'">
18583					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18584					<xsl:attribute name="smil:subtype">fromTopLeft</xsl:attribute>
18585					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
18586				</xsl:when>
18587				<xsl:when test="$effect='uncover right-up'">
18588					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18589					<xsl:attribute name="smil:subtype">fromBottomLeft</xsl:attribute>
18590					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
18591				</xsl:when>
18592				<xsl:when test="$effect='cover down'">
18593					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18594					<xsl:attribute name="smil:subtype">fromTop</xsl:attribute>
18595				</xsl:when>
18596				<xsl:when test="$effect='cover left'">
18597					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18598					<xsl:attribute name="smil:subtype">fromRight</xsl:attribute>
18599				</xsl:when>
18600				<xsl:when test="$effect='cover right'">
18601					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18602					<xsl:attribute name="smil:subtype">fromLeft</xsl:attribute>
18603				</xsl:when>
18604				<xsl:when test="$effect='cover up'">
18605					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18606					<xsl:attribute name="smil:subtype">fromBottom</xsl:attribute>
18607				</xsl:when>
18608				<xsl:when test="$effect='cover left-down'">
18609					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18610					<xsl:attribute name="smil:subtype">fromTopRight</xsl:attribute>
18611				</xsl:when>
18612				<xsl:when test="$effect='cover left-up'">
18613					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18614					<xsl:attribute name="smil:subtype">fromBottomRight</xsl:attribute>
18615				</xsl:when>
18616				<xsl:when test="$effect='cover right-down'">
18617					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18618					<xsl:attribute name="smil:subtype">fromTopLeft</xsl:attribute>
18619				</xsl:when>
18620				<xsl:when test="$effect='cover right-up'">
18621					<xsl:attribute name="smil:type">slideWipe</xsl:attribute>
18622					<xsl:attribute name="smil:subtype">fromBottomLeft</xsl:attribute>
18623				</xsl:when>
18624				<xsl:when test="$effect='fade through black'">
18625					<xsl:attribute name="smil:type">fade</xsl:attribute>
18626					<xsl:attribute name="smil:subtype">fadeOverColor</xsl:attribute>
18627					<xsl:attribute name="smil:fadeColor">#000000</xsl:attribute>
18628				</xsl:when>
18629				<xsl:when test="$effect='fade smoothly'">
18630					<xsl:attribute name="smil:type">fade</xsl:attribute>
18631					<xsl:attribute name="smil:subtype">crossfade</xsl:attribute>
18632					<xsl:attribute name="smil:fadeColor">#000000</xsl:attribute>
18633				</xsl:when>
18634				<xsl:when test="$effect='cut through black'">
18635					<xsl:attribute name="smil:type">fade</xsl:attribute>
18636					<xsl:attribute name="smil:subtype">fadeOverColor</xsl:attribute>
18637					<xsl:attribute name="smil:fadeColor">#000000</xsl:attribute>
18638				</xsl:when>
18639				<xsl:when test="$effect='cut'">
18640					<xsl:attribute name="smil:type">fade</xsl:attribute>
18641					<xsl:attribute name="smil:subtype">crossfade</xsl:attribute>
18642					<xsl:attribute name="smil:fadeColor">#000000</xsl:attribute>
18643				</xsl:when>
18644				<xsl:when test="$effect='newsflash'">
18645					<xsl:attribute name="smil:type">fanWipe</xsl:attribute>
18646					<xsl:attribute name="smil:subtype">centerTop</xsl:attribute>
18647				</xsl:when>
18648				<xsl:when test="$effect='strips right-down'">
18649					<xsl:attribute name="smil:type">waterfallWipe</xsl:attribute>
18650					<xsl:attribute name="smil:subtype">horizontalLeft</xsl:attribute>
18651				</xsl:when>
18652				<xsl:when test="$effect='strips right-up'">
18653					<xsl:attribute name="smil:type">waterfallWipe</xsl:attribute>
18654					<xsl:attribute name="smil:subtype">horizontalRight</xsl:attribute>
18655					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
18656				</xsl:when>
18657				<xsl:when test="$effect='strips left-down'">
18658					<xsl:attribute name="smil:type">waterfallWipe</xsl:attribute>
18659					<xsl:attribute name="smil:subtype">horizontalRight</xsl:attribute>
18660				</xsl:when>
18661				<xsl:when test="$effect='strips left-up'">
18662					<xsl:attribute name="smil:type">waterfallWipe</xsl:attribute>
18663					<xsl:attribute name="smil:subtype">horizontalLeft</xsl:attribute>
18664					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
18665				</xsl:when>
18666				<xsl:when test="$effect='push down'">
18667					<xsl:attribute name="smil:type">pushWipe</xsl:attribute>
18668					<xsl:attribute name="smil:subtype">fromTop</xsl:attribute>
18669				</xsl:when>
18670				<xsl:when test="$effect='push left'">
18671					<xsl:attribute name="smil:type">pushWipe</xsl:attribute>
18672					<xsl:attribute name="smil:subtype">fromRight</xsl:attribute>
18673				</xsl:when>
18674				<xsl:when test="$effect='push right'">
18675					<xsl:attribute name="smil:type">pushWipe</xsl:attribute>
18676					<xsl:attribute name="smil:subtype">fromLeft</xsl:attribute>
18677				</xsl:when>
18678				<xsl:when test="$effect='push up'">
18679					<xsl:attribute name="smil:type">pushWipe</xsl:attribute>
18680					<xsl:attribute name="smil:subtype">fromBottom</xsl:attribute>
18681				</xsl:when>
18682				<xsl:when test="$effect='random bars horizontal'">
18683					<xsl:attribute name="smil:type">randomBarWipe</xsl:attribute>
18684					<xsl:attribute name="smil:subtype">horizontal</xsl:attribute>
18685				</xsl:when>
18686				<xsl:when test="$effect='random bars vertical'">
18687					<xsl:attribute name="smil:type">randomBarWipe</xsl:attribute>
18688					<xsl:attribute name="smil:subtype">vertical</xsl:attribute>
18689				</xsl:when>
18690				<xsl:when test="$effect='shape circle'">
18691					<xsl:attribute name="smil:type">ellipseWipe</xsl:attribute>
18692					<xsl:attribute name="smil:subtype">circle</xsl:attribute>
18693				</xsl:when>
18694				<xsl:when test="$effect='shape diamond'">
18695					<xsl:attribute name="smil:type">irisWipe</xsl:attribute>
18696					<xsl:attribute name="smil:subtype">diamond</xsl:attribute>
18697				</xsl:when>
18698				<xsl:when test="$effect='shape plus'">
18699					<xsl:attribute name="smil:type">fourBoxWipe</xsl:attribute>
18700					<xsl:attribute name="smil:subtype">cornersOut</xsl:attribute>
18701				</xsl:when>
18702				<xsl:when test="$effect='split horizontal in'">
18703					<xsl:attribute name="smil:type">barnDoorWipe</xsl:attribute>
18704					<xsl:attribute name="smil:subtype">horizontal</xsl:attribute>
18705					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
18706				</xsl:when>
18707				<xsl:when test="$effect='split horizontal out'">
18708					<xsl:attribute name="smil:type">barnDoorWipe</xsl:attribute>
18709					<xsl:attribute name="smil:subtype">horizontal</xsl:attribute>
18710				</xsl:when>
18711				<xsl:when test="$effect='split vertical in'">
18712					<xsl:attribute name="smil:type">barnDoorWipe</xsl:attribute>
18713					<xsl:attribute name="smil:subtype">vertical</xsl:attribute>
18714					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
18715				</xsl:when>
18716				<xsl:when test="$effect='split vertical out'">
18717					<xsl:attribute name="smil:type">barnDoorWipe</xsl:attribute>
18718					<xsl:attribute name="smil:subtype">vertical</xsl:attribute>
18719				</xsl:when>
18720				<xsl:when test="$effect='wedge'">
18721					<xsl:attribute name="smil:type">fanWipe</xsl:attribute>
18722					<xsl:attribute name="smil:subtype">centerTop</xsl:attribute>
18723				</xsl:when>
18724				<xsl:when test="$effect='wheel clockwise – 1 spoke'">
18725					<xsl:attribute name="smil:type">pinWheelWipe</xsl:attribute>
18726					<xsl:attribute name="smil:subtype">oneBlade</xsl:attribute>
18727				</xsl:when>
18728				<xsl:when test="$effect='wheel clockwise – 2 spoke'">
18729					<xsl:attribute name="smil:type">pinWheelWipe</xsl:attribute>
18730					<xsl:attribute name="smil:subtype">twoBladeVertical</xsl:attribute>
18731				</xsl:when>
18732				<xsl:when test="$effect='wheel clockwise – 3 spoke'">
18733					<xsl:attribute name="smil:type">pinWheelWipe</xsl:attribute>
18734					<xsl:attribute name="smil:subtype">threeBlade</xsl:attribute>
18735				</xsl:when>
18736				<xsl:when test="$effect='wheel clockwise – 4 spoke'">
18737					<xsl:attribute name="smil:type">pinWheelWipe</xsl:attribute>
18738					<xsl:attribute name="smil:subtype">fourBlade</xsl:attribute>
18739				</xsl:when>
18740				<xsl:when test="$effect='wheel clockwise – 8 spoke'">
18741					<xsl:attribute name="smil:type">pinWheelWipe</xsl:attribute>
18742					<xsl:attribute name="smil:subtype">eightBlade</xsl:attribute>
18743				</xsl:when>
18744				<xsl:when test="$effect='wipe left'">
18745					<xsl:attribute name="smil:type">barWipe</xsl:attribute>
18746					<xsl:attribute name="smil:subtype">leftToRight</xsl:attribute>
18747					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
18748				</xsl:when>
18749				<xsl:when test="$effect='wipe right'">
18750					<xsl:attribute name="smil:type">barWipe</xsl:attribute>
18751					<xsl:attribute name="smil:subtype">leftToRight</xsl:attribute>
18752				</xsl:when>
18753				<xsl:when test="$effect='wipe up'">
18754					<xsl:attribute name="smil:type">barWipe</xsl:attribute>
18755					<xsl:attribute name="smil:subtype">topToBottom</xsl:attribute>
18756					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
18757				</xsl:when>
18758				<xsl:when test="$effect='wipe down'">
18759					<xsl:attribute name="smil:type">barWipe</xsl:attribute>
18760					<xsl:attribute name="smil:subtype">topToBottom</xsl:attribute>
18761				</xsl:when>
18762				<xsl:when test="$effect='blinds vertical'">
18763					<xsl:attribute name="smil:type">blindsWipe</xsl:attribute>
18764					<xsl:attribute name="smil:subtype">vertical</xsl:attribute>
18765				</xsl:when>
18766				<xsl:when test="$effect='blinds horizontal'">
18767					<xsl:attribute name="smil:type">blindsWipe</xsl:attribute>
18768					<xsl:attribute name="smil:subtype">horizontal</xsl:attribute>
18769				</xsl:when>
18770				<xsl:when test="$effect='dissolve'">
18771					<xsl:attribute name="smil:type">dissolve</xsl:attribute>
18772				</xsl:when>
18773				<xsl:when test="$effect='random transition'">
18774					<xsl:attribute name="smil:type">random</xsl:attribute>
18775				</xsl:when>
18776			</xsl:choose>
18777		</xsl:if>
18778	</xsl:template>
18779	<xsl:template match="演:切换_6B1F">
18780		<xsl:element name="anim:par">
18781			<xsl:variable name="animId">id<xsl:number from="/uof:UOF_0000/演:演示文稿文档_6C10/演:幻灯片集_6C0E" level="any" count="演:幻灯片_6C0F" format="1"/>
18782			</xsl:variable>
18783			<xsl:attribute name="smil:begin"><xsl:value-of select="concat($animId,'.begin')"/></xsl:attribute>
18784			<xsl:if test="演:效果_6B20 and 演:效果_6B20 != 'none'">
18785				<xsl:element name="anim:transitionFilter">
18786					<xsl:call-template name="SlideSwitchAtrr"/>
18787				</xsl:element>
18788			</xsl:if>
18789			<xsl:variable name="VoicePath">
18790				<xsl:call-template name="TranslateVoicePath">
18791					<xsl:with-param name="voicetype" select="演:声音_6B22/@预定义声音_C631"/>
18792				</xsl:call-template>
18793			</xsl:variable>
18794			<xsl:if test="演:声音_6B22">
18795				<xsl:choose>
18796					<xsl:when test="演:声音_6B22/@预定义声音_C631 = 'stop previous sound'">
18797						<anim:command anim:command="stop-audio"/>
18798					</xsl:when>
18799					<xsl:otherwise>
18800						<xsl:element name="anim:audio">
18801							<xsl:choose>
18802								<xsl:when test="演:声音_6B22/@预定义声音_C631">
18803									<xsl:attribute name="xlink:href"><xsl:value-of select="$VoicePath"/></xsl:attribute>
18804								</xsl:when>
18805								<xsl:when test="演:声音_6B22/@自定义声音_C632">
18806									<xsl:attribute name="xlink:href"><xsl:value-of select="演:声音_6B22/@自定义声音_C632"/></xsl:attribute>
18807								</xsl:when>
18808							</xsl:choose>
18809							<xsl:if test="是否循环播放_C633 = 'true'">
18810								<xsl:attribute name="smil:repeatCount">indefinite</xsl:attribute>
18811							</xsl:if>
18812						</xsl:element>
18813					</xsl:otherwise>
18814				</xsl:choose>
18815			</xsl:if>
18816		</xsl:element>
18817	</xsl:template>
18818	<xsl:template match="演:动画_6B1A">
18819		<!-- need to access data outside animation, temporary tree, which doesn't use trigger on it -->
18820		<xsl:variable name="isTrigger">
18821			<xsl:for-each select="演:序列_6B1B">
18822				<xsl:if test="演:定时_6B2E/@触发对象引用_6B34">
18823					<xsl:value-of select="1"/>
18824				</xsl:if>
18825			</xsl:for-each>
18826		</xsl:variable>
18827		<xsl:choose>
18828			<xsl:when test="number($isTrigger) &gt; 0">
18829				<xsl:for-each-group select="演:序列_6B1B" group-by="演:定时_6B2E[@触发对象引用_6B34 = ''] or not(演:定时_6B2E[@触发对象引用_6B34]) ">
18830					<xsl:choose>
18831						<xsl:when test="current-grouping-key()">
18832							<xsl:variable name="noTrigger">
18833								<noTrigger>
18834									<xsl:for-each select="current-group()">
18835										<xsl:copy>
18836											<xsl:apply-templates select="@*|node()"/>
18837										</xsl:copy>
18838									</xsl:for-each>
18839								</noTrigger>
18840							</xsl:variable>
18841							<anim:seq presentation:node-type="main-sequence">
18842								<xsl:for-each select="$noTrigger/noTrigger/演:序列_6B1B[1]">
18843									<xsl:variable name="begin1">
18844										<xsl:choose>
18845											<xsl:when test="演:定时_6B2E/@事件_6B2F = 'with-previous' or 演:定时_6B2E/@事件_6B2F = 'after-previous'">0s</xsl:when>
18846											<xsl:otherwise>next</xsl:otherwise>
18847										</xsl:choose>
18848									</xsl:variable>
18849									<xsl:variable name="begin2" select="'0s'"/>
18850									<xsl:call-template name="OneSequence">
18851										<xsl:with-param name="begin1" select="$begin1"/>
18852										<xsl:with-param name="begin2" select="$begin2"/>
18853									</xsl:call-template>
18854								</xsl:for-each>
18855							</anim:seq>
18856						</xsl:when>
18857						<xsl:otherwise>
18858							<xsl:for-each select="current-group()">
18859								<anim:seq presentation:node-type="interactive-sequence">
18860									<anim:par>
18861										<xsl:attribute name="smil:begin"><xsl:value-of select="concat(演:定时_6B2E/@触发对象引用_6B34,'.click')"/></xsl:attribute>
18862										<anim:par smil:begin="0s">
18863											<xsl:variable name="animNodeName">
18864												<xsl:choose>
18865													<xsl:when test="./演:增强_6B35/演:动画文本_6B3A/@发送_6B3B">anim:iterate</xsl:when>
18866													<xsl:otherwise>anim:par</xsl:otherwise>
18867												</xsl:choose>
18868											</xsl:variable>
18869											<xsl:choose>
18870												<xsl:when test="演:效果_6B40 or 演:定时_6B2E or 演:增强_6B35">
18871													<xsl:element name="{$animNodeName}">
18872														<xsl:attribute name="smil:fill"><xsl:choose><xsl:when test="演:定时_6B2E/@是否回卷_6B33='true'">remove</xsl:when><xsl:otherwise>hold</xsl:otherwise></xsl:choose></xsl:attribute>
18873														<xsl:choose>
18874															<xsl:when test="./演:增强_6B35/演:动画播放后_6B36/演:是否播放后隐藏_6B38 = 'true'">
18875																<xsl:attribute name="anim:id">animId<xsl:number from="/uof:UOF_0000/演:演示文稿文档_6C10/演:幻灯片集_6C0E/演:幻灯片_6C0F/演:动画_6B1A" level="any" count="演:序列_6B1B" format="1"/></xsl:attribute>
18876															</xsl:when>
18877														</xsl:choose>
18878														<xsl:attribute name="presentation:node-type">on-click</xsl:attribute>
18879														<xsl:attribute name="smil:begin"><xsl:choose><xsl:when test="./演:定时_6B2E/@延时_6B30"><xsl:value-of select="concat(substring(演:定时_6B2E/@延时_6B30,3,1),'s')"/></xsl:when><xsl:otherwise>0s</xsl:otherwise></xsl:choose></xsl:attribute>
18880														<xsl:choose>
18881															<xsl:when test="演:定时_6B2E/@重复_6B32='until next click' ">
18882																<xsl:attribute name="smil:repeatCount">indefinite</xsl:attribute>
18883																<xsl:attribute name="smil:end">next</xsl:attribute>
18884															</xsl:when>
18885															<xsl:when test="演:定时_6B2E/@重复_6B32='until end of slide' ">
18886																<xsl:attribute name="smil:repeatCount">indefinite</xsl:attribute>
18887															</xsl:when>
18888															<xsl:when test="演:定时_6B2E/@重复_6B32 !='none'">
18889																<xsl:attribute name="smil:repeatCount"><xsl:value-of select="演:定时_6B2E/@重复_6B32"/></xsl:attribute>
18890															</xsl:when>
18891														</xsl:choose>
18892														<xsl:if test="演:增强_6B35/演:动画文本_6B3A/@发送_6B3B">
18893															<xsl:attribute name="anim:sub-item">text</xsl:attribute>
18894															<xsl:attribute name="anim:iterate-type"><xsl:choose><xsl:when test="演:增强_6B35/演:动画文本_6B3A/@发送_6B3B='by word'">by-word</xsl:when><xsl:when test="演:增强_6B35/演:动画文本_6B3A/@发送_6B3B='by letter'">by-letter</xsl:when><xsl:otherwise>all at once</xsl:otherwise></xsl:choose></xsl:attribute>
18895															<xsl:attribute name="smil:targetElement"><xsl:value-of select="@对象引用_6C28"/></xsl:attribute>
18896															<xsl:attribute name="anim:iterate-interval"><xsl:choose><xsl:when test="./演:增强_6B35/演:动画文本_6B3A/@演:间隔"><xsl:value-of select="concat(substring(./演:增强_6B35/演:动画文本_6B3A/@间隔_6B3C,3,1),'s')"/></xsl:when><xsl:otherwise>0.05s</xsl:otherwise></xsl:choose></xsl:attribute>
18897														</xsl:if>
18898														<xsl:choose>
18899															<xsl:when test="演:效果_6B40/演:进入_6B41">
18900																<xsl:apply-templates select="演:效果_6B40/演:进入_6B41/*/*[1]" mode="entrance"/>
18901															</xsl:when>
18902															<xsl:when test="演:效果_6B40/演:退出_6BBE">
18903																<xsl:apply-templates select="演:效果_6B40/演:退出_6BBE/*/*[1]" mode="exit"/>
18904															</xsl:when>
18905															<xsl:when test="演:效果_6B40/演:强调_6B07">
18906																<xsl:apply-templates select="演:效果_6B40/演:强调_6B07/*/*[1]" mode="emphasis"/>
18907															</xsl:when>
18908														</xsl:choose>
18909														<xsl:if test="演:增强_6B35/演:声音_6B22">
18910															<xsl:variable name="VoicePath">
18911																<xsl:call-template name="TranslateVoicePath">
18912																	<xsl:with-param name="voicetype" select="演:增强_6B35/演:声音_6B22/@预定义声音_C631"/>
18913																</xsl:call-template>
18914															</xsl:variable>
18915															<xsl:choose>
18916																<xsl:when test="演:增强_6B35/演:声音_6B22/@预定义声音_C631 = 'stop previous sound'">
18917																	<anim:command anim:command="stop-audio"/>
18918																</xsl:when>
18919																<xsl:otherwise>
18920																	<xsl:element name="anim:audio">
18921																		<xsl:choose>
18922																			<xsl:when test="演:增强_6B35/演:声音_6B22/@预定义声音_C631">
18923																				<xsl:attribute name="xlink:href"><xsl:value-of select="$VoicePath"/></xsl:attribute>
18924																			</xsl:when>
18925																			<xsl:when test="演:增强_6B35/演:声音_6B22/@自定义声音_C632">
18926																				<xsl:attribute name="xlink:href"><xsl:value-of select="演:增强_6B35/演:声音_6B22/@自定义声音_C632"/></xsl:attribute>
18927																			</xsl:when>
18928																		</xsl:choose>
18929																		<xsl:if test="演:增强_6B35/演:声音_6B22/@是否循环播放_C633 = 'true'">
18930																			<xsl:attribute name="smil:repeatCount">indefinite</xsl:attribute>
18931																		</xsl:if>
18932																	</xsl:element>
18933																</xsl:otherwise>
18934															</xsl:choose>
18935														</xsl:if>
18936													</xsl:element>
18937													<xsl:if test="./演:增强_6B35/演:动画播放后_6B36/演:是否播放后隐藏_6B38 = 'true'">
18938														<anim:set smil:begin="animID" smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
18939															<xsl:attribute name="smil:begin">animId<xsl:number from="/uof:UOF_0000/演:演示文稿文档_6C10/演:幻灯片集_6C0E/演:幻灯片_6C0F/演:动画_6B1A" level="any" count="演:序列_6B1B" format="1"/>.end</xsl:attribute>
18940															<xsl:attribute name="smil:targetElement"><xsl:value-of select="@对象引用_6C28"/></xsl:attribute>
18941														</anim:set>
18942													</xsl:if>
18943												</xsl:when>
18944											</xsl:choose>
18945										</anim:par>
18946									</anim:par>
18947									<xsl:if test="./演:增强_6B35/演:动画播放后_6B36/演:颜色_6B37">
18948										<anim:par smil:begin="next">
18949											<anim:par smil:begin="0s">
18950												<anim:animateColor smil:begin="0s" smil:dur="0.001s" smil:fill="hold" anim:color-interpolation="rgb" anim:color-interpolation-direction="clockwise" smil:attributeName="dim">
18951													<xsl:attribute name="smil:targetElement"><xsl:value-of select="@对象引用_6C28"/></xsl:attribute>
18952													<xsl:attribute name="smil:to"><xsl:choose><xsl:when test="演:增强_6B35/演:动画播放后_6B36/演:颜色_6B37"><xsl:value-of select="演:增强_6B35/演:动画播放后_6B36/演:颜色_6B37"/></xsl:when></xsl:choose></xsl:attribute>
18953												</anim:animateColor>
18954											</anim:par>
18955										</anim:par>
18956									</xsl:if>
18957									<xsl:if test="./演:增强_6B35/演:动画播放后_6B36/演:是否单击后隐藏_6B39 = 'true'">
18958										<anim:par smil:begin="next">
18959											<anim:par smil:begin="0s">
18960												<anim:set smil:begin="0s" smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
18961													<xsl:attribute name="smil:targetElement"><xsl:value-of select="@对象引用_6C28"/></xsl:attribute>
18962												</anim:set>
18963											</anim:par>
18964										</anim:par>
18965									</xsl:if>
18966								</anim:seq>
18967							</xsl:for-each>
18968						</xsl:otherwise>
18969					</xsl:choose>
18970				</xsl:for-each-group>
18971			</xsl:when>
18972			<xsl:otherwise>
18973				<anim:seq presentation:node-type="main-sequence">
18974					<xsl:for-each select="演:序列_6B1B[1]">
18975						<xsl:variable name="begin1">
18976							<xsl:choose>
18977								<xsl:when test="演:定时_6B2E/@事件_6B2F = 'with-previous' or 演:定时_6B2E/@事件_6B2F = 'after-previous'">0s</xsl:when>
18978								<xsl:otherwise>next</xsl:otherwise>
18979							</xsl:choose>
18980						</xsl:variable>
18981						<xsl:variable name="begin2" select="'0s'"/>
18982						<xsl:call-template name="OneSequence">
18983							<xsl:with-param name="begin1" select="$begin1"/>
18984							<xsl:with-param name="begin2" select="$begin2"/>
18985						</xsl:call-template>
18986					</xsl:for-each>
18987				</anim:seq>
18988			</xsl:otherwise>
18989		</xsl:choose>
18990	</xsl:template>
18991	<xsl:template match="@*|node()">
18992		<xsl:copy>
18993			<xsl:apply-templates select="@*|node()"/>
18994		</xsl:copy>
18995	</xsl:template>
18996	<xsl:template name="OneSequence">
18997		<xsl:param name="begin1"/>
18998		<xsl:param name="begin2"/>
18999		<xsl:if test="$begin1 != 'no'">
19000			<xsl:text disable-output-escaping="yes">&lt;anim:par smil:begin=&quot;</xsl:text>
19001			<xsl:value-of select="$begin1"/>
19002			<xsl:text disable-output-escaping="yes">&quot;&gt;</xsl:text>
19003		</xsl:if>
19004		<xsl:if test="$begin2 != 'no'">
19005			<xsl:text disable-output-escaping="yes">&lt;anim:par smil:begin=&quot;</xsl:text>
19006			<xsl:value-of select="$begin2"/>
19007			<xsl:text disable-output-escaping="yes">&quot;&gt;</xsl:text>
19008		</xsl:if>
19009		<xsl:call-template name="Animation"/>
19010		<xsl:variable name="NextEvent" select="following-sibling::*[1]/演:定时_6B2E/@事件_6B2F"/>
19011		<xsl:choose>
19012			<xsl:when test="$NextEvent = 'with-previous'">
19013				<xsl:for-each select="following-sibling::*[1]">
19014					<xsl:call-template name="OneSequence">
19015						<xsl:with-param name="begin1" select="'no'"/>
19016						<xsl:with-param name="begin2" select="'no'"/>
19017					</xsl:call-template>
19018				</xsl:for-each>
19019			</xsl:when>
19020			<xsl:when test="$NextEvent = 'after-previous'">
19021				<xsl:text disable-output-escaping="yes">&lt;/anim:par&gt;</xsl:text>
19022				<xsl:for-each select="following-sibling::*[1]">
19023					<xsl:variable name="aDelay">
19024						<xsl:value-of select="substring-after(substring-before(preceding-sibling::*[last()]/演:定时_6B2E/@延时_6B30,'S'),'PT')"/>
19025					</xsl:variable>
19026					<xsl:variable name="aSpeed">
19027						<xsl:call-template name="aSpeedTranstration">
19028							<xsl:with-param name="speed" select="preceding-sibling::*[last()]/演:效果_6B40//速度_6B44"/>
19029						</xsl:call-template>
19030					</xsl:variable>
19031					<xsl:call-template name="OneSequence">
19032						<xsl:with-param name="begin1" select="'no'"/>
19033						<xsl:with-param name="begin2" select="concat(number($aDelay)+number($aSpeed),'s')"/>
19034					</xsl:call-template>
19035				</xsl:for-each>
19036			</xsl:when>
19037			<xsl:when test="$NextEvent = 'on-click'">
19038				<xsl:text disable-output-escaping="yes">&lt;/anim:par&gt;</xsl:text>
19039				<xsl:text disable-output-escaping="yes">&lt;/anim:par&gt;</xsl:text>
19040				<xsl:for-each select="following-sibling::*[1]">
19041					<xsl:call-template name="OneSequence">
19042						<xsl:with-param name="begin1" select="'next'"/>
19043						<xsl:with-param name="begin2" select="'0s'"/>
19044					</xsl:call-template>
19045				</xsl:for-each>
19046			</xsl:when>
19047			<xsl:when test="following-sibling::*[1]">
19048				<xsl:text disable-output-escaping="yes">&lt;/anim:par&gt;</xsl:text>
19049				<xsl:text disable-output-escaping="yes">&lt;/anim:par&gt;</xsl:text>
19050				<xsl:for-each select="following-sibling::*[1]">
19051					<xsl:call-template name="OneSequence">
19052						<xsl:with-param name="begin1" select="'next'"/>
19053						<xsl:with-param name="begin2" select="'0s'"/>
19054					</xsl:call-template>
19055				</xsl:for-each>
19056			</xsl:when>
19057			<xsl:otherwise>
19058				<xsl:text disable-output-escaping="yes">&lt;/anim:par&gt;</xsl:text>
19059				<xsl:text disable-output-escaping="yes">&lt;/anim:par&gt;</xsl:text>
19060			</xsl:otherwise>
19061		</xsl:choose>
19062	</xsl:template>
19063	<xsl:template name="Animation">
19064		<xsl:variable name="animNodeName">
19065			<xsl:choose>
19066				<xsl:when test="演:增强_6B35/演:动画文本_6B3A/@发送_6B3B">anim:iterate</xsl:when>
19067				<xsl:otherwise>anim:par</xsl:otherwise>
19068			</xsl:choose>
19069		</xsl:variable>
19070		<xsl:variable name="aEvent">
19071			<xsl:choose>
19072				<xsl:when test="演:定时_6B2E/@事件_6B2F='on-click'">on-click</xsl:when>
19073				<xsl:when test="演:定时_6B2E/@事件_6B2F='after-previous'">after-previous</xsl:when>
19074				<xsl:when test="演:定时_6B2E/@事件_6B2F='with-previous'">with-previous</xsl:when>
19075				<xsl:otherwise>on-click</xsl:otherwise>
19076			</xsl:choose>
19077		</xsl:variable>
19078		<xsl:element name="{$animNodeName}">
19079			<xsl:attribute name="smil:fill"><xsl:choose><xsl:when test="演:定时_6B2E/@是否回卷_6B33='true'">remove</xsl:when><xsl:otherwise>hold</xsl:otherwise></xsl:choose></xsl:attribute>
19080			<xsl:choose>
19081				<xsl:when test="演:增强_6B35">
19082					<xsl:attribute name="anim:id"><xsl:value-of select="concat('id',generate-id())"/></xsl:attribute>
19083				</xsl:when>
19084			</xsl:choose>
19085			<xsl:attribute name="presentation:node-type"><xsl:value-of select="$aEvent"/></xsl:attribute>
19086			<xsl:attribute name="smil:begin"><xsl:choose><xsl:when test="演:定时_6B2E/@延时_6B30"><xsl:value-of select="concat(substring(演:定时_6B2E/@延时_6B30,3,1),'s')"/></xsl:when><xsl:otherwise>0s</xsl:otherwise></xsl:choose></xsl:attribute>
19087			<xsl:choose>
19088				<xsl:when test="演:定时_6B2E/@重复_6B32='until next click' ">
19089					<xsl:attribute name="smil:repeatCount">indefinite</xsl:attribute>
19090					<xsl:attribute name="smil:end">next</xsl:attribute>
19091				</xsl:when>
19092				<xsl:when test="演:定时_6B2E/@重复_6B32='until end of slide' ">
19093					<xsl:attribute name="smil:repeatCount">indefinite</xsl:attribute>
19094				</xsl:when>
19095				<xsl:when test="演:定时_6B2E/@重复_6B32 !='none'">
19096					<xsl:attribute name="smil:repeatCount"><xsl:value-of select="演:定时_6B2E/@重复_6B32"/></xsl:attribute>
19097				</xsl:when>
19098			</xsl:choose>
19099			<xsl:if test="演:增强_6B35/演:动画文本_6B3A/@发送_6B3B">
19100				<xsl:attribute name="anim:sub-item">text</xsl:attribute>
19101				<xsl:attribute name="anim:iterate-type"><xsl:choose><xsl:when test="演:增强_6B35/演:动画文本_6B3A/@发送_6B3B='by word'">by-word</xsl:when><xsl:when test="演:增强_6B35/演:动画文本_6B3A/@发送_6B3B='by letter'">by-letter</xsl:when><xsl:otherwise>all at once</xsl:otherwise></xsl:choose></xsl:attribute>
19102				<xsl:attribute name="smil:targetElement"><xsl:value-of select="@对象引用_6C28"/></xsl:attribute>
19103				<xsl:attribute name="anim:iterate-interval"><xsl:choose><xsl:when test="演:增强_6B35/演:动画文本_6B3A/@间隔_6B3C"><xsl:value-of select="concat(substring(演:增强_6B35/演:动画文本_6B3A/@间隔_6B3C,3,1),'s')"/></xsl:when><xsl:otherwise>0.05s</xsl:otherwise></xsl:choose></xsl:attribute>
19104			</xsl:if>
19105			<xsl:choose>
19106				<xsl:when test="演:效果_6B40/演:进入_6B41">
19107					<xsl:apply-templates select="演:效果_6B40/演:进入_6B41/*/*[1]" mode="entrance"/>
19108				</xsl:when>
19109				<xsl:when test="演:效果_6B40/演:退出_6BBE">
19110					<xsl:apply-templates select="演:效果_6B40/演:退出_6BBE/*/*[1]" mode="exit"/>
19111				</xsl:when>
19112				<xsl:when test="演:效果_6B40/演:强调_6B07">
19113					<xsl:apply-templates select="演:效果_6B40/演:强调_6B07/*/*[1]" mode="emphasis"/>
19114				</xsl:when>
19115			</xsl:choose>
19116			<xsl:if test="演:增强_6B35/演:声音_6B22">
19117				<xsl:variable name="VoicePath">
19118					<xsl:call-template name="TranslateVoicePath">
19119						<xsl:with-param name="voicetype" select="演:增强_6B35/演:声音_6B22/@预定义声音_C631"/>
19120					</xsl:call-template>
19121				</xsl:variable>
19122				<xsl:choose>
19123					<xsl:when test="演:增强/演:声音/@预定义声音_C631 = 'stop previous sound'">
19124						<anim:command anim:command="stop-audio"/>
19125					</xsl:when>
19126					<xsl:otherwise>
19127						<xsl:element name="anim:audio">
19128							<xsl:choose>
19129								<xsl:when test="演:增强_6B35/演:声音_6B22/@预定义声音_C631">
19130									<xsl:attribute name="xlink:href"><xsl:value-of select="$VoicePath"/></xsl:attribute>
19131								</xsl:when>
19132								<xsl:when test="演:增强_6B35/演:声音_6B22/@自定义声音_C632">
19133									<xsl:attribute name="xlink:href"><xsl:value-of select="演:增强_6B35/演:声音_6B22/@自定义声音_C632"/></xsl:attribute>
19134								</xsl:when>
19135							</xsl:choose>
19136							<xsl:if test="演:增强_6B35/演:声音_6B22/@是否循环播放_C633 = 'true'">
19137								<xsl:attribute name="smil:repeatCount">indefinite</xsl:attribute>
19138							</xsl:if>
19139						</xsl:element>
19140					</xsl:otherwise>
19141				</xsl:choose>
19142			</xsl:if>
19143		</xsl:element>
19144		<xsl:choose>
19145			<xsl:when test="演:增强_6B35/演:动画播放后_6B36/演:是否播放后隐藏_6B38 = 'true'">
19146				<xsl:call-template name="Hidden">
19147					<xsl:with-param name="begin" select="'no'"/>
19148				</xsl:call-template>
19149			</xsl:when>
19150			<xsl:when test="演:增强_6B35/演:动画播放后_6B36/演:是否单击后隐藏_6B39 = 'true'">
19151				<xsl:call-template name="Hidden">
19152					<xsl:with-param name="begin" select="'next'"/>
19153				</xsl:call-template>
19154			</xsl:when>
19155			<xsl:when test="演:增强_6B35/演:动画播放后_6B36/演:颜色_6B37">
19156				<xsl:call-template name="AnimColor"/>
19157			</xsl:when>
19158		</xsl:choose>
19159	</xsl:template>
19160	<xsl:template name="Hidden">
19161		<xsl:param name="begin"/>
19162		<anim:set smil:begin="0s" smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19163			<xsl:choose>
19164				<xsl:when test="$begin = 'no'">
19165					<xsl:attribute name="smil:begin"><xsl:value-of select="concat('id',generate-id(),'.end')"/></xsl:attribute>
19166				</xsl:when>
19167				<xsl:when test="$begin = 'next'">
19168					<xsl:attribute name="smil:begin">next</xsl:attribute>
19169				</xsl:when>
19170			</xsl:choose>
19171			<xsl:attribute name="presentation:master-element"><xsl:value-of select="concat('id',generate-id())"/></xsl:attribute>
19172			<xsl:attribute name="smil:targetElement"><xsl:value-of select="@对象引用_6C28"/></xsl:attribute>
19173		</anim:set>
19174	</xsl:template>
19175	<xsl:template name="AnimColor">
19176		<anim:animateColor smil:begin="next" smil:dur="0.001s" smil:fill="hold" anim:color-interpolation="rgb" anim:color-interpolation-direction="clockwise" smil:attributeName="dim">
19177			<xsl:attribute name="smil:targetElement"><xsl:value-of select="@对象引用_6C28"/></xsl:attribute>
19178			<xsl:attribute name="smil:to"><xsl:if test="演:增强_6B35/演:动画播放后_6B36/演:颜色_6B37"><xsl:value-of select="演:增强_6B35/演:动画播放后_6B36/演:颜色_6B37"/></xsl:if></xsl:attribute>
19179			<xsl:attribute name="presentation:master-element"><xsl:value-of select="concat('id',generate-id())"/></xsl:attribute>
19180		</anim:animateColor>
19181	</xsl:template>
19182	<xsl:template name="aSpeedTranstration">
19183		<xsl:param name="speed"/>
19184		<xsl:choose>
19185			<xsl:when test="$speed='very-fast'">0.5</xsl:when>
19186			<xsl:when test="$speed='fast'">1</xsl:when>
19187			<xsl:when test="$speed='medium'">2</xsl:when>
19188			<xsl:when test="$speed='slow'">3</xsl:when>
19189			<xsl:when test="$speed='very-slow'">5</xsl:when>
19190			<xsl:otherwise>0.5</xsl:otherwise>
19191		</xsl:choose>
19192	</xsl:template>
19193	<xsl:template match="演:出现_6B46" mode="entrance">
19194		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19195		<xsl:attribute name="presentation:preset-id">ooo-entrance-appear</xsl:attribute>
19196		<anim:set smil:begin="0s" smil:dur="0.001s" smil:fill="hold" anim:sub-item="text" smil:attributeName="visibility" smil:to="visible">
19197			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19198		</anim:set>
19199	</xsl:template>
19200	<xsl:template match="演:盒状_6B47" mode="entrance">
19201		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19202		<xsl:attribute name="presentation:preset-id">ooo-entrance-box</xsl:attribute>
19203		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B48"><xsl:value-of select="@方向_6B48"/></xsl:when><xsl:otherwise>in</xsl:otherwise></xsl:choose></xsl:attribute>
19204		<anim:set smil:begin="0s" smil:dur="0.004s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19205			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19206			<!-- It's not which kinds of types, graphics or text, to be judged. But it doesn't affect the effect. -->
19207			<!--xsl:if test="ancestor::演:序列/@演:段落引用">
19208				<xsl:attribute name="anim:sub-item">text</xsl:attribute>
19209			</xsl:if-->
19210		</anim:set>
19211		<anim:transitionFilter smil:type="irisWipe" smil:subtype="rectangle">
19212			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19213			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19214			<xsl:if test="@方向_6B48 = 'in'">
19215				<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19216			</xsl:if>
19217			<!--xsl:if test="ancestor::演:序列/@演:段落引用">
19218				<xsl:attribute name="anim:sub-item">text</xsl:attribute>
19219			</xsl:if-->
19220		</anim:transitionFilter>
19221	</xsl:template>
19222	<xsl:template match="演:棋盘_6B4E" mode="entrance">
19223		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19224		<xsl:attribute name="presentation:preset-id">ooo-entrance-checkerboard</xsl:attribute>
19225		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B50='down'">downward</xsl:when><xsl:when test="@方向_6B50='across'">across</xsl:when><xsl:otherwise>across</xsl:otherwise></xsl:choose></xsl:attribute>
19226		<anim:set smil:begin="0s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19227			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19228		</anim:set>
19229		<anim:transitionFilter smil:type="checkerBoardWipe">
19230			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19231			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19232			<xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@方向_6B50='down'">down</xsl:when><xsl:when test="@方向_6B50='across'">across</xsl:when><xsl:otherwise>across</xsl:otherwise></xsl:choose></xsl:attribute>
19233		</anim:transitionFilter>
19234	</xsl:template>
19235	<xsl:template match="演:圆形扩展_6B56" mode="entrance">
19236		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19237		<xsl:attribute name="presentation:preset-id">ooo-entrance-circle</xsl:attribute>
19238		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B48"><xsl:value-of select="@方向_6B48"/></xsl:when><xsl:otherwise>in</xsl:otherwise></xsl:choose></xsl:attribute>
19239		<anim:set smil:begin="0s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19240			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19241		</anim:set>
19242		<anim:transitionFilter smil:type="ellipseWipe" smil:subtype="horizontal">
19243			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19244			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19245			<xsl:if test="@方向_6B48='in'">
19246				<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19247			</xsl:if>
19248		</anim:transitionFilter>
19249	</xsl:template>
19250	<xsl:template match="演:阶梯状_6B49" mode="entrance">
19251		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19252		<xsl:attribute name="presentation:preset-id">ooo-entrance-diagonal-squares</xsl:attribute>
19253		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B4A='left down'">left-to-bottom</xsl:when><xsl:when test="@方向_6B4A='left up'">left-to-top</xsl:when><xsl:when test="@方向_6B4A='right down'">right-to-bottom</xsl:when><xsl:when test="@方向_6B4A='right up'">right-to-top</xsl:when><xsl:otherwise>left-to-bottom</xsl:otherwise></xsl:choose></xsl:attribute>
19254		<anim:set smil:begin="0s" smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19255			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19256		</anim:set>
19257		<anim:transitionFilter smil:type="waterfallWipe">
19258			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19259			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19260			<xsl:choose>
19261				<xsl:when test="@方向_6B4A='left down'">
19262					<xsl:attribute name="smil:subtype">horizontalRight</xsl:attribute>
19263				</xsl:when>
19264				<xsl:when test="@方向_6B4A='left up'">
19265					<xsl:attribute name="smil:subtype">horizontalLeft</xsl:attribute>
19266					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19267				</xsl:when>
19268				<xsl:when test="@方向_6B4A='right up'">
19269					<xsl:attribute name="smil:subtype">horizontalRight</xsl:attribute>
19270					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19271				</xsl:when>
19272				<xsl:when test="@方向_6B4A='right down'">
19273					<xsl:attribute name="smil:subtype">horizontalLeft</xsl:attribute>
19274				</xsl:when>
19275				<xsl:otherwise>
19276					<xsl:attribute name="smil:subtype">horizontalRight</xsl:attribute>
19277				</xsl:otherwise>
19278			</xsl:choose>
19279			<!--xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@方向='left down'">horizontalLeft</xsl:when><xsl:when test="@方向='left up'">horizontalLeft</xsl:when><xsl:when test="@方向='right down'">horizontalRight</xsl:when><xsl:when test="@方向='right up'">horizontalRight</xsl:when></xsl:choose></xsl:attribute-->
19280		</anim:transitionFilter>
19281	</xsl:template>
19282	<xsl:template match="演:菱形_6B5D" mode="entrance">
19283		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19284		<xsl:attribute name="presentation:preset-id">ooo-entrance-diamond</xsl:attribute>
19285		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B48"><xsl:value-of select="@方向_6B48"/></xsl:when><xsl:otherwise>in</xsl:otherwise></xsl:choose></xsl:attribute>
19286		<anim:set smil:begin="0s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19287			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19288		</anim:set>
19289		<anim:transitionFilter smil:type="irisWipe" smil:subtype="diamond">
19290			<xsl:choose>
19291				<xsl:when test="@方向_6B48">
19292					<xsl:if test="@方向_6B48 = 'in'">
19293						<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19294					</xsl:if>
19295				</xsl:when>
19296				<xsl:otherwise>
19297					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19298				</xsl:otherwise>
19299			</xsl:choose>
19300			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19301			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19302		</anim:transitionFilter>
19303	</xsl:template>
19304	<!-- ooo:entrance dissolve-in, uof1, NeiXiangRongJie(p0098) -->
19305	<xsl:template match="演:向内溶解_6B64" mode="entrance">
19306		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19307		<xsl:attribute name="presentation:preset-id">ooo-entrance-dissolve-in</xsl:attribute>
19308		<anim:set smil:begin="0s" smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19309			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19310		</anim:set>
19311		<anim:transitionFilter smil:type="dissolve" smil:direction="reverse">
19312			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19313			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19314		</anim:transitionFilter>
19315	</xsl:template>
19316	<!-- ooo:entrance flash-once, uof1, ShanShuoYiCi(p0086) -->
19317	<xsl:template match="演:闪烁一次_6B51" mode="entrance">
19318		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19319		<xsl:attribute name="presentation:preset-id">ooo-entrance-flash-once</xsl:attribute>
19320		<anim:set smil:begin="0s" smil:attributeName="visibility" smil:to="visible">
19321			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_fast"/></xsl:attribute>
19322			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19323		</anim:set>
19324	</xsl:template>
19325	<!-- ooo:entrance fly-in, uof1, FeiRu(p0091) -->
19326	<xsl:template match="演:飞入_6B59" mode="entrance">
19327		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19328		<xsl:attribute name="presentation:preset-id">ooo-entrance-fly-in</xsl:attribute>
19329		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B5A= 'from bottom'">from-bottom</xsl:when><xsl:when test="@方向_6B5A = 'from top-right'">from-top-right</xsl:when><xsl:when test="@方向_6B5A = 'from top-left'">from-top-left</xsl:when><xsl:when test="@方向_6B5A = 'from bottom-left'">from-bottom-left</xsl:when><xsl:when test="@方向_6B5A = 'from bottom-right'">from-bottom-right</xsl:when><xsl:when test="@方向_6B5A = 'from right'">from-right</xsl:when><xsl:when test="@方向_6B5A = 'from left'">from-left</xsl:when><xsl:when test="@方向_6B5A = 'from top'">from-top</xsl:when><xsl:otherwise>from-bottom</xsl:otherwise></xsl:choose></xsl:attribute>
19330		<anim:set smil:begin="0s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19331			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19332		</anim:set>
19333		<xsl:variable name="smilvalueX">
19334			<xsl:choose>
19335				<xsl:when test="contains(@方向_6B5A,'right')">1+width/2;x</xsl:when>
19336				<xsl:when test="contains(@方向_6B5A,'left')">0-width/2;x</xsl:when>
19337				<xsl:otherwise>x;x</xsl:otherwise>
19338			</xsl:choose>
19339		</xsl:variable>
19340		<xsl:variable name="smilvalueY">
19341			<xsl:choose>
19342				<xsl:when test="@方向_6B5A">
19343					<xsl:choose>
19344						<xsl:when test="contains(@方向_6B5A,'bottom')">1+height/2;y</xsl:when>
19345						<xsl:when test="contains(@方向_6B5A,'top')">0-height/2;y</xsl:when>
19346						<xsl:otherwise>y;y</xsl:otherwise>
19347					</xsl:choose>
19348				</xsl:when>
19349				<xsl:otherwise>1+height/2;y</xsl:otherwise>
19350			</xsl:choose>
19351		</xsl:variable>
19352		<anim:animate smil:fill="hold" smil:attributeName="x" smil:keyTimes="0;1" presentation:additive="base">
19353			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19354			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19355			<xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueX"/></xsl:attribute>
19356		</anim:animate>
19357		<anim:animate smil:fill="hold" smil:attributeName="y" smil:keyTimes="0;1" presentation:additive="base">
19358			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19359			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19360			<xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueY"/></xsl:attribute>
19361		</anim:animate>
19362	</xsl:template>
19363	<xsl:template match="演:缓慢进入_6B5B" mode="entrance">
19364		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19365		<xsl:attribute name="presentation:preset-id">ooo-entrance-fly-in-slow</xsl:attribute>
19366		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B58= 'from bottom'">from-bottom</xsl:when><xsl:when test="@方向_6B58 = 'from right'">from-right</xsl:when><xsl:when test="@方向_6B58 = 'from left'">from-left</xsl:when><xsl:when test="@方向_6B58 = 'from top'">from-top</xsl:when><xsl:otherwise>from-bottom</xsl:otherwise></xsl:choose></xsl:attribute>
19367		<anim:set smil:begin="0s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19368			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19369		</anim:set>
19370		<xsl:variable name="smilvalueX">
19371			<xsl:choose>
19372				<xsl:when test="contains(@方向_6B58,'right')">1+width/2;x</xsl:when>
19373				<xsl:when test="contains(@方向_6B58,'left')">0-width/2;x</xsl:when>
19374				<xsl:otherwise>x;x</xsl:otherwise>
19375			</xsl:choose>
19376		</xsl:variable>
19377		<xsl:variable name="smilvalueY">
19378			<xsl:choose>
19379				<xsl:when test="@方向_6B58">
19380					<xsl:choose>
19381						<xsl:when test="contains(@方向_6B58,'bottom')">1+height/2;y</xsl:when>
19382						<xsl:when test="contains(@方向_6B58,'top')">0-height/2;y</xsl:when>
19383						<xsl:otherwise>y;y</xsl:otherwise>
19384					</xsl:choose>
19385				</xsl:when>
19386				<xsl:otherwise>1+height/2;y</xsl:otherwise>
19387			</xsl:choose>
19388		</xsl:variable>
19389		<anim:animate smil:fill="hold" smil:attributeName="x" smil:keyTimes="0;1" presentation:additive="base">
19390			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_veryslow"/></xsl:attribute>
19391			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19392			<xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueX"/></xsl:attribute>
19393		</anim:animate>
19394		<anim:animate smil:fill="hold" smil:attributeName="y" smil:keyTimes="0;1" presentation:additive="base">
19395			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_veryslow"/></xsl:attribute>
19396			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19397			<xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueY"/></xsl:attribute>
19398		</anim:animate>
19399	</xsl:template>
19400	<!-- ooo:entrance peek-in, uof1, QieRu(p0095) -->
19401	<xsl:template match="演:切入_6B60" mode="entrance">
19402		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19403		<xsl:attribute name="presentation:preset-id">ooo-entrance-peek-in</xsl:attribute>
19404		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B58= 'from bottom'">from-bottom</xsl:when><xsl:when test="@方向_6B58 = 'from right'">from-right</xsl:when><xsl:when test="@方向_6B58 = 'from left'">from-left</xsl:when><xsl:when test="@方向_6B58 = 'from top'">from-top</xsl:when><xsl:otherwise>from bottom</xsl:otherwise></xsl:choose></xsl:attribute>
19405		<anim:set smil:begin="0s" smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19406			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19407			<!--xsl:if test="ancestor::演:序列/@演:段落引用">
19408				<xsl:attribute name="anim:sub-item">text</xsl:attribute>
19409			</xsl:if-->
19410		</anim:set>
19411		<anim:transitionFilter smil:type="slideWipe" smil:direction="reverse">
19412			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19413			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19414			<xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@方向_6B58= 'from bottom'">fromBottom</xsl:when><xsl:when test="@方向_6B58 = 'from right'">fromRight</xsl:when><xsl:when test="@方向_6B58 = 'from left'">fromLeft</xsl:when><xsl:when test="@方向_6B58 = 'from top'">fromTop</xsl:when></xsl:choose></xsl:attribute>
19415			<!--xsl:if test="ancestor::演:序列/@演:段落引用">
19416				<xsl:attribute name="anim:sub-item">text</xsl:attribute>
19417			</xsl:if-->
19418		</anim:transitionFilter>
19419	</xsl:template>
19420	<!-- ooo:entrance plus, uof1, ShiZiXingKuoZhan(p0087) -->
19421	<xsl:template match="演:十字形扩展_6B53" mode="entrance">
19422		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19423		<xsl:attribute name="presentation:preset-id">ooo-entrance-plus</xsl:attribute>
19424		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B48"><xsl:value-of select="@方向_6B48"/></xsl:when><xsl:otherwise>in</xsl:otherwise></xsl:choose></xsl:attribute>
19425		<anim:set smil:begin="0s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19426			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19427		</anim:set>
19428		<anim:transitionFilter smil:type="fourBoxWipe" smil:subtype="cornersIn">
19429			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19430			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19431			<!--xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@方向= 'in'">cornersIn</xsl:when><xsl:when test="@方向 = 'out'">cornersOut</xsl:when></xsl:choose></xsl:attribute-->
19432			<xsl:if test="@方向_6B48= 'out'">
19433				<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19434			</xsl:if>
19435		</anim:transitionFilter>
19436	</xsl:template>
19437	<!-- ooo:entrance random bars, uof1, SuiJiXianTiao(p0097) -->
19438	<xsl:template match="演:随机线条_6B62" mode="entrance">
19439		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19440		<xsl:attribute name="presentation:preset-id">ooo-entrance-random-bars</xsl:attribute>
19441		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B45"><xsl:value-of select="@方向_6B45"/></xsl:when><xsl:otherwise>horizontal</xsl:otherwise></xsl:choose></xsl:attribute>
19442		<anim:set smil:begin="0s" smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19443			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19444		</anim:set>
19445		<anim:transitionFilter smil:type="randomBarWipe" smil:direction="reverse">
19446			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19447			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19448			<xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@方向_6B45= 'horizontal'">vertical</xsl:when><xsl:when test="@方向_6B45 = 'vertical'">horizontal</xsl:when><xsl:otherwise>vertical</xsl:otherwise></xsl:choose></xsl:attribute>
19449		</anim:transitionFilter>
19450	</xsl:template>
19451	<!-- ooo:entrance split , uof1, PiLie(p0094) -->
19452	<xsl:template match="演:劈裂_6B5E" mode="entrance">
19453		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19454		<xsl:attribute name="presentation:preset-id">ooo-entrance-split</xsl:attribute>
19455		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B5F = 'horizontal out'">horizontal-out</xsl:when><xsl:when test="@方向_6B5F= 'horizontal in'">horizontal-in</xsl:when><xsl:when test="@方向_6B5F= 'vertical in'">vertical-in</xsl:when><xsl:when test="@方向_6B5F= 'vertical out'">vertical-out</xsl:when><xsl:otherwise>horizontal-out</xsl:otherwise></xsl:choose></xsl:attribute>
19456		<anim:set smil:begin="0s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19457			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19458			<!--xsl:if test="ancestor::演:序列/@演:段落引用">
19459				<xsl:attribute name="anim:sub-item">text</xsl:attribute>
19460			</xsl:if-->
19461		</anim:set>
19462		<anim:transitionFilter smil:type="barnDoorWipe">
19463			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19464			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19465			<xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@方向_6B5F = 'horizontal out'">horizontal</xsl:when><xsl:when test="@方向_6B5F= 'horizontal in'">horizontal</xsl:when><xsl:when test="@方向_6B5F= 'vertical in'">vertical</xsl:when><xsl:when test="@方向_6B5F= 'vertical out'">vertical</xsl:when></xsl:choose></xsl:attribute>
19466			<xsl:if test="@方向_6B5F= 'horizontal in' or @方向_6B5F= 'vertical in'">
19467				<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19468			</xsl:if>
19469			<!--xsl:if test="ancestor::演:序列/@演:段落引用">
19470				<xsl:attribute name="anim:sub-item">text</xsl:attribute>
19471			</xsl:if-->
19472		</anim:transitionFilter>
19473	</xsl:template>
19474	<!-- ooo:entrance venetian-blinds, uof1, BaiYeChuang(p0080) -->
19475	<xsl:template match="演:百叶窗_6B43" mode="entrance">
19476		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19477		<xsl:attribute name="presentation:preset-id">ooo-entrance-venetian-blinds</xsl:attribute>
19478		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B45= 'horizontal'">horizontal</xsl:when><xsl:when test="@方向_6B45 = 'vertical'">vertical</xsl:when><xsl:otherwise>vertical</xsl:otherwise></xsl:choose></xsl:attribute>
19479		<anim:set smil:begin="0s" smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19480			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19481		</anim:set>
19482		<anim:transitionFilter smil:type="blindsWipe" smil:direction="reverse">
19483			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19484			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19485			<xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@方向_6B45= 'horizontal'">vertical</xsl:when><xsl:when test="@方向_6B45 = 'vertical'">horizontal</xsl:when><xsl:otherwise>horizontal</xsl:otherwise></xsl:choose></xsl:attribute>
19486		</anim:transitionFilter>
19487	</xsl:template>
19488	<!-- ooo:entrance wedge, uof1, ShanXingZhanKai(p0096) -->
19489	<xsl:template match="演:扇形展开_6B61" mode="entrance">
19490		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19491		<xsl:attribute name="presentation:preset-id">ooo-entrance-wedge</xsl:attribute>
19492		<anim:set smil:begin="0s" smil:dur="0.0015s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19493			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19494		</anim:set>
19495		<anim:transitionFilter smil:type="fanWipe" smil:subtype="centerTop">
19496			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19497			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19498		</anim:transitionFilter>
19499	</xsl:template>
19500	<!-- ooo:entrance wheel, uof1, LunZi(p0084) -->
19501	<xsl:template match="演:轮子_6B4B" mode="entrance">
19502		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19503		<xsl:attribute name="presentation:preset-id">ooo-entrance-wheel</xsl:attribute>
19504		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@轮辐_6B4D"><xsl:value-of select="@轮辐_6B4D"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:attribute>
19505		<anim:set smil:begin="0s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19506			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19507		</anim:set>
19508		<anim:transitionFilter smil:dur="0.5s" smil:type="pinWheelWipe">
19509			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19510			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19511			<xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@轮辐_6B4D='1'">oneBlade</xsl:when><xsl:when test="@轮辐_6B4D='2'">twoBladeVertical</xsl:when><xsl:when test="@轮辐_6B4D='3'">threeBlade</xsl:when><xsl:when test="@轮辐_6B4D='4'">fourBlade</xsl:when><xsl:when test="@轮辐_6B4D='8'">eightBlade</xsl:when><xsl:otherwise>oneBlade</xsl:otherwise></xsl:choose></xsl:attribute>
19512		</anim:transitionFilter>
19513	</xsl:template>
19514	<!-- ooo:entrance wipe, uof1, CaChu(p0090) -->
19515	<xsl:template match="演:擦除_6B57" mode="entrance">
19516		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19517		<xsl:attribute name="presentation:preset-id">ooo-entrance-wipe</xsl:attribute>
19518		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B58 = 'from right'">from-right</xsl:when><xsl:when test="@方向_6B58 = 'from left'">from-left</xsl:when><xsl:when test="@方向_6B58 = 'from top'">from-top</xsl:when><xsl:when test="@方向_6B58 = 'from bottom'">from-bottom</xsl:when><xsl:otherwise>from-left</xsl:otherwise></xsl:choose></xsl:attribute>
19519		<anim:set smil:begin="0s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19520			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19521		</anim:set>
19522		<anim:transitionFilter smil:type="barWipe">
19523			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19524			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19525			<xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="(@方向_6B58 = 'from right') or (@方向_6B58 = 'from left')">leftToRight</xsl:when><xsl:when test="(@方向_6B58 = 'from top') or (@方向_6B58 = 'from bottom')">topToBottom</xsl:when><xsl:otherwise>leftToRight</xsl:otherwise></xsl:choose></xsl:attribute>
19526			<xsl:if test="@方向_6B58='from right'">
19527				<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19528			</xsl:if>
19529			<xsl:if test="@方向_6B58='from bottom'">
19530				<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19531			</xsl:if>
19532		</anim:transitionFilter>
19533	</xsl:template>
19534	<!-- ooo:entrance random, uof1, SuiJiXiaoGuo(p0088) -->
19535	<xsl:template match="演:随机效果_6B55" mode="entrance">
19536		<xsl:attribute name="presentation:preset-class">entrance</xsl:attribute>
19537		<xsl:attribute name="presentation:preset-id">ooo-entrance-random</xsl:attribute>
19538		<anim:set smil:begin="0s" smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible">
19539			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19540		</anim:set>
19541		<anim:animate smil:dur="1s" smil:fill="hold" smil:attributeName="width" smil:values="0;width" smil:keyTimes="0;1" presentation:additive="base">
19542			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19543			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19544		</anim:animate>
19545		<anim:animate smil:fill="hold" smil:attributeName="height" smil:values="0;height" smil:keyTimes="0;1" presentation:additive="base">
19546			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19547			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19548		</anim:animate>
19549		<anim:animate smil:fill="hold" smil:attributeName="rotate" smil:values="90;0" smil:keyTimes="0;1" presentation:additive="base">
19550			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19551			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19552		</anim:animate>
19553		<anim:transitionFilter smil:type="fade" smil:subtype="crossfade">
19554			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19555			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19556		</anim:transitionFilter>
19557	</xsl:template>
19558	<!-- emphasis animation types , starting -->
19559	<!-- Change FillColor , uof1, GengGaiTianChongYanSe(p0124) -->
19560	<xsl:template match="演:更改填充颜色_6B9F" mode="emphasis">
19561		<xsl:attribute name="presentation:preset-class">emphasis</xsl:attribute>
19562		<xsl:attribute name="presentation:preset-id">ooo-emphasis-fill-color</xsl:attribute>
19563		<xsl:attribute name="presentation:preset-sub-type">2</xsl:attribute>
19564		<anim:animateColor smil:fill="hold" smil:attributeName="fill-color" presentation:additive="base" anim:color-interpolation="rgb" anim:color-interpolation-direction="clockwise">
19565			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19566			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19567			<xsl:attribute name="smil:to"><xsl:value-of select="@颜色_6B95"/></xsl:attribute>
19568		</anim:animateColor>
19569		<anim:set smil:dur="0.5s" smil:fill="hold" smil:attributeName="fill" smil:to="solid">
19570			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19571		</anim:set>
19572	</xsl:template>
19573	<!-- Change FontColor, uof1, GengGaiZiTiYanSe(p0126) -->
19574	<xsl:template match="演:更改字体颜色_6BA2" mode="emphasis">
19575		<xsl:attribute name="presentation:preset-class">emphasis</xsl:attribute>
19576		<xsl:attribute name="presentation:preset-id">ooo-emphasis-font-color</xsl:attribute>
19577		<xsl:attribute name="presentation:preset-sub-type">2</xsl:attribute>
19578		<anim:animateColor smil:fill="hold" anim:sub-item="text" smil:attributeName="color" presentation:additive="base" anim:color-interpolation="rgb" anim:color-interpolation-direction="clockwise">
19579			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19580			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19581			<xsl:attribute name="smil:to"><xsl:value-of select="@颜色_6B95"/></xsl:attribute>
19582		</anim:animateColor>
19583	</xsl:template>
19584	<!-- Change FontSize( Zoom in ), uof1, GengGaiZiHao(p0125)/SuoFang(p0120) -->
19585	<xsl:template match="演:更改字号_6BA0" mode="emphasis">
19586		<xsl:attribute name="presentation:preset-class">emphasis</xsl:attribute>
19587		<xsl:attribute name="presentation:preset-id">ooo-emphasis-font-size</xsl:attribute>
19588		<xsl:attribute name="presentation:preset-sub-type">2</xsl:attribute>
19589		<anim:animate smil:fill="hold" smil:attributeName="font-size" presentation:additive="base" anim:sub-item="text">
19590			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19591			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19592			<xsl:attribute name="smil:to"><xsl:choose><xsl:when test="@预定义尺寸_6B92='tiny' ">0.25pt</xsl:when><xsl:when test="@预定义尺寸_6B92='smaller' ">0.5pt</xsl:when><xsl:when test="@预定义尺寸_6B92='larger' ">1.5pt</xsl:when><xsl:when test="@预定义尺寸_6B92='huge' ">4pt</xsl:when><xsl:when test="@自定义尺寸_6B93"><xsl:value-of select="concat(@自定义尺寸_6B93 div 100,'pt')"/></xsl:when><xsl:otherwise>1pt</xsl:otherwise></xsl:choose></xsl:attribute>
19593		</anim:animate>
19594	</xsl:template>
19595	<!-- here is about styles content, no changed -->
19596	<xsl:template match="演:更改字形_6B96" mode="emphasis">
19597		<xsl:attribute name="presentation:preset-class">emphasis</xsl:attribute>
19598		<xsl:attribute name="presentation:preset-id">ooo-emphasis-font-style</xsl:attribute>
19599		<xsl:attribute name="presentation:preset-sub-type">1</xsl:attribute>
19600		<xsl:variable name="FontStyleName">
19601			<xsl:value-of select="@字形_6B97"/>
19602		</xsl:variable>
19603		<xsl:choose>
19604			<xsl:when test="/uof:UOF_0000/式样:式样集_990B/式样:句式样集_990F/式样:句式样_9910[@名称_4101 = $FontStyleName]/字:字体_4128">
19605				<anim:set anim:sub-item="text" smil:attributeName="font-family">
19606					<xsl:attribute name="smil:dur"><xsl:choose><xsl:when test="@期间_6B98 = 'until-next-click'">until next click</xsl:when><xsl:when test="@期间_6B98 = 'until-end-of-slide'">indefinite</xsl:when><xsl:otherwise><xsl:value-of select="concat(@期间_6B98,'s')"/></xsl:otherwise></xsl:choose></xsl:attribute>
19607					<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19608					<xsl:variable name="fontname" select="/uof:UOF_0000/式样:式样集_990B/式样:句式样集_990F/式样:句式样_9910[@名称_4101 = $FontStyleName]/字:字体_4128/@中文字体引用_412A"/>
19609					<xsl:attribute name="smil:to"><xsl:value-of select="/uof:UOF_0000/式样:式样集_990B/式样:字体集_990C/式样:字体声明_990D[@标识符_9902 = $fontname]/@名称_9903"/></xsl:attribute>
19610				</anim:set>
19611			</xsl:when>
19612			<xsl:otherwise>
19613				<anim:set anim:sub-item="text" smil:attributeName="font-style">
19614					<xsl:attribute name="smil:dur"><xsl:choose><xsl:when test="@期间_6B98 = 'until-next-click'">until next click</xsl:when><xsl:when test="@期间_6B98 = 'until-end-of-slide'">indefinite</xsl:when><xsl:otherwise><xsl:value-of select="concat(@期间_6B98,'s')"/></xsl:otherwise></xsl:choose></xsl:attribute>
19615					<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19616					<xsl:attribute name="smil:to"><xsl:choose><xsl:when test="/uof:UOF_0000/式样:式样集_990B/式样:句式样集_990F/式样:句式样_9910[@名称_4101 = $FontStyleName]/字:是否斜体_4131">italic</xsl:when><xsl:otherwise>normal</xsl:otherwise></xsl:choose></xsl:attribute>
19617				</anim:set>
19618				<anim:set anim:sub-item="text" smil:attributeName="font-weight">
19619					<xsl:attribute name="smil:dur"><xsl:choose><xsl:when test="@期间_6B98 = 'until-next-click'">until next click</xsl:when><xsl:when test="@期间_6B98 = 'until-end-of-slide'">indefinite</xsl:when><xsl:otherwise><xsl:value-of select="concat(@期间_6B98,'s')"/></xsl:otherwise></xsl:choose></xsl:attribute>
19620					<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19621					<xsl:attribute name="smil:to"><xsl:choose><xsl:when test="/uof:UOF_0000/式样:式样集_990B/式样:句式样集_990F/式样:句式样_9910[@名称_4101 = $FontStyleName]/字:是否粗体_4130">bold</xsl:when><xsl:otherwise>normal</xsl:otherwise></xsl:choose></xsl:attribute>
19622				</anim:set>
19623				<anim:set anim:sub-item="text" smil:attributeName="text-underline">
19624					<xsl:attribute name="smil:dur"><xsl:choose><xsl:when test="@期间_6B98 = 'until-next-click'">until next click</xsl:when><xsl:when test="@期间_6B98 = 'until-end-of-slide'">indefinite</xsl:when><xsl:otherwise><xsl:value-of select="concat(@期间_6B98,'s')"/></xsl:otherwise></xsl:choose></xsl:attribute>
19625					<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19626					<xsl:attribute name="smil:to"><xsl:choose><xsl:when test="/uof:UOF_0000/式样:式样集_990B/式样:句式样集_990F/式样:句式样_9910[@名称_4101 = $FontStyleName]/字:下划线_4136">solid</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
19627				</anim:set>
19628			</xsl:otherwise>
19629		</xsl:choose>
19630	</xsl:template>
19631	<!-- Change LineColor, uof1, GengGaiXianTiaoYanSe(p0121) -->
19632	<xsl:template match="演:更改线条颜色_6B94" mode="emphasis">
19633		<xsl:attribute name="presentation:preset-class">emphasis</xsl:attribute>
19634		<xsl:attribute name="presentation:preset-id">ooo-emphasis-line-color</xsl:attribute>
19635		<xsl:attribute name="presentation:preset-sub-type">2</xsl:attribute>
19636		<anim:animateColor smil:fill="hold" smil:attributeName="stroke-color" presentation:additive="base" anim:color-interpolation="rgb" anim:color-interpolation-direction="clockwise">
19637			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19638			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19639			<xsl:attribute name="smil:to"><xsl:value-of select="@颜色_6B95"/></xsl:attribute>
19640		</anim:animateColor>
19641		<anim:set smil:dur="0s" smil:fill="hold" anim:sub-item="text" smil:attributeName="stroke" smil:to="solid">
19642			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19643		</anim:set>
19644	</xsl:template>
19645	<xsl:template match="演:陀螺旋_6B9B" mode="emphasis">
19646		<xsl:attribute name="presentation:preset-class">emphasis</xsl:attribute>
19647		<xsl:attribute name="presentation:preset-id">ooo-emphasis-spin</xsl:attribute>
19648		<xsl:attribute name="presentation:preset-sub-type">2</xsl:attribute>
19649		<anim:animateTransform smil:fill="hold" presentation:additive="base" svg:type="rotate">
19650			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19651			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19652			<xsl:attribute name="smil:by"><xsl:choose><xsl:when test="@是否顺时针方向_6B9C = 'true'"><xsl:choose><xsl:when test="@预定义角度_6B9D='quarter spin'">90</xsl:when><xsl:when test="@预定义角度_6B9D='half spin'">180</xsl:when><xsl:when test="@预定义角度_6B9D='full spin'">360</xsl:when><xsl:when test="@预定义角度_6B9D='two spins'">720</xsl:when><xsl:when test="@自定义角度_6B9E"><xsl:value-of select="@自定义角度_6B9E"/></xsl:when></xsl:choose></xsl:when><xsl:when test="@是否顺时针方向_6B9C = 'false'"><xsl:choose><xsl:when test="@预定义角度_6B9D='quarter spin'">-90</xsl:when><xsl:when test="@预定义角度_6B9D='half spin'">-180</xsl:when><xsl:when test="@预定义角度_6B9D='full spin'">-360</xsl:when><xsl:when test="@预定义角度_6B9D='two spins'">-720</xsl:when><xsl:when test="@自定义角度_6B9E">-<xsl:value-of select="@自定义角度_6B9E"/></xsl:when></xsl:choose></xsl:when></xsl:choose></xsl:attribute>
19653		</anim:animateTransform>
19654	</xsl:template>
19655	<xsl:template match="演:透明_6BA3" mode="emphasis">
19656		<xsl:attribute name="presentation:preset-class">emphasis</xsl:attribute>
19657		<xsl:attribute name="presentation:preset-id">ooo-emphasis-transparency</xsl:attribute>
19658		<anim:set anim:sub-item="text" smil:attributeName="opacity">
19659			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19660			<xsl:attribute name="smil:dur"><xsl:choose><xsl:when test="@期间_6BA6 = 'until next click'">until next click</xsl:when><xsl:when test="@期间_6BA6 = 'until end of slide'">indefinite</xsl:when><xsl:otherwise><xsl:value-of select="concat(@期间_6BA6,'s')"/></xsl:otherwise></xsl:choose></xsl:attribute>
19661			<xsl:attribute name="smil:to"><xsl:choose><xsl:when test="@预定义透明度_6BA4='25' ">0.25</xsl:when><xsl:when test="@预定义透明度_6BA4='50' ">0.5</xsl:when><xsl:when test="@预定义透明度_6BA4='75' ">0.75</xsl:when><xsl:when test="@预定义透明度_6BA4='100' ">1</xsl:when><xsl:when test="@自定义透明度_6BA5"><xsl:value-of select="number(@自定义透明度_6BA5) div 100"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:attribute>
19662		</anim:set>
19663	</xsl:template>
19664	<xsl:template match="演:缩放_6B72" mode="emphasis">
19665		<xsl:attribute name="presentation:preset-class">emphasis</xsl:attribute>
19666		<xsl:attribute name="presentation:preset-id">ooo-emphasis-grow-and-shrink</xsl:attribute>
19667		<anim:animateTransform smil:fill="hold" anim:sub-item="text" presentation:additive="base" svg:type="scale">
19668			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19669			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19670			<xsl:attribute name="smil:to"><xsl:choose><xsl:when test="@预定义尺寸_6B92='tiny'"><xsl:choose><xsl:when test="@方向_6B91 = 'horizontal'">0.25,1</xsl:when><xsl:when test="@方向_6B91 = 'vertical'">1,0.25</xsl:when><xsl:otherwise>0.25,0.25</xsl:otherwise></xsl:choose></xsl:when><xsl:when test="@预定义尺寸_6B92='smaller'"><xsl:choose><xsl:when test="@方向_6B91 = 'horizontal'">0.5,1</xsl:when><xsl:when test="@方向_6B91 = 'vertical'">1,0.5</xsl:when><xsl:otherwise>0.5,0.5</xsl:otherwise></xsl:choose></xsl:when><xsl:when test="@预定义尺寸_6B92='larger'"><xsl:choose><xsl:when test="@方向_6B91 = 'horizontal'">1.5,1</xsl:when><xsl:when test="@方向_6B91 = 'vertical'">1,1.5</xsl:when><xsl:otherwise>1.5,1.5</xsl:otherwise></xsl:choose></xsl:when><xsl:when test="@预定义尺寸_6B92='huge'"><xsl:choose><xsl:when test="@方向_6B91 = 'horizontal'">4,1</xsl:when><xsl:when test="@方向_6B91 = 'vertical'">1,4</xsl:when><xsl:otherwise>4,4</xsl:otherwise></xsl:choose></xsl:when><xsl:when test="@自定义尺寸_6B93"><xsl:choose><xsl:when test="@方向_6B91 = 'horizontal'"><xsl:value-of select="@自定义尺寸_6B93 div 100"/>,1</xsl:when><xsl:when test="@方向 = 'vertical'">1,<xsl:value-of select="@自定义尺寸_6B93 div 100"/></xsl:when><xsl:otherwise><xsl:value-of select="@自定义尺寸_6B93 div 100"/>,<xsl:value-of select="@自定义尺寸_6B93 div 100"/></xsl:otherwise></xsl:choose></xsl:when></xsl:choose></xsl:attribute>
19671		</anim:animateTransform>
19672	</xsl:template>
19673	<!-- emphasis animation types, ending. -->
19674	<xsl:template match="演:盒状_6B47" mode="exit">
19675		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19676		<xsl:attribute name="presentation:preset-id">ooo-exit-box</xsl:attribute>
19677		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B48"><xsl:value-of select="@方向_6B48"/></xsl:when><xsl:otherwise>in</xsl:otherwise></xsl:choose></xsl:attribute>
19678		<anim:transitionFilter smil:type="irisWipe" smil:subtype="rectangle" smil:mode="out">
19679			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19680			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19681			<xsl:if test="@方向_6B48 = 'in'">
19682				<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19683			</xsl:if>
19684		</anim:transitionFilter>
19685		<anim:set smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19686			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute>
19687			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19688		</anim:set>
19689	</xsl:template>
19690	<xsl:template match="演:棋盘_6B4E" mode="exit">
19691		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19692		<xsl:attribute name="presentation:preset-id">ooo-exit-checkerboard</xsl:attribute>
19693		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B50='down'">downward</xsl:when><xsl:when test="@方向_6B50='across'">across</xsl:when><xsl:otherwise>across</xsl:otherwise></xsl:choose></xsl:attribute>
19694		<anim:transitionFilter anim:sub-item="text" smil:type="checkerBoardWipe" smil:mode="out">
19695			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19696			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19697			<xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@方向_6B50='down'">down</xsl:when><xsl:when test="@方向_6B50='across'">across</xsl:when></xsl:choose></xsl:attribute>
19698		</anim:transitionFilter>
19699		<anim:set smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19700			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute>
19701			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19702		</anim:set>
19703	</xsl:template>
19704	<xsl:template match="演:圆形扩展_6B56" mode="exit">
19705		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19706		<xsl:attribute name="presentation:preset-id">ooo-exit-circle</xsl:attribute>
19707		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B48"><xsl:value-of select="@方向_6B48"/></xsl:when><xsl:otherwise>in</xsl:otherwise></xsl:choose></xsl:attribute>
19708		<anim:transitionFilter smil:type="ellipseWipe" smil:subtype="horizontal" smil:mode="out">
19709			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19710			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19711			<xsl:if test="@方向_6B48 = 'out'">
19712				<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19713			</xsl:if>
19714		</anim:transitionFilter>
19715		<anim:set smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19716			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19717			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19718		</anim:set>
19719	</xsl:template>
19720	<xsl:template match="演:阶梯状_6B49" mode="exit">
19721		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19722		<xsl:attribute name="presentation:preset-id">ooo-exit-diagonal-squares</xsl:attribute>
19723		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B4A='left down'">left-to-bottom</xsl:when><xsl:when test="@方向_6B4A='left up'">left-to-top</xsl:when><xsl:when test="@方向_6B4A='right down'">right-to-bottom</xsl:when><xsl:when test="@方向_6B4A='right up'">right-to-top</xsl:when><xsl:otherwise>left-to-bottom</xsl:otherwise></xsl:choose></xsl:attribute>
19724		<anim:transitionFilter smil:type="waterfallWipe" smil:mode="out">
19725			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19726			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19727			<xsl:choose>
19728				<xsl:when test="@方向_6B4A='left down'">
19729					<xsl:attribute name="smil:subtype">horizontalRight</xsl:attribute>
19730				</xsl:when>
19731				<xsl:when test="@方向_6B4A='left up'">
19732					<xsl:attribute name="smil:subtype">horizontalLeft</xsl:attribute>
19733					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19734				</xsl:when>
19735				<xsl:when test="@方向_6B4A='right up'">
19736					<xsl:attribute name="smil:subtype">horizontalRight</xsl:attribute>
19737					<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19738				</xsl:when>
19739				<xsl:when test="@方向_6B4A='right down'">
19740					<xsl:attribute name="smil:subtype">horizontalLeft</xsl:attribute>
19741				</xsl:when>
19742				<xsl:otherwise>
19743					<xsl:attribute name="smil:subtype">horizontalRight</xsl:attribute>
19744				</xsl:otherwise>
19745			</xsl:choose>
19746		</anim:transitionFilter>
19747		<anim:set smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19748			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute>
19749			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19750		</anim:set>
19751	</xsl:template>
19752	<xsl:template match="演:菱形_6B5D" mode="exit">
19753		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19754		<xsl:attribute name="presentation:preset-id">ooo-exit-diamond</xsl:attribute>
19755		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B48"><xsl:value-of select="@方向_6B48"/></xsl:when><xsl:otherwise>in</xsl:otherwise></xsl:choose></xsl:attribute>
19756		<anim:transitionFilter smil:type="irisWipe" smil:subtype="diamond" smil:mode="out">
19757			<xsl:if test="@方向_6B48 = 'out'">
19758				<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19759			</xsl:if>
19760			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19761			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19762		</anim:transitionFilter>
19763		<anim:set smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19764			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19765			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19766		</anim:set>
19767	</xsl:template>
19768	<xsl:template match="演:消失_6BC7" mode="exit">
19769		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19770		<xsl:attribute name="presentation:preset-id">ooo-exit-disappear</xsl:attribute>
19771		<anim:set smil:begin="0s" smil:dur="0.001s" smil:fill="hold" anim:sub-item="text" smil:attributeName="visibility" smil:to="hidden">
19772			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19773		</anim:set>
19774	</xsl:template>
19775	<xsl:template match="演:向外溶解_6BC5" mode="exit">
19776		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19777		<xsl:attribute name="presentation:preset-id">ooo-exit-dissolve</xsl:attribute>
19778		<anim:transitionFilter smil:type="dissolve" smil:direction="reverse" smil:mode="out">
19779			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19780			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19781		</anim:transitionFilter>
19782		<anim:set smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19783			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute>
19784			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19785		</anim:set>
19786	</xsl:template>
19787	<xsl:template match="演:闪烁一次_6B51" mode="exit">
19788		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19789		<xsl:attribute name="presentation:preset-id">ooo-exit-flash-once</xsl:attribute>
19790		<anim:animate smil:attributeName="visibility" smil:values="hidden;visible" smil:keyTimes="0;0.5" smil:calcMode="discrete">
19791			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_fast"/></xsl:attribute>
19792			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19793		</anim:animate>
19794		<anim:set smil:dur="0s" smil:attributeName="visibility" smil:to="hidden">
19795			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度_fast"/></xsl:attribute>
19796			<xsl:attribute name="smil:fill">hold</xsl:attribute>
19797			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19798		</anim:set>
19799	</xsl:template>
19800	<xsl:template match="演:飞出_6BBF" mode="exit">
19801		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19802		<xsl:attribute name="presentation:preset-id">ooo-exit-fly-out</xsl:attribute>
19803		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6BC0= 'to bottom'">from-bottom</xsl:when><xsl:when test="@方向_6BC0 = 'to top-right'">from-top-right</xsl:when><xsl:when test="@方向_6BC0 = 'to top-left'">from-top-left</xsl:when><xsl:when test="@方向_6BC0 = 'to bottom-left'">from-bottom-left</xsl:when><xsl:when test="@方向_6BC0 = 'to bottom-right'">from-bottom-right</xsl:when><xsl:when test="@方向_6BC0 = 'to right'">from-right</xsl:when><xsl:when test="@方向_6BC0 = 'to left'">from-left</xsl:when><xsl:when test="@方向_6BC0 = 'to top'">from-top</xsl:when><xsl:otherwise>from-bottom</xsl:otherwise></xsl:choose></xsl:attribute>
19804		<xsl:variable name="smilvalueX">
19805			<xsl:choose>
19806				<xsl:when test="contains(@方向_6BC0,'right')">x;1+width/2</xsl:when>
19807				<xsl:when test="contains(@方向_6BC0,'left')">x;0-width/2</xsl:when>
19808				<xsl:otherwise>x;x</xsl:otherwise>
19809			</xsl:choose>
19810		</xsl:variable>
19811		<xsl:variable name="smilvalueY">
19812			<xsl:choose>
19813				<xsl:when test="@方向_6BC0">
19814					<xsl:choose>
19815						<xsl:when test="contains(@方向_6BC0,'bottom')">y;1+height/2</xsl:when>
19816						<xsl:when test="contains(@方向_6BC0,'top')">y;0-height/2</xsl:when>
19817						<xsl:otherwise>y;y</xsl:otherwise>
19818					</xsl:choose>
19819				</xsl:when>
19820				<xsl:otherwise>y;1+height/2</xsl:otherwise>
19821			</xsl:choose>
19822		</xsl:variable>
19823		<anim:animate smil:fill="hold" smil:attributeName="x" smil:keyTimes="0;1" presentation:additive="base">
19824			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19825			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19826			<xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueX"/></xsl:attribute>
19827		</anim:animate>
19828		<anim:animate smil:fill="hold" smil:attributeName="y" smil:keyTimes="0;1" presentation:additive="base">
19829			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19830			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19831			<xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueY"/></xsl:attribute>
19832		</anim:animate>
19833		<anim:set smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19834			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute>
19835			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19836		</anim:set>
19837	</xsl:template>
19838	<xsl:template match="演:缓慢移出_6BC1" mode="exit">
19839		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19840		<xsl:attribute name="presentation:preset-id">ooo-exit-crawl-out</xsl:attribute>
19841		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6BC2= 'to bottom'">from-bottom</xsl:when><xsl:when test="@方向_6BC2 = 'to right'">from-right</xsl:when><xsl:when test="@方向_6BC2 = 'to left'">from-left</xsl:when><xsl:when test="@方向_6BC2 = 'to top'">from-top</xsl:when><xsl:otherwise>from-bottom</xsl:otherwise></xsl:choose></xsl:attribute>
19842		<xsl:variable name="smilvalueX">
19843			<xsl:choose>
19844				<xsl:when test="contains(@方向_6BC2,'right')">x;1+width/2</xsl:when>
19845				<xsl:when test="contains(@方向_6BC2,'left')">x;0-width/2</xsl:when>
19846				<xsl:otherwise>x;x</xsl:otherwise>
19847			</xsl:choose>
19848		</xsl:variable>
19849		<xsl:variable name="smilvalueY">
19850			<xsl:choose>
19851				<xsl:when test="@方向_6BC2">
19852					<xsl:choose>
19853						<xsl:when test="contains(@方向_6BC2,'bottom')">y;1+height/2</xsl:when>
19854						<xsl:when test="contains(@方向_6BC2,'top')">y;0-height/2</xsl:when>
19855						<xsl:otherwise>y;y</xsl:otherwise>
19856					</xsl:choose>
19857				</xsl:when>
19858				<xsl:otherwise>y;1+height/2</xsl:otherwise>
19859			</xsl:choose>
19860		</xsl:variable>
19861		<anim:animate smil:fill="hold" smil:attributeName="x" smil:keyTimes="0;1" presentation:additive="base">
19862			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_veryslow"/></xsl:attribute>
19863			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19864			<xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueX"/></xsl:attribute>
19865		</anim:animate>
19866		<anim:animate smil:fill="hold" smil:attributeName="y" smil:keyTimes="0;1" presentation:additive="base">
19867			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_veryslow"/></xsl:attribute>
19868			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19869			<xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueY"/></xsl:attribute>
19870		</anim:animate>
19871		<anim:set smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19872			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute>
19873			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19874		</anim:set>
19875	</xsl:template>
19876	<xsl:template match="演:切出_6BC4" mode="exit">
19877		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19878		<xsl:attribute name="presentation:preset-id">ooo-exit-peek-out</xsl:attribute>
19879		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6BC2 = 'to bottom'">from-bottom</xsl:when><xsl:when test="@方向_6BC2 = 'to right'">from-right</xsl:when><xsl:when test="@方向_6BC2 = 'to left'">from-left</xsl:when><xsl:when test="@方向_6BC2 = 'to top'">from-top</xsl:when><xsl:otherwise>from-bottom</xsl:otherwise></xsl:choose></xsl:attribute>
19880		<anim:transitionFilter smil:type="slideWipe" smil:direction="reverse" smil:mode="out">
19881			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19882			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19883			<xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@方向= 'to bottom'">fromBottom</xsl:when><xsl:when test="@方向_6BC2= 'to right'">fromRight</xsl:when><xsl:when test="@方向_6BC2 = 'to left'">fromLeft</xsl:when><xsl:when test="@方向_6BC2 = 'to top'">fromTop</xsl:when></xsl:choose></xsl:attribute>
19884			<!--xsl:if test="ancestor::演:序列/@演:段落引用">
19885				<xsl:attribute name="anim:sub-item">text</xsl:attribute>
19886			</xsl:if-->
19887		</anim:transitionFilter>
19888		<anim:set smil:dur="0s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19889			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute>
19890			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19891			<!--xsl:if test="ancestor::演:序列/@演:段落引用">
19892				<xsl:attribute name="anim:sub-item">text</xsl:attribute>
19893			</xsl:if-->
19894		</anim:set>
19895	</xsl:template>
19896	<xsl:template match="演:十字形扩展_6B53" mode="exit">
19897		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19898		<xsl:attribute name="presentation:preset-id">ooo-exit-plus</xsl:attribute>
19899		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B48"><xsl:value-of select="@方向_6B48"/></xsl:when><xsl:otherwise>in</xsl:otherwise></xsl:choose></xsl:attribute>
19900		<anim:transitionFilter smil:type="fourBoxWipe" smil:subtype="cornersIn" smil:mode="out">
19901			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19902			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19903			<xsl:if test="@方向_6B48= 'in'">
19904				<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19905			</xsl:if>
19906		</anim:transitionFilter>
19907		<anim:set smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19908			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19909			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19910		</anim:set>
19911	</xsl:template>
19912	<xsl:template match="演:随机线条_6B62" mode="exit">
19913		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19914		<xsl:attribute name="presentation:preset-id">ooo-exit-random-bars</xsl:attribute>
19915		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B45"><xsl:value-of select="@方向_6B45"/></xsl:when><xsl:otherwise>horizontal</xsl:otherwise></xsl:choose></xsl:attribute>
19916		<anim:transitionFilter smil:type="randomBarWipe" smil:direction="reverse" smil:mode="out">
19917			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19918			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19919			<xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@方向_6B45= 'horizontal'">vertical</xsl:when><xsl:when test="@方向_6B45 = 'vertical'">horizontal</xsl:when><xsl:otherwise>vertical</xsl:otherwise></xsl:choose></xsl:attribute>
19920		</anim:transitionFilter>
19921		<anim:set smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19922			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute>
19923			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19924		</anim:set>
19925	</xsl:template>
19926	<xsl:template match="演:劈裂_6B5E" mode="exit">
19927		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19928		<xsl:attribute name="presentation:preset-id">ooo-exit-split</xsl:attribute>
19929		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B5F = 'horizontal out'">horizontal-out</xsl:when><xsl:when test="@方向_6B5F= 'horizontal in'">horizontal-in</xsl:when><xsl:when test="@方向_6B5F= 'vertical in'">vertical-in</xsl:when><xsl:when test="@方向_6B5F= 'vertical out'">vertical-out</xsl:when></xsl:choose></xsl:attribute>
19930		<anim:transitionFilter smil:type="barnDoorWipe" smil:mode="out">
19931			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19932			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19933			<xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@方向_6B5F = 'horizontal out'">horizontal</xsl:when><xsl:when test="@方向_6B5F= 'horizontal in'">horizontal</xsl:when><xsl:when test="@方向_6B5F= 'vertical in'">vertical</xsl:when><xsl:when test="@方向_6B5F= 'vertical out'">vertical</xsl:when></xsl:choose></xsl:attribute>
19934			<xsl:if test="@方向_6B5F= 'horizontal in' or @方向_6B5F= 'vertical in'">
19935				<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19936			</xsl:if>
19937			<!--xsl:if test="ancestor::演:序列/@演:段落引用">
19938				<xsl:attribute name="anim:sub-item">text</xsl:attribute>
19939			</xsl:if-->
19940		</anim:transitionFilter>
19941		<anim:set smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19942			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute>
19943			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19944			<!--xsl:if test="ancestor::演:序列/@演:段落引用">
19945				<xsl:attribute name="anim:sub-item">text</xsl:attribute>
19946			</xsl:if-->
19947		</anim:set>
19948	</xsl:template>
19949	<xsl:template match="演:百叶窗_6B43" mode="exit">
19950		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19951		<xsl:attribute name="presentation:preset-id">ooo-exit-venetian-blinds</xsl:attribute>
19952		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B45= 'horizontal'">horizontal</xsl:when><xsl:when test="@方向_6B45 = 'vertical'">vertical</xsl:when><xsl:otherwise>vertical</xsl:otherwise></xsl:choose></xsl:attribute>
19953		<anim:transitionFilter smil:type="blindsWipe" smil:direction="reverse" smil:mode="out">
19954			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19955			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19956			<xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@方向_6B45= 'horizontal'">vertical</xsl:when><xsl:when test="@方向_6B45 = 'vertical'">horizontal</xsl:when><xsl:otherwise>horizontal</xsl:otherwise></xsl:choose></xsl:attribute>
19957		</anim:transitionFilter>
19958		<anim:set smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19959			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute>
19960			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19961		</anim:set>
19962	</xsl:template>
19963	<xsl:template match="演:扇形展开_6B61" mode="exit">
19964		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19965		<xsl:attribute name="presentation:preset-id">ooo-exit-wedge</xsl:attribute>
19966		<anim:transitionFilter smil:type="fanWipe" smil:subtype="centerTop" smil:mode="out">
19967			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19968			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19969		</anim:transitionFilter>
19970		<anim:set smil:dur="0.0015s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19971			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19972			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19973		</anim:set>
19974	</xsl:template>
19975	<xsl:template match="演:轮子_6B4B" mode="exit">
19976		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19977		<xsl:attribute name="presentation:preset-id">ooo-exit-wheel</xsl:attribute>
19978		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@轮辐_6B4D"><xsl:value-of select="@轮辐_6B4D"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:attribute>
19979		<anim:transitionFilter smil:dur="0.5s" smil:type="pinWheelWipe" smil:mode="out">
19980			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19981			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19982			<xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@轮辐_6B4D='1'">oneBlade</xsl:when><xsl:when test="@轮辐_6B4D='2'">twoBladeVertical</xsl:when><xsl:when test="@轮辐_6B4D='3'">threeBlade</xsl:when><xsl:when test="@轮辐_6B4D='4'">fourBlade</xsl:when><xsl:when test="@轮辐_6B4D='8'">eightBlade</xsl:when><xsl:otherwise>oneBlade</xsl:otherwise></xsl:choose></xsl:attribute>
19983		</anim:transitionFilter>
19984		<anim:set smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
19985			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度_medium"/></xsl:attribute>
19986			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19987		</anim:set>
19988	</xsl:template>
19989	<xsl:template match="演:擦除_6B57" mode="exit">
19990		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
19991		<xsl:attribute name="presentation:preset-id">ooo-exit-wipe</xsl:attribute>
19992		<xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@方向_6B58 = 'from right'">from-right</xsl:when><xsl:when test="@方向_6B58 = 'from left'">from-left</xsl:when><xsl:when test="@方向_6B58 = 'from top'">from-top</xsl:when><xsl:when test="@方向_6B58 = 'from bottom'">from-bottom</xsl:when><xsl:otherwise>from-left</xsl:otherwise></xsl:choose></xsl:attribute>
19993		<anim:transitionFilter smil:type="barWipe" smil:mode="out">
19994			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
19995			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
19996			<xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="(@方向_6B58 = 'from right') or (@方向_6B58 = 'from left')">leftToRight</xsl:when><xsl:when test="(@方向_6B58 = 'from top') or (@方向_6B58 = 'from bottom')">topToBottom</xsl:when><xsl:otherwise>leftToRight</xsl:otherwise></xsl:choose></xsl:attribute>
19997			<xsl:if test="@方向_6B58 = 'from right'">
19998				<xsl:attribute name="smil:direction">reverse</xsl:attribute>
19999			</xsl:if>
20000			<xsl:if test="@方向_6B58 = 'from bottom'">
20001				<xsl:attribute name="smil:direction">reverse</xsl:attribute>
20002			</xsl:if>
20003			<xsl:if test="ancestor::演:序列/@演:段落引用">
20004				<xsl:attribute name="anim:sub-item">text</xsl:attribute>
20005			</xsl:if>
20006		</anim:transitionFilter>
20007		<anim:set smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
20008			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute>
20009			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
20010			<!--xsl:if test="ancestor::演:序列/@演:段落引用">
20011				<xsl:attribute name="anim:sub-item">text</xsl:attribute>
20012			</xsl:if-->
20013		</anim:set>
20014	</xsl:template>
20015	<xsl:template match="演:随机效果_6B55" mode="exit">
20016		<xsl:attribute name="presentation:preset-class">exit</xsl:attribute>
20017		<xsl:attribute name="presentation:preset-id">ooo-exit-random</xsl:attribute>
20018		<anim:transitionFilter smil:type="fade" smil:subtype="crossfade" smil:mode="out">
20019			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
20020			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
20021		</anim:transitionFilter>
20022		<anim:animate smil:attributeName="x" smil:values="x;x" smil:keyTimes="0;1" presentation:additive="base">
20023			<xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute>
20024			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
20025		</anim:animate>
20026		<anim:animate smil:dur="0.1s" smil:decelerate="1" smil:attributeName="y" smil:values="y;y-.03" smil:keyTimes="0;1" presentation:additive="base">
20027			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
20028		</anim:animate>
20029		<anim:animate smil:begin="0.1s" smil:dur="0.9s" smil:accelerate="1" smil:attributeName="y" smil:values="y;y+1" smil:keyTimes="0;1" presentation:additive="base">
20030			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
20031		</anim:animate>
20032		<anim:set smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden">
20033			<xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute>
20034			<xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列_6B1B/@对象引用_6C28"/></xsl:attribute>
20035		</anim:set>
20036	</xsl:template>
20037	<xsl:template name="演速度">
20038		<xsl:choose>
20039			<xsl:when test="./@速度_6B44='very-fast'">0.5s</xsl:when>
20040			<xsl:when test="./@速度_6B44='fast'">1s</xsl:when>
20041			<xsl:when test="./@速度_6B44='medium'">2s</xsl:when>
20042			<xsl:when test="./@速度_6B44='slow'">3s</xsl:when>
20043			<xsl:when test="./@速度_6B44='very-slow'">5s</xsl:when>
20044			<xsl:otherwise>0.5s</xsl:otherwise>
20045		</xsl:choose>
20046	</xsl:template>
20047	<xsl:template name="演速度_medium">
20048		<xsl:choose>
20049			<xsl:when test="./@速度_6B44='very-fast'">0.5s</xsl:when>
20050			<xsl:when test="./@速度_6B44='fast'">1s</xsl:when>
20051			<xsl:when test="./@速度_6B44='medium'">2s</xsl:when>
20052			<xsl:when test="./@速度_6B44='slow'">3s</xsl:when>
20053			<xsl:when test="./@速度_6B44='very-slow'">5s</xsl:when>
20054			<xsl:otherwise>2s</xsl:otherwise>
20055		</xsl:choose>
20056	</xsl:template>
20057	<xsl:template name="演速度_veryslow">
20058		<xsl:choose>
20059			<xsl:when test="./@速度_6B44='very-fast'">0.5s</xsl:when>
20060			<xsl:when test="./@速度_6B44='fast'">1s</xsl:when>
20061			<xsl:when test="./@速度_6B44='medium'">2s</xsl:when>
20062			<xsl:when test="./@速度_6B44='slow'">3s</xsl:when>
20063			<xsl:when test="./@速度_6B44='very-slow'">5s</xsl:when>
20064			<xsl:otherwise>5s</xsl:otherwise>
20065		</xsl:choose>
20066	</xsl:template>
20067	<xsl:template name="演速度_fast">
20068		<xsl:choose>
20069			<xsl:when test="./@速度_6B44='very-fast'">0.5s</xsl:when>
20070			<xsl:when test="./@速度_6B44='fast'">1s</xsl:when>
20071			<xsl:when test="./@速度_6B44='medium'">2s</xsl:when>
20072			<xsl:when test="./@速度_6B44='slow'">3s</xsl:when>
20073			<xsl:when test="./@速度_6B44='very-slow'">5s</xsl:when>
20074			<xsl:otherwise>1s</xsl:otherwise>
20075		</xsl:choose>
20076	</xsl:template>
20077</xsl:stylesheet>
20078