1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
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 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" 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:rdfa="http://docs.oasis-open.org/opendocument/meta/rdfa#" xmlns:fun="http://NSO.com" 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:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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="office style text table draw xlink dc meta number presentation chart dr3d form script config ooo ooow oooc dom smil fun anim pzip fo svg math xforms" office:version="1.0" version="2.0">
23	<xsl:output encoding="utf-8" indent="no" method="xml" omit-xml-declaration="no" standalone="no" version="1.0" name="xml"/>
24	<xsl:variable name="documentType">
25		<xsl:choose>
26			<xsl:when test="contains(/office:document/@office:mimetype,'presentation')">presentation</xsl:when>
27			<xsl:when test="contains(/office:document/@office:mimetype,'text')">text</xsl:when>
28			<xsl:when test="contains(/office:document/@office:mimetype,'spreadsheet')">spreadsheet</xsl:when>
29			<xsl:otherwise>
30				<xsl:choose>
31					<xsl:when test="contains(/office:document/office:body/.,'presentation')">presentation</xsl:when>
32					<xsl:when test="contains(/office:document/office:body/.,'text')">text</xsl:when>
33					<xsl:when test="contains(/office:document/office:body/.,'spreadsheet')">spreadsheet</xsl:when>
34				</xsl:choose>
35			</xsl:otherwise>
36		</xsl:choose>
37	</xsl:variable>
38	<xsl:variable name="ooUnit">
39		<xsl:variable name="ValueWithUnit">
40			<xsl:value-of select="/office:document/office:automatic-styles/style:page-layout/style:page-layout-properties/@fo:page-width"/>
41		</xsl:variable>
42		<xsl:choose>
43			<xsl:when test="contains($ValueWithUnit,'in')">in</xsl:when>
44			<xsl:when test="contains($ValueWithUnit,'cm')">cm</xsl:when>
45			<xsl:when test="contains($ValueWithUnit,'mm')">mm</xsl:when>
46			<xsl:when test="contains($ValueWithUnit,'pt')">pt</xsl:when>
47			<xsl:when test="contains($ValueWithUnit,'twip')">twip</xsl:when>
48			<xsl:when test="contains($ValueWithUnit,'dpt')">dpt</xsl:when>
49			<xsl:when test="contains($ValueWithUnit,'px')">px</xsl:when>
50			<xsl:when test="contains($ValueWithUnit,'pica')">pica</xsl:when>
51			<xsl:otherwise>pt</xsl:otherwise>
52		</xsl:choose>
53	</xsl:variable>
54	<xsl:variable name="uofUnit">
55		<xsl:choose>
56			<xsl:when test="$ooUnit='twip'">pt</xsl:when>
57			<xsl:when test="$ooUnit='pica'">pt</xsl:when>
58			<xsl:when test="$ooUnit='dpt'">pt</xsl:when>
59			<xsl:when test="$ooUnit='px'">pt</xsl:when>
60			<xsl:otherwise>
61				<xsl:value-of select="$ooUnit"/>
62			</xsl:otherwise>
63		</xsl:choose>
64	</xsl:variable>
65	<xsl:variable name="other-to-cm-conversion-factor">
66		<xsl:choose>
67			<xsl:when test="$ooUnit='cm'">1</xsl:when>
68			<xsl:when test="$ooUnit='mm'">0.1</xsl:when>
69			<xsl:when test="$ooUnit='pt'">0.03527</xsl:when>
70			<xsl:when test="$ooUnit='in'">2.54</xsl:when>
71			<xsl:when test="$ooUnit='pica'">0.42333333</xsl:when>
72			<xsl:when test="$ooUnit='twip'">0.0017636684</xsl:when>
73			<xsl:when test="$ooUnit='dpt'">0.0376065</xsl:when>
74			<xsl:when test="$ooUnit='px'">0.02288288</xsl:when>
75			<xsl:otherwise>1</xsl:otherwise>
76		</xsl:choose>
77	</xsl:variable>
78	<xsl:variable name="isRCCellAddress">
79		<xsl:choose>
80			<xsl:when test="($documentType='spreadsheet') and (/office:document/office:meta/meta:user-defined[@meta:name='isRCCellAddress'] = 'true')">true</xsl:when>
81			<xsl:otherwise>false</xsl:otherwise>
82		</xsl:choose>
83	</xsl:variable>
84	<xsl:key match="/office:document/office:styles/style:style | /office:document/office:automatic-styles/style:style" name="Style" use="@style:name"/>
85	<xsl:key match="/office:document/office:styles/style:style[@style:family='paragraph'] | /office:document/office:automatic-styles/style:style[@style:family='paragraph']" name="ParaStyle" use="@style:name"/>
86	<xsl:key match="/office:document/office:styles/style:style[@style:family='graphic' or @style:family='presentation'] | /office:document/office:automatic-styles/style:style[@style:family='graphic' or @style:family='presentation']" name="GraphStyle" use="@style:name"/>
87	<xsl:key match="/office:document/office:styles/style:style[@style:family='table'] | /office:document/office:automatic-styles/style:style[@style:family='table']" name="TableStyle" use="@style:name"/>
88	<xsl:key match="/office:document/office:automatic-styles/style:style[@style:family='table-column']" name="ColStyle" use="@style:name"/>
89	<xsl:key match="/office:document/office:automatic-styles/style:style[@style:family='table-row']" name="RowStyle" use="@style:name"/>
90	<xsl:key match="/office:document/office:automatic-styles/style:style[@style:family='table-cell']" name="CellStyle" use="@style:name"/>
91	<xsl:key match="/office:document/office:styles/number:number-style | /office:document/office:styles/number:currency-style | /office:document/office:styles/number:percentage-style | /office:document/office:styles/number:date-style | /office:document/office:styles/number:time-style | /office:document/office:styles/number:boolean-style | /office:document/office:styles/number:text-style | /office:document/office:automatic-styles/number:number-style | /office:document/office:automatic-styles/number:currency-style | /office:document/office:automatic-styles/number:percentage-style | /office:document/office:automatic-styles/number:date-style | /office:document/office:automatic-styles/number:time-style | /office:document/office:automatic-styles/number:boolean-style | /office:document/office:automatic-styles/number:text-style" name="AllNumberStyle" use="@style:name"/>
92	<xsl:key match="/office:document/office:body//draw:* | /office:document/office:body//office:annotation | /office:document/office:master-styles//draw:*" name="findanchor" use="@draw:style-name"/>
93	<xsl:key match="/office:document/office:body//draw:* | /office:document/office:master-styles//draw:*" name="findanchorP" use="@presentation:style-name"/>
94	<xsl:key match="/office:document/office:body//table:table" name="findtable" use="@table:name"/>
95	<xsl:key match="/office:document/office:master-styles/style:master-page" name="MasterPage" use="@draw:style-name"/>
96	<xsl:key match="/office:document/office:styles/draw:marker" name="markerSize" use="@draw:name"/>
97	<xsl:key match="/office:document/office:body//draw:custom-shape/draw:enhanced-geometry" name="expandcustomshapetype" use="@draw:type"/>
98	<xsl:template match="office:document">
99		<pzip:entry>
100			<pzip:target pzip:path="uof.xml">
101				<uof:UOF_0000 language_0002="cn" version_0003="2.0">
102					<xsl:attribute name="mimetype_0001"><xsl:choose><xsl:when test="$documentType='presentation'">vnd.uof.presentation</xsl:when><xsl:when test="$documentType='spreadsheet'">vnd.uof.spreadsheet</xsl:when><xsl:otherwise>vnd.uof.text</xsl:otherwise></xsl:choose></xsl:attribute>
103
104					<!--BEGIN "文档标识"、"基式样引用"属性暂时未使用-->
105					<!--
106				<xsl:attribute name="文档标识"/>
107				<xsl:attribute name="基式样引用"/>
108				-->
109					<!--END-->
110				</uof:UOF_0000>
111			</pzip:target>
112			<pzip:target pzip:path="_meta/meta.xml">
113				<元:元数据_5200>
114					<xsl:apply-templates select="office:meta"/>
115				</元:元数据_5200>
116			</pzip:target>
117			<xsl:if test="/office:document/office:body/office:text/text:p/text:bookmark-start or /office:document/office:body/office:text/text:p/text:bookmark or /office:document/office:body/office:spreadsheet/table:named-expressions/table:named-range">
118				<pzip:target pzip:path="bookmarks.xml">
119					<书签:书签集_9104>
120						<xsl:if test="$documentType='text'">
121							<xsl:call-template name="sw-BookMarks"/>
122						</xsl:if>
123						<xsl:if test="$documentType='spreadsheet'">
124							<xsl:call-template name="sc-BookMarks"/>
125						</xsl:if>
126					</书签:书签集_9104>
127				</pzip:target>
128			</xsl:if>
129			<xsl:if test=".//draw:object[@*|*]">
130				<xsl:if test=".//draw:object/math:math">
131					<pzip:target pzip:path="equations.xml">
132						<公式:公式集_C200>
133							<xsl:call-template name="equations"/>
134						</公式:公式集_C200>
135					</pzip:target>
136				</xsl:if>
137			</xsl:if>
138			<xsl:if test="//text:a | //draw:a">
139				<pzip:target pzip:path="hyperlinks.xml">
140					<超链:链接集_AA0B>
141						<xsl:call-template name="Hyperlinks"/>
142					</超链:链接集_AA0B>
143				</pzip:target>
144			</xsl:if>
145			<xsl:if test="/office:document/office:styles/style:style[@style:family='graphic'] or /office:document/office:styles/style:style[@style:family='presentation'] or /office:document/office:automatic-styles/style:style[@style:family='graphic'] or /office:document/office:automatic-styles/style:style[@style:family='presentation'] or /office:document/office:master-styles//draw:g or /office:document/office:body//draw:g or /office:document/office:master-styles//draw:page-thumbnail[not(@draw:style-name) and not(@presentation:style-name)] or /office:document/office:styles/style:presentation-page-layout/presentation:placeholder or /office:document/office:body/office:presentation/draw:page//draw:page-thumbnail[not(@draw:style-name) and not(@presentation:style-name)] or /office:document/office:body/office:presentation/draw:page//draw:frame[not(@draw:style-name) and not(@presentation:style-name)] or /office:document/office:body//table:shapes/draw:frame[not(@draw:style-name)]">
146				<pzip:target pzip:path="graphics.xml">
147					<xsl:call-template name="ObjectSets"/>
148				</pzip:target>
149			</xsl:if>
150			<xsl:if test=".//draw:image[@*|* and not(preceding-sibling::*)] or /office:document//style:background-image or /office:document//text:list-level-style-image or /office:document/office:styles/draw:fill-image or office:styles/style:style[@style:family='graphic'] or /office:document/office:styles/style:style[@style:family='presentation'] or /office:document/office:automatic-styles/style:style[@style:family='graphic'] or /office:document/office:automatic-styles/style:style[@style:family='presentation'] or /office:document/office:body/office:presentation/draw:page//draw:frame[not(@draw:style-name) and not(@presentation:style-name)] or //office:document/office:styles/draw:fill-image">
151				<pzip:target pzip:path="objectdata.xml">
152					<对象:对象数据集_D700>
153						<xsl:call-template name="ObjectData"/>
154					</对象:对象数据集_D700>
155				</pzip:target>
156			</xsl:if>
157			<xsl:if test="$documentType='text' and /office:document/office:body/office:text//office:annotation[contains(dc:creator,'__@*Start@')]">
158				<pzip:target pzip:path="app/userdata.xml">
159					<数据:用户数据集_6300>
160						<xsl:call-template name="UserDataSet"/>
161					</数据:用户数据集_6300>
162				</pzip:target>
163			</xsl:if>
164			<pzip:target pzip:path="styles.xml">
165				<式样:式样集_990B>
166					<xsl:choose>
167						<xsl:when test="$documentType = 'presentation'">
168							<xsl:call-template name="Fonts_presentation"/>
169						</xsl:when>
170						<xsl:otherwise>
171							<xsl:call-template name="Fonts"/>
172						</xsl:otherwise>
173					</xsl:choose>
174					<xsl:call-template name="AutoNumbers_text"/>
175					<式样:句式样集_990F>
176						<xsl:call-template name="TextStyles"/>
177						<xsl:if test="$documentType = 'presentation'">
178							<xsl:call-template name="AnimationTextStyles"/>
179						</xsl:if>
180					</式样:句式样集_990F>
181					<式样:段落式样集_9911>
182						<xsl:call-template name="ParagraphStyles"/>
183						<xsl:if test="$documentType = 'presentation'">
184							<xsl:call-template name="PresentationParaStyles"/>
185						</xsl:if>
186					</式样:段落式样集_9911>
187					<xsl:if test="$documentType = 'presentation'">
188						<式样:文本式样集_9913>
189							<xsl:for-each select="office:master-styles/style:master-page">
190								<xsl:call-template name="TextStyleSet"/>
191							</xsl:for-each>
192						</式样:文本式样集_9913>
193					</xsl:if>
194					<xsl:choose>
195						<xsl:when test="$documentType = 'spreadsheet'">
196							<式样:单元格式样集_9915>
197								<xsl:call-template name="TableCellStyles"/>
198							</式样:单元格式样集_9915>
199						</xsl:when>
200						<xsl:otherwise>
201							<式样:文字表式样集_9917>
202								<xsl:call-template name="TextTableStyles"/>
203							</式样:文字表式样集_9917>
204						</xsl:otherwise>
205					</xsl:choose>
206				</式样:式样集_990B>
207			</pzip:target>
208			<pzip:target pzip:path="rules.xml">
209				<规则:公用处理规则_B665>
210					<规则:长度单位_B666>
211						<xsl:choose>
212							<xsl:when test="contains($uofUnit,'in')">
213								<xsl:value-of select="'inch'"/>
214							</xsl:when>
215							<xsl:otherwise>
216								<xsl:value-of select="$uofUnit"/>
217							</xsl:otherwise>
218						</xsl:choose>
219					</规则:长度单位_B666>
220					<xsl:call-template name="GetUsers"/>
221					<xsl:call-template name="GetAnnotations"/>
222					<xsl:choose>
223						<xsl:when test="$documentType='text'">
224							<规则:文字处理_B66B>
225								<xsl:apply-templates select="office:settings"/>
226								<xsl:call-template name="GetTrackChanges"/>
227							</规则:文字处理_B66B>
228						</xsl:when>
229						<xsl:when test="$documentType='spreadsheet'">
230							<规则:电子表格_B66C>
231								<xsl:apply-templates select="table:tracked-changes"/>
232								<xsl:call-template name="SpreadsheetCommonRule"/>
233								<xsl:apply-templates select="table:data-pilot-tables"/>
234								<xsl:apply-templates select="table:consolidation"/>
235								<xsl:apply-templates select="table:dde-links"/>
236							</规则:电子表格_B66C>
237						</xsl:when>
238						<xsl:when test="$documentType='presentation'">
239							<规则:演示文稿_B66D>
240								<xsl:call-template name="PresentationCommonRule"/>
241							</规则:演示文稿_B66D>
242						</xsl:when>
243					</xsl:choose>
244				</规则:公用处理规则_B665>
245			</pzip:target>
246			<pzip:target pzip:path="content.xml">
247				<xsl:choose>
248					<xsl:when test="$documentType='text'">
249						<字:文字处理文档_4225>
250							<xsl:call-template name="TextBody"/>
251						</字:文字处理文档_4225>
252					</xsl:when>
253					<xsl:when test="$documentType='spreadsheet'">
254						<表:电子表格文档_E826>
255							<xsl:call-template name="SpreadsheetBody"/>
256						</表:电子表格文档_E826>
257					</xsl:when>
258					<xsl:otherwise>
259						<演:演示文稿文档_6C10>
260							<xsl:call-template name="PresentationBody"/>
261						</演:演示文稿文档_6C10>
262					</xsl:otherwise>
263				</xsl:choose>
264			</pzip:target>
265			<!--chart-->
266			<xsl:if test="/office:document/office:body//draw:object/office:document[@office:mimetype = 'application/vnd.oasis.opendocument.chart']">
267				<pzip:target pzip:path="chart.xml">
268				<图表:图表集_E836>
269					<xsl:call-template name="DrawFrameChart"/>
270				</图表:图表集_E836>
271				</pzip:target>
272			</xsl:if>
273			<xsl:if test="$documentType='presentation' and /office:document/office:settings/config:config-item-set/config:config-item-map-indexed/config:config-item-map-entry/config:config-item[@config:name = 'ColorScheme']">
274				<pzip:target pzip:path="colorschemes.xml">
275					<规则:配色方案集_6C11>
276						<xsl:call-template name="ColorschemesRO"/>
277					</规则:配色方案集_6C11>
278				</pzip:target>
279			</xsl:if>
280			<pzip:target pzip:path="extend.xml">
281				<扩展:扩展区_B200>
282					<xsl:call-template name="ExpandText"/>
283				</扩展:扩展区_B200>
284			</pzip:target>
285		</pzip:entry>
286	</xsl:template>
287<xsl:template match="office:meta">
288		<xsl:if test="dc:title">
289			<元:标题_5201>
290				<xsl:value-of select="dc:title"/>
291			</元:标题_5201>
292		</xsl:if>
293		<xsl:if test="dc:subject">
294			<元:主题_5202>
295				<xsl:value-of select="dc:subject"/>
296			</元:主题_5202>
297		</xsl:if>
298		<xsl:if test="meta:initial-creator">
299			<元:创建者_5203>
300				<xsl:value-of select="meta:initial-creator"/>
301			</元:创建者_5203>
302		</xsl:if>
303		<xsl:if test="dc:creator">
304			<元:最后作者_5205>
305				<xsl:value-of select="dc:creator"/>
306			</元:最后作者_5205>
307		</xsl:if>
308		<xsl:if test="dc:description">
309			<元:摘要_5206>
310				<xsl:value-of select="dc:description"/>
311			</元:摘要_5206>
312		</xsl:if>
313		<xsl:if test="meta:creation-date">
314			<元:创建日期_5207>
315				<xsl:value-of select="meta:creation-date"/>
316			</元:创建日期_5207>
317		</xsl:if>
318		<xsl:if test="meta:editing-cycles">
319			<元:编辑次数_5208>
320				<xsl:value-of select="meta:editing-cycles"/>
321			</元:编辑次数_5208>
322		</xsl:if>
323		<xsl:if test="meta:editing-duration">
324			<元:编辑时间_5209>
325				<xsl:value-of select="meta:editing-duration"/>
326			</元:编辑时间_5209>
327		</xsl:if>
328		<xsl:if test="meta:generator">
329			<元:创建应用程序_520A>
330				<xsl:value-of select="meta:generator"/>
331			</元:创建应用程序_520A>
332		</xsl:if>
333		<xsl:if test="meta:template/@xlink:title">
334			<元:文档模板_520C>
335				<xsl:value-of select="meta:template/@xlink:title"/>
336			</元:文档模板_520C>
337		</xsl:if>
338		<xsl:if test="meta:keyword">
339			<元:关键字集_520D>
340				<xsl:for-each select="meta:keyword">
341					<元:关键字_520E>
342						<xsl:value-of select="."/>
343					</元:关键字_520E>
344				</xsl:for-each>
345			</元:关键字集_520D>
346		</xsl:if>
347		<xsl:if test="dc:category">
348			<元:分类_520B>
349				<xsl:value-of select="dc:category"/>
350			</元:分类_520B>
351		</xsl:if>
352		<xsl:if test="dc:company">
353			<元:公司名称_5213>
354				<xsl:value-of select="dc:company"/>
355			</元:公司名称_5213>
356		</xsl:if>
357		<xsl:if test="dc:manager">
358			<元:经理名称_5214>
359				<xsl:value-of select="dc:manager"/>
360			</元:经理名称_5214>
361		</xsl:if>
362		<xsl:if test="meta:document-statistic/@meta:page-count">
363			<元:页数_5215>
364				<xsl:value-of select="meta:document-statistic/@meta:page-count"/>
365			</元:页数_5215>
366		</xsl:if>
367		<xsl:if test="meta:document-statistic/@meta:word-count">
368			<元:字数_5216>
369				<xsl:value-of select="meta:document-statistic/@meta:word-count"/>
370			</元:字数_5216>
371		</xsl:if>
372		<xsl:if test="meta:document-statistic/@meta:row-count">
373			<元:行数_5219>
374				<xsl:value-of select="meta:document-statistic/@meta:row-count"/>
375			</元:行数_5219>
376		</xsl:if>
377		<xsl:if test="meta:document-statistic/@meta:paragraph-count">
378			<元:段落数_521A>
379				<xsl:value-of select="meta:document-statistic/@meta:paragraph-count"/>
380			</元:段落数_521A>
381		</xsl:if>
382		<xsl:if test="meta:document-statistic/@meta:object-count">
383			<元:对象数_521B>
384				<xsl:value-of select="meta:document-statistic/@meta:object-count"/>
385			</元:对象数_521B>
386		</xsl:if>
387		<xsl:if test="meta:user-defined!=''">
388			<xsl:for-each select="meta:user-defined">
389				<xsl:choose>
390					<xsl:when test="@meta:name = '作者'">
391						<元:作者_5204>
392							<xsl:value-of select="."/>
393						</元:作者_5204>
394					</xsl:when>
395					<xsl:when test=".!=''">
396						<元:用户自定义元数据集_520F>
397							<元:用户自定义元数据_5210>
398								<xsl:attribute name="名称_5211"><xsl:value-of select="@meta:name"/></xsl:attribute>
399								<xsl:if test="@meta:type">
400									<xsl:attribute name="类型_5212"><xsl:value-of select="@meta:type"/></xsl:attribute>
401								</xsl:if>
402								<xsl:value-of select="."/>
403							</元:用户自定义元数据_5210>
404						</元:用户自定义元数据集_520F>
405					</xsl:when>
406				</xsl:choose>
407			</xsl:for-each>
408		</xsl:if>
409	</xsl:template>
410	<xsl:template name="Hyperlinks">
411		<xsl:if test="//text:a |  //draw:a">
412			<xsl:for-each select="//text:a |  //draw:a">
413				<xsl:variable name="hyperStr" select="@xlink:href"/>
414				<超链:超级链接_AA0C>
415					<xsl:attribute name="标识符_AA0A"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
416					<xsl:variable name="ID" select="generate-id(.)"/>
417					<xsl:element name="超链:链源_AA00">
418						<xsl:value-of select="concat('hlnk', $ID)"/>
419					</xsl:element>
420					<!--xsl:attribute name="超链:标识符"><xsl:value-of select="generate-id(.)"/></xsl:attribute-->
421					<xsl:if test="not(contains($hyperStr,'#'))">
422						<xsl:element name="超链:目标_AA01">
423							<xsl:value-of select="$hyperStr"/>
424						</xsl:element>
425					</xsl:if>
426					<xsl:if test="./@text:style-name or ./@text:visited-style-name">
427						<xsl:element name="超链:式样_AA02">
428							<xsl:if test="./@text:style-name">
429								<xsl:attribute name="未访问式样引用_AA03"><xsl:value-of select="@text:style-name"/></xsl:attribute>
430							</xsl:if>
431							<xsl:if test="./@text:visited-style-name">
432								<xsl:attribute name="已访问式样引用_AA04"><xsl:value-of select="@text:visited-style-name"/></xsl:attribute>
433							</xsl:if>
434						</xsl:element>
435					</xsl:if>
436					<xsl:if test="not(contains($hyperStr,'#'))">
437						<xsl:choose>
438							<xsl:when test="contains($hyperStr,'@')">
439								<xsl:element name="超链:提示_AA05">链接到邮件地址</xsl:element>
440							</xsl:when>
441							<xsl:otherwise>
442								<xsl:element name="超链:提示_AA05">
443									<xsl:value-of select="$hyperStr"/>
444								</xsl:element>
445							</xsl:otherwise>
446						</xsl:choose>
447					</xsl:if>
448					<xsl:if test="contains($hyperStr,'#')">
449						<xsl:choose>
450							<xsl:when test="$documentType='spreadsheet' and /office:document/office:body/office:spreadsheet/table:named-expressions/table:named-range">
451								<xsl:for-each select="/office:document/office:body/office:spreadsheet/table:named-expressions/table:named-range">
452									<xsl:variable name="determineCell">
453										<xsl:value-of select="substring-after($hyperStr,'#')"/>
454									</xsl:variable>
455									<xsl:choose>
456										<xsl:when test="contains(@table:base-cell-address,$determineCell)">
457											<xsl:variable name="bookmarkForCell" select="@table:name"/>
458											<xsl:element name="超链:目标_AA01">
459												<xsl:value-of select="$bookmarkForCell"/>
460											</xsl:element>
461											<xsl:element name="超链:书签_AA0D">
462												<xsl:value-of select="$bookmarkForCell"/>
463											</xsl:element>
464										</xsl:when>
465										<xsl:otherwise>
466											<xsl:element name="超链:目标_AA01">
467												<xsl:value-of select="$determineCell"/>
468											</xsl:element>
469											<xsl:element name="超链:书签_AA0D">
470												<xsl:value-of select="$determineCell"/>
471											</xsl:element>
472										</xsl:otherwise>
473									</xsl:choose>
474								</xsl:for-each>
475							</xsl:when>
476							<xsl:when test="$documentType='spreadsheet'">
477								<xsl:element name="超链:目标_AA01">
478									<xsl:value-of select="$hyperStr"/>
479								</xsl:element>
480							</xsl:when>
481							<xsl:otherwise>
482								<xsl:element name="超链:目标_AA01">
483									<xsl:choose>
484										<xsl:when test="substring-before($hyperStr,'#') != ''">
485											<xsl:value-of select="substring-before($hyperStr,'#')"/>
486										</xsl:when>
487										<xsl:otherwise>
488											<xsl:value-of select="substring-after($hyperStr,'#')"/>
489										</xsl:otherwise>
490									</xsl:choose>
491								</xsl:element>
492								<xsl:element name="超链:书签_AA0D">
493									<xsl:value-of select="substring-after($hyperStr,'#')"/>
494								</xsl:element>
495							</xsl:otherwise>
496						</xsl:choose>
497						<xsl:element name="超链:提示_AA05">
498							<xsl:value-of select="."/>
499						</xsl:element>
500					</xsl:if>
501					<xsl:if test="0">
502						<xsl:element name="超链:声音_AA06">
503							<xsl:attribute name="预定义声音_C631"/>
504							<xsl:attribute name="自定义声音_C632"/>
505							<xsl:attribute name="是否循环播放_C633"/>
506						</xsl:element>
507					</xsl:if>
508					<xsl:if test="0">
509						<xsl:element name="超链:触发方式_AA07">
510							<xsl:attribute name="是否高亮显示_AA08"/>
511							<xsl:attribute name="是否单击触发_AA09"/>
512						</xsl:element>
513					</xsl:if>
514				</超链:超级链接_AA0C>
515			</xsl:for-each>
516		</xsl:if>
517	</xsl:template>
518	<xsl:template name="Fonts">
519		<式样:字体集_990C>
520			<式样:字体声明_990D 名称_9903="Wingdings" 标识符_9902="Wingdings"/>
521			<式样:字体声明_990D 名称_9903="Vrinda" 标识符_9902="Vrinda"/>
522			<式样:字体声明_990D 名称_9903="Webdings" 标识符_9902="Webdings"/>
523			<xsl:for-each select="office:font-face-decls/style:font-face">
524				<xsl:if test="not(@style:name = 'Wingdings') and not(@style:name = 'Vrinda') and not(@style:name = 'Webdings')">
525					<xsl:element name="式样:字体声明_990D">
526						<xsl:attribute name="标识符_9902"><xsl:value-of select="translate(@style:name,' ','_')"/></xsl:attribute>
527						<xsl:attribute name="名称_9903"><xsl:variable name="ss">'</xsl:variable><xsl:choose><xsl:when test="contains(@svg:font-family,' ')"><xsl:value-of select="translate(@svg:font-family,$ss,'')"/></xsl:when><xsl:otherwise><xsl:value-of select="@svg:font-family"/></xsl:otherwise></xsl:choose></xsl:attribute>
528						<!--暂无对应
529						<xsl:if test="1">
530							<xsl:attribute name="替换字体_9904"/>
531						</xsl:if-->
532						<xsl:if test="@style:font-family-generic">
533							<xsl:choose>
534								<xsl:when test="@style:font-family-generic = 'swiss'">
535									<xsl:element name="式样:字体族_9900">swiss</xsl:element>
536								</xsl:when>
537								<xsl:when test="@style:font-family-generic ='modern'">
538									<xsl:element name="式样:字体族_9900">modern</xsl:element>
539								</xsl:when>
540								<xsl:when test="@style:font-family-generic='roman'">
541									<xsl:element name="式样:字体族_9900">roman</xsl:element>
542								</xsl:when>
543								<xsl:when test="@style:font-family-generic ='script'">
544									<xsl:element name="式样:字体族_9900">script</xsl:element>
545								</xsl:when>
546								<xsl:when test="@style:font-family-generic ='decorative'">
547									<xsl:element name="式样:字体族_9900">decorative</xsl:element>
548								</xsl:when>
549								<xsl:when test="@style:font-family-generic ='system'">
550									<xsl:element name="式样:字体族_9900">auto</xsl:element>
551								</xsl:when>
552								<xsl:otherwise>
553									<xsl:element name="式样:字体族_9900">auto</xsl:element>
554								</xsl:otherwise>
555							</xsl:choose>
556						</xsl:if>
557						<xsl:if test="0">
558							<xsl:element name="式样:替换字体族_9901"/>
559						</xsl:if>
560					</xsl:element>
561				</xsl:if>
562			</xsl:for-each>
563		</式样:字体集_990C>
564	</xsl:template>
565	<xsl:template name="convert2cm">
566		<xsl:param name="value"/>
567		<xsl:param name="rounding-factor" select="10000"/>
568		<xsl:param name="dpi" select="111"/>
569		<xsl:param name="centimeter-in-mm" select="10"/>
570		<xsl:param name="inch-in-mm" select="25.4"/>
571		<xsl:param name="didot-point-in-mm" select="0.376065"/>
572		<xsl:param name="pica-in-mm" select="4.2333333"/>
573		<xsl:param name="point-in-mm" select="0.3527778"/>
574		<xsl:param name="twip-in-mm" select="0.017636684"/>
575		<xsl:param name="pixel-in-mm" select="$inch-in-mm div $dpi"/>
576		<xsl:choose>
577			<xsl:when test="contains($value, 'mm')">
578				<xsl:value-of select="round($rounding-factor * number(number(substring-before($value, 'mm')) div $centimeter-in-mm)) div $rounding-factor"/>
579			</xsl:when>
580			<xsl:when test="contains($value, 'in')">
581				<xsl:value-of select="round($rounding-factor * number(number(substring-before($value, 'in')) div $centimeter-in-mm * $inch-in-mm)) div $rounding-factor"/>
582			</xsl:when>
583			<xsl:when test="contains($value, 'pt')">
584				<xsl:value-of select="round($rounding-factor * number(number(substring-before($value, 'pt')) div $centimeter-in-mm * $point-in-mm)) div $rounding-factor"/>
585			</xsl:when>
586			<xsl:when test="contains($value, 'dpt')">
587				<xsl:value-of select="round($rounding-factor * number(number(substring-before($value, 'dpt')) div $centimeter-in-mm * $didot-point-in-mm)) div $rounding-factor"/>
588			</xsl:when>
589			<xsl:when test="contains($value, 'pica')">
590				<xsl:value-of select="round($rounding-factor * number(number(substring-before($value, 'pica')) div $centimeter-in-mm * $pica-in-mm)) div $rounding-factor"/>
591			</xsl:when>
592			<xsl:when test="contains($value, 'twip')">
593				<xsl:value-of select="round($rounding-factor * number(number(substring-before($value, 'twip')) div $centimeter-in-mm * $twip-in-mm)) div $rounding-factor"/>
594			</xsl:when>
595			<xsl:when test="contains($value, 'px')">
596				<xsl:value-of select="round($rounding-factor * number(number(substring-before($value, 'px')) div $centimeter-in-mm * $pixel-in-mm)) div $rounding-factor"/>
597			</xsl:when>
598			<xsl:when test="contains($value, 'cm')">
599				<xsl:value-of select="substring-before($value,'cm')"/>
600			</xsl:when>
601			<xsl:otherwise>
602				<xsl:message>measure_conversion.xsl: Find no conversion for <xsl:value-of select="$value"/> to 'cm'!</xsl:message>
603				<xsl:value-of select="$value"/>
604			</xsl:otherwise>
605		</xsl:choose>
606	</xsl:template>
607	<xsl:function name="fun:Convert2uofUnit">
608		<xsl:param name="value"/>
609		<xsl:variable name="CurrentUnit">
610			<xsl:choose>
611				<xsl:when test="contains($value, 'cm')">cm</xsl:when>
612				<xsl:when test="contains($value, 'mm')">mm</xsl:when>
613				<xsl:when test="contains($value, 'in')">in</xsl:when>
614				<xsl:when test="contains($value, 'dpt')">dpt</xsl:when>
615				<xsl:when test="contains($value, 'pt')">pt</xsl:when>
616				<xsl:when test="contains($value, 'pica')">pica</xsl:when>
617				<xsl:when test="contains($value, 'twip')">twip</xsl:when>
618				<xsl:when test="contains($value, 'px')">px</xsl:when>
619				<xsl:otherwise>cm</xsl:otherwise>
620			</xsl:choose>
621		</xsl:variable>
622		<xsl:choose>
623			<xsl:when test="$CurrentUnit = $uofUnit">
624				<xsl:value-of select="number(substring-before($value, $CurrentUnit))"/>
625			</xsl:when>
626			<xsl:when test="string($value) = '' or $value ='NAN'">
627				<xsl:value-of select="0"/>
628			</xsl:when>
629			<xsl:otherwise>
630				<xsl:variable name="valuecm">
631					<xsl:call-template name="convert2cm">
632						<xsl:with-param name="value" select="$value"/>
633					</xsl:call-template>
634				</xsl:variable>
635				<xsl:value-of select="number($valuecm) div number($other-to-cm-conversion-factor)"/>
636			</xsl:otherwise>
637		</xsl:choose>
638	</xsl:function>
639	<xsl:template name="OneBorderAttrLst">
640		<xsl:param name="border"/>
641		<xsl:param name="border-width"/>
642		<xsl:param name="padding"/>
643		<xsl:param name="shadow"/>
644		<xsl:if test="$border != ''">
645			<xsl:variable name="linetype">
646				<xsl:choose>
647					<xsl:when test="substring-before(substring-after($border,' '),' ')='solid'">single</xsl:when>
648					<xsl:when test="substring-before(substring-after($border,' '),' ')='double'">
649						<xsl:variable name="first" select="fun:Convert2uofUnit(substring-before($border-width,' '))"/>
650						<xsl:variable name="last" select="fun:Convert2uofUnit(substring-after(substring-after($border-width,' '),' '))"/>
651						<xsl:choose>
652							<xsl:when test="$first &lt; $last">thin-thick</xsl:when>
653							<xsl:when test="$first &gt; $last">thick-thin</xsl:when>
654							<xsl:otherwise>double</xsl:otherwise>
655						</xsl:choose>
656					</xsl:when>
657					<xsl:otherwise>none</xsl:otherwise>
658				</xsl:choose>
659			</xsl:variable>
660			<xsl:attribute name="线型_C60D"><xsl:value-of select="$linetype"/></xsl:attribute>
661			<xsl:if test="$border != 'none'">
662				<xsl:variable name="linewidth" select="fun:Convert2uofUnit(substring-before($border,' '))"/>
663				<xsl:attribute name="宽度_C60F"><xsl:value-of select="$linewidth"/></xsl:attribute>
664				<xsl:attribute name="颜色_C611"><xsl:value-of select="substring-after(substring-after($border,' '),' ')"/></xsl:attribute>
665			</xsl:if>
666		</xsl:if>
667		<xsl:if test="$padding != ''">
668			<xsl:variable name="uof_padding" select="fun:Convert2uofUnit($padding)"/>
669			<xsl:attribute name="边距_C610"><xsl:value-of select="$uof_padding"/></xsl:attribute>
670		</xsl:if>
671		<!--xsl:if test="$shadow = 'true'">
672			<xsl:attribute name="是否加阴影_C612">true</xsl:attribute>
673		</xsl:if-->
674	</xsl:template>
675	<xsl:template name="LeftBorder">
676		<xsl:variable name="border">
677			<xsl:choose>
678				<xsl:when test="@fo:border-left != ''">
679					<xsl:value-of select="@fo:border-left"/>
680				</xsl:when>
681				<xsl:when test="@fo:border != ''">
682					<xsl:value-of select="@fo:border"/>
683				</xsl:when>
684			</xsl:choose>
685		</xsl:variable>
686		<!--<xsl:if test="$border != '' and $border != 'none'">-->
687		<!--存在边框类型为none时,但是仍然设置边距的情况-->
688		<xsl:if test="$border != ''">
689			<xsl:element name="uof:左_C613">
690				<xsl:variable name="border-width">
691					<xsl:choose>
692						<xsl:when test="@style:border-line-width-left != ''">
693							<xsl:value-of select="@style:border-line-width-left"/>
694						</xsl:when>
695						<xsl:when test="@style:border-line-width != ''">
696							<xsl:value-of select="@style:border-line-width"/>
697						</xsl:when>
698					</xsl:choose>
699				</xsl:variable>
700				<xsl:variable name="padding">
701					<xsl:choose>
702						<xsl:when test="@fo:padding-left != ''">
703							<xsl:value-of select="@fo:padding-left"/>
704						</xsl:when>
705						<xsl:when test="@fo:padding != ''">
706							<xsl:value-of select="@fo:padding"/>
707						</xsl:when>
708					</xsl:choose>
709				</xsl:variable>
710				<!--xsl:variable name="shadow">
711					<xsl:if test="@style:shadow">
712						<xsl:variable name="shadowhori" select="fun:Convert2uofUnit(substring-before(substring-after(@style:shadow,' '),' '))"/>
713						<xsl:choose>
714							<xsl:when test="$shadowhori &lt; 0">
715								<xsl:value-of select="'true'"/>
716							</xsl:when>
717							<xsl:otherwise>false</xsl:otherwise>
718						</xsl:choose>
719					</xsl:if>
720				</xsl:variable-->
721				<xsl:call-template name="OneBorderAttrLst">
722					<xsl:with-param name="border" select="$border"/>
723					<xsl:with-param name="border-width" select="$border-width"/>
724					<xsl:with-param name="padding" select="$padding"/>
725					<!--xsl:with-param name="shadow" select="$shadow"/-->
726				</xsl:call-template>
727			</xsl:element>
728		</xsl:if>
729	</xsl:template>
730	<xsl:template name="TopBorder">
731		<xsl:variable name="border">
732			<xsl:choose>
733				<xsl:when test="@fo:border-top != ''">
734					<xsl:value-of select="@fo:border-top"/>
735				</xsl:when>
736				<xsl:when test="@fo:border != ''">
737					<xsl:value-of select="@fo:border"/>
738				</xsl:when>
739			</xsl:choose>
740		</xsl:variable>
741		<!--<xsl:if test="$border != '' and $border != 'none'">-->
742		<!--存在边框类型为none时,但是仍然设置边距的情况-->
743		<xsl:if test="$border != ''">
744			<xsl:element name="uof:上_C614">
745				<xsl:variable name="border-width">
746					<xsl:choose>
747						<xsl:when test="@style:border-line-width-top != ''">
748							<xsl:value-of select="@style:border-line-width-top"/>
749						</xsl:when>
750						<xsl:when test="@style:border-line-width != ''">
751							<xsl:value-of select="@style:border-line-width"/>
752						</xsl:when>
753					</xsl:choose>
754				</xsl:variable>
755				<xsl:variable name="padding">
756					<xsl:choose>
757						<xsl:when test="@fo:padding-top != ''">
758							<xsl:value-of select="@fo:padding-top"/>
759						</xsl:when>
760						<xsl:when test="@fo:padding != ''">
761							<xsl:value-of select="@fo:padding"/>
762						</xsl:when>
763					</xsl:choose>
764				</xsl:variable>
765				<!--xsl:variable name="shadow">
766					<xsl:if test="@style:shadow">
767						<xsl:variable name="shadowvert" select="fun:Convert2uofUnit(substring-after(substring-after(@style:shadow,' '),' '))"/>
768						<xsl:choose>
769							<xsl:when test="$shadowvert &lt; 0">
770								<xsl:value-of select="'true'"/>
771							</xsl:when>
772							<xsl:otherwise>false</xsl:otherwise>
773						</xsl:choose>
774					</xsl:if>
775				</xsl:variable-->
776				<xsl:call-template name="OneBorderAttrLst">
777					<xsl:with-param name="border" select="$border"/>
778					<xsl:with-param name="border-width" select="$border-width"/>
779					<xsl:with-param name="padding" select="$padding"/>
780					<!--xsl:with-param name="shadow" select="$shadow"/-->
781				</xsl:call-template>
782			</xsl:element>
783		</xsl:if>
784	</xsl:template>
785	<xsl:template name="RightBorder">
786		<xsl:variable name="border">
787			<xsl:choose>
788				<xsl:when test="@fo:border-right != ''">
789					<xsl:value-of select="@fo:border-right"/>
790				</xsl:when>
791				<xsl:when test="@fo:border != ''">
792					<xsl:value-of select="@fo:border"/>
793				</xsl:when>
794			</xsl:choose>
795		</xsl:variable>
796		<!--<xsl:if test="$border != '' and $border != 'none'">-->
797		<!--存在边框类型为none时,但是仍然设置边距的情况-->
798		<xsl:if test="$border != ''">
799			<xsl:element name="uof:右_C615">
800				<xsl:variable name="border-width">
801					<xsl:choose>
802						<xsl:when test="@style:border-line-width-right != ''">
803							<xsl:value-of select="@style:border-line-width-right"/>
804						</xsl:when>
805						<xsl:when test="@style:border-line-width != ''">
806							<xsl:value-of select="@style:border-line-width"/>
807						</xsl:when>
808					</xsl:choose>
809				</xsl:variable>
810				<xsl:variable name="padding">
811					<xsl:choose>
812						<xsl:when test="@fo:padding-right != ''">
813							<xsl:value-of select="@fo:padding-right"/>
814						</xsl:when>
815						<xsl:when test="@fo:padding != ''">
816							<xsl:value-of select="@fo:padding"/>
817						</xsl:when>
818					</xsl:choose>
819				</xsl:variable>
820				<!--xsl:variable name="shadow">
821					<xsl:if test="@style:shadow">
822						<xsl:variable name="shadowhori" select="fun:Convert2uofUnit(substring-before(substring-after(@style:shadow,' '),' '))"/>
823						<xsl:choose>
824							<xsl:when test="$shadowhori &gt; 0">
825								<xsl:value-of select="'true'"/>
826							</xsl:when>
827							<xsl:otherwise>false</xsl:otherwise>
828						</xsl:choose>
829					</xsl:if>
830				</xsl:variable-->
831				<xsl:call-template name="OneBorderAttrLst">
832					<xsl:with-param name="border" select="$border"/>
833					<xsl:with-param name="border-width" select="$border-width"/>
834					<xsl:with-param name="padding" select="$padding"/>
835					<!--xsl:with-param name="shadow" select="$shadow"/-->
836				</xsl:call-template>
837			</xsl:element>
838		</xsl:if>
839	</xsl:template>
840	<xsl:template name="BottomBorder">
841		<xsl:variable name="border">
842			<xsl:choose>
843				<xsl:when test="@fo:border-bottom != ''">
844					<xsl:value-of select="@fo:border-bottom"/>
845				</xsl:when>
846				<xsl:when test="@fo:border != ''">
847					<xsl:value-of select="@fo:border"/>
848				</xsl:when>
849			</xsl:choose>
850		</xsl:variable>
851		<!--<xsl:if test="$border != '' and $border != 'none'">-->
852		<!--存在边框类型为none时,但是仍然设置边距的情况-->
853		<xsl:if test="$border != ''">
854			<xsl:element name="uof:下_C616">
855				<xsl:variable name="border-width">
856					<xsl:choose>
857						<xsl:when test="@style:border-line-width-bottom != ''">
858							<xsl:value-of select="@style:border-line-width-bottom"/>
859						</xsl:when>
860						<xsl:when test="@style:border-line-width != ''">
861							<xsl:value-of select="@style:border-line-width"/>
862						</xsl:when>
863					</xsl:choose>
864				</xsl:variable>
865				<xsl:variable name="padding">
866					<xsl:choose>
867						<xsl:when test="@fo:padding-bottom != ''">
868							<xsl:value-of select="@fo:padding-bottom"/>
869						</xsl:when>
870						<xsl:when test="@fo:padding != ''">
871							<xsl:value-of select="@fo:padding"/>
872						</xsl:when>
873					</xsl:choose>
874				</xsl:variable>
875				<!--xsl:variable name="shadow">
876					<xsl:if test="@style:shadow">
877						<xsl:variable name="shadowvert" select="fun:Convert2uofUnit(substring-after(substring-after(@style:shadow,' '),' '))"/>
878						<xsl:choose>
879							<xsl:when test="$shadowvert &gt; 0">
880								<xsl:value-of select="'true'"/>
881							</xsl:when>
882							<xsl:otherwise>false</xsl:otherwise>
883						</xsl:choose>
884					</xsl:if>
885				</xsl:variable-->
886				<xsl:call-template name="OneBorderAttrLst">
887					<xsl:with-param name="border" select="$border"/>
888					<xsl:with-param name="border-width" select="$border-width"/>
889					<xsl:with-param name="padding" select="$padding"/>
890					<!--xsl:with-param name="shadow" select="$shadow"/-->
891				</xsl:call-template>
892			</xsl:element>
893		</xsl:if>
894	</xsl:template>
895	<xsl:template name="UOFDiagonal1">
896		<xsl:variable name="border">
897			<xsl:value-of select="@style:diagonal-tl-br"/>
898		</xsl:variable>
899		<!--<xsl:if test="$border != '' and $border != 'none'">-->
900		<!--存在边框类型为none时,但是仍然设置边距的情况-->
901		<xsl:if test="$border != ''">
902			<xsl:element name="uof:对角线1_C617">
903				<xsl:variable name="border-width">
904					<xsl:value-of select="@style:diagonal-tl-br-width"/>
905				</xsl:variable>
906				<xsl:call-template name="OneBorderAttrLst">
907					<xsl:with-param name="border" select="$border"/>
908					<xsl:with-param name="border-width" select="$border-width"/>
909				</xsl:call-template>
910			</xsl:element>
911		</xsl:if>
912	</xsl:template>
913	<xsl:template name="UOFDiagonal2">
914		<xsl:variable name="border">
915			<xsl:value-of select="@style:diagonal-bl-tr"/>
916		</xsl:variable>
917		<!--<xsl:if test="$border != '' and $border != 'none'">-->
918		<!--存在边框类型为none时,但是仍然设置边距的情况-->
919		<xsl:if test="$border != ''">
920			<xsl:element name="uof:对角线2_C618">
921				<xsl:variable name="border-width">
922					<xsl:value-of select="@style:diagonal-bl-tr-width"/>
923				</xsl:variable>
924				<xsl:call-template name="OneBorderAttrLst">
925					<xsl:with-param name="border" select="$border"/>
926					<xsl:with-param name="border-width" select="$border-width"/>
927				</xsl:call-template>
928			</xsl:element>
929		</xsl:if>
930	</xsl:template>
931	<xsl:template name="Border">
932		<xsl:call-template name="LeftBorder"/>
933		<xsl:call-template name="TopBorder"/>
934		<xsl:call-template name="RightBorder"/>
935		<xsl:call-template name="BottomBorder"/>
936		<xsl:call-template name="UOFDiagonal1"/>
937		<xsl:call-template name="UOFDiagonal2"/>
938	</xsl:template>
939	<xsl:template name="UOFFill">
940		<xsl:choose>
941			<xsl:when test="style:background-image/office:binary-data or style:background-image/@xlink:href">
942				<图:图片_8005>
943					<xsl:attribute name="位置_8006"><xsl:choose><xsl:when test="style:background-image/@style:repeat = 'stretch'">stretch</xsl:when><xsl:when test="style:background-image/@style:repeat = 'no-repeat' and contains(style:background-image/@style:position,'center')">center</xsl:when><xsl:otherwise>tile</xsl:otherwise></xsl:choose></xsl:attribute>
944					<xsl:attribute name="图形引用_8007"><xsl:value-of select="generate-id(style:background-image)"/></xsl:attribute>
945					<!--xsl:attribute name="图形引用_8007"><xsl:choose><xsl:when test="style:background-image/@xlink:href"><xsl:value-of select="translate(style:background-image/@xlink:href,'Pictures','data')"/></xsl:when><xsl:otherwise><xsl:value-of select="generate-id(style:background-image)"/></xsl:otherwise></xsl:choose></xsl:attribute-->
946					<xsl:attribute name="类型_8008"><xsl:choose><xsl:when test="ends-with(style:background-image/@xlink:href,'png')">png</xsl:when><xsl:when test="ends-with(style:background-image/@xlink:href,'bmp')">bmp</xsl:when><xsl:when test="ends-with(style:background-image/@xlink:href,'ras')">ras</xsl:when><xsl:when test="ends-with(style:background-image/@xlink:href,'gif')">gif</xsl:when><xsl:otherwise>jpg</xsl:otherwise></xsl:choose></xsl:attribute>
947					<xsl:attribute name="名称_8009">background-image</xsl:attribute>
948				</图:图片_8005>
949			</xsl:when>
950			<xsl:when test="@fo:background-color">
951				<图:颜色_8004>
952					<xsl:choose>
953						<xsl:when test="@fo:background-color='transparent' or @fo:background-color='transprent'">auto</xsl:when>
954						<xsl:otherwise>
955							<xsl:value-of select="@fo:background-color"/>
956						</xsl:otherwise>
957					</xsl:choose>
958				</图:颜色_8004>
959			</xsl:when>
960			<xsl:when test="style:table-cell-properties/@fo:background-color">
961				<图:颜色_8004>
962					<xsl:choose>
963						<xsl:when test="style:table-cell-properties/@fo:background-color='transparent' or style:table-cell-properties/@fo:background-color='transprent'">auto</xsl:when>
964						<xsl:otherwise>
965							<xsl:value-of select="style:table-cell-properties/@fo:background-color"/>
966						</xsl:otherwise>
967					</xsl:choose>
968				</图:颜色_8004>
969			</xsl:when>
970			<xsl:otherwise>
971				<图:颜色_8004>auto</图:颜色_8004>
972			</xsl:otherwise>
973		</xsl:choose>
974	</xsl:template>
975	<xsl:template name="InMasterPage">
976		<xsl:choose>
977			<xsl:when test="$documentType = 'presentation'">
978				<xsl:for-each select="..">
979					<xsl:choose>
980						<xsl:when test="name(.) = 'office:master-styles'">
981							<xsl:value-of select="'true'"/>
982						</xsl:when>
983						<xsl:when test="name(.) = 'draw:page'">
984							<xsl:value-of select="'false'"/>
985						</xsl:when>
986						<xsl:when test="name(.) = 'office:document'">
987							<xsl:value-of select="'false'"/>
988						</xsl:when>
989						<xsl:otherwise>
990							<xsl:call-template name="InMasterPage"/>
991						</xsl:otherwise>
992					</xsl:choose>
993				</xsl:for-each>
994			</xsl:when>
995			<xsl:otherwise>
996				<xsl:value-of select="'false'"/>
997			</xsl:otherwise>
998		</xsl:choose>
999	</xsl:template>
1000	<xsl:template name="character-to-number">
1001		<xsl:param name="character"/>
1002		<xsl:choose>
1003			<xsl:when test="$character = 'A'">1</xsl:when>
1004			<xsl:when test="$character = 'B'">2</xsl:when>
1005			<xsl:when test="$character = 'C'">3</xsl:when>
1006			<xsl:when test="$character = 'D'">4</xsl:when>
1007			<xsl:when test="$character = 'E'">5</xsl:when>
1008			<xsl:when test="$character = 'F'">6</xsl:when>
1009			<xsl:when test="$character = 'G'">7</xsl:when>
1010			<xsl:when test="$character = 'H'">8</xsl:when>
1011			<xsl:when test="$character = 'I'">9</xsl:when>
1012			<xsl:when test="$character = 'J'">10</xsl:when>
1013			<xsl:when test="$character = 'K'">11</xsl:when>
1014			<xsl:when test="$character = 'L'">12</xsl:when>
1015			<xsl:when test="$character = 'M'">13</xsl:when>
1016			<xsl:when test="$character = 'N'">14</xsl:when>
1017			<xsl:when test="$character = 'O'">15</xsl:when>
1018			<xsl:when test="$character = 'P'">16</xsl:when>
1019			<xsl:when test="$character = 'Q'">17</xsl:when>
1020			<xsl:when test="$character = 'R'">18</xsl:when>
1021			<xsl:when test="$character = 'S'">19</xsl:when>
1022			<xsl:when test="$character = 'T'">20</xsl:when>
1023			<xsl:when test="$character = 'U'">21</xsl:when>
1024			<xsl:when test="$character = 'V'">22</xsl:when>
1025			<xsl:when test="$character = 'W'">23</xsl:when>
1026			<xsl:when test="$character = 'X'">24</xsl:when>
1027			<xsl:when test="$character = 'Y'">25</xsl:when>
1028			<xsl:when test="$character = 'Z'">26</xsl:when>
1029			<xsl:otherwise/>
1030		</xsl:choose>
1031	</xsl:template>
1032	<xsl:template name="calculate-square-numbers">
1033		<xsl:param name="base"/>
1034		<xsl:param name="exponent"/>
1035		<xsl:param name="return" select="1"/>
1036		<xsl:choose>
1037			<xsl:when test="$exponent &gt; 1">
1038				<xsl:call-template name="calculate-square-numbers">
1039					<xsl:with-param name="base" select="$base"/>
1040					<xsl:with-param name="exponent" select="$exponent - 1"/>
1041					<xsl:with-param name="return" select="$return * $base"/>
1042				</xsl:call-template>
1043			</xsl:when>
1044			<xsl:when test="$exponent = 1">
1045				<xsl:value-of select="$return * $base"/>
1046			</xsl:when>
1047			<!-- if exponent is equal '0' -->
1048			<xsl:otherwise>
1049				<xsl:value-of select="1"/>
1050			</xsl:otherwise>
1051		</xsl:choose>
1052	</xsl:template>
1053	<xsl:template name="decimal-to-hex">
1054		<xsl:param name="number"/>
1055		<xsl:choose>
1056			<xsl:when test="round($number)=0">0</xsl:when>
1057			<xsl:when test="round($number)=1">1</xsl:when>
1058			<xsl:when test="round($number)=2">2</xsl:when>
1059			<xsl:when test="round($number)=3">3</xsl:when>
1060			<xsl:when test="round($number)=4">4</xsl:when>
1061			<xsl:when test="round($number)=5">5</xsl:when>
1062			<xsl:when test="round($number)=6">6</xsl:when>
1063			<xsl:when test="round($number)=7">7</xsl:when>
1064			<xsl:when test="round($number)=8">8</xsl:when>
1065			<xsl:when test="round($number)=9">9</xsl:when>
1066			<xsl:when test="round($number)=10">a</xsl:when>
1067			<xsl:when test="round($number)=11">b</xsl:when>
1068			<xsl:when test="round($number)=12">c</xsl:when>
1069			<xsl:when test="round($number)=13">d</xsl:when>
1070			<xsl:when test="round($number)=14">e</xsl:when>
1071			<xsl:when test="round($number)=15">f</xsl:when>
1072		</xsl:choose>
1073	</xsl:template>
1074	<xsl:template name="ExpandText">
1075		<xsl:for-each select="office:styles/draw:hatch">
1076			<xsl:call-template name="OneTextStyle">
1077				<xsl:with-param name="Type">
1078					<xsl:value-of select="string('default')"/>
1079				</xsl:with-param>
1080			</xsl:call-template>
1081		</xsl:for-each>
1082		<xsl:variable name="customshapetype">fontwork-arch-up-curve fontwork-plain-text fontwork-wave fontwork-inflate fontwork-curve-up fontwork-slant-up fontwork-chevron-up fontwork-slant-up fontwork-triangle-down fontwork-curve-down fontwork-arch-down-pour fontwork-triangle-down fontwork-fade-down fontwork-triangle-up fontwork-fade-right fontwork-fade-down fontwork-fade-up fontwork-curve-up fontwork-stop fontwork-chevron-down fontwork-inflate fontwork-curve-down fontwork-arch-up-pour fontwork-arch-up-pour fontwork-plain-text fontwork-plain-text fontwork-plain-text fontwork-slant-up fontwork-wave fontwork-triangle-up fontwork-inflate round-callout fontwork-triangle-down fontwork-circle-pour mso-spt100 fontwork-fade-up-and-right fontwork-fade-up non-primitive block-arc frame col-60da8460 col-502ad400 flowchart-alternate-process rectangular-callout round-rectangular-callout round-callout cloud-callout line-callout-1 line-callout-2 line-callout-3</xsl:variable>
1083		<扩展:扩展_B201>
1084			<扩展:软件名称_B202>NSO</扩展:软件名称_B202>
1085			<扩展:软件版本_B203>v4.5</扩展:软件版本_B203>
1086		</扩展:扩展_B201>
1087		<xsl:if test="/office:document/office:automatic-styles/style:style/style:graphic-properties/@draw:marker-end or /office:document/office:automatic-styles/style:style/style:graphic-properties/@draw:marker-start">
1088			<xsl:for-each select="office:body//draw:*[@draw:style-name]">
1089				<xsl:variable name="drawStyleName" select="@draw:style-name"/>
1090				<xsl:if test="/office:document/office:automatic-styles/style:style[@style:name = $drawStyleName]/style:graphic-properties[@draw:marker-start] or /office:document/office:automatic-styles/style:style[@style:name = $drawStyleName]/style:graphic-properties[@draw:marker-end]">
1091					<xsl:variable name="styleName" select="/office:document/office:automatic-styles/style:style[@style:name = $drawStyleName]/style:graphic-properties/@draw:marker-start"/>
1092					<xsl:variable name="markerStart" select="/office:document/office:automatic-styles/style:style[@style:name = $drawStyleName]/style:graphic-properties/@draw:marker-start"/>
1093					<xsl:variable name="markerEnd" select="/office:document/office:automatic-styles/style:style[@style:name = $drawStyleName]/style:graphic-properties/@draw:marker-end"/>
1094					<扩展:扩展_B201>
1095						<扩展:软件名称_B202>NSO</扩展:软件名称_B202>
1096						<扩展:软件版本_B203>v4.5</扩展:软件版本_B203>
1097						<扩展:扩展内容_B204>
1098							<扩展:路径_B205>
1099								<xsl:choose>
1100									<xsl:when test="@draw:id">
1101										<xsl:value-of select="@draw:id"/>
1102									</xsl:when>
1103									<xsl:otherwise>
1104										<xsl:value-of select="generate-id(.)"/>
1105									</xsl:otherwise>
1106								</xsl:choose>
1107							</扩展:路径_B205>
1108							<扩展:内容_B206 名称="draw:marker">
1109								<xsl:if test="$markerStart != ''">
1110									<扩展:前端箭头>
1111										<xsl:copy-of select="/office:document/office:styles/draw:marker[@draw:name = $markerStart]/@*"/>
1112										<xsl:attribute name="draw:marker-start-width"><xsl:value-of select="/office:document/office:automatic-styles/style:style[@style:name = $drawStyleName]/style:graphic-properties[@draw:marker-start]/@draw:marker-start-width"/></xsl:attribute>
1113									</扩展:前端箭头>
1114								</xsl:if>
1115								<xsl:if test="$markerEnd != ''">
1116									<扩展:后端箭头>
1117										<xsl:copy-of select="/office:document/office:styles/draw:marker[@draw:name = $markerEnd]/@*"/>
1118										<xsl:attribute name="draw:marker-end-width"><xsl:value-of select="/office:document/office:automatic-styles/style:style[@style:name = $drawStyleName]/style:graphic-properties[@draw:marker-end]/@draw:marker-end-width"/></xsl:attribute>
1119									</扩展:后端箭头>
1120								</xsl:if>
1121							</扩展:内容_B206>
1122						</扩展:扩展内容_B204>
1123					</扩展:扩展_B201>
1124				</xsl:if>
1125			</xsl:for-each>
1126		</xsl:if>
1127		<xsl:if test="office:styles/draw:hatch">
1128			<扩展:扩展_B201>
1129				<扩展:软件名称_B202>NSO</扩展:软件名称_B202>
1130				<扩展:软件版本_B203>v4.5</扩展:软件版本_B203>
1131				<扩展:扩展内容_B204>
1132					<扩展:路径_B205>文字处理</扩展:路径_B205>
1133					<扩展:内容_B206 名称="draw:hatch">
1134						<xsl:for-each select="office:styles/draw:hatch">
1135							<扩展:图案数据>
1136								<xsl:attribute name="uof:name" select="@draw:name"/>
1137								<xsl:attribute name="uof:display-name" select="@draw:display-name"/>
1138								<xsl:attribute name="uof:style" select="@draw:style"/>
1139								<xsl:attribute name="uof:color" select="@draw:color"/>
1140								<xsl:attribute name="uof:distance" select="@draw:distance"/>
1141								<xsl:attribute name="uof:rotation" select="@draw:rotation"/>
1142							</扩展:图案数据>
1143						</xsl:for-each>
1144					</扩展:内容_B206>
1145				</扩展:扩展内容_B204>
1146			</扩展:扩展_B201>
1147		</xsl:if>
1148		<xsl:if test="office:automatic-styles/style:style/style:graphic-properties/@draw:stroke-dash">
1149			<xsl:for-each select="office:body//draw:*[@draw:style-name]">
1150				<xsl:variable name="drawStyleName" select="@draw:style-name"/>
1151				<xsl:if test="/office:document/office:automatic-styles/style:style[@style:name = $drawStyleName]/style:graphic-properties[@draw:stroke-dash]">
1152					<xsl:variable name="styleName" select="/office:document/office:automatic-styles/style:style[@style:name = $drawStyleName]/style:graphic-properties/@draw:stroke-dash"/>
1153					<xsl:if test="/office:document/office:styles/draw:stroke-dash[@draw:name = $styleName]">
1154						<扩展:扩展_B201>
1155							<扩展:软件名称_B202>NSO</扩展:软件名称_B202>
1156							<扩展:软件版本_B203>v4.5</扩展:软件版本_B203>
1157							<扩展:扩展内容_B204>
1158								<扩展:路径_B205>
1159									<xsl:value-of select="generate-id(.)"/>
1160								</扩展:路径_B205>
1161								<扩展:内容_B206 名称="draw:stroke-dash">
1162									<扩展:线型数据>
1163										<xsl:copy-of select="/office:document/office:styles/draw:stroke-dash[@draw:name = $styleName]/@*"/>
1164									</扩展:线型数据>
1165								</扩展:内容_B206>
1166							</扩展:扩展内容_B204>
1167						</扩展:扩展_B201>
1168					</xsl:if>
1169				</xsl:if>
1170			</xsl:for-each>
1171		</xsl:if>
1172		<xsl:for-each select="office:body//draw:custom-shape[contains($customshapetype,draw:enhanced-geometry/@draw:type)]">
1173			<xsl:if test="contains($customshapetype,draw:enhanced-geometry/@draw:type)">
1174				<扩展:扩展_B201>
1175					<扩展:软件名称_B202>NSO</扩展:软件名称_B202>
1176					<扩展:软件版本_B203>v4.5</扩展:软件版本_B203>
1177					<扩展:扩展内容_B204>
1178						<扩展:路径_B205>
1179							<xsl:value-of select="generate-id(.)"/>
1180						</扩展:路径_B205>
1181						<扩展:内容_B206 名称="draw:custom-shape">
1182							<扩展:预定义图形数据>
1183								<xsl:for-each select="draw:enhanced-geometry">
1184									<xsl:copy-of select="@*|node()"/>
1185								</xsl:for-each>
1186							</扩展:预定义图形数据>
1187						</扩展:内容_B206>
1188					</扩展:扩展内容_B204>
1189				</扩展:扩展_B201>
1190			</xsl:if>
1191		</xsl:for-each>
1192		<xsl:if test="$documentType!='spreadsheet' and office:body//office:document[office:body/office:chart/chart:chart/table:table/@table:name = 'local-table']">
1193			<xsl:for-each select="office:body//office:document[office:body/office:chart/chart:chart/table:table/@table:name = 'local-table']">
1194				<扩展:扩展_B201>
1195					<扩展:软件名称_B202>NSO</扩展:软件名称_B202>
1196					<扩展:软件版本_B203>v4.5</扩展:软件版本_B203>
1197					<扩展:扩展内容_B204>
1198						<扩展:路径_B205>
1199							<xsl:value-of select="generate-id(..)"/>
1200						</扩展:路径_B205>
1201						<扩展:内容_B206 名称="chart">
1202							<扩展:local-table>
1203								<xsl:for-each select="office:body/office:chart/chart:chart/table:table[@table:name = 'local-table']">
1204									<xsl:copy-of select="@*|node()"/>
1205								</xsl:for-each>
1206							</扩展:local-table>
1207						</扩展:内容_B206>
1208					</扩展:扩展内容_B204>
1209				</扩展:扩展_B201>
1210			</xsl:for-each>
1211		</xsl:if>
1212	</xsl:template>
1213	<xsl:template name="字:字体-sentence">
1214		<xsl:if test="style:text-properties/@fo:font-family or style:text-properties/@style:font-name or style:text-properties/@style:font-family-asian or style:text-properties/@style:western-content or style:text-properties/@fo:color or style:text-properties/@fo:font-size">
1215			<xsl:element name="字:字体_4128">
1216				<xsl:if test="contains(@style:parent-style-name,'Header') or contains(@style:parent-style-name,'Foot') or contains(@style:parent-style-name,'Endnote')">
1217					<xsl:attribute name="字号_412D">9</xsl:attribute>
1218				</xsl:if>
1219				<xsl:choose>
1220					<xsl:when test="style:text-properties/@fo:font-family = 'Bookshelf Symbol 7' or style:text-properties/@fo:font-family = 'MS Reference Specialty' or style:text-properties/@fo:font-family = 'Marlett' or style:text-properties/@fo:font-family = 'Wingdings' or style:text-properties/@fo:font-family = 'MT Extra' or style:text-properties/@fo:font-family = 'Webdings' or style:text-properties/@fo:font-family = 'Wingdings 2' or style:text-properties/@fo:font-family = 'Wingdings 3'">
1221						<xsl:variable name="ss">'</xsl:variable>
1222						<xsl:choose>
1223							<xsl:when test="contains(style:text-properties/@fo:font-family,$ss) and contains(style:text-properties/@fo:font-family,' ')">
1224								<xsl:attribute name="特殊字体引用_412B"><xsl:value-of select="translate(substring-before(substring-after(style:text-properties/@fo:font-family,$ss),$ss),' ','_')"/></xsl:attribute>
1225							</xsl:when>
1226							<xsl:when test="not(contains(style:text-properties/@fo:font-family,$ss)) and contains(style:text-properties/@fo:font-family,' ')">
1227								<xsl:attribute name="特殊字体引用_412B"><xsl:value-of select="translate(style:text-properties/@fo:font-family,' ','_')"/></xsl:attribute>
1228							</xsl:when>
1229							<xsl:otherwise>
1230								<xsl:attribute name="特殊字体引用_412B"><xsl:value-of select="style:text-properties/@fo:font-family"/></xsl:attribute>
1231							</xsl:otherwise>
1232						</xsl:choose>
1233					</xsl:when>
1234					<xsl:when test="style:text-properties/@style:font-name = 'Bookshelf Symbol 7' or style:text-properties/@style:font-name = 'MS Reference Specialty' or style:text-properties/@style:font-name = 'Marlett' or style:text-properties/@style:font-name = 'Wingdings' or style:text-properties/@style:font-name = 'MT Extra' or style:text-properties/@style:font-name = 'Webdings' or style:text-properties/@style:font-name = 'Wingdings 2' or style:text-properties/@style:font-name = 'Wingdings 3'">
1235						<xsl:variable name="ss">'</xsl:variable>
1236						<xsl:choose>
1237							<xsl:when test="contains(style:text-properties/@style:font-name,$ss) and contains(style:text-properties/@style:font-name,' ')">
1238								<xsl:attribute name="特殊字体引用_412B"><xsl:value-of select="translate(substring-before(substring-after(style:text-properties/@style:font-name,$ss),$ss),' ','_')"/></xsl:attribute>
1239							</xsl:when>
1240							<xsl:when test="not(contains(style:text-properties/@style:font-name,$ss)) and contains(style:text-properties/@style:font-name,' ')">
1241								<xsl:attribute name="特殊字体引用_412B"><xsl:value-of select="translate(style:text-properties/@style:font-name,' ','_')"/></xsl:attribute>
1242							</xsl:when>
1243							<xsl:otherwise>
1244								<xsl:attribute name="特殊字体引用_412B"><xsl:value-of select="style:text-properties/@style:font-name"/></xsl:attribute>
1245							</xsl:otherwise>
1246						</xsl:choose>
1247					</xsl:when>
1248					<xsl:otherwise>
1249						<xsl:if test="style:text-properties/@fo:font-family">
1250							<xsl:variable name="ss">'</xsl:variable>
1251							<xsl:choose>
1252								<xsl:when test="contains(style:text-properties/@fo:font-family,$ss) and contains(style:text-properties/@fo:font-family,' ')">
1253									<xsl:attribute name="西文字体引用_4129"><xsl:value-of select="translate(substring-before(substring-after(style:text-properties/@fo:font-family,$ss),$ss),' ','_')"/></xsl:attribute>
1254								</xsl:when>
1255								<xsl:when test="not(contains(style:text-properties/@fo:font-family,$ss)) and contains(style:text-properties/@fo:font-family,' ')">
1256									<xsl:attribute name="西文字体引用_4129"><xsl:value-of select="translate(style:text-properties/@fo:font-family,' ','_')"/></xsl:attribute>
1257								</xsl:when>
1258								<xsl:otherwise>
1259									<xsl:attribute name="西文字体引用_4129"><xsl:value-of select="style:text-properties/@fo:font-family"/></xsl:attribute>
1260								</xsl:otherwise>
1261							</xsl:choose>
1262						</xsl:if>
1263						<xsl:if test="style:text-properties/@style:font-name">
1264							<xsl:variable name="ss">'</xsl:variable>
1265							<xsl:choose>
1266								<xsl:when test="contains(style:text-properties/@style:font-name,$ss) and contains(style:text-properties/@style:font-name,' ')">
1267									<xsl:attribute name="西文字体引用_4129"><xsl:value-of select="translate(substring-before(substring-after(style:text-properties/@style:font-name,$ss),$ss),' ','_')"/></xsl:attribute>
1268								</xsl:when>
1269								<xsl:when test="not(contains(style:text-properties/@style:font-name,$ss)) and contains(style:text-properties/@style:font-name,' ')">
1270									<xsl:attribute name="西文字体引用_4129"><xsl:value-of select="translate(style:text-properties/@style:font-name,' ','_')"/></xsl:attribute>
1271								</xsl:when>
1272								<xsl:otherwise>
1273									<xsl:attribute name="西文字体引用_4129"><xsl:value-of select="style:text-properties/@style:font-name"/></xsl:attribute>
1274								</xsl:otherwise>
1275							</xsl:choose>
1276						</xsl:if>
1277					</xsl:otherwise>
1278				</xsl:choose>
1279				<xsl:choose>
1280					<xsl:when test="style:text-properties/@style:font-family-asian">
1281						<xsl:variable name="ss">'</xsl:variable>
1282						<xsl:choose>
1283							<xsl:when test="contains(style:text-properties/@style:font-family-asian,$ss) and contains(style:text-properties/@style:font-family-asian,' ')">
1284								<xsl:attribute name="中文字体引用_412A"><xsl:value-of select="translate(substring-before(substring-after(style:text-properties/@style:font-family-asian,$ss),$ss),' ','_')"/></xsl:attribute>
1285							</xsl:when>
1286							<xsl:when test="not(contains(style:text-properties/@style:font-family-asian,$ss)) and contains(style:text-properties/@style:font-family-asian,' ')">
1287								<xsl:attribute name="中文字体引用_412A"><xsl:value-of select="translate(style:text-properties/@style:font-family-asian,' ','_')"/></xsl:attribute>
1288							</xsl:when>
1289							<xsl:otherwise>
1290								<xsl:attribute name="中文字体引用_412A"><xsl:value-of select="style:text-properties/@style:font-family-asian"/></xsl:attribute>
1291							</xsl:otherwise>
1292						</xsl:choose>
1293					</xsl:when>
1294					<xsl:when test="style:text-properties/@style:font-name-asian">
1295						<xsl:variable name="ss">'</xsl:variable>
1296						<xsl:choose>
1297							<xsl:when test="contains(style:text-properties/@style:font-name-asian,$ss) and contains(style:text-properties/@style:font-name-asian,' ')">
1298								<xsl:attribute name="中文字体引用_412A"><xsl:value-of select="translate(substring-before(substring-after(style:text-properties/@style:font-name-asian,$ss),$ss),' ','_')"/></xsl:attribute>
1299							</xsl:when>
1300							<xsl:when test="not(contains(style:text-properties/@style:font-name-asian,$ss)) and contains(style:text-properties/@style:font-name-asian,' ')">
1301								<xsl:attribute name="中文字体引用_412A"><xsl:value-of select="translate(style:text-properties/@style:font-name-asian,' ','_')"/></xsl:attribute>
1302							</xsl:when>
1303							<xsl:otherwise>
1304								<xsl:attribute name="中文字体引用_412A"><xsl:value-of select="style:text-properties/@style:font-name-asian"/></xsl:attribute>
1305							</xsl:otherwise>
1306						</xsl:choose>
1307					</xsl:when>
1308				</xsl:choose>
1309				<xsl:if test="style:text-properties/@fo:font-size or style:text-properties/@style:font-size-asian or  style:text-properties/@style:font-size-complex">
1310					<xsl:choose>
1311						<xsl:when test="contains(style:text-properties/@fo:font-size,'%') or contains(style:text-properties/@style:font-size-asian,'%')">
1312							<xsl:attribute name="相对字号_412E"><xsl:choose><xsl:when test="style:text-properties/@fo:font-size"><xsl:value-of select="substring-before(style:text-properties/@fo:font-size,'%')"/></xsl:when><xsl:when test="style:text-properties/@style:font-size-asian"><xsl:value-of select="substring-before(style:text-properties/@style:font-size-asian,'%')"/></xsl:when></xsl:choose></xsl:attribute>
1313						</xsl:when>
1314						<xsl:otherwise>
1315							<xsl:variable name="fontsize">
1316								<xsl:choose>
1317									<xsl:when test="style:text-properties/@style:font-size-asian">
1318										<xsl:value-of select="substring-before(style:text-properties/@style:font-size-asian,'pt')"/>
1319									</xsl:when>
1320									<xsl:when test="style:text-properties/@style:font-size-complex">
1321										<xsl:value-of select="substring-before(style:text-properties/@style:font-size-complex,'pt')"/>
1322									</xsl:when>
1323									<xsl:when test="style:text-properties/@fo:font-size">
1324										<xsl:value-of select="substring-before(style:text-properties/@fo:font-size,'pt')"/>
1325									</xsl:when>
1326								</xsl:choose>
1327							</xsl:variable>
1328							<xsl:attribute name="字号_412D"><xsl:value-of select="$fontsize"/></xsl:attribute>
1329						</xsl:otherwise>
1330					</xsl:choose>
1331				</xsl:if>
1332				<xsl:if test="style:text-properties/@fo:color">
1333					<xsl:attribute name="颜色_412F"><xsl:value-of select="style:text-properties/@fo:color"/></xsl:attribute>
1334				</xsl:if>
1335				<xsl:if test="contains(@style:name,'默认-outline') and style:text-properties/@style:use-window-font-color = 'true'">
1336					<xsl:attribute name="颜色_412F">auto</xsl:attribute>
1337				</xsl:if>
1338				<xsl:if test="style:text-properties/@style:western-content">
1339					<xsl:choose>
1340						<xsl:when test="style:text-properties/@style:western-content = 'true'">
1341							<xsl:attribute name="是否西文绘制_412C">true</xsl:attribute>
1342						</xsl:when>
1343						<xsl:otherwise>
1344							<xsl:attribute name="是否西文绘制_412C">false</xsl:attribute>
1345						</xsl:otherwise>
1346					</xsl:choose>
1347				</xsl:if>
1348			</xsl:element>
1349		</xsl:if>
1350	</xsl:template>
1351	<xsl:template name="字:粗体-sentence">
1352		<xsl:for-each select="style:text-properties">
1353			<xsl:if test="@fo:font-weight or @style:font-weight-asian">
1354				<xsl:element name="字:是否粗体_4130">
1355					<xsl:choose>
1356						<xsl:when test="@fo:font-weight ='normal' or @style:font-weight-asian ='normal' ">false</xsl:when>
1357						<xsl:otherwise>true</xsl:otherwise>
1358					</xsl:choose>
1359				</xsl:element>
1360			</xsl:if>
1361		</xsl:for-each>
1362		<!--xsl:if test="contains(@style:name,'默认-outline') and style:text-properties/@fo:font-weight ='normal'">
1363			<xsl:element name="字:粗体">
1364				<xsl:attribute name="uof:locID">t0089</xsl:attribute>
1365				<xsl:attribute name="uof:attrList">值</xsl:attribute>
1366				<xsl:attribute name="字:值">false</xsl:attribute>
1367			</xsl:element>
1368		</xsl:if-->
1369	</xsl:template>
1370	<xsl:template name="字:斜体-sentence">
1371		<xsl:if test="style:text-properties/@fo:font-style or style:text-properties/@style:font-style-asian">
1372			<xsl:element name="字:是否斜体_4131">
1373				<xsl:choose>
1374					<xsl:when test="style:text-properties/@fo:font-style='italic' or style:text-properties/@style:font-style-asian='italic'">true</xsl:when>
1375					<xsl:otherwise>false</xsl:otherwise>
1376				</xsl:choose>
1377			</xsl:element>
1378		</xsl:if>
1379	</xsl:template>
1380	<xsl:template name="字:突出显示-sentence">
1381		<xsl:if test="style:text-properties/@fo:background-color|style:text-properties/@style:text-background-color">
1382			<xsl:element name="字:突出显示颜色_4132">
1383				<xsl:choose>
1384					<xsl:when test="style:text-properties/@fo:background-color='transparent' or style:text-properties/@style:text-background-color='transparent'">auto</xsl:when>
1385					<xsl:otherwise>
1386						<xsl:value-of select="style:text-properties/@fo:background-color|style:text-properties/@style:text-background-color"/>
1387					</xsl:otherwise>
1388				</xsl:choose>
1389			</xsl:element>
1390		</xsl:if>
1391	</xsl:template>
1392	<xsl:template name="字:填充-sentence">
1393		<xsl:if test="style:text-properties/@fo:background-color and not(style:text-properties/@style:text-background-color='transparent')">
1394			<xsl:element name="字:填充_4134">
1395				<xsl:element name="图:图案_800A">
1396					<xsl:if test="style:text-properties/@fo:background-color">
1397						<xsl:attribute name="前景色_800B"><xsl:choose><xsl:when test="style:text-properties/@fo:background-color='transparent'">auto</xsl:when><xsl:otherwise><xsl:value-of select="style:text-properties/@fo:background-color"/></xsl:otherwise></xsl:choose></xsl:attribute>
1398					</xsl:if>
1399				</xsl:element>
1400			</xsl:element>
1401		</xsl:if>
1402	</xsl:template>
1403	<xsl:template name="字:删除线-sentence">
1404		<xsl:if test="style:text-properties/@style:text-line-through-style">
1405			<xsl:element name="字:删除线_4135">
1406				<xsl:choose>
1407					<xsl:when test="style:text-properties/@style:text-line-through-style='solid' and not(style:text-properties/@style:text-line-through-type='double')">single</xsl:when>
1408					<xsl:when test="style:text-properties/@style:text-line-through-style='solid' and style:text-properties/@style:text-line-through-type='double'">double</xsl:when>
1409					<xsl:otherwise>none</xsl:otherwise>
1410				</xsl:choose>
1411			</xsl:element>
1412		</xsl:if>
1413	</xsl:template>
1414	<xsl:template name="字:下划线-sentence">
1415		<xsl:if test="style:text-properties/@style:text-underline-style or style:text-properties/@style:text-underline-type">
1416			<xsl:element name="字:下划线_4136">
1417				<xsl:variable name="lineType">
1418					<xsl:choose>
1419						<xsl:when test="style:text-properties/@style:text-underline-type='double'">double</xsl:when>
1420						<xsl:when test="style:text-properties/@style:text-underline-style != '' and style:text-properties/@style:text-underline-style != 'none'">single</xsl:when>
1421						<xsl:when test="style:text-properties/@style:text-underline-type = 'single'">single</xsl:when>
1422						<xsl:otherwise>none</xsl:otherwise>
1423					</xsl:choose>
1424				</xsl:variable>
1425				<xsl:variable name="lineStyle">
1426					<xsl:choose>
1427						<xsl:when test="style:text-properties/@style:text-underline-style='solid'">solid</xsl:when>
1428						<xsl:when test="style:text-properties/@style:text-underline-style='dotted'">round-dot</xsl:when>
1429						<xsl:when test="style:text-properties/@style:text-underline-style='dash'">dash</xsl:when>
1430						<xsl:when test="style:text-properties/@style:text-underline-style='dot-dash'">dash-dot</xsl:when>
1431						<xsl:when test="style:text-properties/@style:text-underline-style='dot-dot-dash'">dash-dot-dot</xsl:when>
1432						<xsl:when test="style:text-properties/@style:text-underline-style='long-dash'">long-dash</xsl:when>
1433						<xsl:otherwise>solid</xsl:otherwise>
1434					</xsl:choose>
1435				</xsl:variable>
1436				<xsl:attribute name="线型_4137"><xsl:value-of select="$lineType"/></xsl:attribute>
1437				<xsl:attribute name="虚实_4138"><xsl:value-of select="$lineStyle"/></xsl:attribute>
1438				<xsl:if test="style:text-properties/@style:text-underline-color">
1439					<xsl:attribute name="颜色_412F"><xsl:choose><xsl:when test="style:text-properties/@style:text-underline-color='font-color'">auto</xsl:when><xsl:otherwise><xsl:value-of select="style:text-properties/@style:text-underline-color"/></xsl:otherwise></xsl:choose></xsl:attribute>
1440				</xsl:if>
1441				<xsl:attribute name="是否字下划线_4139"><xsl:choose><xsl:when test="style:text-properties/@style:text-line-through-mode = 'skip-white-space'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
1442			</xsl:element>
1443		</xsl:if>
1444	</xsl:template>
1445	<xsl:template name="字:着重号-sentence">
1446		<xsl:if test="style:text-properties/@style:text-emphasize">
1447			<xsl:element name="字:着重号_413A">
1448				<xsl:attribute name="类型_413B"><xsl:choose><xsl:when test="style:text-properties/@style:text-emphasize='none'">none</xsl:when><xsl:otherwise>dot</xsl:otherwise></xsl:choose></xsl:attribute>
1449				<xsl:if test="not(style:text-properties/@style:text-emphasize='none') and contains(style:text-properties/@style:text-emphasize,'space')">
1450					<xsl:attribute name="是否字着重号_413C"><xsl:choose><xsl:when test="contains(style:text-properties/@style:text-emphasize,'spaceex')">true</xsl:when><xsl:when test="contains(style:text-properties/@style:text-emphasize,'spacein')">false</xsl:when></xsl:choose></xsl:attribute>
1451				</xsl:if>
1452			</xsl:element>
1453		</xsl:if>
1454	</xsl:template>
1455	<xsl:template name="字:隐藏文字-sentence">
1456		<xsl:if test="style:text-properties/@text:display">
1457			<xsl:element name="字:是否隐藏文字_413D">true</xsl:element>
1458		</xsl:if>
1459	</xsl:template>
1460	<xsl:template name="字:空心-sentence">
1461		<xsl:if test="style:text-properties/@style:text-outline">
1462			<xsl:element name="字:是否空心_413E">
1463				<xsl:value-of select="style:text-properties/@style:text-outline"/>
1464			</xsl:element>
1465		</xsl:if>
1466	</xsl:template>
1467	<xsl:template name="字:浮雕-sentence">
1468		<xsl:if test="style:text-properties/@style:font-relief">
1469			<xsl:element name="字:浮雕_413F">
1470				<xsl:choose>
1471					<xsl:when test="style:text-properties/@style:font-relief='embossed'">emboss</xsl:when>
1472					<xsl:when test="style:text-properties/@style:font-relief='engraved'">engrave</xsl:when>
1473					<xsl:otherwise>none</xsl:otherwise>
1474				</xsl:choose>
1475			</xsl:element>
1476		</xsl:if>
1477	</xsl:template>
1478	<xsl:template name="字:阴影-sentence">
1479		<xsl:if test="style:text-properties/@fo:text-shadow">
1480			<xsl:element name="字:是否阴影_4140">
1481				<xsl:choose>
1482					<xsl:when test="style:text-properties/@fo:text-shadow='none'">false</xsl:when>
1483					<xsl:otherwise>true</xsl:otherwise>
1484				</xsl:choose>
1485			</xsl:element>
1486		</xsl:if>
1487	</xsl:template>
1488	<xsl:template name="字:醒目字体-sentence">
1489		<xsl:if test="style:text-properties/@fo:text-transform or style:text-properties/@fo:font-variant">
1490			<xsl:element name="字:醒目字体类型_4141">
1491				<xsl:choose>
1492					<xsl:when test="style:text-properties/@fo:text-transform='uppercase'">uppercase</xsl:when>
1493					<xsl:when test="style:text-properties/@fo:text-transform='lowercase'">lowercase</xsl:when>
1494					<xsl:when test="style:text-properties/@fo:text-transform='capitalize'">capital</xsl:when>
1495					<xsl:when test="style:text-properties/@fo:font-variant='small-caps'">small-caps</xsl:when>
1496					<xsl:otherwise>none</xsl:otherwise>
1497				</xsl:choose>
1498			</xsl:element>
1499		</xsl:if>
1500	</xsl:template>
1501	<xsl:template name="ODFGetCharSize">
1502		<xsl:choose>
1503			<xsl:when test="style:text-properties/@style:font-size-asian">
1504				<xsl:value-of select="substring-before(style:text-properties/@style:font-size-asian,'pt')"/>
1505			</xsl:when>
1506			<xsl:when test="style:text-properties/@fo:font-size">
1507				<xsl:value-of select="substring-before(style:text-properties/@fo:font-size,'pt')"/>
1508			</xsl:when>
1509			<xsl:when test="@style:parent-style-name != ''">
1510				<xsl:for-each select="key('ParaStyle',@style:parent-style-name)">
1511					<xsl:call-template name="ODFGetCharSize"/>
1512				</xsl:for-each>
1513			</xsl:when>
1514			<xsl:otherwise>10.5</xsl:otherwise>
1515		</xsl:choose>
1516	</xsl:template>
1517	<xsl:template name="字:上下标-sentence">
1518		<xsl:if test="style:text-properties/@style:text-position">
1519			<xsl:variable name="poffset" select="substring-before(style:text-properties/@style:text-position,' ')"/>
1520			<xsl:variable name="foffset" select="substring-before(substring-after(style:text-properties/@style:text-position,' '),'%')"/>
1521			<xsl:choose>
1522				<xsl:when test="$poffset ='sub' or $poffset = 'super' ">
1523					<xsl:element name="字:上下标类型_4143">
1524						<xsl:choose>
1525							<xsl:when test="$poffset='sub'">sub</xsl:when>
1526							<xsl:when test="$poffset='super'">sup</xsl:when>
1527						</xsl:choose>
1528					</xsl:element>
1529				</xsl:when>
1530				<xsl:otherwise>
1531					<xsl:element name="字:位置_4142">
1532						<xsl:variable name="offset">
1533							<xsl:variable name="size">
1534								<xsl:call-template name="ODFGetCharSize"/>
1535							</xsl:variable>
1536							<xsl:choose>
1537								<xsl:when test="$poffset='sub'">
1538									<xsl:value-of select="-33 * $size div 100"/>
1539								</xsl:when>
1540								<xsl:when test="$poffset='super'">
1541									<xsl:value-of select="33 * $size div 100"/>
1542								</xsl:when>
1543								<xsl:otherwise>
1544									<xsl:value-of select="string(number(substring-before($poffset,'%')) * number($size) div 100)"/>
1545								</xsl:otherwise>
1546							</xsl:choose>
1547						</xsl:variable>
1548						<xsl:if test="$offset!=''">
1549							<字:偏移量_4126>
1550								<xsl:value-of select="$offset"/>
1551							</字:偏移量_4126>
1552						</xsl:if>
1553						<xsl:if test="$foffset != ''">
1554							<字:缩放量_4127>
1555								<xsl:value-of select="$foffset"/>
1556							</字:缩放量_4127>
1557						</xsl:if>
1558					</xsl:element>
1559				</xsl:otherwise>
1560			</xsl:choose>
1561		</xsl:if>
1562	</xsl:template>
1563	<xsl:template name="字:缩放-sentence">
1564		<xsl:if test="style:text-properties/@style:text-scale">
1565			<xsl:element name="字:缩放_4144">
1566				<xsl:variable name="scale" select="style:text-properties/@style:text-scale"/>
1567				<xsl:choose>
1568					<xsl:when test="contains($scale,'%')">
1569						<xsl:value-of select="substring-before($scale,'%')"/>
1570					</xsl:when>
1571					<xsl:otherwise>
1572						<xsl:value-of select="style:text-properties/@style:text-scale"/>
1573					</xsl:otherwise>
1574				</xsl:choose>
1575			</xsl:element>
1576		</xsl:if>
1577	</xsl:template>
1578	<xsl:template name="字:字符间距-sentence">
1579		<xsl:if test="style:text-properties/@fo:letter-spacing and (not(style:text-properties/@fo:letter-spacing='normal'))">
1580			<xsl:element name="字:字符间距_4145">
1581				<xsl:value-of select="fun:Convert2uofUnit(string(style:text-properties/@fo:letter-spacing))"/>
1582			</xsl:element>
1583		</xsl:if>
1584	</xsl:template>
1585	<xsl:template name="字:调整字间距-sentence">
1586		<xsl:if test="style:text-properties/@style:letter-kerning">
1587			<xsl:element name="字:调整字间距_4146">
1588				<xsl:variable name="tt" select="style:text-properties/@style:letter-kerning"/>
1589				<xsl:choose>
1590					<xsl:when test="$tt='true'">
1591						<xsl:value-of select="fun:Convert2uofUnit(string(style:text-properties/@fo:letter-spacing))"/>
1592					</xsl:when>
1593					<xsl:otherwise>0</xsl:otherwise>
1594				</xsl:choose>
1595			</xsl:element>
1596		</xsl:if>
1597	</xsl:template>
1598	<xsl:template name="UOFTextStyle">
1599		<xsl:call-template name="字:字体-sentence"/>
1600		<xsl:call-template name="字:粗体-sentence"/>
1601		<xsl:call-template name="字:斜体-sentence"/>
1602		<xsl:call-template name="字:突出显示-sentence"/>
1603		<xsl:call-template name="字:填充-sentence"/>
1604		<xsl:call-template name="字:删除线-sentence"/>
1605		<xsl:call-template name="字:下划线-sentence"/>
1606		<xsl:call-template name="字:着重号-sentence"/>
1607		<xsl:call-template name="字:隐藏文字-sentence"/>
1608		<xsl:call-template name="字:空心-sentence"/>
1609		<xsl:call-template name="字:浮雕-sentence"/>
1610		<xsl:call-template name="字:阴影-sentence"/>
1611		<xsl:call-template name="字:醒目字体-sentence"/>
1612		<xsl:call-template name="字:上下标-sentence"/>
1613		<xsl:call-template name="字:缩放-sentence"/>
1614		<xsl:call-template name="字:字符间距-sentence"/>
1615		<xsl:call-template name="字:调整字间距-sentence"/>
1616		<!--是否字符对齐网格  ODF功能缺失-->
1617		<!--xsl:call-template name="字:对齐网格-paragraph"/-->
1618	</xsl:template>
1619	<xsl:template name="OneTextStyle">
1620		<xsl:param name="Type"/>
1621		<xsl:element name="式样:句式样_9910">
1622			<xsl:choose>
1623				<xsl:when test="$Type='default'">
1624					<xsl:attribute name="标识符_4100"><xsl:value-of select="string('DefaultText')"/></xsl:attribute>
1625					<xsl:attribute name="名称_4101"><xsl:value-of select="string('DefaultText')"/></xsl:attribute>
1626				</xsl:when>
1627				<xsl:otherwise>
1628					<xsl:attribute name="标识符_4100"><xsl:value-of select="@style:name"/></xsl:attribute>
1629					<xsl:attribute name="名称_4101"><xsl:value-of select="@style:name"/></xsl:attribute>
1630				</xsl:otherwise>
1631			</xsl:choose>
1632			<xsl:attribute name="类型_4102"><xsl:value-of select="$Type"/></xsl:attribute>
1633			<xsl:if test="@style:display-name">
1634				<xsl:attribute name="别名_4103"><xsl:value-of select="@style:display-name"/></xsl:attribute>
1635			</xsl:if>
1636			<xsl:choose>
1637				<xsl:when test="@style:parent-style-name">
1638					<xsl:attribute name="基式样引用_4104"><xsl:value-of select="@style:parent-style-name"/></xsl:attribute>
1639				</xsl:when>
1640			</xsl:choose>
1641			<xsl:call-template name="UOFTextStyle"/>
1642		</xsl:element>
1643	</xsl:template>
1644	<xsl:template name="TextStyles">
1645		<xsl:for-each select="office:styles/style:default-style[@style:family='text']">
1646			<xsl:call-template name="OneTextStyle">
1647				<xsl:with-param name="Type">
1648					<xsl:value-of select="string('default')"/>
1649				</xsl:with-param>
1650			</xsl:call-template>
1651		</xsl:for-each>
1652		<xsl:for-each select="office:styles/style:style[@style:family='text']">
1653			<xsl:call-template name="OneTextStyle">
1654				<xsl:with-param name="Type">
1655					<xsl:value-of select="string('custom')"/>
1656				</xsl:with-param>
1657			</xsl:call-template>
1658		</xsl:for-each>
1659		<xsl:for-each select="office:automatic-styles/style:style[@style:family='text']">
1660			<xsl:call-template name="OneTextStyle">
1661				<xsl:with-param name="Type">
1662					<xsl:value-of select="string('auto')"/>
1663				</xsl:with-param>
1664			</xsl:call-template>
1665		</xsl:for-each>
1666	</xsl:template>
1667	<xsl:template name="字:大纲级别-paragraph">
1668		<xsl:param name="level"/>
1669		<xsl:choose>
1670			<xsl:when test="string($level) != ''">
1671				<xsl:element name="字:大纲级别_417C">
1672					<xsl:value-of select="$level"/>
1673				</xsl:element>
1674			</xsl:when>
1675			<xsl:otherwise>
1676				<xsl:if test="substring-after(@style:display-name,'Heading')">
1677					<xsl:element name="字:大纲级别_417C">
1678						<xsl:value-of select="substring-after(@style:display-name,'Heading ')"/>
1679					</xsl:element>
1680				</xsl:if>
1681			</xsl:otherwise>
1682		</xsl:choose>
1683	</xsl:template>
1684	<xsl:template name="字:对齐-paragraph">
1685		<xsl:if test="style:paragraph-properties/@fo:text-align or style:paragraph-properties/@style:vertical-align">
1686			<xsl:element name="字:对齐_417D">
1687				<!--水平对齐UOF、ODF默认值均为justified,可以不写出-->
1688				<xsl:if test="style:paragraph-properties/@fo:text-align">
1689					<xsl:variable name="align">
1690						<xsl:choose>
1691							<xsl:when test="style:paragraph-properties/@fo:text-align='end'">right</xsl:when>
1692							<xsl:when test="style:paragraph-properties/@fo:text-align='center'">center</xsl:when>
1693							<xsl:when test="style:paragraph-properties/@fo:text-align='justify' and not(style:paragraph-properties/@fo:text-align-last='justify')">justified</xsl:when>
1694							<xsl:when test="style:paragraph-properties/@fo:text-align='justify' and style:paragraph-properties/@fo:text-align-last='justify'">distributed</xsl:when>
1695							<xsl:otherwise>left</xsl:otherwise>
1696						</xsl:choose>
1697					</xsl:variable>
1698					<xsl:attribute name="水平对齐_421D"><xsl:value-of select="$align"/></xsl:attribute>
1699				</xsl:if>
1700				<!--文字对齐默认值UOF为base、ODF为auto-->
1701				<xsl:variable name="textalign">
1702					<xsl:choose>
1703						<xsl:when test="style:paragraph-properties/@style:vertical-align='baseline'">base</xsl:when>
1704						<xsl:when test="style:paragraph-properties/@style:vertical-align='top'">top</xsl:when>
1705						<xsl:when test="style:paragraph-properties/@style:vertical-align='middle'">center</xsl:when>
1706						<xsl:when test="style:paragraph-properties/@style:vertical-align='bottom'">bottom</xsl:when>
1707						<xsl:otherwise>auto</xsl:otherwise>
1708					</xsl:choose>
1709				</xsl:variable>
1710				<xsl:attribute name="文字对齐_421E"><xsl:value-of select="$textalign"/></xsl:attribute>
1711			</xsl:element>
1712		</xsl:if>
1713	</xsl:template>
1714	<xsl:template name="字:缩进-paragraph">
1715		<xsl:if test="style:paragraph-properties/@fo:margin-left or style:paragraph-properties/@fo:margin-right or style:paragraph-properties/@fo:text-indent">
1716			<xsl:element name="字:缩进_411D">
1717				<xsl:for-each select="style:paragraph-properties">
1718					<xsl:if test="@text:space-before or @fo:margin-left">
1719						<xsl:choose>
1720							<xsl:when test="@fo:text-indent and substring(@fo:text-indent,1,1)='-'"/>
1721							<xsl:otherwise>
1722								<字:左_410E>
1723									<字:绝对_4107>
1724										<xsl:if test="@text:space-before">
1725											<xsl:attribute name="值_410F"><xsl:value-of select="fun:Convert2uofUnit(@text:space-before)"/></xsl:attribute>
1726										</xsl:if>
1727										<xsl:if test="@fo:margin-left">
1728											<xsl:attribute name="值_410F"><xsl:value-of select="fun:Convert2uofUnit(@fo:margin-left)"/></xsl:attribute>
1729										</xsl:if>
1730									</字:绝对_4107>
1731								</字:左_410E>
1732							</xsl:otherwise>
1733						</xsl:choose>
1734					</xsl:if>
1735					<xsl:if test="@text:min-label-distance or @fo:margin-right">
1736						<字:右_4110>
1737							<字:绝对_4107>
1738								<xsl:if test="@text:min-label-distance">
1739									<xsl:attribute name="值_410F"><xsl:value-of select="fun:Convert2uofUnit(@text:min-label-distance)"/></xsl:attribute>
1740								</xsl:if>
1741								<xsl:if test="@fo:margin-right">
1742									<xsl:attribute name="值_410F"><xsl:value-of select="fun:Convert2uofUnit(@fo:margin-right)"/></xsl:attribute>
1743								</xsl:if>
1744							</字:绝对_4107>
1745						</字:右_4110>
1746					</xsl:if>
1747					<xsl:if test="@text:min-label-width or @fo:text-indent">
1748						<xsl:choose>
1749							<xsl:when test="substring(@fo:text-indent,1,1)='-' and @fo:text-indent != ''">
1750								<字:左_410E>
1751									<字:绝对_4107>
1752										<xsl:attribute name="值_410F"><xsl:value-of select="fun:Convert2uofUnit(@fo:margin-left)"/></xsl:attribute>
1753									</字:绝对_4107>
1754								</字:左_410E>
1755								<字:首行_4111>
1756									<字:绝对_4107>
1757										<xsl:attribute name="值_410F"><xsl:value-of select="fun:Convert2uofUnit(@fo:text-indent)"/></xsl:attribute>
1758									</字:绝对_4107>
1759								</字:首行_4111>
1760							</xsl:when>
1761							<xsl:otherwise>
1762								<xsl:if test="@text:min-label-width or @fo:text-indent">
1763									<字:首行_4111>
1764										<字:绝对_4107>
1765											<xsl:if test="@text:min-label-width">
1766												<xsl:attribute name="值_410F"><xsl:value-of select="fun:Convert2uofUnit(@text:min-label-width)"/></xsl:attribute>
1767											</xsl:if>
1768											<xsl:if test="@fo:text-indent">
1769												<xsl:attribute name="值_410F"><xsl:value-of select="fun:Convert2uofUnit(@fo:text-indent)"/></xsl:attribute>
1770											</xsl:if>
1771										</字:绝对_4107>
1772									</字:首行_4111>
1773								</xsl:if>
1774							</xsl:otherwise>
1775						</xsl:choose>
1776					</xsl:if>
1777				</xsl:for-each>
1778			</xsl:element>
1779		</xsl:if>
1780	</xsl:template>
1781	<xsl:template name="字:行距-paragraph">
1782		<xsl:if test="style:paragraph-properties/@fo:line-height or style:paragraph-properties/@style:line-height-at-least or style:paragraph-properties/@style:line-spacing">
1783			<xsl:element name="字:行距_417E">
1784				<xsl:choose>
1785					<xsl:when test="contains(style:paragraph-properties/@fo:line-height,$ooUnit)">
1786						<xsl:attribute name="类型_417F">fixed</xsl:attribute>
1787						<xsl:attribute name="值_4108"><xsl:value-of select="fun:Convert2uofUnit(style:paragraph-properties/@fo:line-height)"/></xsl:attribute>
1788					</xsl:when>
1789					<xsl:when test="style:paragraph-properties/@style:line-spacing">
1790						<xsl:attribute name="类型_417F">line-space</xsl:attribute>
1791						<xsl:attribute name="值_4108"><xsl:value-of select="fun:Convert2uofUnit(style:paragraph-properties/@style:line-spacing)"/></xsl:attribute>
1792					</xsl:when>
1793					<xsl:when test="style:paragraph-properties/@style:line-height-at-least">
1794						<xsl:attribute name="类型_417F">at-least</xsl:attribute>
1795						<xsl:attribute name="值_4108"><xsl:value-of select="fun:Convert2uofUnit(style:paragraph-properties/@style:line-height-at-least)"/></xsl:attribute>
1796					</xsl:when>
1797					<xsl:when test="contains(style:paragraph-properties/@fo:line-height,'%')">
1798						<xsl:attribute name="类型_417F">multi-lines</xsl:attribute>
1799						<xsl:attribute name="值_4108"><xsl:value-of select="number(substring-before(style:paragraph-properties/@fo:line-height,'%')) div 100"/></xsl:attribute>
1800					</xsl:when>
1801					<xsl:otherwise>
1802						<xsl:attribute name="类型_417F">multi-lines</xsl:attribute>
1803						<xsl:attribute name="值_4108">1.0</xsl:attribute>
1804					</xsl:otherwise>
1805				</xsl:choose>
1806			</xsl:element>
1807		</xsl:if>
1808	</xsl:template>
1809	<xsl:template name="字:段间距-paragraph">
1810		<xsl:if test="style:paragraph-properties/@fo:margin-top or style:paragraph-properties/@fo:margin-bottom">
1811			<字:段间距_4180>
1812				<xsl:if test="style:paragraph-properties/@fo:margin-top != ''">
1813					<字:段前距_4181>
1814						<字:绝对值_4183>
1815							<xsl:value-of select="fun:Convert2uofUnit(style:paragraph-properties/@fo:margin-top)"/>
1816						</字:绝对值_4183>
1817					</字:段前距_4181>
1818				</xsl:if>
1819				<xsl:if test="style:paragraph-properties/@fo:margin-bottom != ''">
1820					<字:段后距_4185>
1821						<字:绝对值_4183>
1822							<xsl:value-of select="fun:Convert2uofUnit(style:paragraph-properties/@fo:margin-bottom)"/>
1823						</字:绝对值_4183>
1824					</字:段后距_4185>
1825				</xsl:if>
1826			</字:段间距_4180>
1827		</xsl:if>
1828	</xsl:template>
1829	<xsl:template name="字:寡行控制-paragraph">
1830		<xsl:if test="style:paragraph-properties/@fo:widows">
1831			<xsl:element name="字:寡行控制_418B">
1832				<xsl:value-of select="style:paragraph-properties/@fo:widows"/>
1833			</xsl:element>
1834		</xsl:if>
1835	</xsl:template>
1836	<xsl:template name="字:孤行控制-paragraph">
1837		<xsl:if test="style:paragraph-properties/@fo:orphans">
1838			<xsl:element name="字:孤行控制_418A">
1839				<xsl:value-of select="style:paragraph-properties/@fo:orphans"/>
1840			</xsl:element>
1841		</xsl:if>
1842	</xsl:template>
1843	<xsl:template name="字:段中不分页-paragraph">
1844		<xsl:element name="字:是否段中不分页_418C">
1845			<xsl:choose>
1846				<xsl:when test="style:paragraph-properties/@fo:keep-together='always'">true</xsl:when>
1847				<xsl:otherwise>false</xsl:otherwise>
1848			</xsl:choose>
1849		</xsl:element>
1850	</xsl:template>
1851	<xsl:template name="字:与下段同页-paragraph">
1852		<xsl:if test="style:paragraph-properties/@fo:keep-with-next='always'">
1853			<xsl:element name="字:是否与下段同页_418D">true</xsl:element>
1854		</xsl:if>
1855	</xsl:template>
1856	<xsl:template name="字:段前分页-paragraph">
1857		<xsl:if test="style:paragraph-properties/@fo:break-before='page-paragraph'">
1858			<xsl:element name="字:是否段前分页_418E">true</xsl:element>
1859		</xsl:if>
1860	</xsl:template>
1861	<xsl:template name="getShadowAngle">
1862		<xsl:param name="style_shadow"/>
1863		<xsl:variable name="value_1" select="substring-before(substring-before(substring-after($style_shadow,' '),' '),$uofUnit)"/>
1864		<xsl:variable name="value_2" select="substring-before(substring-after(substring-after($style_shadow,' '),' '),$uofUnit)"/>
1865		<xsl:choose>
1866			<xsl:when test="number($value_1) &gt; 0 and number($value_2) &gt; 0">right-bottom</xsl:when>
1867			<xsl:when test="number($value_1) &gt; 0 and number($value_2) &lt; 0">right-top</xsl:when>
1868			<xsl:when test="number($value_1) &lt; 0 and number($value_2) &gt; 0">left-bottom</xsl:when>
1869			<xsl:when test="number($value_1) &lt; 0 and number($value_2) &lt; 0">left-top</xsl:when>
1870			<xsl:otherwise>none</xsl:otherwise>
1871		</xsl:choose>
1872	</xsl:template>
1873	<xsl:template name="字:边框-paragraph">
1874		<xsl:if test="style:paragraph-properties/@fo:border != 'none' or style:paragraph-properties/@fo:border-top != '0pt' or style:paragraph-properties/@fo:border-bottom != '0pt' or style:paragraph-properties/@fo:border-left != '0pt' or style:paragraph-properties/@fo:border-right != '0pt' or style:paragraph-properties/@style:shadow[.!='none']">
1875			<xsl:element name="字:边框_4133">
1876				<xsl:if test="style:paragraph-properties/@style:shadow[.!='none']">
1877					<xsl:variable name="shadowAngle">
1878						<xsl:call-template name="getShadowAngle">
1879							<xsl:with-param name="style_shadow" select="style:paragraph-properties/@style:shadow"/>
1880						</xsl:call-template>
1881					</xsl:variable>
1882					<xsl:attribute name="阴影类型_C645" select="$shadowAngle"/>
1883				</xsl:if>
1884				<xsl:for-each select="style:paragraph-properties">
1885					<xsl:call-template name="Border"/>
1886				</xsl:for-each>
1887			</xsl:element>
1888		</xsl:if>
1889	</xsl:template>
1890	<xsl:template name="字:填充-paragraph">
1891		<xsl:if test="style:paragraph-properties/@fo:background-color or style:paragraph-properties/style:background-image">
1892			<xsl:element name="字:填充_4134">
1893				<xsl:for-each select="style:paragraph-properties">
1894					<xsl:call-template name="UOFFill"/>
1895				</xsl:for-each>
1896			</xsl:element>
1897		</xsl:if>
1898	</xsl:template>
1899	<xsl:template name="字:制表位设置-paragraph">
1900		<xsl:if test="style:paragraph-properties/style:tab-stops">
1901			<xsl:element name="字:制表位设置_418F">
1902				<xsl:for-each select="style:paragraph-properties/style:tab-stops/style:tab-stop">
1903					<xsl:element name="字:制表位_4171">
1904						<xsl:attribute name="位置_4172"><xsl:value-of select="fun:Convert2uofUnit(@style:position)"/></xsl:attribute>
1905						<xsl:variable name="aa">
1906							<xsl:value-of select="@style:type"/>
1907						</xsl:variable>
1908						<xsl:variable name="zbflx">
1909							<xsl:choose>
1910								<xsl:when test="$aa='right'">right</xsl:when>
1911								<xsl:when test="$aa='center'">center</xsl:when>
1912								<xsl:when test="$aa='char'and @style:char!=''">decimal</xsl:when>
1913								<xsl:otherwise>left</xsl:otherwise>
1914							</xsl:choose>
1915						</xsl:variable>
1916						<xsl:attribute name="类型_4173"><xsl:value-of select="$zbflx"/></xsl:attribute>
1917						<xsl:if test="@style:leader-text">
1918							<xsl:attribute name="前导符_4174"><xsl:value-of select="@style:leader-text"/></xsl:attribute>
1919						</xsl:if>
1920						<xsl:if test="@style:leader-style">
1921							<xsl:attribute name="制表位字符_4175"><xsl:value-of select="@style:leader-style"/></xsl:attribute>
1922						</xsl:if>
1923					</xsl:element>
1924				</xsl:for-each>
1925			</xsl:element>
1926		</xsl:if>
1927	</xsl:template>
1928	<xsl:template name="字:对齐网格-paragraph">
1929		<xsl:element name="字:是否对齐网格_4190">
1930			<xsl:choose>
1931				<xsl:when test="style:paragraph-properties/@style:snap-to-layout-grid='false'">false</xsl:when>
1932				<xsl:otherwise>true</xsl:otherwise>
1933			</xsl:choose>
1934		</xsl:element>
1935	</xsl:template>
1936	<xsl:template name="字:首字下沉-paragraph">
1937		<xsl:if test="style:paragraph-properties/style:drop-cap/@style:drop-type or style:paragraph-properties/style:drop-cap/@style:lines">
1938			<xsl:element name="字:首字下沉_4191">
1939				<xsl:attribute name="类型_413B"><xsl:choose><xsl:when test="style:paragraph-properties/style:drop-cap/@style:drop-type = 'dropped'">dropped</xsl:when><xsl:when test="style:paragraph-properties/style:drop-cap/@style:drop-type = 'margin'">margin</xsl:when><xsl:otherwise>dropped</xsl:otherwise></xsl:choose></xsl:attribute>
1940				<xsl:if test="style:paragraph-properties/style:drop-cap/@style:style-name">
1941					<xsl:attribute name="字体引用_4176"><xsl:choose><xsl:when test="contains(style:paragraph-properties/style:drop-cap/@style:style-name,' ')"><xsl:value-of select="translate(style:paragraph-properties/style:drop-cap/@style:style-name,' ','_')"/></xsl:when><xsl:otherwise><xsl:value-of select="style:paragraph-properties/style:drop-cap/@style:style-name"/></xsl:otherwise></xsl:choose></xsl:attribute>
1942				</xsl:if>
1943				<xsl:attribute name="间距_4179"><xsl:choose><xsl:when test="style:paragraph-properties/style:drop-cap/@style:distance"><xsl:value-of select="fun:Convert2uofUnit(style:paragraph-properties/style:drop-cap/@style:distance)"/></xsl:when><xsl:otherwise>0.00</xsl:otherwise></xsl:choose></xsl:attribute>
1944				<xsl:if test="style:paragraph-properties/style:drop-cap/@style:length">
1945					<xsl:attribute name="字符数_4177"><xsl:value-of select="style:paragraph-properties/style:drop-cap/@style:length"/></xsl:attribute>
1946				</xsl:if>
1947				<xsl:if test="style:paragraph-properties/style:drop-cap/@style:lines">
1948					<xsl:attribute name="行数_4178"><xsl:value-of select="style:paragraph-properties/style:drop-cap/@style:lines"/></xsl:attribute>
1949				</xsl:if>
1950			</xsl:element>
1951		</xsl:if>
1952	</xsl:template>
1953	<xsl:template name="字:取消断字-paragraph">
1954		<!-- begin
1955		<xsl:element name="字:是否取消断字_4192">
1956			<xsl:choose>
1957				<xsl:when test="style:paragraph-properties/@fo:hyphenate">
1958					<xsl:value-of select="style:paragraph-properties/@fo:hyphenate"/>
1959				</xsl:when>
1960				<xsl:otherwise>false</xsl:otherwise>
1961			</xsl:choose>
1962		</xsl:element>-->
1963		<xsl:if test="((style:paragraph-properties/@fo:hyphenation-ladder-count and string(style:paragraph-properties/@fo:hyphenation-ladder-count)='0') or not(style:paragraph-properties/@fo:hyphenation-ladder-count)) and (style:text-properties/@fo:hyphenate and string(style:text-properties/@fo:hyphenate)='true')">
1964			<xsl:element name="字:是否取消断字_4192">false</xsl:element>
1965		</xsl:if>
1966		<!--end-->
1967	</xsl:template>
1968	<xsl:template name="字:取消行号-paragraph">
1969		<xsl:if test="style:paragraph-properties/@text:number-lines">
1970			<xsl:element name="字:是否取消行号_4193">
1971				<xsl:variable name="aa">
1972					<xsl:value-of select="style:paragraph-properties/@text:number-lines"/>
1973				</xsl:variable>
1974				<xsl:choose>
1975					<xsl:when test="$aa='false'">true</xsl:when>
1976					<xsl:otherwise>false</xsl:otherwise>
1977				</xsl:choose>
1978			</xsl:element>
1979		</xsl:if>
1980	</xsl:template>
1981	<xsl:template name="字:允许单词断字-paragraph">
1982		<!--begin
1983		<xsl:if test="style:paragraph-properties/@style:word-wrap">
1984			<xsl:element name="字:是否允许单词断字_4194">
1985				<xsl:variable name="boolean" select="style:paragraph-properties/@style:word-wrap"/>
1986				<xsl:choose>
1987					<xsl:when test="$boolean = 'true'">true</xsl:when>
1988					<xsl:otherwise>false</xsl:otherwise>
1989				</xsl:choose>
1990			</xsl:element>
1991		</xsl:if>-->
1992		<xsl:if test="style:paragraph-properties/@fo:hyphenation-ladder-count and string(style:paragraph-properties/@fo:hyphenation-ladder-count)!='0'">
1993			<xsl:element name="字:是否允许单词断字_4194">true</xsl:element>
1994		</xsl:if>
1995		<!--end-->
1996	</xsl:template>
1997	<xsl:template name="字:行首尾标点控制-paragraph">
1998		<xsl:if test="style:paragraph-properties/@style:punctuation-wrap">
1999			<xsl:element name="字:是否行首尾标点控制_4195">
2000				<xsl:choose>
2001					<xsl:when test="style:paragraph-properties/@style:punctuation-wrap='hanging'">true</xsl:when>
2002					<xsl:otherwise>false</xsl:otherwise>
2003				</xsl:choose>
2004			</xsl:element>
2005		</xsl:if>
2006	</xsl:template>
2007	<xsl:template name="字:是否行首标点压缩-paragraph">
2008		<xsl:if test="style:paragraph-properties/@style:punctuation-compress">
2009			<xsl:element name="字:是否行首标点压缩_4196">
2010				<xsl:variable name="boolean" select="style:paragraph-properties/@style:punctuation-compress"/>
2011				<xsl:choose>
2012					<xsl:when test="$boolean = 'true'">true</xsl:when>
2013					<xsl:otherwise>false</xsl:otherwise>
2014				</xsl:choose>
2015			</xsl:element>
2016		</xsl:if>
2017	</xsl:template>
2018	<xsl:template name="字:中文习惯首尾字符-paragraph">
2019		<xsl:if test="style:paragraph-properties/@style:line-break ">
2020			<xsl:element name="字:是否采用中文习惯首尾字符_4197">
2021				<xsl:choose>
2022					<xsl:when test="style:paragraph-properties/@style:line-break='strict'">true</xsl:when>
2023					<xsl:when test="style:paragraph-properties/@style:line-break='normal'">false</xsl:when>
2024				</xsl:choose>
2025			</xsl:element>
2026		</xsl:if>
2027	</xsl:template>
2028	<xsl:template name="字:自动调整中英文字符间距-paragraph">
2029		<xsl:if test="style:paragraph-properties/@style:text-autospace or style:paragraph-properties/@style:line-break">
2030			<xsl:element name="字:是否自动调整中英文字符间距_4198">
2031				<xsl:choose>
2032					<xsl:when test="style:paragraph-properties/@style:text-autospace='ideograph-alpha' or style:paragraph-properties/@style:line-break='normal'">true</xsl:when>
2033					<xsl:when test="style:paragraph-properties/@style:text-autospace='none' or style:paragraph-properties/@style:line-break='strict'">false</xsl:when>
2034				</xsl:choose>
2035			</xsl:element>
2036		</xsl:if>
2037	</xsl:template>
2038	<xsl:template name="字:自动调整中文与数字间距-paragraph">
2039		<xsl:if test="style:paragraph-properties/@style:text-autospace or style:paragraph-properties/@style:line-break">
2040			<xsl:element name="字:是否自动调整中文与数字间距_4199">
2041				<xsl:choose>
2042					<xsl:when test="style:paragraph-properties/@style:text-autospace='ideograph-alpha' or style:paragraph-properties/@style:line-break='normal'">true</xsl:when>
2043					<xsl:when test="style:paragraph-properties/@style:text-autospace='none' or style:paragraph-properties/@style:line-break='strict'">false</xsl:when>
2044				</xsl:choose>
2045			</xsl:element>
2046		</xsl:if>
2047	</xsl:template>
2048	<xsl:template name="字:有网格自动调整右缩进-paragraph">
2049		<xsl:element name="字:是否有网格自动调整右缩进_419A">false</xsl:element>
2050	</xsl:template>
2051	<xsl:template name="字:自动编号信息-paragraph">
2052		<xsl:param name="autonum"/>
2053		<xsl:param name="level"/>
2054		<xsl:if test="$autonum!=''">
2055			<字:自动编号信息_4186>
2056				<xsl:attribute name="编号引用_4187"><xsl:value-of select="concat($autonum,'_num')"/></xsl:attribute>
2057				<xsl:attribute name="编号级别_4188"><xsl:value-of select="$level"/></xsl:attribute>
2058				<xsl:attribute name="是否重新编号_4189">false</xsl:attribute>
2059				<xsl:attribute name="起始编号_4152"><xsl:choose><xsl:when test="/office:document/office:styles/text:list-style[@style:name=$autonum]/text:list-level-style-number[1]/@text:start-value"><xsl:value-of select="/office:document/office:styles/text:list-style[@style:name=$autonum]/text:list-level-style-number[1]/@text:start-value"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:attribute>
2060			</字:自动编号信息_4186>
2061		</xsl:if>
2062	</xsl:template>
2063	<xsl:template name="UofParagraphStyle">
2064		<xsl:param name="autonum"/>
2065		<xsl:param name="level"/>
2066		<xsl:call-template name="字:大纲级别-paragraph">
2067			<xsl:with-param name="level" select="$level"/>
2068		</xsl:call-template>
2069		<xsl:call-template name="字:对齐-paragraph"/>
2070		<xsl:call-template name="字:缩进-paragraph"/>
2071		<xsl:call-template name="字:行距-paragraph"/>
2072		<xsl:call-template name="字:段间距-paragraph"/>
2073		<xsl:call-template name="字:孤行控制-paragraph"/>
2074		<xsl:call-template name="字:寡行控制-paragraph"/>
2075		<xsl:call-template name="字:段中不分页-paragraph"/>
2076		<xsl:call-template name="字:与下段同页-paragraph"/>
2077		<xsl:call-template name="字:段前分页-paragraph"/>
2078		<xsl:call-template name="字:边框-paragraph"/>
2079		<xsl:call-template name="字:填充-paragraph"/>
2080		<xsl:call-template name="字:制表位设置-paragraph"/>
2081		<xsl:call-template name="字:对齐网格-paragraph"/>
2082		<xsl:call-template name="字:首字下沉-paragraph"/>
2083		<xsl:call-template name="字:取消断字-paragraph"/>
2084		<xsl:call-template name="字:取消行号-paragraph"/>
2085		<xsl:call-template name="字:允许单词断字-paragraph"/>
2086		<xsl:call-template name="字:行首尾标点控制-paragraph"/>
2087		<xsl:call-template name="字:是否行首标点压缩-paragraph"/>
2088		<xsl:call-template name="字:中文习惯首尾字符-paragraph"/>
2089		<xsl:call-template name="字:自动调整中英文字符间距-paragraph"/>
2090		<xsl:call-template name="字:自动调整中文与数字间距-paragraph"/>
2091		<xsl:call-template name="字:有网格自动调整右缩进-paragraph"/>
2092		<xsl:call-template name="字:自动编号信息-paragraph">
2093			<xsl:with-param name="autonum" select="$autonum"/>
2094			<xsl:with-param name="level" select="$level"/>
2095		</xsl:call-template>
2096	</xsl:template>
2097	<xsl:template name="OneParagraphStyle">
2098		<xsl:param name="Type"/>
2099		<xsl:element name="式样:段落式样_9912">
2100			<xsl:choose>
2101				<xsl:when test="$Type='default'">
2102					<xsl:attribute name="标识符_4100"><xsl:value-of select="string('DefaultParagraph')"/></xsl:attribute>
2103					<xsl:attribute name="名称_4101"><xsl:value-of select="string('DefaultParagraph')"/></xsl:attribute>
2104				</xsl:when>
2105				<xsl:otherwise>
2106					<xsl:attribute name="标识符_4100"><xsl:value-of select="@style:name"/></xsl:attribute>
2107					<xsl:attribute name="名称_4101"><xsl:value-of select="@style:name"/></xsl:attribute>
2108				</xsl:otherwise>
2109			</xsl:choose>
2110			<xsl:attribute name="类型_4102"><xsl:value-of select="$Type"/></xsl:attribute>
2111			<xsl:if test="@style:parent-style-name">
2112				<xsl:attribute name="基式样引用_4104"><xsl:value-of select="@style:parent-style-name"/></xsl:attribute>
2113			</xsl:if>
2114			<xsl:if test="@style:display-name">
2115				<xsl:attribute name="别名_4103"><xsl:value-of select="@style:display-name"/></xsl:attribute>
2116			</xsl:if>
2117			<xsl:element name="字:句属性_4158">
2118				<xsl:call-template name="UOFTextStyle"/>
2119			</xsl:element>
2120			<xsl:call-template name="UofParagraphStyle"/>
2121		</xsl:element>
2122	</xsl:template>
2123	<xsl:template name="ParagraphStyles">
2124		<xsl:for-each select="office:styles/style:default-style">
2125			<xsl:choose>
2126				<xsl:when test="$documentType='presentation' and @style:family='graphic'">
2127					<xsl:call-template name="OneParagraphStyle">
2128						<xsl:with-param name="Type">
2129							<xsl:value-of select="string('default')"/>
2130						</xsl:with-param>
2131					</xsl:call-template>
2132				</xsl:when>
2133				<xsl:when test="not($documentType='presentation')and @style:family='paragraph'">
2134					<xsl:call-template name="OneParagraphStyle">
2135						<xsl:with-param name="Type">
2136							<xsl:value-of select="string('default')"/>
2137						</xsl:with-param>
2138					</xsl:call-template>
2139				</xsl:when>
2140			</xsl:choose>
2141		</xsl:for-each>
2142		<xsl:for-each select="office:styles/style:style[@style:family='paragraph']">
2143			<xsl:if test="not(contains(@style:name,'-outline') or contains(@style:name,'-title'))">
2144				<xsl:call-template name="OneParagraphStyle">
2145					<xsl:with-param name="Type">
2146						<xsl:value-of select="string('custom')"/>
2147					</xsl:with-param>
2148				</xsl:call-template>
2149			</xsl:if>
2150		</xsl:for-each>
2151		<xsl:for-each select="office:automatic-styles/style:style[@style:family='paragraph']">
2152			<xsl:if test="not(contains(@style:name,'-outline') or contains(@style:name,'-title'))">
2153				<xsl:call-template name="OneParagraphStyle">
2154					<xsl:with-param name="Type">
2155						<xsl:value-of select="string('auto')"/>
2156					</xsl:with-param>
2157				</xsl:call-template>
2158			</xsl:if>
2159		</xsl:for-each>
2160	</xsl:template>
2161	<xsl:template name="PresentationParaStyles">
2162		<xsl:for-each select="office:styles/style:style[@style:family='presentation']">
2163			<xsl:if test="not(contains(@style:name,'-outline') or contains(@style:name,'-title'))">
2164				<xsl:if test="style:paragraph-properties or style:text-properties">
2165					<xsl:call-template name="OneParagraphStyle">
2166						<xsl:with-param name="Type">
2167							<xsl:value-of select="string('auto')"/>
2168						</xsl:with-param>
2169					</xsl:call-template>
2170				</xsl:if>
2171			</xsl:if>
2172		</xsl:for-each>
2173		<xsl:for-each select="office:styles/style:style[@style:family='graphic']|office:automatic-styles/style:style[@style:family='graphic'or @style:family='presentation']">
2174			<xsl:if test="not(contains(@style:name,'-outline') or contains(@style:name,'-title'))">
2175				<xsl:if test="style:paragraph-properties or style:text-properties">
2176					<xsl:call-template name="OneParagraphStyle">
2177						<xsl:with-param name="Type">
2178							<xsl:value-of select="string('auto')"/>
2179						</xsl:with-param>
2180					</xsl:call-template>
2181				</xsl:if>
2182			</xsl:if>
2183		</xsl:for-each>
2184	</xsl:template>
2185	<xsl:template name="AnimationTextStyles">
2186		<xsl:for-each select="/office:document/office:body/office:presentation/draw:page/anim:par/anim:seq/anim:par/anim:par/anim:par">
2187			<xsl:if test="anim:set/@smil:attributeName">
2188				<xsl:element name="式样:句式样_9910">
2189					<xsl:attribute name="标识符_4100"><xsl:value-of select="generate-id()"/></xsl:attribute>
2190					<xsl:attribute name="名称_4101"><xsl:value-of select="generate-id()"/></xsl:attribute>
2191					<xsl:attribute name="类型_4102"><xsl:value-of select="'auto'"/></xsl:attribute>
2192					<xsl:for-each select="anim:set">
2193						<xsl:if test="@smil:attributeName = 'font-style' and @smil:to = 'italic'">
2194							<xsl:element name="字:是否斜体_4131">true</xsl:element>
2195						</xsl:if>
2196						<xsl:if test="@smil:attributeName = 'font-weight' and @smil:to = 'bold'">
2197							<xsl:element name="字:是否粗体_4130">true</xsl:element>
2198						</xsl:if>
2199						<xsl:if test="@smil:attributeName = 'text-underline' and @smil:to = 'solid'">
2200							<xsl:element name="字:下划线_4136">
2201								<xsl:attribute name="线型_4137"><xsl:value-of select="'single'"/></xsl:attribute>
2202								<xsl:attribute name="是否字下划线_4139">false</xsl:attribute>
2203							</xsl:element>
2204						</xsl:if>
2205						<xsl:if test="@smil:attributeName = 'font-family'">
2206							<字:字体_4128>
2207								<xsl:attribute name="中文字体引用_412A"><xsl:value-of select="@smil:to"/></xsl:attribute>
2208							</字:字体_4128>
2209						</xsl:if>
2210					</xsl:for-each>
2211				</xsl:element>
2212			</xsl:if>
2213		</xsl:for-each>
2214	</xsl:template>
2215	<xsl:template name="字:项目符号-list">
2216		<xsl:if test="@text:bullet-char">
2217			<xsl:element name="字:项目符号_4115">
2218				<xsl:value-of select="@text:bullet-char"/>
2219			</xsl:element>
2220		</xsl:if>
2221	</xsl:template>
2222	<xsl:template name="字:符号字体-list">
2223		<xsl:if test="style:text-properties/@fo:font-family or @text:style-name">
2224			<xsl:element name="字:符号字体_4116">
2225				<xsl:variable name="TextStyleName" select="@text:style-name"/>
2226				<xsl:if test="@text:style-name != ''">
2227					<xsl:attribute name="式样引用_4247"><xsl:value-of select="@text:style-name"/></xsl:attribute>
2228				</xsl:if>
2229				<xsl:call-template name="UOFTextStyle"/>
2230			</xsl:element>
2231		</xsl:if>
2232	</xsl:template>
2233	<xsl:template name="字:编号格式-list">
2234		<xsl:if test="@style:num-format">
2235			<字:编号格式_4119>
2236				<xsl:choose>
2237					<xsl:when test="string(@style:num-format)='a'">lower-letter</xsl:when>
2238					<xsl:when test="string(@style:num-format)='A'">upper-letter</xsl:when>
2239					<xsl:when test="string(@style:num-format)='i'">lower-roman</xsl:when>
2240					<xsl:when test="string(@style:num-format)='I'">upper-roman</xsl:when>
2241					<xsl:when test="string(@style:num-format)='①, ②, ③, ...'">decimal-enclosed-circle</xsl:when>
2242					<xsl:when test="string(@style:num-format)='甲, 乙, 丙, ...'">ideograph-traditional</xsl:when>
2243					<xsl:when test="string(@style:num-format)='子, 丑, 寅, ...'">ideograph-zodiac</xsl:when>
2244					<xsl:when test="string(@style:num-format)='一, 二, 三, ...'">chinese-counting</xsl:when>
2245					<xsl:when test="string(@style:num-format)='壹, 贰, 叁, ...'">chinese-legal-simplified</xsl:when>
2246					<xsl:when test="string(@style:num-format)='1, 2, 3, ...'">
2247						<xsl:choose>
2248							<xsl:when test="starts-with(@style:num-suffix,'.')">decimal-enclosed-fullstop</xsl:when>
2249							<xsl:otherwise>decimal-full-width</xsl:otherwise>
2250						</xsl:choose>
2251					</xsl:when>
2252					<xsl:when test="string(@style:num-format)='1st'">ordinal</xsl:when>
2253					<xsl:when test="string(@style:num-format)='one'">cardinal-text</xsl:when>
2254					<xsl:when test="@style:num-format='first'">ordinal-text</xsl:when>
2255					<xsl:when test="@style:num-format='㈠, ㈡, ㈢, ...'">ideograph-enclosed-circle</xsl:when>
2256					<xsl:when test="string(@style:num-format)='1' and ends-with(@style:num-prefix,'(') and starts-with(style:num-suffix,')')">decimal-enclosed-paren</xsl:when>
2257					<xsl:otherwise>decimal</xsl:otherwise>
2258				</xsl:choose>
2259			</字:编号格式_4119>
2260		</xsl:if>
2261	</xsl:template>
2262	<xsl:template name="字:编号格式表示-content">
2263		<xsl:param name="bubianjibie"/>
2264		<xsl:param name="jibie"/>
2265		<xsl:param name="xianshijibie"/>
2266		<xsl:param name="biaoshi"/>
2267		<xsl:choose>
2268			<xsl:when test="number($xianshijibie)= 1">
2269				<!--需考虑编号后缀-->
2270				<xsl:choose>
2271					<xsl:when test="@style:num-format='1, 2, 3, ...' and starts-with(@style:num-suffix,'.')">
2272						<xsl:value-of select="concat(string(@style:num-prefix),$biaoshi,substring-after(@style:num-suffix,'.'))"/>
2273					</xsl:when>
2274					<xsl:when test="@style:num-format='1' and ends-with(@style:num-prefix,'(') and starts-with(style:num-suffix,')')">
2275						<xsl:value-of select="concat(substring-before(@style:num-prefix,'('),$biaoshi,substring-after(@style:num-suffix,')'))"/>
2276					</xsl:when>
2277					<xsl:otherwise>
2278						<xsl:value-of select="concat(string(@style:num-prefix),$biaoshi,string(@style:num-suffix))"/>
2279					</xsl:otherwise>
2280				</xsl:choose>
2281			</xsl:when>
2282			<xsl:otherwise>
2283				<xsl:call-template name="字:编号格式表示-content">
2284					<xsl:with-param name="bubianjibie" select="$bubianjibie"/>
2285					<xsl:with-param name="jibie" select="$jibie -1"/>
2286					<xsl:with-param name="xianshijibie" select="$xianshijibie -1"/>
2287					<xsl:with-param name="biaoshi" select="concat('%',number($jibie -1),'.',$biaoshi)"/>
2288				</xsl:call-template>
2289			</xsl:otherwise>
2290		</xsl:choose>
2291
2292	</xsl:template>
2293	<xsl:template name="字:编号格式表示-list">
2294		<xsl:variable name="jibie">
2295			<xsl:value-of select="@text:level"/>
2296		</xsl:variable>
2297		<xsl:variable name="xianshijibie">
2298			<xsl:choose>
2299				<xsl:when test="@text:display-levels">
2300					<xsl:value-of select="@text:display-levels"/>
2301				</xsl:when>
2302				<xsl:otherwise>1</xsl:otherwise>
2303			</xsl:choose>
2304		</xsl:variable>
2305		<xsl:element name="字:编号格式表示_411A">
2306			<xsl:call-template name="字:编号格式表示-content">
2307				<xsl:with-param name="bubianjibie" select="$jibie"/>
2308				<xsl:with-param name="jibie" select="$jibie"/>
2309				<xsl:with-param name="xianshijibie" select="$xianshijibie"/>
2310				<!--xsl:with-param name="biaoshi" select="concat(string(@style:num-prefix),'%',$jibie,string(@style:num-suffix))"/-->
2311				<xsl:with-param name="biaoshi" select="concat('%',$jibie)"/>
2312			</xsl:call-template>
2313		</xsl:element>
2314	</xsl:template>
2315	<xsl:template name="字:图片符号引用-list">
2316		<xsl:if test="office:binary-data or @xlink:href">
2317			<xsl:element name="字:图片符号_411B">
2318				<xsl:if test="style:list-level-properties/@fo:width">
2319					<xsl:attribute name="宽_C605"><xsl:value-of select="fun:Convert2uofUnit(style:list-level-properties/@fo:width)"/></xsl:attribute>
2320				</xsl:if>
2321				<xsl:if test="style:list-level-properties/@fo:height">
2322					<xsl:attribute name="长_C604"><xsl:value-of select="fun:Convert2uofUnit(style:list-level-properties/@fo:height)"/></xsl:attribute>
2323				</xsl:if>
2324				<xsl:attribute name="引用_411C" select="generate-id(.)"/>
2325			</xsl:element>
2326		</xsl:if>
2327	</xsl:template>
2328	<xsl:template name="字:缩进-list">
2329		<xsl:choose>
2330			<xsl:when test="style:list-level-properties/@text:list-level-position-and-space-mode = 'label-alignment'">
2331				<xsl:if test="style:list-level-properties/*/@fo:text-indent or style:list-level-properties/*/@fo:margin-left">
2332					<xsl:element name="字:缩进_411D">
2333						<xsl:for-each select="style:list-level-properties/*">
2334							<xsl:if test="@fo:margin-left != ''">
2335								<xsl:choose>
2336									<xsl:when test="@fo:text-indent and substring(@fo:text-indent,1,1)='-'">
2337										<字:左_410E>
2338											<字:绝对_4107>
2339												<xsl:variable name="marginLeft" select="fun:Convert2uofUnit(@fo:margin-left)"/>
2340												<xsl:variable name="textIndent" select="fun:Convert2uofUnit(@fo:text-indent)"/>
2341												<xsl:attribute name="值_410F"><xsl:value-of select="$marginLeft + $textIndent"/></xsl:attribute>
2342											</字:绝对_4107>
2343										</字:左_410E>
2344									</xsl:when>
2345									<xsl:otherwise>
2346										<字:左_410E>
2347											<字:绝对_4107>
2348												<xsl:attribute name="值_410F"><xsl:value-of select="fun:Convert2uofUnit(@fo:margin-left)"/></xsl:attribute>
2349											</字:绝对_4107>
2350										</字:左_410E>
2351									</xsl:otherwise>
2352								</xsl:choose>
2353							</xsl:if>
2354							<xsl:if test="@fo:text-indent != ''">
2355								<字:首行_4111>
2356									<字:绝对_4107>
2357										<xsl:attribute name="值_410F"><xsl:value-of select="fun:Convert2uofUnit(@fo:text-indent)"/></xsl:attribute>
2358									</字:绝对_4107>
2359								</字:首行_4111>
2360							</xsl:if>
2361						</xsl:for-each>
2362					</xsl:element>
2363				</xsl:if>
2364			</xsl:when>
2365			<xsl:otherwise>
2366				<xsl:for-each select="style:list-level-properties">
2367					<xsl:element name="字:缩进_411D">
2368						<xsl:if test="@text:space-before != ''">
2369							<xsl:choose>
2370								<xsl:when test="@text:min-label-width and substring(@text:min-label-width,1,1)='-'">
2371									<字:左_410E>
2372										<字:绝对_4107>
2373											<xsl:variable name="marginLeft" select="fun:Convert2uofUnit(@text:space-before)"/>
2374											<xsl:variable name="textIndent" select="fun:Convert2uofUnit(@text:min-label-width)"/>
2375											<xsl:attribute name="值_410F"><xsl:value-of select="$marginLeft + $textIndent"/></xsl:attribute>
2376										</字:绝对_4107>
2377									</字:左_410E>
2378								</xsl:when>
2379								<xsl:otherwise>
2380									<字:左_410E>
2381										<字:绝对_4107>
2382											<xsl:attribute name="值_410F"><xsl:value-of select="fun:Convert2uofUnit(@text:space-before)"/></xsl:attribute>
2383										</字:绝对_4107>
2384									</字:左_410E>
2385								</xsl:otherwise>
2386							</xsl:choose>
2387						</xsl:if>
2388						<xsl:if test="@text:min-label-width != ''">
2389							<字:首行_4111>
2390								<字:绝对_4107>
2391									<xsl:attribute name="值_410F"><xsl:value-of select="fun:Convert2uofUnit(@text:min-label-width)"/></xsl:attribute>
2392								</字:绝对_4107>
2393							</字:首行_4111>
2394						</xsl:if>
2395					</xsl:element>
2396				</xsl:for-each>
2397			</xsl:otherwise>
2398		</xsl:choose>
2399	</xsl:template>
2400	<xsl:template name="字:制表符位置-list">
2401		<xsl:if test="style:list-level-properties/*/@text:list-tab-stop-position">
2402			<xsl:element name="字:制表符位置_411E">
2403				<xsl:variable name="pos" select="fun:Convert2uofUnit(style:list-level-properties/*/@text:list-tab-stop-position)"/>
2404				<xsl:value-of select="format-number(number($pos),'#.00')"/>
2405			</xsl:element>
2406		</xsl:if>
2407	</xsl:template>
2408	<xsl:template name="字:起始编号-list">
2409		<xsl:if test="@text:start-value">
2410			<xsl:element name="字:起始编号_411F">
2411				<xsl:value-of select="@text:start-value"/>
2412			</xsl:element>
2413		</xsl:if>
2414	</xsl:template>
2415	<xsl:template name="字:正规格式-list">
2416		<xsl:if test="@text:num-regular-exp">
2417			<xsl:element name="字:是否使用正规格式_4120">
2418				<xsl:choose>
2419					<xsl:when test="@text:num-regular-exp='true'or @text:num-regular-exp='1'">true</xsl:when>
2420					<xsl:otherwise>false</xsl:otherwise>
2421				</xsl:choose>
2422			</xsl:element>
2423		</xsl:if>
2424	</xsl:template>
2425	<xsl:template name="字:级别-list">
2426		<xsl:if test="not(number(@text:level)=10)">
2427			<xsl:element name="字:级别_4112">
2428				<xsl:attribute name="级别值_4121"><xsl:value-of select="number(@text:level)"/></xsl:attribute>
2429				<xsl:for-each select="style:list-level-properties/style:list-level-label-alignment">
2430					<xsl:if test="@text:label-followed-by">
2431						<xsl:element name="字:尾随字符_4114">
2432							<xsl:choose>
2433								<xsl:when test="@text:label-followed-by = 'listtab'">tab</xsl:when>
2434								<xsl:when test="@text:label-followed-by = 'space'">space</xsl:when>
2435								<xsl:otherwise>none</xsl:otherwise>
2436							</xsl:choose>
2437						</xsl:element>
2438					</xsl:if>
2439				</xsl:for-each>
2440				<xsl:if test="style:list-level-properties/@fo:text-align">
2441					<xsl:element name="字:编号对齐方式_4113">
2442						<xsl:variable name="vv">
2443							<xsl:value-of select="style:list-level-properties/@fo:text-align"/>
2444						</xsl:variable>
2445						<xsl:choose>
2446							<xsl:when test="$vv='center' ">center</xsl:when>
2447							<xsl:when test="$vv='end' ">right</xsl:when>
2448							<xsl:otherwise>left</xsl:otherwise>
2449						</xsl:choose>
2450					</xsl:element>
2451				</xsl:if>
2452				<xsl:call-template name="字:项目符号-list"/>
2453				<xsl:call-template name="字:符号字体-list"/>
2454				<xsl:call-template name="字:编号格式-list"/>
2455				<xsl:call-template name="字:编号格式表示-list"/>
2456				<xsl:call-template name="字:图片符号引用-list"/>
2457				<xsl:call-template name="字:缩进-list"/>
2458				<xsl:call-template name="字:制表符位置-list"/>
2459				<xsl:call-template name="字:起始编号-list"/>
2460				<xsl:call-template name="字:正规格式-list"/>
2461			</xsl:element>
2462		</xsl:if>
2463	</xsl:template>
2464	<xsl:template match="text:list-level-style-bullet" mode="liststyle">
2465		<xsl:call-template name="字:级别-list"/>
2466	</xsl:template>
2467	<xsl:template match="text:list-level-style-image" mode="liststyle">
2468		<xsl:call-template name="字:级别-list"/>
2469	</xsl:template>
2470	<xsl:template match="text:list-level-style-number" mode="liststyle">
2471		<xsl:call-template name="字:级别-list"/>
2472	</xsl:template>
2473	<xsl:template match="text:list-style" mode="liststyle">
2474		<xsl:element name="字:自动编号_4124">
2475			<xsl:attribute name="标识符_4100"><xsl:value-of select="concat(@style:name,'_num')"/></xsl:attribute>
2476			<xsl:if test=".//@text:style-name">
2477				<xsl:attribute name="名称_4122"><xsl:value-of select=".//@text:style-name"/></xsl:attribute>
2478			</xsl:if>
2479			<xsl:for-each select="*">
2480				<xsl:apply-templates mode="liststyle" select="."/>
2481			</xsl:for-each>
2482		</xsl:element>
2483	</xsl:template>
2484	<xsl:template name="AutoNumbers_text">
2485		<xsl:element name="式样:自动编号集_990E">
2486			<xsl:for-each select="/office:document//text:list-style">
2487				<xsl:apply-templates mode="liststyle" select="."/>
2488			</xsl:for-each>
2489		</xsl:element>
2490	</xsl:template>
2491	<xsl:template name="字:宽度-texttable">
2492		<xsl:if test="style:table-properties/@style:width or style:table-properties/@style:rel-width">
2493			<xsl:element name="字:宽度_41A1">
2494				<xsl:if test="style:table-properties/@style:width">
2495					<xsl:attribute name="绝对宽度_41BF"><xsl:value-of select="fun:Convert2uofUnit(style:table-properties/@style:width)"/></xsl:attribute>
2496				</xsl:if>
2497				<xsl:if test="style:table-properties/@style:rel-width">
2498					<xsl:attribute name="相对宽度_41C0"><xsl:value-of select="number(substring-before(style:table-properties/@style:rel-width,'%'))"/></xsl:attribute>
2499				</xsl:if>
2500			</xsl:element>
2501		</xsl:if>
2502	</xsl:template>
2503	<xsl:template name="字:对齐-texttable">
2504		<xsl:if test="style:table-properties/@table:align">
2505			<xsl:element name="字:对齐_41C3">
2506				<xsl:choose>
2507					<xsl:when test="style:table-properties/@table:align='right'">right</xsl:when>
2508					<xsl:when test="style:table-properties/@table:align='center'">center</xsl:when>
2509					<xsl:otherwise>left</xsl:otherwise>
2510				</xsl:choose>
2511			</xsl:element>
2512		</xsl:if>
2513	</xsl:template>
2514	<xsl:template name="字:左缩进-texttable">
2515		<xsl:if test="style:table-properties/@fo:margin-left">
2516			<xsl:element name="字:左缩进_41C4">
2517				<xsl:value-of select="fun:Convert2uofUnit(style:table-properties/@fo:margin-left)"/>
2518			</xsl:element>
2519		</xsl:if>
2520	</xsl:template>
2521	<xsl:template name="字:绕排-texttable">
2522		<xsl:param name="Type"/>
2523		<字:绕排_41C5>
2524			<xsl:choose>
2525				<xsl:when test="@style:wrap= 'parallel'">around</xsl:when>
2526				<xsl:when test="$Type = 'parallel'">around</xsl:when>
2527				<xsl:otherwise>none</xsl:otherwise>
2528			</xsl:choose>
2529		</字:绕排_41C5>
2530	</xsl:template>
2531	<xsl:template name="字:绕排边距-texttable">
2532		<xsl:if test="style:table-properties/@fo:margin-top or style:table-properties/@fo:margin-left or style:table-properties/@fo:margin-right or style:table-properties/@fo:margin-bottom">
2533			<xsl:element name="字:绕排边距_41C6">
2534				<xsl:if test="style:table-properties/@fo:margin-top">
2535					<xsl:attribute name="上_C609"><xsl:value-of select="fun:Convert2uofUnit(style:table-properties/@fo:margin-top)"/></xsl:attribute>
2536				</xsl:if>
2537				<xsl:if test="style:table-properties/@fo:margin-left">
2538					<xsl:attribute name="左_C608"><xsl:value-of select="fun:Convert2uofUnit(style:table-properties/@fo:margin-left)"/></xsl:attribute>
2539				</xsl:if>
2540				<xsl:if test="style:table-properties/@fo:margin-right">
2541					<xsl:attribute name="右_C60A"><xsl:value-of select="fun:Convert2uofUnit(style:table-properties/@fo:margin-right)"/></xsl:attribute>
2542				</xsl:if>
2543				<xsl:if test="style:table-properties/@fo:margin-bottom">
2544					<xsl:attribute name="下_C60B"><xsl:value-of select="fun:Convert2uofUnit(style:table-properties/@fo:margin-bottom)"/></xsl:attribute>
2545				</xsl:if>
2546			</xsl:element>
2547		</xsl:if>
2548	</xsl:template>
2549	<xsl:template name="字:位置-texttable">
2550		<xsl:if test="style:table-properties/@style:horizontal-rel | style:table-properties/@style:vertical-rel">
2551			<xsl:variable name="horizontalRel">
2552				<xsl:value-of select="style:table-properties/@style:horizontal-rel"/>
2553			</xsl:variable>
2554			<xsl:variable name="verticalRel">
2555				<xsl:value-of select="style:table-properties/@style:vertical-rel"/>
2556			</xsl:variable>
2557			<字:位置_41C7>
2558				<uof:水平_4106>
2559					<xsl:attribute name="相对于_410C"><xsl:choose><xsl:when test="horizontalRel='page-content'">margin</xsl:when><xsl:when test="horizontalRel='page'">page</xsl:when><xsl:when test="horizontalRel='char'">char</xsl:when><xsl:when test="horizontalRel='paragraph' or horizontalRel='paragraph-content'">column</xsl:when><xsl:otherwise>column</xsl:otherwise></xsl:choose></xsl:attribute>
2560					<uof:相对_4109>
2561						<xsl:attribute name="参考点_410A"><xsl:choose><xsl:when test="style:table-properties/@style:horizontal-pos='from-left'">left</xsl:when><xsl:when test="style:table-properties/@style:horizontal-pos != ''"><xsl:value-of select="style:table-properties/@style:horizontal-pos"/></xsl:when><xsl:otherwise>left</xsl:otherwise></xsl:choose></xsl:attribute>
2562						<!--<xsl:if test="style:table-properties/@svg:x">
2563							<xsl:attribute name="值_410B"><xsl:value-of select="fun:Convert2uofUnit(style:table-properties/@svg:x)"/></xsl:attribute>
2564						</xsl:if>-->
2565					</uof:相对_4109>
2566				</uof:水平_4106>
2567				<uof:垂直_410D>
2568					<xsl:attribute name="相对于_410C"><xsl:choose><xsl:when test="verticalRel='page-content'">margin</xsl:when><xsl:when test="verticalRel='line'">line</xsl:when><xsl:when test="verticalRel='page'">page</xsl:when><xsl:when test="verticalRel='paragraph' or verticalRel='paragraph-content'">paragraph</xsl:when><xsl:otherwise>paragraph</xsl:otherwise></xsl:choose></xsl:attribute>
2569					<uof:相对_4109>
2570						<xsl:attribute name="参考点_410A"><xsl:choose><xsl:when test="style:table-properties/@style:vertical-pos='from-top'">top</xsl:when><xsl:when test="style:table-properties/@style:vertical-pos != ''"><xsl:value-of select="style:table-properties/@style:vertical-pos"/></xsl:when><xsl:otherwise>top</xsl:otherwise></xsl:choose></xsl:attribute>
2571						<!--<xsl:if test="style:table-properties/@svg:y">
2572							<xsl:attribute name="值_410B"><xsl:value-of select="fun:Convert2uofUnit(style:table-properties/@svg:y)"/></xsl:attribute>
2573						</xsl:if>-->
2574					</uof:相对_4109>
2575				</uof:垂直_410D>
2576			</字:位置_41C7>
2577		</xsl:if>
2578	</xsl:template>
2579	<xsl:template name="字:边框-texttable">
2580		<xsl:element name="字:文字表边框_4227">
2581			<xsl:for-each select="style:table-properties">
2582				<!-- only support shadow -->
2583				<xsl:if test="@style:shadow[.!='none']">
2584					<xsl:variable name="shadowAngle">
2585						<xsl:call-template name="getShadowAngle">
2586							<xsl:with-param name="style_shadow" select="@style:shadow"/>
2587						</xsl:call-template>
2588					</xsl:variable>
2589					<xsl:attribute name="阴影类型_C645" select="$shadowAngle"/>
2590				</xsl:if>
2591				<xsl:call-template name="Border"/>
2592			</xsl:for-each>
2593		</xsl:element>
2594	</xsl:template>
2595	<xsl:template name="字:填充-texttable">
2596		<xsl:if test="style:table-properties/style:background-image/office:binary-data or style:table-properties/@fo:background-color  or style:page-layout-properties/@fo:background-color">
2597			<字:填充_4134>
2598				<xsl:for-each select="style:table-properties">
2599					<xsl:call-template name="UOFFill"/>
2600				</xsl:for-each>
2601			</字:填充_4134>
2602		</xsl:if>
2603	</xsl:template>
2604	<xsl:template name="字:自动调整大小-texttable">
2605		<xsl:element name="字:是否自动调整大小_41C8">true</xsl:element>
2606	</xsl:template>
2607	<xsl:template name="字:默认单元格边距-texttable">
2608		<xsl:element name="字:默认单元格边距_41CA">
2609			<xsl:attribute name="上_C609">0.10</xsl:attribute>
2610			<xsl:attribute name="左_C608">0.10</xsl:attribute>
2611			<xsl:attribute name="右_C60A">0.10</xsl:attribute>
2612			<xsl:attribute name="下_C60B">0.10</xsl:attribute>
2613		</xsl:element>
2614	</xsl:template>
2615	<xsl:template name="字:默认单元格间距-texttable">
2616		<xsl:if test="style:table-properties/@style:table-cell-spacing">
2617			<xsl:element name="字:默认单元格间距_41CB">
2618				<xsl:value-of select="fun:Convert2uofUnit(style:table-properties/@style:table-cell-spacing)"/>
2619			</xsl:element>
2620		</xsl:if>
2621	</xsl:template>
2622	<xsl:template name="TextTableAttribute">
2623		<xsl:param name="Type"/>
2624		<xsl:call-template name="字:宽度-texttable"/>
2625		<xsl:call-template name="字:对齐-texttable"/>
2626		<xsl:call-template name="字:左缩进-texttable"/>
2627		<xsl:call-template name="字:绕排-texttable">
2628			<xsl:with-param name="Type" select="$Type"/>
2629		</xsl:call-template>
2630		<xsl:call-template name="字:绕排边距-texttable"/>
2631		<xsl:call-template name="字:位置-texttable"/>
2632		<xsl:call-template name="字:边框-texttable"/>
2633		<xsl:call-template name="字:填充-texttable"/>
2634		<xsl:call-template name="字:自动调整大小-texttable"/>
2635		<xsl:call-template name="字:默认单元格边距-texttable"/>
2636		<xsl:call-template name="字:默认单元格间距-texttable"/>
2637	</xsl:template>
2638	<xsl:template name="OneTextTableStyle">
2639		<xsl:param name="Type"/>
2640		<xsl:element name="式样:文字表式样_9918">
2641			<xsl:choose>
2642				<xsl:when test="$Type='default'">
2643					<xsl:attribute name="标识符_4100"><xsl:value-of select="string('DefaultTable')"/></xsl:attribute>
2644					<xsl:attribute name="名称_4101"><xsl:value-of select="string('DefaultTable')"/></xsl:attribute>
2645				</xsl:when>
2646				<xsl:when test="$Type='parallel'">
2647					<xsl:attribute name="标识符_4100"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
2648				</xsl:when>
2649				<xsl:otherwise>
2650					<xsl:attribute name="标识符_4100"><xsl:value-of select="@style:name"/></xsl:attribute>
2651					<xsl:attribute name="名称_4101"><xsl:value-of select="@style:name"/></xsl:attribute>
2652				</xsl:otherwise>
2653			</xsl:choose>
2654			<xsl:attribute name="类型_4102"><xsl:choose><xsl:when test="$Type='parallel'"><xsl:value-of select="'auto'"/></xsl:when><xsl:otherwise><xsl:value-of select="$Type"/></xsl:otherwise></xsl:choose></xsl:attribute>
2655			<xsl:if test="@style:parent-style-name">
2656				<xsl:attribute name="基式样引用_4104"><xsl:value-of select="@style:parent-style-name"/></xsl:attribute>
2657			</xsl:if>
2658			<xsl:if test="@style:display-name">
2659				<xsl:attribute name="别名_4103"><xsl:value-of select="@style:display-name"/></xsl:attribute>
2660			</xsl:if>
2661			<xsl:call-template name="TextTableAttribute">
2662				<xsl:with-param name="Type" select="$Type"/>
2663			</xsl:call-template>
2664		</xsl:element>
2665	</xsl:template>
2666	<xsl:template name="TextTableStyles">
2667		<xsl:for-each select="office:styles/style:default-style[@style:family='table']">
2668			<xsl:call-template name="OneTextTableStyle">
2669				<xsl:with-param name="Type">
2670					<xsl:value-of select="string('default')"/>
2671				</xsl:with-param>
2672			</xsl:call-template>
2673		</xsl:for-each>
2674		<xsl:for-each select="office:styles/style:style[@style:family='table']">
2675			<xsl:call-template name="OneTextTableStyle">
2676				<xsl:with-param name="Type">
2677					<xsl:value-of select="string('custom')"/>
2678				</xsl:with-param>
2679			</xsl:call-template>
2680		</xsl:for-each>
2681		<xsl:for-each select="office:automatic-styles/style:style[@style:family='table']">
2682			<xsl:call-template name="OneTextTableStyle">
2683				<xsl:with-param name="Type">
2684					<xsl:value-of select="string('auto')"/>
2685				</xsl:with-param>
2686			</xsl:call-template>
2687		</xsl:for-each>
2688		<!--deal with the table:table's attribute style:wrap-->
2689		<xsl:for-each select="office:body/office:text/table:table[@style:wrap = 'parallel']">
2690			<xsl:variable name="styleName" select="@table:style-name"/>
2691			<xsl:for-each select="key('Style',$styleName)">
2692				<xsl:call-template name="OneTextTableStyle">
2693					<xsl:with-param name="Type">
2694						<xsl:value-of select="string('parallel')"/>
2695					</xsl:with-param>
2696				</xsl:call-template>
2697			</xsl:for-each>
2698		</xsl:for-each>
2699	</xsl:template>
2700	<xsl:template name="表:水平对齐方式-tablecell">
2701		<xsl:variable name="horizontalTableCell">
2702			<xsl:choose>
2703				<xsl:when test="style:table-cell-properties/@style:text-align-source='value-type'">
2704					<xsl:value-of select="string('general')"/>
2705				</xsl:when>
2706				<xsl:when test="style:paragraph-properties/@fo:text-align = 'auto'">
2707					<xsl:value-of select="string('general')"/>
2708				</xsl:when>
2709				<xsl:when test="style:paragraph-properties/@fo:text-align = 'justify'">
2710					<xsl:value-of select="string('justify')"/>
2711				</xsl:when>
2712				<xsl:when test="style:paragraph-properties/@fo:text-align = 'left'">
2713					<xsl:value-of select="string('left')"/>
2714				</xsl:when>
2715				<xsl:when test="style:paragraph-properties/@fo:text-align = 'center'">
2716					<xsl:value-of select="string('center')"/>
2717				</xsl:when>
2718				<xsl:when test="style:paragraph-properties/@fo:text-align = 'right'">
2719					<xsl:value-of select="string('right')"/>
2720				</xsl:when>
2721				<xsl:when test="style:table-cell-properties/@style:repeat-content='true'">
2722					<xsl:value-of select="string('fill')"/>
2723				</xsl:when>
2724				<xsl:when test="style:paragraph-properties/@fo:text-align = 'start'">
2725					<xsl:value-of select="string('left')"/>
2726				</xsl:when>
2727				<xsl:when test="style:paragraph-properties/@fo:text-align = 'end'">
2728					<xsl:value-of select="string('right')"/>
2729				</xsl:when>
2730			</xsl:choose>
2731		</xsl:variable>
2732		<xsl:if test="$horizontalTableCell != ''">
2733			<表:水平对齐方式_E700>
2734				<xsl:value-of select="$horizontalTableCell"/>
2735			</表:水平对齐方式_E700>
2736		</xsl:if>
2737	</xsl:template>
2738	<xsl:template name="表:垂直对齐方式-tablecell">
2739		<xsl:variable name="verticalTableCell">
2740			<xsl:choose>
2741				<xsl:when test="style:table-cell-properties/@style:vertical-align='top'">
2742					<xsl:value-of select="string('top')"/>
2743				</xsl:when>
2744				<xsl:when test="style:table-cell-properties/@style:vertical-align='middle'">
2745					<xsl:value-of select="string('center')"/>
2746				</xsl:when>
2747				<xsl:when test="style:table-cell-properties/@style:vertical-align='bottom'">
2748					<xsl:value-of select="string('bottom')"/>
2749				</xsl:when>
2750				<xsl:when test="style:table-cell-properties/@style:vertical-align='auto'">
2751					<xsl:choose>
2752						<xsl:when test="style:table-cell-properties/@style:rotation-angle &gt;= 270">center</xsl:when>
2753						<xsl:otherwise>bottom</xsl:otherwise>
2754					</xsl:choose>
2755				</xsl:when>
2756			</xsl:choose>
2757		</xsl:variable>
2758		<xsl:if test="$verticalTableCell != ''">
2759			<表:垂直对齐方式_E701>
2760				<xsl:value-of select="$verticalTableCell"/>
2761			</表:垂直对齐方式_E701>
2762		</xsl:if>
2763	</xsl:template>
2764	<xsl:template name="表:缩进-tablecell">
2765		<!--UOF的缩进以字符为单位,且限于0~15个字符之间-->
2766		<!--ODF的缩进以磅和厘米为单位,且目前软件只支持左缩进-->
2767		<xsl:if test="style:paragraph-properties/@fo:margin-left and style:paragraph-properties/@fo:text-align = 'start'">
2768			<表:缩进_E702>
2769				<xsl:variable name="margin" select="fun:Convert2uofUnit(style:paragraph-properties/@fo:margin-left)"/>
2770				<xsl:choose>
2771					<xsl:when test="$margin &gt; 15">15</xsl:when>
2772					<xsl:when test="$margin &lt; 0">0</xsl:when>
2773					<xsl:otherwise>
2774						<xsl:value-of select="$margin"/>
2775					</xsl:otherwise>
2776				</xsl:choose>
2777			</表:缩进_E702>
2778		</xsl:if>
2779	</xsl:template>
2780	<xsl:template name="表:文字排列方向-tablecell">
2781		<xsl:if test="style:table-cell-properties/@style:direction">
2782			<表:文字排列方向_E703>
2783				<xsl:choose>
2784					<xsl:when test="style:table-cell-properties/@style:direction = 'ttb'">r2l-t2b-0e-90w</xsl:when>
2785					<xsl:otherwise>t2b-l2r-0e-0w</xsl:otherwise>
2786				</xsl:choose>
2787			</表:文字排列方向_E703>
2788		</xsl:if>
2789	</xsl:template>
2790	<xsl:template name="表:文字旋转角度-tablecell">
2791		<xsl:if test="style:table-cell-properties/@style:rotation-angle">
2792			<表:文字旋转角度_E704>
2793				<xsl:choose>
2794					<xsl:when test="style:table-cell-properties/@style:rotation-angle &lt;= 90">
2795						<xsl:value-of select="style:table-cell-properties/@style:rotation-angle"/>
2796					</xsl:when>
2797					<xsl:otherwise>
2798						<xsl:choose>
2799							<xsl:when test="(style:table-cell-properties/@style:rotation-angle &lt; 360) and not(style:table-cell-properties/@style:rotation-angle &lt; 270)">
2800								<xsl:value-of select="style:table-cell-properties/@style:rotation-angle - 360"/>
2801							</xsl:when>
2802							<xsl:otherwise>
2803								<xsl:value-of select="180 - style:table-cell-properties/@style:rotation-angle"/>
2804							</xsl:otherwise>
2805						</xsl:choose>
2806					</xsl:otherwise>
2807				</xsl:choose>
2808			</表:文字旋转角度_E704>
2809		</xsl:if>
2810	</xsl:template>
2811	<xsl:template name="表:自动换行-tablecell">
2812		<xsl:if test="style:table-cell-properties/@fo:wrap-option">
2813			<表:是否自动换行_E705>
2814				<xsl:choose>
2815					<xsl:when test="style:table-cell-properties/@fo:wrap-option = 'wrap'">true</xsl:when>
2816					<xsl:otherwise>false</xsl:otherwise>
2817				</xsl:choose>
2818			</表:是否自动换行_E705>
2819		</xsl:if>
2820	</xsl:template>
2821	<xsl:template name="表:缩小字体填充-tablecell">
2822		<xsl:if test="style:table-cell-properties/@style:shrink-to-fit">
2823			<表:是否缩小字体填充_E706>
2824				<xsl:choose>
2825					<xsl:when test="style:table-cell-properties/@style:shrink-to-fit = 'true'">true</xsl:when>
2826					<xsl:otherwise>false</xsl:otherwise>
2827				</xsl:choose>
2828			</表:是否缩小字体填充_E706>
2829		</xsl:if>
2830	</xsl:template>
2831	<xsl:template name="表:对齐格式-tablecell">
2832		<表:对齐格式_E7A8>
2833			<xsl:call-template name="表:水平对齐方式-tablecell"/>
2834			<xsl:call-template name="表:垂直对齐方式-tablecell"/>
2835			<xsl:call-template name="表:缩进-tablecell"/>
2836			<xsl:call-template name="表:文字排列方向-tablecell"/>
2837			<xsl:call-template name="表:文字旋转角度-tablecell"/>
2838			<xsl:call-template name="表:自动换行-tablecell"/>
2839			<xsl:call-template name="表:缩小字体填充-tablecell"/>
2840		</表:对齐格式_E7A8>
2841	</xsl:template>
2842	<xsl:template name="NumberElementAttribute">
2843		<xsl:if test="@number:transliteration-format='一' and @number:transliteration-style='short'">[NatNum1]</xsl:if>
2844		<xsl:if test="@number:transliteration-format='一' and @number:transliteration-style='medium'">[NatNum7]</xsl:if>
2845		<xsl:if test="@number:transliteration-format='一' and @number:transliteration-style='long'">[NatNum4]</xsl:if>
2846		<xsl:if test="@number:transliteration-format='壹' and @number:transliteration-style='short'">[NatNum2]</xsl:if>
2847		<xsl:if test="@number:transliteration-format='壹' and @number:transliteration-style='medium'">[NatNum8]</xsl:if>
2848		<xsl:if test="@number:transliteration-format='壹' and @number:transliteration-style='long'">[NatNum5]</xsl:if>
2849		<xsl:if test="@number:transliteration-format='1' and @number:transliteration-style='short'">[NatNum3]</xsl:if>
2850		<xsl:if test="@number:transliteration-format='1' and @number:transliteration-style='medium'">[NatNum0]</xsl:if>
2851		<xsl:if test="@number:transliteration-format='1' and @number:transliteration-style='long'">[NatNum6]</xsl:if>
2852		<xsl:if test="@number:transliteration-format='1' and @number:transliteration-style='short'">[NatNum0]</xsl:if>
2853		<xsl:if test="@number:transliteration-format='1' and @number:transliteration-style='medium'">[NatNum0]</xsl:if>
2854		<xsl:if test="@number:transliteration-format='1' and @number:transliteration-style='long'">[NatNum0]</xsl:if>
2855		<xsl:if test="@number:transliteration-language='zh' and @number:transliteration-country='CN'">[$-804]</xsl:if>
2856	</xsl:template>
2857	<xsl:template name="GeneralCurrencyFormat">
2858		<xsl:choose>
2859			<xsl:when test="text()='¥' and @number:language='zh' and @number:country='CN'">[$¥-804]</xsl:when>
2860			<xsl:when test="text()='US$' and @number:language='zh' and @number:country='CN'">[$US$-804]</xsl:when>
2861			<xsl:when test="text()='$' and @number:language='en' and @number:country='US'">[$$-409]</xsl:when>
2862			<xsl:when test="text()='$' and @number:language='es' and @number:country='AR'">[$$-2C0A]</xsl:when>
2863			<xsl:when test="text()='$' and @number:language='fr' and @number:country='CA'">[$$-C0C]</xsl:when>
2864			<xsl:when test="text()='CNY'">[$CNY]</xsl:when>
2865			<xsl:when test="text()='AFA'">[$AFA]</xsl:when>
2866			<xsl:when test="text()='CCC'">CCC</xsl:when>
2867			<xsl:otherwise>¥</xsl:otherwise>
2868		</xsl:choose>
2869	</xsl:template>
2870	<xsl:template name="GeneralColorFormat">
2871		<xsl:choose>
2872			<xsl:when test="@fo:color='#000000'">[Black]</xsl:when>
2873			<xsl:when test="@fo:color='#0000ff'">[Blue]</xsl:when>
2874			<xsl:when test="@fo:color='#00ffff'">[Cyan]</xsl:when>
2875			<xsl:when test="@fo:color='#00ff00'">[Green]</xsl:when>
2876			<xsl:when test="@fo:color='#ff00ff'">[Magenta]</xsl:when>
2877			<xsl:when test="@fo:color='#ff0000'">[Red]</xsl:when>
2878			<xsl:when test="@fo:color='#ffffff'">[White]</xsl:when>
2879			<xsl:when test="@fo:color='#ffff00'">[Yellow]</xsl:when>
2880			<xsl:otherwise>[Black]</xsl:otherwise>
2881		</xsl:choose>
2882	</xsl:template>
2883	<xsl:template name="GeneralNumberFormat">
2884		<xsl:choose>
2885			<xsl:when test="name(.)='style:text-properties'">
2886				<xsl:call-template name="GeneralColorFormat"/>
2887			</xsl:when>
2888			<xsl:when test="name(.)='number:text'">"<xsl:value-of select="text()"/>"</xsl:when>
2889			<xsl:when test="name(.)='number:text-content' ">@</xsl:when>
2890			<xsl:when test="name(.)='number:boolean'">boolean</xsl:when>
2891			<xsl:when test="name(.)='number:currency-symbol'">
2892				<xsl:call-template name="GeneralCurrencyFormat"/>
2893			</xsl:when>
2894			<xsl:when test="name(.)='number:fraction' or name(.)='number:number' or name(.)='number:scientific-number'">
2895				<xsl:if test="@number:min-integer-digits and not(@number:grouping)">
2896					<xsl:choose>
2897						<xsl:when test="@number:min-integer-digits='0'">#</xsl:when>
2898						<xsl:when test="@number:min-integer-digits='1'">0</xsl:when>
2899						<xsl:when test="@number:min-integer-digits='2'">00</xsl:when>
2900						<xsl:when test="@number:min-integer-digits='3'">000</xsl:when>
2901						<xsl:when test="@number:min-integer-digits='4'">0000</xsl:when>
2902						<xsl:when test="@number:min-integer-digits='5'">00000</xsl:when>
2903						<xsl:when test="@number:min-integer-digits='6'">000000</xsl:when>
2904						<xsl:otherwise>0</xsl:otherwise>
2905					</xsl:choose>
2906				</xsl:if>
2907				<xsl:if test="@number:min-integer-digits and @number:grouping">
2908					<xsl:choose>
2909						<xsl:when test="@number:min-integer-digits='0'">#,###</xsl:when>
2910						<xsl:when test="@number:min-integer-digits='1'">#,##0</xsl:when>
2911						<xsl:when test="@number:min-integer-digits='2'">#,#00</xsl:when>
2912						<xsl:when test="@number:min-integer-digits='3'">#,000</xsl:when>
2913						<xsl:when test="@number:min-integer-digits='4'">##0,000</xsl:when>
2914						<xsl:when test="@number:min-integer-digits='5'">#00,000</xsl:when>
2915						<xsl:when test="@number:min-integer-digits='6'">#,000,000</xsl:when>
2916						<xsl:when test="@number:min-integer-digits='7'">##0,000,000</xsl:when>
2917						<xsl:when test="@number:min-integer-digits='8'">#,#00,000,000</xsl:when>
2918						<xsl:otherwise>#,##0</xsl:otherwise>
2919					</xsl:choose>
2920				</xsl:if>
2921				<xsl:if test="@number:decimal-places and not(@number:decimal-replacement)">
2922					<xsl:choose>
2923						<xsl:when test="@number:decimal-places='0'"/>
2924						<xsl:when test="@number:decimal-places='1'">.0</xsl:when>
2925						<xsl:when test="@number:decimal-places='2'">.00</xsl:when>
2926						<xsl:when test="@number:decimal-places='3'">.000</xsl:when>
2927						<xsl:when test="@number:decimal-places='4'">.0000</xsl:when>
2928						<xsl:when test="@number:decimal-places='5'">.00000</xsl:when>
2929						<xsl:when test="@number:decimal-places='6'">.000000</xsl:when>
2930						<xsl:otherwise>.00</xsl:otherwise>
2931					</xsl:choose>
2932				</xsl:if>
2933				<xsl:if test="@number:decimal-places and @number:decimal-replacement">
2934					<xsl:choose>
2935						<xsl:when test="@number:decimal-places='0'"/>
2936						<xsl:when test="@number:decimal-places='1'">.#</xsl:when>
2937						<xsl:when test="@number:decimal-places='2'">.##</xsl:when>
2938						<xsl:when test="@number:decimal-places='3'">.###</xsl:when>
2939						<xsl:when test="@number:decimal-places='4'">.####</xsl:when>
2940						<xsl:when test="@number:decimal-places='5'">.#####</xsl:when>
2941						<xsl:when test="@number:decimal-places='6'">.######</xsl:when>
2942						<xsl:otherwise>.##</xsl:otherwise>
2943					</xsl:choose>
2944				</xsl:if>
2945				<xsl:if test="@number:display-factor">
2946					<xsl:choose>
2947						<xsl:when test="@number:display-factor='1000'">,</xsl:when>
2948						<xsl:when test="@number:display-factor='1000000'">,,</xsl:when>
2949						<xsl:when test="@number:display-factor='1000000000'">,,,</xsl:when>
2950						<xsl:when test="@number:display-factor='1000000000000000'">,,,,</xsl:when>
2951						<xsl:when test="@number:display-factor='1000000000000000000'">,,,,,</xsl:when>
2952						<xsl:when test="@number:display-factor='1000000000000000000000'">,,,,,</xsl:when>
2953						<xsl:otherwise/>
2954					</xsl:choose>
2955				</xsl:if>
2956				<xsl:if test="@number:min-exponent-digits">
2957					<xsl:choose>
2958						<xsl:when test="@number:min-exponent-digits='1'">E+0</xsl:when>
2959						<xsl:when test="@number:min-exponent-digits='2'">E+00</xsl:when>
2960						<xsl:when test="@number:min-exponent-digits='3'">E+000</xsl:when>
2961						<xsl:when test="@number:min-exponent-digits='4'">E+0000</xsl:when>
2962						<xsl:when test="@number:min-exponent-digits='5'">E+00000</xsl:when>
2963						<xsl:when test="@number:min-exponent-digits='6'">E+000000</xsl:when>
2964						<xsl:otherwise>E+00</xsl:otherwise>
2965					</xsl:choose>
2966				</xsl:if>
2967				<xsl:if test="@number:min-numerator-digits">
2968					<xsl:choose>
2969						<xsl:when test="@number:min-numerator-digits='1' "> ?</xsl:when>
2970						<xsl:when test="@number:min-numerator-digits='2' "> ??</xsl:when>
2971						<xsl:when test="@number:min-numerator-digits='3' "> ???</xsl:when>
2972						<xsl:when test="@number:min-numerator-digits='4' "> ????</xsl:when>
2973						<xsl:when test="@number:min-numerator-digits='5' "> ?????</xsl:when>
2974						<xsl:when test="@number:min-numerator-digits='6' "> ??????</xsl:when>
2975						<xsl:otherwise> ???</xsl:otherwise>
2976					</xsl:choose>
2977				</xsl:if>
2978				<xsl:if test="@number:min-denominator-digits">
2979					<xsl:choose>
2980						<xsl:when test="@number:min-denominator-digits='1' ">/?</xsl:when>
2981						<xsl:when test="@number:min-denominator-digits='2' ">/??</xsl:when>
2982						<xsl:when test="@number:min-denominator-digits='3' ">/???</xsl:when>
2983						<xsl:when test="@number:min-denominator-digits='4' ">/????</xsl:when>
2984						<xsl:when test="@number:min-denominator-digits='5' ">/?????</xsl:when>
2985						<xsl:when test="@number:min-denominator-digits='6' ">/??????</xsl:when>
2986						<xsl:otherwise>/???</xsl:otherwise>
2987					</xsl:choose>
2988				</xsl:if>
2989			</xsl:when>
2990			<xsl:when test="name(.)='number:year'">
2991				<xsl:choose>
2992					<xsl:when test="@number:style='long'">YYYY</xsl:when>
2993					<xsl:when test="@number:style='rolong'">KKKKRO</xsl:when>
2994					<xsl:otherwise>YY</xsl:otherwise>
2995				</xsl:choose>
2996			</xsl:when>
2997			<xsl:when test="name(.)='number:month'">
2998				<xsl:choose>
2999					<xsl:when test="@number:style='long' and ../@number:automatic-order='true' and ../@number:format-source='language'">M</xsl:when>
3000					<xsl:when test="@number:style='long' and @number:textual='true'">MMMM</xsl:when>
3001					<xsl:when test="not(@number:style='long') and @number:textual='true'">MMM</xsl:when>
3002					<xsl:when test="@number:style='long' and not(@number:textual)">MM</xsl:when>
3003					<xsl:when test="@number:style='rolong' and @number:textual='true'">MRO</xsl:when>
3004					<xsl:when test="not(@number:style='long') and not(@number:textual)">M</xsl:when>
3005				</xsl:choose>
3006			</xsl:when>
3007			<xsl:when test="name(.)='number:day'">
3008				<xsl:choose>
3009					<xsl:when test="@number:style='long' and ../@number:automatic-order='true' and ../@number:format-source='language'">D</xsl:when>
3010					<xsl:when test="@number:style='long'">DD</xsl:when>
3011					<xsl:when test="@number:style='rolong'">DRO</xsl:when>
3012					<xsl:when test="@number:style='short'">D</xsl:when>
3013					<xsl:otherwise>D</xsl:otherwise>
3014				</xsl:choose>
3015			</xsl:when>
3016			<xsl:when test="name(.)='number:day-of-week'">
3017				<xsl:choose>
3018					<xsl:when test="@number:style='long'">NNNN</xsl:when>
3019					<xsl:otherwise>NNN</xsl:otherwise>
3020				</xsl:choose>
3021			</xsl:when>
3022			<xsl:when test="name(.)='number:quarter'">
3023				<xsl:choose>
3024					<xsl:when test="@number:style='rolong'">QQRO</xsl:when>
3025					<xsl:when test="@number:style='long'">QQ</xsl:when>
3026					<xsl:otherwise>Q</xsl:otherwise>
3027				</xsl:choose>
3028			</xsl:when>
3029			<xsl:when test="name(.)='number:hours'">
3030				<xsl:choose>
3031					<xsl:when test="@number:style='long' and ../@number:truncate-on-overflow='false'">[HH]</xsl:when>
3032					<xsl:when test="@number:style='long'">HH</xsl:when>
3033					<xsl:otherwise>H</xsl:otherwise>
3034				</xsl:choose>
3035			</xsl:when>
3036			<xsl:when test="name(.)='number:minutes'">
3037				<xsl:choose>
3038					<xsl:when test="@number:style='long'">MM</xsl:when>
3039					<xsl:otherwise>M</xsl:otherwise>
3040				</xsl:choose>
3041			</xsl:when>
3042			<xsl:when test="name(.)='number:seconds'">
3043				<xsl:choose>
3044					<xsl:when test="@number:style='long' and @number:decimal-places='2'">SS.00</xsl:when>
3045					<xsl:when test="@number:style='long'">SS</xsl:when>
3046					<xsl:otherwise>S</xsl:otherwise>
3047				</xsl:choose>
3048			</xsl:when>
3049			<xsl:when test="name(.)='number:am-pm'">
3050				<xsl:choose>
3051					<xsl:when test="../@number:language = 'en'">AM/PM</xsl:when>
3052					<xsl:otherwise>上午/下午</xsl:otherwise>
3053				</xsl:choose>
3054			</xsl:when>
3055			<xsl:when test="name(.)='number:week-of-year'">
3056				<xsl:choose>
3057					<xsl:when test="@number:style='long'">WW</xsl:when>
3058					<xsl:otherwise>WW</xsl:otherwise>
3059				</xsl:choose>
3060			</xsl:when>
3061		</xsl:choose>
3062	</xsl:template>
3063	<xsl:template name="NumberFormat">
3064		<xsl:for-each select="key('AllNumberStyle', @style:data-style-name)">
3065			<xsl:variable name="class">
3066				<xsl:choose>
3067					<xsl:when test="name(.)='number:currency-style'">currency</xsl:when>
3068					<xsl:when test="name(.)='number:percentage-style'">percentage</xsl:when>
3069					<xsl:when test="name(.)='number:date-style'">date</xsl:when>
3070					<xsl:when test="name(.)='number:time-style'">time</xsl:when>
3071					<xsl:when test="name(.)='number:boolean-style'">custom</xsl:when>
3072					<xsl:when test="name(.)='number:text-style'">text</xsl:when>
3073					<xsl:when test="name(.)='number:number-style'">
3074						<xsl:choose>
3075							<xsl:when test="number:fraction">fraction</xsl:when>
3076							<xsl:when test="number:scientific-number">scientific</xsl:when>
3077							<xsl:otherwise>number</xsl:otherwise>
3078						</xsl:choose>
3079					</xsl:when>
3080					<xsl:otherwise>general</xsl:otherwise>
3081				</xsl:choose>
3082			</xsl:variable>
3083			<xsl:variable name="classcode">
3084				<xsl:call-template name="NumberElementAttribute"/>
3085				<xsl:for-each select="style:map">
3086					<xsl:variable name="apply-style" select="@style:apply-style-name"/>
3087					<xsl:for-each select="/office:document/office:styles/number:*[@style:name=$apply-style]/* | /office:document/office:automatic-styles/number:*[@style:name=$apply-style]/*">
3088						<xsl:call-template name="GeneralNumberFormat"/>
3089					</xsl:for-each>
3090					<xsl:text>;</xsl:text>
3091				</xsl:for-each>
3092				<xsl:for-each select="*[not(name(.)='style:map')]">
3093					<xsl:call-template name="GeneralNumberFormat"/>
3094				</xsl:for-each>
3095			</xsl:variable>
3096			<xsl:attribute name="分类名称_E740"><xsl:value-of select="$class"/></xsl:attribute>
3097			<xsl:attribute name="格式码_E73F"><xsl:value-of select="$classcode"/></xsl:attribute>
3098		</xsl:for-each>
3099	</xsl:template>
3100	<xsl:template name="OneTableCellStyle">
3101		<xsl:param name="Type"/>
3102		<xsl:element name="式样:单元格式样_9916">
3103			<xsl:choose>
3104				<xsl:when test="$Type='default'">
3105					<xsl:attribute name="标识符_E7AC"><xsl:value-of select="string('DefaultTableCell')"/></xsl:attribute>
3106					<xsl:attribute name="名称_E7AD"><xsl:value-of select="string('DefaultTableCell')"/></xsl:attribute>
3107				</xsl:when>
3108				<xsl:otherwise>
3109					<xsl:attribute name="标识符_E7AC"><xsl:value-of select="@style:name"/></xsl:attribute>
3110					<xsl:attribute name="名称_E7AD"><xsl:value-of select="@style:name"/></xsl:attribute>
3111				</xsl:otherwise>
3112			</xsl:choose>
3113			<xsl:attribute name="类型_E7AE"><xsl:value-of select="$Type"/></xsl:attribute>
3114			<xsl:if test="@style:parent-style-name">
3115				<xsl:attribute name="基式样引用_E827"><xsl:value-of select="@style:parent-style-name"/></xsl:attribute>
3116			</xsl:if>
3117			<!--表:字体格式-->
3118			<xsl:element name="表:字体格式_E7A7">
3119				<xsl:call-template name="UOFTextStyle"/>
3120			</xsl:element>
3121			<!--表:对齐格式-->
3122			<xsl:call-template name="表:对齐格式-tablecell"/>
3123			<xsl:if test="@style:data-style-name">
3124				<表:数字格式_E7A9>
3125					<xsl:call-template name="NumberFormat"/>
3126				</表:数字格式_E7A9>
3127			</xsl:if>
3128			<!--表:边框-->
3129			<xsl:element name="表:边框_4133">
3130				<xsl:for-each select="style:table-cell-properties">
3131					<xsl:if test="@style:shadow[.!='none']">
3132						<xsl:variable name="shadowAngle">
3133							<xsl:call-template name="getShadowAngle">
3134								<xsl:with-param name="style_shadow" select="@style:shadow"/>
3135							</xsl:call-template>
3136						</xsl:variable>
3137						<xsl:attribute name="阴影类型_C645" select="$shadowAngle"/>
3138					</xsl:if>
3139					<xsl:call-template name="Border"/>
3140				</xsl:for-each>
3141			</xsl:element>
3142			<!--表:填充-->
3143			<xsl:if test="style:table-cell-properties/style:background-image/office:binary-data or (style:table-cell-properties/@fo:background-color and not(style:table-cell-properties/@fo:background-color = 'transparent'))">
3144				<xsl:element name="表:填充_E7A3">
3145					<xsl:call-template name="UOFFill"/>
3146				</xsl:element>
3147			</xsl:if>
3148			<xsl:call-template name="create-condition-format"/>
3149		</xsl:element>
3150	</xsl:template>
3151	<xsl:template name="TableCellStyles">
3152		<!--uof式样集里只有单元格式样,因此只针对单元格式样进行对应-->
3153		<!--<xsl:for-each select="office:styles/style:default-style[@style:family='table-cell'or @style:family='table']">-->
3154		<xsl:for-each select="office:styles/style:default-style[@style:family='table-cell']">
3155			<xsl:call-template name="OneTableCellStyle">
3156				<xsl:with-param name="Type">
3157					<xsl:value-of select="string('default')"/>
3158				</xsl:with-param>
3159			</xsl:call-template>
3160		</xsl:for-each>
3161		<!--uof式样集里只有单元格式样,因此只针对单元格式样进行对应-->
3162		<!--<xsl:for-each select="office:styles/style:style[@style:family='table-cell' or @style:family='table']">-->
3163		<xsl:for-each select="office:styles/style:style[@style:family='table-cell']">
3164			<xsl:call-template name="OneTableCellStyle">
3165				<xsl:with-param name="Type">
3166					<xsl:value-of select="string('custom')"/>
3167				</xsl:with-param>
3168			</xsl:call-template>
3169		</xsl:for-each>
3170		<!--uof式样集里只有单元格式样,因此只针对单元格式样进行对应-->
3171		<!--<xsl:for-each select="office:automatic-styles/style:style[@style:family='table-cell' or @style:family='table']">-->
3172		<xsl:for-each select="office:automatic-styles/style:style[@style:family='table-cell']">
3173			<xsl:call-template name="OneTableCellStyle">
3174				<xsl:with-param name="Type">
3175					<xsl:value-of select="string('auto')"/>
3176				</xsl:with-param>
3177			</xsl:call-template>
3178		</xsl:for-each>
3179	</xsl:template>
3180	<xsl:template name="图:填充-graph">
3181		<xsl:param name="graphproperty"/>
3182		<xsl:choose>
3183			<!--<xsl:when test="@draw:fill='solid' or (not(@draw:fill) and draw:fill-color">-->
3184			<xsl:when test="$graphproperty/@draw:fill='solid'">
3185				<!--避免颜色为空时校验错-->
3186				<xsl:variable name="colorvalue">
3187					<xsl:choose>
3188						<xsl:when test="$graphproperty/@fo:background-color='transparent' or $graphproperty/@fo:background-color='transprent'">auto</xsl:when>
3189						<xsl:when test="$graphproperty/@draw:fill-color != ''">
3190							<xsl:value-of select="$graphproperty/@draw:fill-color"/>
3191						</xsl:when>
3192						<xsl:otherwise>
3193							<xsl:value-of select="$graphproperty/@fo:background-color"/>
3194						</xsl:otherwise>
3195					</xsl:choose>
3196				</xsl:variable>
3197				<图:颜色_8004>
3198					<xsl:value-of select="$colorvalue"/>
3199				</图:颜色_8004>
3200			</xsl:when>
3201			<xsl:when test="$graphproperty/@draw:fill='hatch'">
3202				<!--图片填充也有office:binary-data的情况-->
3203				<!--xsl:when test="/office:document/office:styles/draw:fill-image[@draw:name = $graphproperty/@draw:fill-image-name]/office:binary-data or $graphproperty/@draw:fill='hatch'"-->
3204				<图:图案_800A>
3205					<xsl:variable name="hatchStyleName" select="$graphproperty/@draw:fill-hatch-name"/>
3206					<xsl:variable name="imagename" select="$graphproperty/@draw:fill-image-name"/>
3207					<xsl:variable name="fillcolor" select="$graphproperty//@draw:fill-color"/>
3208					<xsl:choose>
3209						<xsl:when test="/office:document/office:styles/draw:hatch">
3210							<xsl:for-each select="/office:document/office:styles/draw:hatch[@draw:name = $hatchStyleName]">
3211								<xsl:attribute name="类型_8008"><xsl:value-of select="@draw:name"/></xsl:attribute>
3212								<!--xsl:attribute name="图形引用_8007"/-->
3213								<xsl:if test="@draw:color">
3214									<xsl:attribute name="前景色_800B"><xsl:value-of select="@draw:color"/></xsl:attribute>
3215								</xsl:if>
3216								<xsl:attribute name="背景色_800C"><xsl:choose><xsl:when test="$fillcolor"><xsl:value-of select="$fillcolor"/></xsl:when><xsl:otherwise>#ffffff</xsl:otherwise></xsl:choose></xsl:attribute>
3217							</xsl:for-each>
3218						</xsl:when>
3219						<xsl:when test="/office:document/office:styles/draw:fill-image">
3220							<xsl:for-each select="/office:document/office:styles/draw:fill-image[@draw:name = $imagename]">
3221								<xsl:choose>
3222									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJElEQVR4nGNh+M/wn5EBE7BgFQVJYBcmVoIRyT4UCWT7SLcDAC48BiC0r93dAAAAAElFTkSuQmCC'">
3223										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn001'"/></xsl:attribute>
3224										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#00ff00'"/></xsl:attribute>
3225									</xsl:when>
3226									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAI0lEQVR4nGP5//8/AzbAglUUvwQjAwM2w1iwipJpBzJAsg8AQFcGHZrs6e8AAAAASUVORK5CYII='">
3227										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn001'"/></xsl:attribute>
3228										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#ff78bd'"/></xsl:attribute>
3229									</xsl:when>
3230									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJElEQVR4nGNhYPjP8J+RAQOwYBUFS+AAREowIuxDlUCyj3Q7ACg9BiAi8rOrAAAAAElFTkSuQmCC'">
3231										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn001'"/></xsl:attribute>
3232										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3233									</xsl:when>
3234									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJklEQVR4nGP5z8DA8B9EoAEWrKJgCWTAyAhXhyqBpJsFWRWN7AAAOSsRFt141QcAAAAASUVORK5CYII='">
3235										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn002'"/></xsl:attribute>
3236										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#ff0000'"/></xsl:attribute>
3237									</xsl:when>
3238									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGP5z8DACMRg8J8RwWaBsxiQVIAkMNVC2CyYaiFsFky1VLcDAOahGCD63ouBAAAAAElFTkSuQmCC'">
3239										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn003'"/></xsl:attribute>
3240										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#ff0000'"/></xsl:attribute>
3241									</xsl:when>
3242									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAI0lEQVR4nGNhYPj//z8DBDAyMsDZLBAWRAiZzYIpBGEPqA4A/1o9AqgXatAAAAAASUVORK5CYII='">
3243										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn004'"/></xsl:attribute>
3244										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3245									</xsl:when>
3246									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKUlEQVR4nGNhYPj//z8DIyMDGskCZzEwMCCzWTDVInSgqYWw8eqgkh0A7ZVBDhySK7QAAAAASUVORK5CYII='">
3247										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn005'"/></xsl:attribute>
3248										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3249									</xsl:when>
3250									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKUlEQVR4nGNhYPj//z8DIyMDGsmCVRRIsmAVxaKDgYFUHcTZATcXmQQA8ftBGoRo5DEAAAAASUVORK5CYII='">
3251										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn006'"/></xsl:attribute>
3252										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3253									</xsl:when>
3254									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHklEQVR4nGNhYPj//z8DIyMDGsmCVRRIsmAVHWgdAPL9QR46gf26AAAAAElFTkSuQmCC'">
3255										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn007'"/></xsl:attribute>
3256										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3257									</xsl:when>
3258									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGNhYPjPAAb//zMwMjLA2SwQPibJAmcBATIbrw40tRA2Fe0AAP6iMSo4Vov8AAAAAElFTkSuQmCC'">
3259										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn008'"/></xsl:attribute>
3260										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3261									</xsl:when>
3262									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAI0lEQVR4nGP5//8/IyMDBPz/zwBns0BYECFkNgumEIQ9oDoAnUwhPDtydwUAAAAASUVORK5CYII='">
3263										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn009'"/></xsl:attribute>
3264										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3265									</xsl:when>
3266									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAK0lEQVR4nGP5//8/IyMDBPz/zwBns8BZQIDMZsFUC2GzYKqFsFkw1VLdDgAA8xEwmsNKVwAAAABJRU5ErkJggg=='">
3267										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn010'"/></xsl:attribute>
3268										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3269									</xsl:when>
3270									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALElEQVR4nGP5//+/icksBjA4cyYNzmaBs4AAmc2CqRbCZsFUC2GzYKqluh0ANq4hMPEukbMAAAAASUVORK5CYII='">
3271										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn010'"/></xsl:attribute>
3272										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#ffffff'"/></xsl:attribute>
3273									</xsl:when>
3274									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGNhYPjPAAb//zMwMjLAAQuchSyKIoEMgLqxSwB1syCropEdADipCSSSiwzsAAAAAElFTkSuQmCC'">
3275										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn011'"/></xsl:attribute>
3276										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3277									</xsl:when>
3278									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJElEQVR4nGNhYPjPgA2wYBUlWuL/fwZGRmwScFHy7EA2FxkAAOHDBSIH/WEvAAAAAElFTkSuQmCC'">
3279										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn012'"/></xsl:attribute>
3280										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3281									</xsl:when>
3282									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALUlEQVR4nGNhYPj//z8DBDAyMsDZLEAWnI/MZkHjw9ksEI2YcixYzQHpoJ4dAOY1OQZM1tGbAAAAAElFTkSuQmCC'">
3283										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn013'"/></xsl:attribute>
3284										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3285									</xsl:when>
3286									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGP5//8/AxgwMjLAmCA2C1ZRIJsFqygQsGAVBUlgFaWuHQBj1iEg8vXVKAAAAABJRU5ErkJggg=='">
3287										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn014'"/></xsl:attribute>
3288										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3289									</xsl:when>
3290									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMUlEQVR4nGNhYPjPAMQggoGRkQHOZgFSQD4QARnIbBaIEkw5Fky1EDYLxGhMOSraAQCLbjkg7ZCwuwAAAABJRU5ErkJggg=='">
3291										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn015'"/></xsl:attribute>
3292										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3293									</xsl:when>
3294									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJ0lEQVR4nGNhYPjPAMKMQJIRic2CVRTIZsEqCtWBKQpks2AVpa4dAI7FICCCNCzYAAAAAElFTkSuQmCC'">
3295										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn016'"/></xsl:attribute>
3296										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3297										<xsl:attribute name="背景色_800C"><xsl:value-of select="'#ff00ff'"/></xsl:attribute>
3298									</xsl:when>
3299									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKUlEQVR4nGNhYPjPAMQggoGRkQHOZsEqCmSzYBWF6sAUBbJZsIpS1w4AYkkhHuKbNUYAAAAASUVORK5CYII='">
3300										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn016'"/></xsl:attribute>
3301										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3302									</xsl:when>
3303									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAN0lEQVR4nGXOAQoAQARE0VH//lfenU2hpUheBOnI+UpHhKhumnucnm4jfRu1+xnz7rSGz9j/pF2YoB0gtk9UpQAAAABJRU5ErkJggg=='">
3304										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn017'"/></xsl:attribute>
3305										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3306									</xsl:when>
3307									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMUlEQVR4nGNhYPj//z8DMmBkBJEsWEVBElhFgapZsIoidKCJQiUwRUESWEURRmG6DQAbfBEgGcS1uwAAAABJRU5ErkJggg=='">
3308										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn018'"/></xsl:attribute>
3309										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3310									</xsl:when>
3311									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHElEQVR4nGNhYPj//z8DBDAyMsDZLAw4wOCUAADHvwUeDEtdDgAAAABJRU5ErkJggg=='">
3312										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn019'"/></xsl:attribute>
3313										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3314									</xsl:when>
3315									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGklEQVR4nGP5/58BK2BhZMQhgV0YnwQd7AAAYJIEISB3Q/YAAAAASUVORK5CYII='">
3316										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn020'"/></xsl:attribute>
3317										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#ffff00'"/></xsl:attribute>
3318									</xsl:when>
3319									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAIElEQVR4nGNhYPjPgA2w/McuzsCCXRifBCMjDgnq2QEAwAgFHjYAUNQAAAAASUVORK5CYII='">
3320										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn020'"/></xsl:attribute>
3321										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3322									</xsl:when>
3323									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGklEQVR4nGNhYPj//z8DIyMDGsnCgAMMTgkApfgJHqRbf9cAAAAASUVORK5CYII='">
3324										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn021'"/></xsl:attribute>
3325										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3326									</xsl:when>
3327									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHElEQVR4nGNhYPjPgA2w/McuzsDCyIhDYiB1AADmewkeUS/FOwAAAABJRU5ErkJggg=='">
3328										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn022'"/></xsl:attribute>
3329										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3330									</xsl:when>
3331									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGElEQVR4nGNh+P+fARtgYWBgxCUxCHUAALvMBSC5rp57AAAAAElFTkSuQmCC'">
3332										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn022'"/></xsl:attribute>
3333										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#00ff00'"/></xsl:attribute>
3334										<xsl:attribute name="背景色_800C"><xsl:value-of select="'#00ffff'"/></xsl:attribute>
3335									</xsl:when>
3336									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAF0lEQVR4nGNh+M+AFbAw4JABSjAOPh0AV88FH0+MxjkAAAAASUVORK5CYII='">
3337										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn022'"/></xsl:attribute>
3338										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#00ff00'"/></xsl:attribute>
3339									</xsl:when>
3340									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHElEQVR4nGNhYPjPAMQggoGRkQHOZmHAAQanBAC7ywUeNxfiogAAAABJRU5ErkJggg=='">
3341										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn023'"/></xsl:attribute>
3342										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3343									</xsl:when>
3344									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAIElEQVR4nGNhYPjPgA2wYBUFSfzHrgGPDkZGUnWQbAcAXGwFHqNw3RkAAAAASUVORK5CYII='">
3345										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn024'"/></xsl:attribute>
3346										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3347									</xsl:when>
3348									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMklEQVR4nGP5//8/AzbAglUUJMHIyADXg8xmAbLgfGQ2CxofzobagSmHsBzZdQgdmAAAyBUhEFI1qLsAAAAASUVORK5CYII='">
3349										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn025'"/></xsl:attribute>
3350										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3351									</xsl:when>
3352									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMElEQVR4nGP5//8/AzbAglUURYKRkQGuGchmwSoKZLNgFQUZhVUUJIHsKGQ2TlcBACh9FRy4as61AAAAAElFTkSuQmCC'">
3353										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn026'"/></xsl:attribute>
3354										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3355									</xsl:when>
3356									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJUlEQVR4nGNhYPjPAAP/EUwGFmQOMmDBLkysBCMjDgkUy0m2AwAbsQccw3M/SgAAAABJRU5ErkJggg=='">
3357										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn027'"/></xsl:attribute>
3358										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3359									</xsl:when>
3360									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAIElEQVR4nGNhYPj//z8DJmDBIkauBLIFjIwMcC4V7QAAw/oHHGDxXvUAAAAASUVORK5CYII='">
3361										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn028'"/></xsl:attribute>
3362										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3363									</xsl:when>
3364									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAANUlEQVR4nGWNQQoAMAjDKuT/X+4OgpPqQUgNFsm27rDTKg2yeUsEj8f90/sfooxb2xKhj/EAW+UdErFnPgwAAAAASUVORK5CYII='">
3365										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn029'"/></xsl:attribute>
3366										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3367									</xsl:when>
3368									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOUlEQVR4nGWO0QoAMAgCDfz/X3aOhoy6J08qIiAJVcBNaKyM/LhkUuhtDs8EhydzeOC+/jYs+zGXB++ZGRj0GfymAAAAAElFTkSuQmCC'">
3369										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn030'"/></xsl:attribute>
3370										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3371									</xsl:when>
3372									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAANElEQVR4nGNhYPj//z8DGmBkZGABigIpZDkIl4UBpAUhB2ewQFRB5CAMCGCBK0EzjYp2AABEjCcUaUAW6gAAAABJRU5ErkJggg=='">
3373										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn031'"/></xsl:attribute>
3374										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3375									</xsl:when>
3376									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALElEQVR4nGP5//8/AzbAAmcxMoJIuDIWuChECMIAkixoCiEMIMmCwwpq2gEARxkdGBfi2AgAAAAASUVORK5CYII='">
3377										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn032'"/></xsl:attribute>
3378										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3379									</xsl:when>
3380									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAANklEQVR4nGNhYPjPgAH+MzCyYBVlZPiPLgERBTJYsIqiSABFkRWxoKlFMQrZBCADajmyKLIcAMprFiBoxxp5AAAAAElFTkSuQmCC'">
3381										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn033'"/></xsl:attribute>
3382										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#ff0000'"/></xsl:attribute>
3383									</xsl:when>
3384									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAANElEQVR4nGP5//8/AwZgZGRgwSoKVIwuAREFAhasoigSQFFkwIKmFsUoZBOADKjlyKLIcgBi7Bcg5WuxKQAAAABJRU5ErkJggg=='">
3385										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn033'"/></xsl:attribute>
3386										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3387									</xsl:when>
3388									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJklEQVR4nGNhYPjPgA2wAPF/bFIsWJUTkmBkxCaBbAFQBZxLuh0ALx0HHo+Ka1MAAAAASUVORK5CYII='">
3389										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn034'"/></xsl:attribute>
3390										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3391									</xsl:when>
3392									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAANUlEQVR4nGNhYPj/nwEKGIEcGJvlP4yPTIIkGFD5cDYLmglwfSyYohB9LJhqEXYw4LcDTQ4AMPkZGo5IQCMAAAAASUVORK5CYII='">
3393										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn035'"/></xsl:attribute>
3394										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3395										<xsl:attribute name="背景色_800C"><xsl:value-of select="'#ff00ff'"/></xsl:attribute>
3396									</xsl:when>
3397									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAN0lEQVR4nGVNQQ4AIAjCjf9/2WpsVOjBgYAQ6G5oqmDMjcTffQTg48aMD85xXpXj9N6O8GZHaAt21jEU9i1BlQAAAABJRU5ErkJggg=='">
3398										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn035'"/></xsl:attribute>
3399										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3400									</xsl:when>
3401									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALElEQVR4nGNhYPj//z8DIyMDGsmCVRRIsmAVJaQDCCAkA8hCKMnCgAOQLgEA5O4lHgp+1OoAAAAASUVORK5CYII='">
3402										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn036'"/></xsl:attribute>
3403										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3404									</xsl:when>
3405									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALUlEQVR4nGP5//8/AzbAAmcxMjIgq0FIAEWR5YjTgWIHmkKEBFZRoGrsOoAiAHAjFRgrzI7EAAAAAElFTkSuQmCC'">
3406										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn037'"/></xsl:attribute>
3407										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3408									</xsl:when>
3409									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJUlEQVR4nGNhYPj//z8DIyMDGskCxAwgSXSSBSKPCViwitJJBwC5tB0QWDyhJgAAAABJRU5ErkJggg=='">
3410										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn038'"/></xsl:attribute>
3411										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3412									</xsl:when>
3413									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMElEQVR4nGMxNp7JgA2wAPGZM2kmJrMgfDgbJAEXRWazwIWQ9aFIIItSaAcyAOoDADXzFyjANSY3AAAAAElFTkSuQmCC'">
3414										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn039'"/></xsl:attribute>
3415										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#ffffff'"/></xsl:attribute>
3416									</xsl:when>
3417									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMElEQVR4nGNhYPj//z8DJmDBKgqSgFCMjAxwFRA2VAJZH4TNgqwdWR+KBLI+0u0AAFpvGRLKSkf3AAAAAElFTkSuQmCC'">
3418										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn039'"/></xsl:attribute>
3419										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3420									</xsl:when>
3421									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOUlEQVR4nG2NCwoAMAhCF3j/KzuHIAYTyuL1AcmzNfMyZI3SQpamh6AwcxHBlo3U6Ld9cIFgsQ+wLoWFGxgcGtpJAAAAAElFTkSuQmCC'">
3422										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn040'"/></xsl:attribute>
3423										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3424									</xsl:when>
3425									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALElEQVR4nGNhYPjPgA2w/P/PwMgIYv0HK4CzWSAsuBCczYKpFiGBppbqdgAALSkVLK4WE5kAAAAASUVORK5CYII='">
3426										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn041'"/></xsl:attribute>
3427										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3428									</xsl:when>
3429									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAN0lEQVR4nHWNSQoAQAjDKvT/X+4UBBcYc4oHU0qKQCKhnDbfSbmF2PQHDji7/w3L3OPsrtS18QDeoxEoMtsKvAAAAABJRU5ErkJggg=='">
3430										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn042'"/></xsl:attribute>
3431										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3432									</xsl:when>
3433									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJUlEQVR4nGNhYPjPgA2wAPF/mBQjI4LNglU5IQmgCXAAZ1PRDgBm3wkgDXDgQQAAAABJRU5ErkJggg=='">
3434										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn043'"/></xsl:attribute>
3435										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3436									</xsl:when>
3437									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGN5YqosferOUzMVBjCAs1kYcADcEkC9EBPgQhA2C9BEWtsBAJwCGSIIxPtQAAAAAElFTkSuQmCC'">
3438										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn043'"/></xsl:attribute>
3439										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#ffffff'"/></xsl:attribute>
3440										<xsl:attribute name="背景色_800C"><xsl:value-of select="'#ff0000'"/></xsl:attribute>
3441									</xsl:when>
3442									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGklEQVR4nGNhYPjPgA2wAPF/bFIsWJUPtAQAJtwDHhoe2JQAAAAASUVORK5CYII='">
3443										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn044'"/></xsl:attribute>
3444										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3445									</xsl:when>
3446									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJklEQVR4nGN5YqosferOUzMVBlTAwoAD0EUC6CQgBSFRJDAdCgEAA0IJHu/iI/cAAAAASUVORK5CYII='">
3447										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn044'"/></xsl:attribute>
3448										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#ffffff'"/></xsl:attribute>
3449										<xsl:attribute name="背景色_800C"><xsl:value-of select="'#ff0000'"/></xsl:attribute>
3450									</xsl:when>
3451									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGP5/5+BgZEBBP6DSRibBcRCFYKwWRhwABYGnEbh1EE1OwBLFQ4fojv/LgAAAABJRU5ErkJggg=='">
3452										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn045'"/></xsl:attribute>
3453										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#ff0000'"/></xsl:attribute>
3454										<xsl:attribute name="背景色_800C"><xsl:value-of select="'#ffff00'"/></xsl:attribute>
3455									</xsl:when>
3456									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKUlEQVR4nGP5z8DAAMIMDIxgEsZmAbFQhSBsFgYcgAWkBLtROHVQzQ4A9OwNIMy7yHkAAAAASUVORK5CYII='">
3457										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn045'"/></xsl:attribute>
3458										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#ff0000'"/></xsl:attribute>
3459									</xsl:when>
3460									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGNhYPj//z8DEDAygkg4mwXIQhOCsFkYcAAWoBLsRuHUQT07AB7YGSAdbcZUAAAAAElFTkSuQmCC'">
3461										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn045'"/></xsl:attribute>
3462										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3463									</xsl:when>
3464									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAH0lEQVR4nGNhYPjPAAP/EUwGFgYcgAwJZHMZGWliBwALswUeEhCN8AAAAABJRU5ErkJggg=='">
3465										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn046'"/></xsl:attribute>
3466										<xsl:attribute name="前景色_800B"><xsl:value-of select="'#0000ff'"/></xsl:attribute>
3467									</xsl:when>
3468									<xsl:when test="office:binary-data = ' iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGNRZrhz57+yCuNdBjCAs1kgLEySBSIP58PZeHWgqaW6HQDkpk8sQd5vKgAAAABJRU5ErkJggg=='">
3469										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn005'"/></xsl:attribute>
3470										<xsl:attribute name="背景色_800C"><xsl:value-of select="'#333399'"/></xsl:attribute>
3471									</xsl:when>
3472									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALElEQVR4nGP5//8/AxioqNy9c0cZzmZhgAG4KITNgqkWwmbBVAthIIyinR0Az50mQDmqEnoAAAAASUVORK5CYII='">
3473										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn010'"/></xsl:attribute>
3474										<xsl:attribute name="背景色_800C"><xsl:value-of select="'#333399'"/></xsl:attribute>
3475									</xsl:when>
3476									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAK0lEQVR4nGP5b2zMAAaMZ88is1ngfCCJzGZB48PZLJhqIWwWiKGYclS0AwACfUJCQU/IJQAAAABJRU5ErkJggg=='">
3477										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn013'"/></xsl:attribute>
3478										<xsl:attribute name="背景色_800C"><xsl:value-of select="'#ff3333'"/></xsl:attribute>
3479									</xsl:when>
3480									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAG0lEQVR4nGNh+P+fARtgUWZQwS5xl+HO4NMBAP+nCGbuOY6AAAAAAElFTkSuQmCC'">
3481										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn022'"/></xsl:attribute>
3482										<xsl:attribute name="背景色_800C"><xsl:value-of select="'#00ffff'"/></xsl:attribute>
3483									</xsl:when>
3484									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAPUlEQVR4nGP5z/BfheEuAxjcYVAGsiEkC5wFlEBmsyCrgouCJDDVQsxkQTYH2SYWTLVQO5DNQXEVRCGm2wCx4C4nyqBe2QAAAABJRU5ErkJggg=='">
3485										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn035'"/></xsl:attribute>
3486										<xsl:attribute name="背景色_800C"><xsl:value-of select="'#ff00ff'"/></xsl:attribute>
3487									</xsl:when>
3488									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMklEQVR4nGNRZrjDgA2wQKg7/5VVGO9ikUATBUkgq0VmsyCrRWazYFoL0YdFAqIPpx0A44IXKNx/AToAAAAASUVORK5CYII='">
3489										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn039'"/></xsl:attribute>
3490										<xsl:attribute name="背景色_800C"><xsl:value-of select="'#333399'"/></xsl:attribute>
3491									</xsl:when>
3492									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJUlEQVR4nGP5/58BCO6qgEjlOwg2CwMOwIKpFsLGrQNTLdXtAAD9VxEgnseUWAAAAABJRU5ErkJggg=='">
3493										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn045'"/></xsl:attribute>
3494										<xsl:attribute name="背景色_800C"><xsl:value-of select="'#ffff00'"/></xsl:attribute>
3495									</xsl:when>
3496									<xsl:when test="office:binary-data = '   iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAIUlEQVR4nGP5//8/AzbAglUUrwQjIyNW01ioaAcyB9k+AAO9DBstSVK1AAAAAElFTkSuQmCC'">
3497										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn001'"/></xsl:attribute>
3498									</xsl:when>
3499									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKUlEQVR4nGOZqeHDAANphVKz+p9B2CwMSAAuCpJAVoUMWLCKohtFIzsAN2YVaquFlH0AAAAASUVORK5CYII='">
3500										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn002'"/></xsl:attribute>
3501									</xsl:when>
3502									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALElEQVR4nGNRVr7DgA2w3BEIV/mwEsJBZrPAWUCAzGbBVAths2CqhbCpaAcAxPUjsSXviH8AAAAASUVORK5CYII='">
3503										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn003'"/></xsl:attribute>
3504									</xsl:when>
3505									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAI0lEQVR4nGOR7OpK/1bGAAYzuRBsFggLIoTMZsEUgrAHVAcAq3dJq0qbe9YAAAAASUVORK5CYII='">
3506										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn004'"/></xsl:attribute>
3507									</xsl:when>
3508									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJElEQVR4nGNpaGAAQhABBnA2C4SFiVgg8nA+nI1XB5paqtsBAN6ENyG+vb1pAAAAAElFTkSuQmCC'">
3509										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn005'"/></xsl:attribute>
3510									</xsl:when>
3511									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGOR7Op6Xlom2Y1OsqDxGRgYIGwWTLXYdcBJvDrg5hKtA6scAIQYXcTwY7BfAAAAAElFTkSuQmCC'">
3512										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn006'"/></xsl:attribute>
3513									</xsl:when>
3514									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHklEQVR4nGNh+M/A4O3FsHUbGsmCVRRIsmAVHWgdAJ1uP7UktXJ2AAAAAElFTkSuQmCC'">
3515										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn007'"/></xsl:attribute>
3516									</xsl:when>
3517									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMElEQVR4nGP5/z+NYRYDFKQxwNksIBaEj0qygGRnIamFsVkQJqDrwFALYVPNDgYGAHpeHCHJYPuMAAAAAElFTkSuQmCC'">
3518										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn008'"/></xsl:attribute>
3519									</xsl:when>
3520									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJklEQVR4nGOR7Op6xn9H6qMKAxjA2SxADGFBhOBsFkwhCHtAdQAAcSg9JIa+mA8AAAAASUVORK5CYII='">
3521										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn009'"/></xsl:attribute>
3522									</xsl:when>
3523									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGNZd54BAtr7GSoLEWwWBhiAi0LYLJhqIWwWTLUQgDCKdnYAAK3RFxro9SLpAAAAAElFTkSuQmCC'">
3524										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn010'"/></xsl:attribute>
3525									</xsl:when>
3526									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJ0lEQVR4nGNpaGhgwAZYMIUkJX2eP9+CRQIoitABUYXFKDRR6toBAJq6FSc596YjAAAAAElFTkSuQmCC'">
3527										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn011'"/></xsl:attribute>
3528									</xsl:when>
3529									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAK0lEQVR4nGOR7OpiwAZY4KxnpaVS3d1YJJBFUSRwGkWUBNA+7BJA+3AaBQAC0Ah+yZWsQwAAAABJRU5ErkJggg=='">
3530										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn012'"/></xsl:attribute>
3531									</xsl:when>
3532									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALUlEQVR4nGP5//8/AxgwMjLAmCA2C5wPJJHZLGh8OJsFUy2EzQIxFFOOinYAADx8OwaQ1VWOAAAAAElFTkSuQmCC'">
3533										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn013'"/></xsl:attribute>
3534									</xsl:when>
3535									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKUlEQVR4nGNhuPOfAQJUGBjuMMDZLFhFgWwWrKJAwIJVFCyBTZS6dgAAE3wRIDlgYu4AAAAASUVORK5CYII='">
3536										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn014'"/></xsl:attribute>
3537									</xsl:when>
3538									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMklEQVR4nGOZmXbm+awtDAwMkmk+QBLOZoFQQD4QARlwNgsaH85mgWjHlGPBag517QAAiLdV7DSstF0AAAAASUVORK5CYII='">
3539										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn015'"/></xsl:attribute>
3540									</xsl:when>
3541									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAK0lEQVR4nGNZd54BCC5tlASSev7P4WwWrKJANgtWUagOTFEgmwWrKHXtAADkozA6i+VXKgAAAABJRU5ErkJggg=='">
3542										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn016'"/></xsl:attribute>
3543									</xsl:when>
3544									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAO0lEQVR4nGNhYPjPcOYsAzIwMQYSLFAWshyQbWLMglCFKscCkceUY4HrRZNjgetFk2OB60WTQ5JAlQMAcWQdIItfX/MAAAAASUVORK5CYII='">
3545										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn017'"/></xsl:attribute>
3546									</xsl:when>
3547									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOUlEQVR4nGOZ4j6FgYHhkjwrAxjoPfwNYbBgFQVJYBWF6sAUBapmwSoK0oFVFGEUmihQNQtWUSAJAItIGZCmAj/UAAAAAElFTkSuQmCC'">
3548										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn018'"/></xsl:attribute>
3549									</xsl:when>
3550									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHElEQVR4nGNh+M/A0NjAUN/AAAEwNgsDDjA4JQDARQUg8kU9AQAAAABJRU5ErkJggg=='">
3551										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn019'"/></xsl:attribute>
3552									</xsl:when>
3553									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAH0lEQVR4nGNhuPOfARtgwSoKllDBJXEHlwROo6hmBwAWYQP8EvqLCwAAAABJRU5ErkJggg=='">
3554										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn020'"/></xsl:attribute>
3555									</xsl:when>
3556									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAF0lEQVR4nGP5//8/IyMjJsnCgAMMTgkA6ywMIQCWenYAAAAASUVORK5CYII='">
3557										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn021'"/></xsl:attribute>
3558									</xsl:when>
3559									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAGElEQVR4nGNhwAFY/v//j12CkZFx8OkAAKXuDB5FnY15AAAAAElFTkSuQmCC'">
3560										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn022'"/></xsl:attribute>
3561									</xsl:when>
3562									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHklEQVR4nGP5//8/IyMjAwMDkAEk4WwWBhxgcEoAAKkECR7id7rEAAAAAElFTkSuQmCC'">
3563										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn023'"/></xsl:attribute>
3564									</xsl:when>
3565									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAHElEQVR4nGP5//8/AzbAglUUJMHIyEiiDjrYAQCF2QYhE3pd/wAAAABJRU5ErkJggg=='">
3566										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn024'"/></xsl:attribute>
3567									</xsl:when>
3568									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAL0lEQVR4nGP5//8/AxgwMjIis1kYYAAuCmEjJNAAGRJodsLZLEAWnI/MZkHjw9kAFogqDyFktcgAAAAASUVORK5CYII='">
3569										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn025'"/></xsl:attribute>
3570									</xsl:when>
3571									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKUlEQVR4nGP5//8/AzbAglWUQglGRka4fUA2C1ZRIJsFqyjIKKyiQAAA6fcYIfk0nh8AAAAASUVORK5CYII='">
3572										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn026'"/></xsl:attribute>
3573									</xsl:when>
3574									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKElEQVR4nGP5//8/AzbAgsxhZGTELoGsG0UCp1EoEsjmohhFlKuQAQA9sAwbpfdUbgAAAABJRU5ErkJggg=='">
3575										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn027'"/></xsl:attribute>
3576									</xsl:when>
3577									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAIElEQVR4nGP5//8/AwwwMjLCuSwMOAAZEsjmIttHRTsAofAMG54pChoAAAAASUVORK5CYII='">
3578										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn028'"/></xsl:attribute>
3579									</xsl:when>
3580									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAANUlEQVR4nGWMQQoAQAgCDfz/l92Di0F2qnGSACShhofOjAnPHe8H/ccusbdBqA0eNwbb9f4AKKYqDJtlg60AAAAASUVORK5CYII='">
3581										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn029'"/></xsl:attribute>
3582									</xsl:when>
3583									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOUlEQVR4nG1NOQ4AMAjShP9/mZIwSGsZDHIoSFZVd2uaG5CUuyERZruHHbeHTF0/8m56n1NOTONJHNjRJBKMzS6qAAAAAElFTkSuQmCC'">
3584										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn030'"/></xsl:attribute>
3585									</xsl:when>
3586									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAL0lEQVR4nGP5//8/IyMjkGRgYIAzgIAFmYOsiAUuiiwHkoDwIRyIIqgOZKNpZAcAogk5DLqwhAsAAAAASUVORK5CYII='">
3587										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn031'"/></xsl:attribute>
3588									</xsl:when>
3589									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMUlEQVR4nGNhYGD4//8/IyMjkASy4QwWCAWRgzAYwICFAQbgQugScADRygIxlKZ2AAD5kSoS/A+e7AAAAABJRU5ErkJggg=='">
3590										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn032'"/></xsl:attribute>
3591									</xsl:when>
3592									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOElEQVR4nG2MQQoAQAgCE/r/l1ujkFjsEDqKWVURAYB/9FxKXboB6x/twNIOLGU7LTVTsj0lc0sPILchG3Z9PUUAAAAASUVORK5CYII='">
3593										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn033'"/></xsl:attribute>
3594									</xsl:when>
3595									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAKklEQVR4nGNhwAFY/v//D2ExMjLC2SAJnDpwSgBNgHOQ2SzI5hJnFC4JANNjCSHwZ+dOAAAAAElFTkSuQmCC'">
3596										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn034'"/></xsl:attribute>
3597									</xsl:when>
3598									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAPElEQVR4nGWOWwoAQAgCDbz/ld2HS7jUR0gNKgFIwp2q2tqbrUy0ZlJ9PY/J2pPpk0mc7MtIn6+VwdltAaKwTglQF5YxAAAAAElFTkSuQmCC'">
3599										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn035'"/></xsl:attribute>
3600									</xsl:when>
3601									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALklEQVR4nGP5//8/IyMjJsmCVRRIsgAxAwMDhA9kQEggYGHAAciTgNgGt4mAqwCl+DMhMZsO5QAAAABJRU5ErkJggg=='">
3602										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn036'"/></xsl:attribute>
3603									</xsl:when>
3604									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAALklEQVR4nGP5//8/AwMDIyMjhAEHLFhFoRJAUew6IHJYdCADuFZ0CbixpOiAMADmpyEShMaewQAAAABJRU5ErkJggg=='">
3605										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn037'"/></xsl:attribute>
3606									</xsl:when>
3607									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAK0lEQVR4nGP5//8/AwMDIyMjhAEHLBAKTRQkAVGLSbJA1GKSUKNIsYNkHQC3qC0JDQzH4AAAAABJRU5ErkJggg=='">
3608										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn038'"/></xsl:attribute>
3609									</xsl:when>
3610									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAMElEQVR4nGP5//8/AzbAAqEYGRnRVEAlMPWxIKtFZrMgq0Vms2BaC9GHRQKiD6cdAA9EIRKBWkN+AAAAAElFTkSuQmCC'">
3611										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn039'"/></xsl:attribute>
3612									</xsl:when>
3613									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOElEQVR4nGWOUQoAMAhCF7z7X7nGBJHmR6mhRHefh6q60xK7skxIoYQk6eYNrWwXx9aKshr2Vz8GDzgwD2pvz7kAAAAASUVORK5CYII='">
3614										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn040'"/></xsl:attribute>
3615									</xsl:when>
3616									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAK0lEQVR4nGNhYGD4//8/kGRkZERms8CFIADOZgEqQVMLYbPAlaDpY6GDHQDLBh45l0dhygAAAABJRU5ErkJggg=='">
3617										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn041'"/></xsl:attribute>
3618									</xsl:when>
3619									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOUlEQVR4nHWNQQoAMAzCWvD/X3aC1DHoPJQcbERNSBq6Wxf1CVJ3MQwbRAHzVeXjUS0bLu4b8cYpPr24ISf5W9S/AAAAAElFTkSuQmCC'">
3620										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn042'"/></xsl:attribute>
3621									</xsl:when>
3622									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJklEQVR4nGP5//8/IyMjkGQAAzibhQEHwC0B1AsxAS4EYbPQwQ4A6J0SLfF/06kAAAAASUVORK5CYII='">
3623										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn043'"/></xsl:attribute>
3624									</xsl:when>
3625									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJElEQVR4nGP5//8/IyMjkGRABSwMOAALUDmQgpAoEqQbRT0JAHD2DCHlOvIhAAAAAElFTkSuQmCC'">
3626										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn044'"/></xsl:attribute>
3627									</xsl:when>
3628									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJUlEQVR4nGNhAIP///8DSUZGRjibhQEHYMFUC2Hj1oGplup2AAC9HBgeRnkBAgAAAABJRU5ErkJggg=='">
3629										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn045'"/></xsl:attribute>
3630									</xsl:when>
3631									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAJklEQVR4nGP5//8/IyMjAwwAuRAGCwMOQIYE0AK4uUAAt4+KdgAAofcJIdNbiq8AAAAASUVORK5CYII='">
3632										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn046'"/></xsl:attribute>
3633									</xsl:when>
3634									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAAOElEQVR4nG2NQQoAMAjDFPr/L3eDjmzIbo1RK9tV1d0JZAV2CrNxxOuCV/wvYJxGM05jitPo5PMCryM5EtSyCSkAAAAASUVORK5CYII='">
3635										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn047'"/></xsl:attribute>
3636									</xsl:when>
3637									<xsl:when test="office:binary-data = 'iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAIAAABLbSncAAAANklEQVR4nG2N0QoAMAgCFfz/X3aBEG2rxzs12QZAEuMK6qchit8bj8u4Zqpc6CU6u4i9kR/tDmj1IRsmDqtoAAAAAElFTkSuQmCC'">
3638										<xsl:attribute name="类型_8008"><xsl:value-of select="'ptn048'"/></xsl:attribute>
3639									</xsl:when>
3640									<xsl:otherwise>
3641										<xsl:attribute name="类型_8008"><xsl:value-of select="@draw:name"/></xsl:attribute>
3642										<!--xsl:attribute name="图形引用_8007"/-->
3643										<xsl:if test="@draw:color">
3644											<xsl:attribute name="前景色_800B"><xsl:value-of select="@draw:color"/></xsl:attribute>
3645										</xsl:if>
3646										<xsl:attribute name="背景色_800C"><xsl:choose><xsl:when test="$fillcolor"><xsl:value-of select="$fillcolor"/></xsl:when><xsl:otherwise>#ffffff</xsl:otherwise></xsl:choose></xsl:attribute>
3647									</xsl:otherwise>
3648								</xsl:choose>
3649							</xsl:for-each>
3650						</xsl:when>
3651					</xsl:choose>
3652				</图:图案_800A>
3653			</xsl:when>
3654			<xsl:when test="$graphproperty/@draw:fill='bitmap'">
3655				<图:图片_8005>
3656					<xsl:if test="$graphproperty/@draw:fill-image-name">
3657						<xsl:attribute name="图形引用_8007"><xsl:value-of select="$graphproperty/@draw:fill-image-name"/></xsl:attribute>
3658					</xsl:if>
3659					<xsl:variable name="position">
3660						<xsl:choose>
3661							<xsl:when test="$graphproperty/@style:repeat='no-repeat'">center</xsl:when>
3662							<xsl:when test="$graphproperty/@style:repeat='stretch'">stretch</xsl:when>
3663							<xsl:otherwise>tile</xsl:otherwise>
3664						</xsl:choose>
3665					</xsl:variable>
3666					<xsl:attribute name="位置_8006"><xsl:value-of select="$position"/></xsl:attribute>
3667					<xsl:attribute name="类型_8008"><xsl:variable name="imagename" select="$graphproperty/@draw:fill-image-name"/><xsl:variable name="fillimage" select="/office:document/office:styles/draw:fill-image[@draw:name = $imagename]/@xlink:href"/><xsl:if test="$fillimage!=''"><xsl:choose><xsl:when test="ends-with($fillimage,'.jpg')">jpg</xsl:when><xsl:when test="ends-with($fillimage,'.bmp')">bmp</xsl:when><xsl:when test="ends-with($fillimage,'.png')">png</xsl:when><xsl:when test="ends-with($fillimage,'.pbm')">pbm</xsl:when><xsl:when test="ends-with($fillimage,'.ras')">ras</xsl:when><xsl:when test="ends-with($fillimage,'.gif')">gif</xsl:when><xsl:otherwise>jpg</xsl:otherwise></xsl:choose></xsl:if></xsl:attribute>
3668					<xsl:attribute name="名称_8009">background-image</xsl:attribute>
3669				</图:图片_8005>
3670			</xsl:when>
3671			<xsl:when test="$graphproperty/@draw:fill='gradient'">
3672				<图:渐变_800D>
3673					<xsl:variable name="gradientStyleName" select="$graphproperty/@draw:fill-gradient-name"/>
3674					<xsl:for-each select="/office:document/office:styles/draw:gradient[@draw:name = $gradientStyleName]">
3675						<xsl:attribute name="起始色_800E"><xsl:value-of select="@draw:start-color"/></xsl:attribute>
3676						<xsl:attribute name="终止色_800F"><xsl:value-of select="@draw:end-color"/></xsl:attribute>
3677						<xsl:attribute name="种子类型_8010"><xsl:choose><xsl:when test="@draw:style='linear' or @draw:style='axial'">linear</xsl:when><xsl:when test="@draw:style='radial'">radar</xsl:when><xsl:when test="@draw:style='ellipsoid'">oval</xsl:when><xsl:when test="@draw:style='square'">square</xsl:when><xsl:when test="@draw:style='rectangular'">rectangle</xsl:when></xsl:choose></xsl:attribute>
3678						<xsl:variable name="start">
3679							<xsl:value-of select="substring-before(@draw:start-intensity,'%')"/>
3680						</xsl:variable>
3681						<xsl:variable name="end">
3682							<xsl:value-of select="substring-before(@draw:end-intensity,'%')"/>
3683						</xsl:variable>
3684						<xsl:attribute name="起始浓度_8011"><xsl:value-of select="$start"/></xsl:attribute>
3685						<xsl:attribute name="终止浓度_8012"><xsl:value-of select="$end"/></xsl:attribute>
3686						<xsl:variable name="angle">
3687							<xsl:value-of select="@draw:angle div 10"/>
3688						</xsl:variable>
3689						<xsl:attribute name="渐变方向_8013"><xsl:choose><xsl:when test="0 &lt; number($angle) and number($angle) &lt; 25">0</xsl:when><xsl:when test="25 &lt; number($angle) and number($angle) &lt; 70">45</xsl:when><xsl:when test="70 &lt; number($angle) and number($angle) &lt; 115">90</xsl:when><xsl:when test="115 &lt; number($angle) and number($angle) &lt; 160">135</xsl:when><xsl:when test="160 &lt; number($angle) and number($angle)&lt;205">180</xsl:when><xsl:when test="205&lt;number($angle) and number($angle)&lt;250">225</xsl:when><xsl:when test="250&lt;number($angle) and number($angle)&lt;295">270</xsl:when><xsl:when test="295&lt;number($angle) and number($angle)&lt;340">315</xsl:when><xsl:when test="340&lt;number($angle) and number($angle)&lt;360">360</xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:attribute>
3690						<xsl:attribute name="边界_8014"><xsl:value-of select="substring-before(@draw:border,'%')"/></xsl:attribute>
3691						<xsl:if test="@draw:cx">
3692							<xsl:attribute name="种子X位置_8015"><xsl:value-of select="substring-before(@draw:cx,'%')"/></xsl:attribute>
3693						</xsl:if>
3694						<xsl:if test="@draw:cy">
3695							<xsl:attribute name="种子Y位置_8016"><xsl:value-of select="substring-before(@draw:cy,'%')"/></xsl:attribute>
3696						</xsl:if>
3697						<xsl:attribute name="类型_8008"><xsl:value-of select="$gradientStyleName"/></xsl:attribute>
3698					</xsl:for-each>
3699				</图:渐变_800D>
3700			</xsl:when>
3701			<xsl:otherwise>
3702				<xsl:if test="($graphproperty/@draw:fill!='none'or not($graphproperty/@draw:fill))and $graphproperty/@draw:fill-color">
3703					<图:颜色_8004>
3704						<xsl:choose>
3705							<xsl:when test="$graphproperty/@fo:background-color='transparent' or $graphproperty/@fo:background-color='transprent'">auto</xsl:when>
3706							<xsl:otherwise>
3707								<xsl:value-of select="$graphproperty/@draw:fill-color"/>
3708							</xsl:otherwise>
3709						</xsl:choose>
3710					</图:颜色_8004>
3711				</xsl:if>
3712			</xsl:otherwise>
3713		</xsl:choose>
3714	</xsl:template>
3715	<xsl:template name="图:线颜色-graph">
3716		<xsl:param name="graphproperty"/>
3717		<xsl:choose>
3718			<xsl:when test="$graphproperty/@svg:stroke-color">
3719				<图:线颜色_8058>
3720					<xsl:value-of select="$graphproperty/@svg:stroke-color"/>
3721				</图:线颜色_8058>
3722			</xsl:when>
3723			<xsl:when test="@presentation:class!='' and $documentType = 'presentation'"/>
3724			<xsl:otherwise>
3725				<图:线颜色_8058>#000000</图:线颜色_8058>
3726			</xsl:otherwise>
3727		</xsl:choose>
3728	</xsl:template>
3729	<xsl:template name="图:线类型-graph">
3730		<xsl:param name="graphproperty"/>
3731		<图:线类型_8059>
3732			<!--<xsl:attribute name="xml:id" select="$graphproperty/@draw:stroke-dash"/>-->
3733			<xsl:variable name="linetype" select="$graphproperty/@draw:stroke-dash"/>
3734			<xsl:variable name="uoflinetype">
3735				<xsl:choose>
3736					<xsl:when test="$graphproperty/@fo:border='none'">none</xsl:when>
3737					<xsl:when test="contains($graphproperty/@fo:border, 'double')">double</xsl:when>
3738					<xsl:when test="contains($graphproperty/@fo:border, 'solid')">single</xsl:when>
3739					<xsl:when test="not($graphproperty/@draw:stroke)">
3740						<xsl:choose>
3741							<xsl:when test="$documentType = 'presentation' and @presentation:class">none</xsl:when>
3742							<xsl:when test="not($graphproperty/@svg:stroke-width)">single</xsl:when>
3743							<xsl:otherwise>single</xsl:otherwise>
3744						</xsl:choose>
3745					</xsl:when>
3746					<xsl:when test="$graphproperty/@draw:stroke = 'none'">none</xsl:when>
3747					<xsl:when test="$graphproperty/@draw:stroke = 'solid' ">single</xsl:when>
3748					<xsl:when test="$graphproperty/@draw:marker-start or $graphproperty/@draw:marker-end">single</xsl:when>
3749					<xsl:when test="not($linetype or $graphproperty/@fo:border)">
3750						<xsl:variable name="mark" select="$graphproperty/@style:parent-style-name"/>
3751						<xsl:choose>
3752							<xsl:when test="not(/office:document/office:styles/style:style[@style:name=$mark]/@fo:border)">none</xsl:when>
3753							<xsl:otherwise>single</xsl:otherwise>
3754						</xsl:choose>
3755					</xsl:when>
3756					<xsl:otherwise>single</xsl:otherwise>
3757				</xsl:choose>
3758			</xsl:variable>
3759			<xsl:attribute name="线型_805A" select="$uoflinetype"/>
3760			<xsl:if test="not($graphproperty/@fo:border='none') and not($graphproperty/@draw:stroke = 'none')">
3761				<xsl:variable name="linedash">
3762					<xsl:choose>
3763						<xsl:when test="not($graphproperty/@draw:stroke-dash) or $graphproperty/@draw:stroke='solid'">solid</xsl:when>
3764						<xsl:when test="$linetype='round-dot'">round-dot</xsl:when>
3765						<xsl:when test="$linetype='square-dot'">square-dot</xsl:when>
3766						<xsl:when test="$linetype='dash'">dash</xsl:when>
3767						<xsl:when test="$linetype='dash-dot'">dash-dot</xsl:when>
3768						<xsl:when test="$linetype='long-dash'">long-dash</xsl:when>
3769						<xsl:when test="$linetype='long-dash-dot'">long-dash-dot</xsl:when>
3770						<xsl:when test="$linetype='dash-dot-dot'">dash-dot-dot</xsl:when>
3771						<xsl:otherwise>dash</xsl:otherwise>
3772					</xsl:choose>
3773				</xsl:variable>
3774				<xsl:attribute name="虚实_805B" select="$linedash"/>
3775			</xsl:if>
3776		</图:线类型_8059>
3777	</xsl:template>
3778	<xsl:template name="图:线粗细-graph">
3779		<xsl:param name="graphproperty"/>
3780		<xsl:choose>
3781			<xsl:when test="$graphproperty/@svg:stroke-width">
3782				<图:线粗细_805C>
3783					<xsl:value-of select="fun:Convert2uofUnit($graphproperty/@svg:stroke-width)"/>
3784				</图:线粗细_805C>
3785			</xsl:when>
3786			<xsl:when test="($graphproperty/@style:parent-style-name = 'Frame') and (not ($graphproperty/@fo:border = 'none'))">
3787				<xsl:choose>
3788					<xsl:when test="$graphproperty/@fo:border">
3789						<图:线粗细_805C>
3790							<xsl:value-of select="fun:Convert2uofUnit($graphproperty/@fo:border)"/>
3791						</图:线粗细_805C>
3792					</xsl:when>
3793					<xsl:when test="$graphproperty/@style:parent-style-name = 'Frame'">
3794						<xsl:if test="/office:document/office:styles/style:style[@style:name = 'Frame']/style:graphic-properties/@fo:border">
3795							<图:线粗细_805C>
3796								<xsl:value-of select="fun:Convert2uofUnit(/office:document/office:styles/style:style[@style:name = 'Frame']/style:graphic-properties/@fo:border)"/>
3797							</图:线粗细_805C>
3798						</xsl:if>
3799					</xsl:when>
3800				</xsl:choose>
3801			</xsl:when>
3802		</xsl:choose>
3803	</xsl:template>
3804	<xsl:template name="linearrow">
3805		<xsl:param name="graphproperty"/>
3806		<图:箭头_805D>
3807			<xsl:if test="$graphproperty/@draw:marker-start and string-length($graphproperty/@draw:marker-start)&gt;0 and contains($graphproperty/@draw:marker-start,'msArrow')">
3808				<图:前端箭头_805E>
3809					<xsl:variable name="marker_name">
3810						<xsl:value-of select="$graphproperty/@draw:marker-start"/>
3811					</xsl:variable>
3812					<!--<xsl:if test="not(contains($marker_name,'msArrow'))">
3813					<xsl:attribute name="xml:id"><xsl:value-of select="$marker_name"/></xsl:attribute>
3814				</xsl:if>-->
3815					<图:式样_8000>
3816						<xsl:variable name="drawMarkerStartStyle">
3817							<xsl:choose>
3818								<xsl:when test="contains($marker_name,'Open')">open</xsl:when>
3819								<xsl:when test="contains($marker_name,'Stealth')">stealth</xsl:when>
3820								<xsl:when test="contains($marker_name,'Oval')">oval</xsl:when>
3821								<xsl:when test="contains($marker_name,'Diamond')">diamond</xsl:when>
3822								<xsl:when test="$marker_name = 'Small Arrow' or $marker_name = 'Rounded short Arrow' or $marker_name = 'Symmetric Arrow' or $marker_name = 'Rounded large Arrow'">normal</xsl:when>
3823								<xsl:when test="$marker_name = 'Line Arrow'">open</xsl:when>
3824								<xsl:when test="$marker_name = 'Square 45'">diamond</xsl:when>
3825								<xsl:when test="$marker_name = 'Arrow concave'">stealth</xsl:when>
3826								<xsl:when test="contains($marker_name,'Arrow')">normal</xsl:when>
3827							</xsl:choose>
3828						</xsl:variable>
3829						<xsl:choose>
3830							<xsl:when test="$drawMarkerStartStyle != ''">
3831								<xsl:value-of select="$drawMarkerStartStyle"/>
3832							</xsl:when>
3833							<xsl:when test="$graphproperty/@draw:marker-start='Arrow'">normal</xsl:when>
3834							<xsl:when test="$graphproperty/@draw:marker-start='Line Arrow'">open</xsl:when>
3835							<xsl:when test="$graphproperty/@draw:marker-start='Arrow concave'">stealth</xsl:when>
3836							<xsl:when test="$graphproperty/@draw:marker-start='Circle'">oval</xsl:when>
3837							<xsl:when test="$graphproperty/@draw:marker-start='Square 45'">diamond</xsl:when>
3838							<xsl:otherwise>normal</xsl:otherwise>
3839						</xsl:choose>
3840					</图:式样_8000>
3841					<图:大小_8001>
3842						<xsl:choose>
3843							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-start)/@svg:viewBox = '0 0 140 140'">1</xsl:when>
3844							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-start)/@svg:viewBox = '0 0 140 310'">2</xsl:when>
3845							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-start)/@svg:viewBox = '0 0 140 350'">3</xsl:when>
3846							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-start)/@svg:viewBox = '0 0 210 140'">4</xsl:when>
3847							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-start)/@svg:viewBox = '0 0 210 210'">5</xsl:when>
3848							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-start)/@svg:viewBox = '0 0 210 350'">6</xsl:when>
3849							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-start)/@svg:viewBox = '0 0 350 140'">7</xsl:when>
3850							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-start)/@svg:viewBox = '0 0 350 210'">8</xsl:when>
3851							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-start)/@svg:viewBox = '0 0 350 350'">9</xsl:when>
3852							<!--schema 校验问题,只允许整型-->
3853							<xsl:otherwise>10</xsl:otherwise>
3854						</xsl:choose>
3855					</图:大小_8001>
3856					<!--图:连接线>
3857					<xsl:value-of select="$graphproperty/@draw:stroke-linejoin"/>
3858				</图:连接线-->
3859				</图:前端箭头_805E>
3860			</xsl:if>
3861			<xsl:if test="$graphproperty/@draw:marker-end and string-length($graphproperty/@draw:marker-end)&gt;0 and contains($graphproperty/@draw:marker-end,'msArrow')">
3862				<图:后端箭头_805F>
3863					<xsl:variable name="marker_name">
3864						<xsl:value-of select="$graphproperty/@draw:marker-end"/>
3865					</xsl:variable>
3866					<!--<xsl:if test="not(contains($marker_name,'msArrow'))">
3867					<xsl:attribute name="xml:id"><xsl:value-of select="$marker_name"/></xsl:attribute>
3868				</xsl:if>-->
3869					<图:式样_8000>
3870						<xsl:variable name="drawMarkerEndStyle">
3871							<xsl:choose>
3872								<xsl:when test="contains($marker_name,'ArrowOpen')">open</xsl:when>
3873								<xsl:when test="contains($marker_name,'ArrowStealth')">stealth</xsl:when>
3874								<xsl:when test="contains($marker_name,'ArrowOval')">oval</xsl:when>
3875								<xsl:when test="contains($marker_name,'ArrowDiamond')">diamond</xsl:when>
3876								<xsl:when test="contains($marker_name,'Arrow')">normal</xsl:when>
3877								<xsl:when test="$marker_name = 'Small Arrow' or $marker_name = 'Rounded short Arrow' or $marker_name = 'Symmetric Arrow' or $marker_name = 'Rounded large Arrow'">normal</xsl:when>
3878								<xsl:when test="$marker_name = 'Line Arrow'">open</xsl:when>
3879								<xsl:when test="$marker_name = 'Square 45'">diamond</xsl:when>
3880								<xsl:when test="$marker_name = 'Arrow concave'">stealth</xsl:when>
3881							</xsl:choose>
3882						</xsl:variable>
3883						<xsl:choose>
3884							<xsl:when test="$drawMarkerEndStyle != ''">
3885								<xsl:value-of select="$drawMarkerEndStyle"/>
3886							</xsl:when>
3887							<xsl:when test="$graphproperty/@draw:marker-end='Arrow'">normal</xsl:when>
3888							<xsl:when test="$graphproperty/@draw:marker-end='Line Arrow'">open</xsl:when>
3889							<xsl:when test="$graphproperty/@draw:marker-end='Arrow concave'">stealth</xsl:when>
3890							<xsl:when test="$graphproperty/@draw:marker-end='Circle'">oval</xsl:when>
3891							<xsl:when test="$graphproperty/@draw:marker-end='Square 45'">diamond</xsl:when>
3892							<xsl:otherwise>normal</xsl:otherwise>
3893						</xsl:choose>
3894					</图:式样_8000>
3895					<图:大小_8001>
3896						<xsl:choose>
3897							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-end)/@svg:viewBox = '0 0 140 140'">1</xsl:when>
3898							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-end)/@svg:viewBox = '0 0 140 310'">2</xsl:when>
3899							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-end)/@svg:viewBox = '0 0 140 350'">3</xsl:when>
3900							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-end)/@svg:viewBox = '0 0 210 140'">4</xsl:when>
3901							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-end)/@svg:viewBox = '0 0 210 210'">5</xsl:when>
3902							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-end)/@svg:viewBox = '0 0 210 350'">6</xsl:when>
3903							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-end)/@svg:viewBox = '0 0 350 140'">7</xsl:when>
3904							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-end)/@svg:viewBox = '0 0 350 210'">8</xsl:when>
3905							<xsl:when test="key('markerSize',$graphproperty/@draw:marker-end)/@svg:viewBox = '0 0 350 350'">9</xsl:when>
3906							<xsl:otherwise>1</xsl:otherwise>
3907						</xsl:choose>
3908					</图:大小_8001>
3909					<!--图:连接线>
3910					<xsl:value-of select="$graphproperty/@draw:stroke-linejoin"/>
3911				</图:连接线-->
3912				</图:后端箭头_805F>
3913			</xsl:if>
3914		</图:箭头_805D>
3915	</xsl:template>
3916	<xsl:template name="graphsize">
3917		<xsl:variable name="graphic_width">
3918			<xsl:choose>
3919				<xsl:when test="@svg:x1">
3920					<xsl:variable name="svg_x1" select="fun:Convert2uofUnit(@svg:x1)"/>
3921					<xsl:variable name="svg_x2" select="fun:Convert2uofUnit(@svg:x2)"/>
3922					<xsl:choose>
3923						<xsl:when test="number($svg_x2) &gt; number($svg_x1)">
3924							<xsl:value-of select="number($svg_x2) - number($svg_x1)"/>
3925						</xsl:when>
3926						<xsl:otherwise>
3927							<xsl:value-of select="number($svg_x1) - number($svg_x2)"/>
3928						</xsl:otherwise>
3929					</xsl:choose>
3930				</xsl:when>
3931				<xsl:when test="@fo:min-width">
3932					<xsl:value-of select="fun:Convert2uofUnit(@fo:min-width)"/>
3933				</xsl:when>
3934				<xsl:when test="@svg:width">
3935					<xsl:value-of select="fun:Convert2uofUnit(@svg:width)"/>
3936				</xsl:when>
3937				<xsl:when test="@svg:x">
3938					<xsl:value-of select="fun:Convert2uofUnit(@svg:width)"/>
3939				</xsl:when>
3940				<xsl:when test="child::draw:text-box/@fo:min-width">
3941					<xsl:value-of select="fun:Convert2uofUnit(child::draw:text-box/@fo:min-width)"/>
3942				</xsl:when>
3943				<xsl:when test="@svg:height">
3944					<xsl:value-of select="fun:Convert2uofUnit(@svg:height)"/>
3945				</xsl:when>
3946			</xsl:choose>
3947		</xsl:variable>
3948		<xsl:if test="not($graphic_width='')">
3949			<xsl:attribute name="宽_C605"><xsl:value-of select="$graphic_width"/></xsl:attribute>
3950		</xsl:if>
3951		<xsl:variable name="graphic_height">
3952			<xsl:choose>
3953				<xsl:when test="@svg:x1">
3954					<xsl:variable name="svg_y1" select="fun:Convert2uofUnit(@svg:y1)"/>
3955					<xsl:variable name="svg_y2" select="fun:Convert2uofUnit(@svg:y2)"/>
3956					<xsl:choose>
3957						<xsl:when test="number($svg_y2) &gt; number($svg_y1)">
3958							<xsl:value-of select="number($svg_y2) - number($svg_y1)"/>
3959						</xsl:when>
3960						<xsl:otherwise>
3961							<xsl:value-of select="number($svg_y1) - number($svg_y2)"/>
3962						</xsl:otherwise>
3963					</xsl:choose>
3964				</xsl:when>
3965				<xsl:when test="@svg:height">
3966					<xsl:value-of select="fun:Convert2uofUnit(@svg:height)"/>
3967				</xsl:when>
3968				<xsl:when test="draw:text-box/@fo:min-height">
3969					<xsl:value-of select="fun:Convert2uofUnit(draw:text-box/@fo:min-height)"/>
3970				</xsl:when>
3971				<xsl:when test="@svg:x">
3972					<xsl:value-of select="fun:Convert2uofUnit(@svg:height)"/>
3973				</xsl:when>
3974				<xsl:when test="child::draw:text-box/@fo:min-height">
3975					<xsl:value-of select="fun:Convert2uofUnit(child::draw:text-box/@fo:min-height)"/>
3976				</xsl:when>
3977				<xsl:when test="@svg:width">
3978					<xsl:value-of select="fun:Convert2uofUnit(@svg:height)"/>
3979				</xsl:when>
3980			</xsl:choose>
3981		</xsl:variable>
3982		<xsl:if test="not($graphic_height='')">
3983			<!--bug for title in masterpage-->
3984			<xsl:variable name="real_graphic_height">
3985				<xsl:choose>
3986					<xsl:when test="($documentType = 'presentation') and (name(.) = 'draw:frame') and (@presentation:class = 'title') and (name(..) = 'style:master-page')">
3987						<xsl:variable name="bug_height" select="0.254 div $other-to-cm-conversion-factor"/>
3988						<xsl:value-of select="number($graphic_height) - number($bug_height)"/>
3989					</xsl:when>
3990					<xsl:otherwise>
3991						<xsl:value-of select="$graphic_height"/>
3992					</xsl:otherwise>
3993				</xsl:choose>
3994			</xsl:variable>
3995			<xsl:attribute name="长_C604"><xsl:value-of select="$real_graphic_height"/></xsl:attribute>
3996		</xsl:if>
3997	</xsl:template>
3998	<xsl:template name="图:旋转角度-graph">
3999		<xsl:if test="@draw:transform">
4000			<图:旋转角度_804D>
4001				<xsl:choose>
4002					<xsl:when test="@draw:transform">
4003						<xsl:variable name="rotate-angle" select="@draw:transform"/>
4004						<xsl:variable name="rotate-temp" select="substring-before(substring-after($rotate-angle,'rotate ('),')')"/>
4005						<xsl:value-of select="round(number($rotate-temp) * 57.2957795)"/>
4006					</xsl:when>
4007					<xsl:otherwise>0.0</xsl:otherwise>
4008				</xsl:choose>
4009			</图:旋转角度_804D>
4010		</xsl:if>
4011	</xsl:template>
4012	<xsl:template name="图:透明度-graph">
4013		<xsl:param name="graphproperty"/>
4014		<xsl:if test="$graphproperty/@draw:opacity or $graphproperty/@draw:transparency or $graphproperty/@draw:fill or $graphproperty/@style:parent-style-name='Frame'">
4015			<xsl:choose>
4016				<!--xsl:when test="$graphproperty/@draw:fill='none'">
4017					<图:透明度 uof:locID="g0038">
4018						<xsl:value-of select="100"/>
4019					</图:透明度>
4020				</xsl:when-->
4021				<xsl:when test="$graphproperty/@draw:transparency">
4022					<图:透明度_8050>
4023						<xsl:value-of select="substring-before($graphproperty/@draw:transparency,'%')"/>
4024					</图:透明度_8050>
4025				</xsl:when>
4026				<xsl:when test="$graphproperty/@draw:opacity">
4027					<图:透明度_8050>
4028						<xsl:value-of select="100 - number(substring-before($graphproperty/@draw:opacity,'%'))"/>
4029					</图:透明度_8050>
4030				</xsl:when>
4031				<xsl:when test="$graphproperty/@style:background-transparency">
4032					<图:透明度_8050>
4033						<xsl:value-of select="substring-before($graphproperty/@style:background-transparency,'%')"/>
4034					</图:透明度_8050>
4035				</xsl:when>
4036			</xsl:choose>
4037		</xsl:if>
4038	</xsl:template>
4039	<xsl:template name="图:阴影-graph">
4040		<xsl:param name="graphproperty"/>
4041		<xsl:if test="$graphproperty/@draw:shadow">
4042			<xsl:element name="图:阴影_8051">
4043				<xsl:attribute name="是否显示阴影_C61C"><xsl:choose><xsl:when test="$graphproperty/@draw:shadow='visible'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
4044				<xsl:attribute name="类型_C61D">perspective</xsl:attribute>
4045				<xsl:if test="$graphproperty/@draw:shadow-color != ''">
4046					<xsl:attribute name="颜色_C61E"><xsl:value-of select="$graphproperty/@draw:shadow-color"/></xsl:attribute>
4047				</xsl:if>
4048				<xsl:if test="$graphproperty/@draw:shadow-opacity !=''">
4049					<xsl:attribute name="透明度_C61F"><xsl:value-of select="100 - number(substring-before($graphproperty/@draw:shadow-opacity,'%'))"/></xsl:attribute>
4050				</xsl:if>
4051				<uof:偏移量_C61B>
4052					<xsl:variable name="xpos">
4053						<xsl:choose>
4054							<xsl:when test="$graphproperty/@draw:shadow-offset-x">
4055								<xsl:variable name="X-off" select="fun:Convert2uofUnit($graphproperty/@draw:shadow-offset-x)"/>
4056								<xsl:value-of select="round($X-off)"/>
4057							</xsl:when>
4058							<xsl:otherwise>0</xsl:otherwise>
4059						</xsl:choose>
4060					</xsl:variable>
4061					<xsl:attribute name="x_C606"><xsl:value-of select="$xpos"/></xsl:attribute>
4062					<xsl:variable name="ypos">
4063						<xsl:choose>
4064							<xsl:when test="$graphproperty/@draw:shadow-offset-y">
4065								<xsl:variable name="Y-off" select="fun:Convert2uofUnit($graphproperty/@draw:shadow-offset-y)"/>
4066								<xsl:value-of select="round($Y-off)"/>
4067							</xsl:when>
4068							<xsl:otherwise>0</xsl:otherwise>
4069						</xsl:choose>
4070					</xsl:variable>
4071					<xsl:attribute name="y_C607"><xsl:value-of select="$ypos"/></xsl:attribute>
4072				</uof:偏移量_C61B>
4073			</xsl:element>
4074		</xsl:if>
4075	</xsl:template>
4076	<xsl:template name="图:属性-graph">
4077		<xsl:param name="graphproperty"/>
4078		<图:属性_801D>
4079			<xsl:choose>
4080				<xsl:when test="not($graphproperty/@draw:fill)">
4081					<图:填充_804C>
4082						<图:颜色_8004>auto</图:颜色_8004>
4083					</图:填充_804C>
4084				</xsl:when>
4085				<!--出现空填充元素致校验不过 xsl:when test="$graphproperty/@draw:fill != 'none' or $graphproperty/@draw:fill-color"-->
4086				<xsl:when test="$graphproperty/@draw:fill != 'none'">
4087					<图:填充_804C>
4088						<xsl:call-template name="图:填充-graph">
4089							<xsl:with-param name="graphproperty" select="$graphproperty"/>
4090						</xsl:call-template>
4091					</图:填充_804C>
4092				</xsl:when>
4093				<xsl:otherwise/>
4094			</xsl:choose>
4095			<图:线_8057>
4096				<xsl:call-template name="图:线颜色-graph">
4097					<xsl:with-param name="graphproperty" select="$graphproperty"/>
4098				</xsl:call-template>
4099				<xsl:call-template name="图:线类型-graph">
4100					<xsl:with-param name="graphproperty" select="$graphproperty"/>
4101				</xsl:call-template>
4102				<xsl:call-template name="图:线粗细-graph">
4103					<xsl:with-param name="graphproperty" select="$graphproperty"/>
4104				</xsl:call-template>
4105			</图:线_8057>
4106			<xsl:call-template name="linearrow">
4107				<xsl:with-param name="graphproperty" select="$graphproperty"/>
4108			</xsl:call-template>
4109			<图:大小_8060>
4110				<xsl:call-template name="graphsize"/>
4111			</图:大小_8060>
4112			<xsl:call-template name="图:旋转角度-graph"/>
4113			<xsl:call-template name="图:透明度-graph">
4114				<xsl:with-param name="graphproperty" select="$graphproperty"/>
4115			</xsl:call-template>
4116			<xsl:call-template name="图:阴影-graph">
4117				<xsl:with-param name="graphproperty" select="$graphproperty"/>
4118			</xsl:call-template>
4119			<图:缩放是否锁定纵横比_8055>0</图:缩放是否锁定纵横比_8055>
4120			<图:是否打印对象_804E>
4121				<xsl:choose>
4122					<xsl:when test="$graphproperty/@draw:printprev-hide = 'true'">false</xsl:when>
4123					<xsl:otherwise>true</xsl:otherwise>
4124				</xsl:choose>
4125			</图:是否打印对象_804E>
4126			<xsl:if test="svg:title">
4127				<图:Web文字_804F>
4128					<xsl:value-of select="svg:title"/>
4129				</图:Web文字_804F>
4130			</xsl:if>
4131			<xsl:if test="$graphproperty/@draw:color-mode!='' or $graphproperty/@draw:luminance!='' or $graphproperty/@draw:contrast!='' or $graphproperty/@fo:clip!=''">
4132				<图:图片属性_801E>
4133					<xsl:if test="$graphproperty/@draw:color-mode!=''">
4134						<图:颜色模式_801F>
4135							<xsl:choose>
4136								<xsl:when test="$graphproperty/@draw:color-mode = 'mono'">monochrome</xsl:when>
4137								<xsl:when test="$graphproperty/@draw:color-mode = 'watermark'">erosion</xsl:when>
4138								<xsl:when test="$graphproperty/@draw:color-mode = 'standard'">auto</xsl:when>
4139								<xsl:otherwise>
4140									<xsl:value-of select="$graphproperty/@draw:color-mode"/>
4141								</xsl:otherwise>
4142							</xsl:choose>
4143						</图:颜色模式_801F>
4144					</xsl:if>
4145					<!--UOFSchema校验 亮度&对比度必须为空-->
4146					<xsl:if test="$graphproperty/@draw:luminance!=''">
4147						<图:亮度_8020>
4148							<xsl:value-of select="substring-before($graphproperty/@draw:luminance,'%')"/>
4149						</图:亮度_8020>
4150					</xsl:if>
4151					<xsl:if test="$graphproperty/@draw:contrast!=''">
4152						<图:对比度_8021>
4153							<xsl:value-of select="substring-before($graphproperty/@draw:contrast,'%')"/>
4154						</图:对比度_8021>
4155					</xsl:if>
4156					<图:图片裁剪_8022>
4157						<xsl:variable name="clip">
4158							<xsl:value-of select="substring-after(substring-before($graphproperty/@fo:clip,')'),'(')"/>
4159						</xsl:variable>
4160						<图:上_8023>
4161							<xsl:value-of select="fun:Convert2uofUnit(subsequence(tokenize($clip,','),1,1))"/>
4162						</图:上_8023>
4163						<图:下_8024>
4164							<xsl:value-of select="fun:Convert2uofUnit(subsequence(tokenize($clip,','),3,1))"/>
4165						</图:下_8024>
4166						<图:左_8025>
4167							<xsl:value-of select="fun:Convert2uofUnit(subsequence(tokenize($clip,','),4,1))"/>
4168						</图:左_8025>
4169						<图:右_8026>
4170							<xsl:value-of select="fun:Convert2uofUnit(subsequence(tokenize($clip,','),2,1))"/>
4171						</图:右_8026>
4172					</图:图片裁剪_8022>
4173				</图:图片属性_801E>
4174			</xsl:if>
4175		</图:属性_801D>
4176	</xsl:template>
4177	<xsl:template name="FindType">
4178		<xsl:param name="graphproperty"/>
4179		<xsl:variable name="nodename">
4180			<xsl:value-of select="name(.)"/>
4181		</xsl:variable>
4182		<xsl:variable name="conArrowStart">
4183			<xsl:choose>
4184				<xsl:when test="$graphproperty/@draw:marker-start">true</xsl:when>
4185				<xsl:otherwise>false</xsl:otherwise>
4186			</xsl:choose>
4187		</xsl:variable>
4188		<xsl:variable name="pagethumbnail">
4189			<xsl:if test="$graphproperty='page-thumbnail'">true</xsl:if>
4190		</xsl:variable>
4191		<xsl:variable name="conArrowEnd">
4192			<xsl:choose>
4193				<xsl:when test="$graphproperty/@draw:marker-end">true</xsl:when>
4194				<xsl:otherwise>false</xsl:otherwise>
4195			</xsl:choose>
4196		</xsl:variable>
4197		<xsl:variable name="type">
4198			<xsl:value-of select="draw:enhanced-geometry/@draw:type"/>
4199		</xsl:variable>
4200		<图:类别_8019>
4201			<xsl:choose>
4202				<xsl:when test="$pagethumbnail='true'">11</xsl:when>
4203				<xsl:when test="$nodename='draw:frame'">11</xsl:when>
4204				<xsl:when test="$nodename='office:annotation'">11</xsl:when>
4205				<xsl:when test="$nodename='draw:rect'">11</xsl:when>
4206				<xsl:when test="$nodename='draw:line'">61</xsl:when>
4207				<xsl:when test="$nodename='draw:circle'">19</xsl:when>
4208				<xsl:when test="$nodename='draw:polygon'">65</xsl:when>
4209				<xsl:when test="$nodename='draw:polyline'">66</xsl:when>
4210				<xsl:when test="$nodename='draw:ellipse'">19</xsl:when>
4211				<xsl:when test="child::draw:text-box">11</xsl:when>
4212				<xsl:when test="$nodename='draw:caption'">51</xsl:when>
4213				<xsl:when test="$nodename='draw:connector'">
4214					<xsl:choose>
4215						<xsl:when test="@draw:type = 'line' and $conArrowStart = 'false' and $conArrowEnd = 'false'">71</xsl:when>
4216						<xsl:when test="@draw:type = 'line' and ($conArrowStart = 'true' or $conArrowEnd = 'true')">72</xsl:when>
4217						<xsl:when test="@draw:type = 'line' and $conArrowStart = 'true' and $conArrowEnd = 'true'">73</xsl:when>
4218						<xsl:when test="@draw:type = 'curve' and $conArrowStart = 'false' and $conArrowEnd = 'false'">74</xsl:when>
4219						<xsl:when test="@draw:type = 'curve' and ($conArrowStart = 'true' or $conArrowEnd = 'true')">75</xsl:when>
4220						<xsl:when test="@draw:type = 'curve' and $conArrowStart = 'true' and $conArrowEnd = 'true'">76</xsl:when>
4221						<xsl:when test="@draw:type = '' and $conArrowStart = 'false' and $conArrowEnd = 'false'">77</xsl:when>
4222						<xsl:when test="@draw:type = '' and ($conArrowStart = 'true' or $conArrowEnd = 'true')">78</xsl:when>
4223						<xsl:when test="@draw:type = '' and $conArrowStart = 'true' and $conArrowEnd = 'true'">79</xsl:when>
4224						<xsl:otherwise>71</xsl:otherwise>
4225					</xsl:choose>
4226				</xsl:when>
4227				<xsl:when test="$nodename='draw:custom-shape'">
4228					<xsl:choose>
4229						<xsl:when test="$type = 'rectangle' or $type = 'mso-spt202'">11</xsl:when>
4230						<xsl:when test="$type='parallelogram'">12</xsl:when>
4231						<xsl:when test="$type='trapezoid'">13</xsl:when>
4232						<xsl:when test="$type='diamond'">14</xsl:when>
4233						<xsl:when test="$type = 'round-rectangle'">15</xsl:when>
4234						<xsl:when test="$type = 'octagon'">16</xsl:when>
4235						<xsl:when test="$type = 'isosceles-triangle'">17</xsl:when>
4236						<xsl:when test="$type = 'right-triangle'">18</xsl:when>
4237						<xsl:when test="$type = 'ellipse'">19</xsl:when>
4238						<xsl:when test="$type = 'right-arrow'">21</xsl:when>
4239						<xsl:when test="$type = 'left-arrow'">22</xsl:when>
4240						<xsl:when test="$type = 'up-arrow'">23</xsl:when>
4241						<xsl:when test="$type = 'down-arrow'">24</xsl:when>
4242						<xsl:when test="$type = 'left-right-arrow'">25</xsl:when>
4243						<xsl:when test="$type = 'up-down-arrow'">26</xsl:when>
4244						<xsl:when test="$type = 'quad-arrow'">27</xsl:when>
4245						<xsl:when test="$type = 'mso-spt182'">28</xsl:when>
4246						<xsl:when test="$type = 'flowchart-process'">31</xsl:when>
4247						<xsl:when test="$type = 'flowchart-decision'">33</xsl:when>
4248						<xsl:when test="$type = 'flowchart-data'">34</xsl:when>
4249						<xsl:when test="$type = 'flowchart-predefined-process'">35</xsl:when>
4250						<xsl:when test="$type = 'flowchart-internal-storage'">36</xsl:when>
4251						<xsl:when test="$type = 'flowchart-document'">37</xsl:when>
4252						<xsl:when test="$type = 'flowchart-multidocument'">38</xsl:when>
4253						<xsl:when test="$type = 'flowchart-terminator'">39</xsl:when>
4254						<xsl:when test="$type = 'mso-spt71'">41</xsl:when>
4255						<xsl:when test="$type = 'bang'">42</xsl:when>
4256						<xsl:when test="$type = 'star4'">43</xsl:when>
4257						<xsl:when test="$type = 'star5'">44</xsl:when>
4258						<xsl:when test="$type = 'star8'">45</xsl:when>
4259						<xsl:when test="$type = 'mso-spt59'">46</xsl:when>
4260						<xsl:when test="$type = 'star24'">47</xsl:when>
4261						<xsl:when test="$type = 'mso-spt60'">48</xsl:when>
4262						<xsl:when test="$type = 'mso-spt54'">49</xsl:when>
4263						<xsl:when test="$type = 'rectangular-callout'">51</xsl:when>
4264						<xsl:when test="$type = 'round-rectangular-callout'">52</xsl:when>
4265						<xsl:when test="$type = 'round-callout'">53</xsl:when>
4266						<xsl:when test="$type = 'cloud-callout'">54</xsl:when>
4267						<xsl:when test="$type = 'line-callout-1'">55</xsl:when>
4268						<xsl:when test="$type = 'line-callout-2'">56</xsl:when>
4269						<xsl:when test="$type = 'line-callout-3'">57</xsl:when>
4270						<xsl:when test="$type = 'hexagon'">110</xsl:when>
4271						<xsl:when test="$type = 'cross'">111</xsl:when>
4272						<xsl:when test="$type = 'pentagon'">112</xsl:when>
4273						<xsl:when test="$type = 'can'">113</xsl:when>
4274						<xsl:when test="$type = 'cube'">114</xsl:when>
4275						<xsl:when test="$type = 'quad-bevel'">115</xsl:when>
4276						<xsl:when test="$type = 'paper'">116</xsl:when>
4277						<xsl:when test="$type = 'smiley'">117</xsl:when>
4278						<xsl:when test="$type = 'ring'">118</xsl:when>
4279						<xsl:when test="$type = 'forbidden'">119</xsl:when>
4280						<xsl:when test="$type = 'heart'">121</xsl:when>
4281						<xsl:when test="$type = 'non-primitive'">122</xsl:when>
4282						<xsl:when test="$type = 'sun'">123</xsl:when>
4283						<xsl:when test="$type = 'moon'">124</xsl:when>
4284						<xsl:when test="$type = 'bracket-pair'">126</xsl:when>
4285						<xsl:when test="$type = 'brace-pair'">127</xsl:when>
4286						<xsl:when test="$type = 'mso-spt21'">128</xsl:when>
4287						<xsl:when test="$type = 'left-bracket'">129</xsl:when>
4288						<xsl:when test="$type = 'right-bracket'">130</xsl:when>
4289						<xsl:when test="$type = 'left-brace'">131</xsl:when>
4290						<xsl:when test="$type = 'right-brace'">132</xsl:when>
4291						<xsl:when test="$type = 'mso-spt89'">211</xsl:when>
4292						<!--xsl:when test="$type = 'non-primitive'">212</xsl:when-->
4293						<xsl:when test="$type = 'circular-arrow'">214</xsl:when>
4294						<xsl:when test="$type = 'circular-arrow'">216</xsl:when>
4295						<!--xsl:when test="$type = 'mso-spt100'">217</xsl:when-->
4296						<xsl:when test="$type = 'notched-right-arrow'">218</xsl:when>
4297						<xsl:when test="$type = 'pentagon-right'">219</xsl:when>
4298						<xsl:when test="$type = 'chevron'">220</xsl:when>
4299						<xsl:when test="$type = 'right-arrow-callout'">221</xsl:when>
4300						<xsl:when test="$type = 'left-arrow-callout'">222</xsl:when>
4301						<xsl:when test="$type = 'up-arrow-callout'">223</xsl:when>
4302						<xsl:when test="$type = 'down-arrow-callout'">224</xsl:when>
4303						<xsl:when test="$type = 'left-right-arrow-callout'">225</xsl:when>
4304						<xsl:when test="$type = 'up-down-arrow-callout'">226</xsl:when>
4305						<xsl:when test="$type = 'quad-arrow-callout'">227</xsl:when>
4306						<xsl:when test="$type = 'circular-arrow'">228</xsl:when>
4307						<xsl:when test="$type = 'flowchart-preparation'">310</xsl:when>
4308						<xsl:when test="$type = 'flowchart-manual-input'">311</xsl:when>
4309						<xsl:when test="$type = 'flowchart-manual-operation'">312</xsl:when>
4310						<xsl:when test="$type = 'flowchart-connector'">313</xsl:when>
4311						<xsl:when test="$type = 'flowchart-off-page-connector'">314</xsl:when>
4312						<xsl:when test="$type = 'flowchart-card'">315</xsl:when>
4313						<xsl:when test="$type = 'flowchart-punched-tape'">316</xsl:when>
4314						<xsl:when test="$type = 'flowchart-summing-junction'">317</xsl:when>
4315						<xsl:when test="$type = 'flowchart-or'">318</xsl:when>
4316						<xsl:when test="$type = 'flowchart-collate'">319</xsl:when>
4317						<xsl:when test="$type = 'flowchart-sort'">320</xsl:when>
4318						<xsl:when test="$type = 'flowchart-extract'">321</xsl:when>
4319						<xsl:when test="$type = 'flowchart-merge'">322</xsl:when>
4320						<xsl:when test="$type = 'flowchart-stored-data'">323</xsl:when>
4321						<xsl:when test="$type = 'flowchart-delay'">324</xsl:when>
4322						<xsl:when test="$type = 'flowchart-sequential-access'">325</xsl:when>
4323						<xsl:when test="$type = 'flowchart-magnetic-disk'">326</xsl:when>
4324						<xsl:when test="$type = 'flowchart-direct-access-storage'">327</xsl:when>
4325						<xsl:when test="$type = 'flowchart-display'">328</xsl:when>
4326						<xsl:when test="$type = 'vertical-scroll'">413</xsl:when>
4327						<xsl:when test="$type = 'horizontal-scroll'">414</xsl:when>
4328						<!--xsl:otherwise>11</xsl:otherwise-->
4329					</xsl:choose>
4330				</xsl:when>
4331			</xsl:choose>
4332		</图:类别_8019>
4333		<图:名称_801A>
4334			<xsl:choose>
4335				<xsl:when test="$pagethumbnail='true'">Rectangle</xsl:when>
4336				<xsl:when test="$nodename='office:annotation'">Rectangle</xsl:when>
4337				<xsl:when test="$nodename='draw:rect' or ($nodename='draw:custom-shape' and $type='rectangle')">Rectangle</xsl:when>
4338				<xsl:when test="$nodename='draw:line'">Line</xsl:when>
4339				<xsl:when test="$nodename='draw:circle'">Oval</xsl:when>
4340				<xsl:when test="$nodename='draw:polygon'">Freeform</xsl:when>
4341				<xsl:when test="$nodename='draw:polyline'">Scribble</xsl:when>
4342				<xsl:when test="$nodename='draw:caption'">Rectangular Callout</xsl:when>
4343				<xsl:when test="$nodename='draw:connector'">
4344					<xsl:choose>
4345						<xsl:when test="@draw:type = 'line' and $conArrowStart = 'false' and $conArrowEnd = 'false'">Straight Connector</xsl:when>
4346						<xsl:when test="@draw:type = 'line' and ($conArrowStart = 'true' or $conArrowEnd = 'true')">Straight Arrow Connector</xsl:when>
4347						<xsl:when test="@draw:type = 'line' and $conArrowStart = 'true' and $conArrowEnd = 'true'">Straight Double-Arrow Connector</xsl:when>
4348						<xsl:when test="@draw:type = 'curve' and $conArrowStart = 'false' and $conArrowEnd = 'false'">Elbow Connector</xsl:when>
4349						<xsl:when test="@draw:type = 'curve' and ($conArrowStart = 'true' or $conArrowEnd = 'true')">Elbow Arrow Connector</xsl:when>
4350						<xsl:when test="@draw:type = 'curve' and $conArrowStart = 'true' and $conArrowEnd = 'true'">Elbow Double-Arrow Connector</xsl:when>
4351						<xsl:when test="@draw:type = '' and $conArrowStart = 'false' and $conArrowEnd = 'false'">Curved Connector</xsl:when>
4352						<xsl:when test="@draw:type = '' and ($conArrowStart = 'true' or $conArrowEnd = 'true')">Curved Arrow Connector</xsl:when>
4353						<xsl:when test="@draw:type = '' and $conArrowStart = 'true' and $conArrowEnd = 'true'">Curved Double-Arrow Connector</xsl:when>
4354						<xsl:otherwise>Straight Connector</xsl:otherwise>
4355					</xsl:choose>
4356				</xsl:when>
4357				<xsl:when test="$nodename='draw:ellipse' or ($nodename='draw:custom-shape' and $type='ellipse')">Oval</xsl:when>
4358				<xsl:when test="$nodename='draw:frame' and  child::draw:text-box[@fo:min-height]">Rectangle</xsl:when>
4359				<xsl:when test="$nodename='draw:frame' and child::draw:text-box">Rectangle</xsl:when>
4360				<xsl:when test="$nodename='draw:custom-shape' and $type='smiley'">Smiley Face</xsl:when>
4361				<xsl:when test="$nodename='draw:custom-shape' and $type='parallelogram'">Paralleogram</xsl:when>
4362				<xsl:when test="$nodename='draw:custom-shape' and $type='diamond'">Diamond</xsl:when>
4363				<xsl:when test="$nodename='draw:custom-shape' and $type='trapezoid'">Trapezoid</xsl:when>
4364				<xsl:when test="$nodename='draw:custom-shape' and $type='paper'">Folded Corner</xsl:when>
4365				<xsl:when test="$nodename='draw:custom-shape' and $type='star5'">5-Point Star</xsl:when>
4366				<xsl:when test="$nodename='draw:custom-shape' and $type='mso-spt60'">32-Point Star</xsl:when>
4367				<!--xsl:when test="$nodename='draw:custom-shape' and $type='rectangular-callout'">Rectangular Callout</xsl:when-->
4368				<xsl:when test="$nodename='draw:custom-shape' and $type='right-triangle'">Right Triangle</xsl:when>
4369				<xsl:when test="$nodename='draw:custom-shape' and $type='right-arrow'">Right Arrow</xsl:when>
4370				<xsl:when test="$nodename='draw:custom-shape' and $type='left-arrow'">Left Arrow</xsl:when>
4371				<xsl:when test="$nodename='draw:custom-shape' and $type='up-arrow'">Up Arrow</xsl:when>
4372				<xsl:when test="$nodename='draw:custom-shape' and $type='down-arrow'">Down Arrow</xsl:when>
4373				<xsl:when test="$nodename='draw:custom-shape' and $type='left-right-arrow'">Left-Right Arrow</xsl:when>
4374				<xsl:when test="$nodename='draw:custom-shape' and $type='up-down-arrow'">Up-Down Arrow</xsl:when>
4375				<xsl:when test="$nodename='draw:custom-shape' and $type='star8'">8-Point Star</xsl:when>
4376				<xsl:when test="$nodename='draw:custom-shape' and $type='mso-spt59'">16-Point Star</xsl:when>
4377				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-process'">Process</xsl:when>
4378				<xsl:when test="$nodename='draw:custom-shape' and $type='isosceles-triangle'">Isosceles Triangle</xsl:when>
4379				<xsl:when test="$nodename='draw:custom-shape' and $type='mso-spt21'">Plaque</xsl:when>
4380				<xsl:when test="$nodename='draw:custom-shape' and $type='chevron'">Chevron Arrow</xsl:when>
4381				<xsl:when test="$nodename='draw:custom-shape' and $type='quad-bevel'">Beveled</xsl:when>
4382				<xsl:when test="$nodename='draw:custom-shape' and $type='up-arrow-callout'">Up Arrow Callout</xsl:when>
4383				<xsl:when test="$nodename='draw:custom-shape' and $type='cross'">Cross</xsl:when>
4384				<xsl:when test="$nodename='draw:custom-shape' and $type='heart'">Heart</xsl:when>
4385				<xsl:when test="$nodename='draw:custom-shape' and $type='pentagon'">Regual Pentagon</xsl:when>
4386				<xsl:when test="$nodename='draw:custom-shape' and $type='cube'">Cube</xsl:when>
4387				<xsl:when test="$nodename='draw:custom-shape' and $type='ring'">Donut</xsl:when>
4388				<xsl:when test="$nodename='draw:custom-shape' and $type='can'">Can</xsl:when>
4389				<xsl:when test="$nodename='draw:custom-shape' and $type='hexagon'">Hexagon</xsl:when>
4390				<xsl:when test="$nodename='draw:custom-shape' and $type='sun'">Sun</xsl:when>
4391				<xsl:when test="$nodename='draw:custom-shape' and $type='moon'">Moon</xsl:when>
4392				<xsl:when test="$nodename='draw:custom-shape' and $type='octagon'">Octagon</xsl:when>
4393				<xsl:when test="$nodename='draw:custom-shape' and $type='round-rectangle'">Rounded Rectangle</xsl:when>
4394				<xsl:when test="$nodename='draw:custom-shape' and $type='quad-arrow'">Quad Arrow</xsl:when>
4395				<xsl:when test="$nodename='draw:custom-shape' and $type='mso-spt182'">Left-Right-Up Arrow</xsl:when>
4396				<!--xsl:when test="$nodename='draw:custom-shape' and $type='cloud-callout'">Cloud Callout</xsl:when-->
4397				<xsl:when test="$nodename='draw:custom-shape' and $type='mso-spt71'">Explosion 1</xsl:when>
4398				<xsl:when test="$nodename='draw:custom-shape' and $type='bang'">Explosion 2</xsl:when>
4399				<xsl:when test="$nodename='draw:custom-shape' and $type='mso-spt54'">Up Ribbon</xsl:when>
4400				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-decision'">Decision</xsl:when>
4401				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-document'">Document</xsl:when>
4402				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-terminator'">Terminator</xsl:when>
4403				<xsl:when test="$nodename='draw:custom-shape' and $type='up-down-arrow-callout'">Up-Down Arrow Callout</xsl:when>
4404				<xsl:when test="$nodename='draw:custom-shape' and $type='quad-arrow-callout'">Quad Arrow Callout</xsl:when>
4405				<!--xsl:when test="$nodename='draw:custom-shape' and $type='mso-spt100'">Striped Right Arrow</xsl:when-->
4406				<xsl:when test="$nodename='draw:custom-shape' and $type='notched-right-arrow'">Notched Right Arrow</xsl:when>
4407				<xsl:when test="$nodename='draw:custom-shape' and $type='pentagon-right'">Pentagon Arrow</xsl:when>
4408				<xsl:when test="$nodename='draw:custom-shape' and $type='right-arrow-callout'">Right Arrow Callout</xsl:when>
4409				<xsl:when test="$nodename='draw:custom-shape' and $type='left-arrow-callout'">Left Arrow Callout</xsl:when>
4410				<xsl:when test="$nodename='draw:custom-shape' and $type='down-arrow-callout'">Down Arrow Callout</xsl:when>
4411				<xsl:when test="$nodename='draw:custom-shape' and $type='left-right-arrow-callout'">Left-Right Arrow Callout</xsl:when>
4412				<xsl:when test="$nodename='draw:custom-shape' and $type='circular-arrow'">Circular Arrow</xsl:when>
4413				<!--xsl:when test="$nodename='draw:custom-shape' and $type='non-primitive'">Bent-Up Arrow</xsl:when-->
4414				<xsl:when test="$nodename='draw:custom-shape' and $type='mso-spt89'">Left-Up Arrow</xsl:when>
4415				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-data'">Data</xsl:when>
4416				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-predefined-process'">Predefined Process</xsl:when>
4417				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-internal-storage'">Internal Storage</xsl:when>
4418				<xsl:when test="$nodename='draw:custom-shape' and $type='star4'">4-Point Star</xsl:when>
4419				<!--xsl:when test="$nodename='draw:custom-shape' and $type='round-rectangular-callout'">Rounded Rectangular Callout</xsl:when>
4420				<xsl:when test="$nodename='draw:custom-shape' and $type='round-callout'">Oval Callout</xsl:when>
4421				<xsl:when test="$nodename='draw:custom-shape' and $type='line-callout-1'">Line Callout1</xsl:when>
4422				<xsl:when test="$nodename='draw:custom-shape' and $type='line-callout-2'">Line Callout2</xsl:when>
4423				<xsl:when test="$nodename='draw:custom-shape' and $type='line-callout-3'">Line Callout3</xsl:when-->
4424				<xsl:when test="$nodename='draw:custom-shape' and $type='smiley'">Smiley Face</xsl:when>
4425				<xsl:when test="$nodename='draw:custom-shape' and $type='forbidden'">"No"  Symbol</xsl:when>
4426				<xsl:when test="$nodename='draw:custom-shape' and $type='non-primitive'">Lightning</xsl:when>
4427				<xsl:when test="$nodename='draw:custom-shape' and $type='bracket-pair'">Double Bracket</xsl:when>
4428				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-multidocument'">Multidocument</xsl:when>
4429				<xsl:when test="$nodename='draw:custom-shape' and $type='brace-pair'">Double Brace</xsl:when>
4430				<xsl:when test="$nodename='draw:custom-shape' and $type='left-bracket'">Left Bracket</xsl:when>
4431				<xsl:when test="$nodename='draw:custom-shape' and $type='right-bracket'">Right Bracket</xsl:when>
4432				<xsl:when test="$nodename='draw:custom-shape' and $type='left-brace'">Left Brace</xsl:when>
4433				<xsl:when test="$nodename='draw:custom-shape' and $type='right-brace'">Right Brace</xsl:when>
4434				<xsl:when test="$nodename='draw:custom-shape' and $type='circular-arrow'"/>
4435				<xsl:when test="$nodename='draw:custom-shape' and $type='circular-arrow'"/>
4436				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-preparation'">Preparation</xsl:when>
4437				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-manual-input'">Manual Input</xsl:when>
4438				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-manual-operation'">Manual Operation</xsl:when>
4439				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-connector'">Connector</xsl:when>
4440				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-off-page-connector'">Off-page Connector</xsl:when>
4441				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-card'">Card</xsl:when>
4442				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-punched-tape'">Punched Tape</xsl:when>
4443				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-summing-junction'">Summing Junction</xsl:when>
4444				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-or'">Or</xsl:when>
4445				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-collate'">Collate</xsl:when>
4446				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-sort'">Sort</xsl:when>
4447				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-extract'">Extract</xsl:when>
4448				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-merge'">Merge</xsl:when>
4449				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-stored-data'">Stored Data</xsl:when>
4450				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-delay'">Delay</xsl:when>
4451				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-sequential-access'">Sequential Access Storage</xsl:when>
4452				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-magnetic-disk'">Magnetic Disk</xsl:when>
4453				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-direct-access-storage'">Direct Access Storage</xsl:when>
4454				<xsl:when test="$nodename='draw:custom-shape' and $type='flowchart-display'">Display</xsl:when>
4455				<xsl:when test="$nodename='draw:custom-shape' and $type='vertical-scroll'">Vertical Scroll</xsl:when>
4456				<xsl:when test="$nodename='draw:custom-shape' and $type='horizontal-scroll'">Horizontal Scroll</xsl:when>
4457				<!--xsl:otherwise>Rectangle</xsl:otherwise-->
4458			</xsl:choose>
4459		</图:名称_801A>
4460	</xsl:template>
4461	<xsl:template name="draw:points">
4462		<xsl:param name="point"/>
4463		<xsl:param name="lujing"/>
4464		<xsl:choose>
4465			<xsl:when test="contains($point,' ' )">
4466				<xsl:variable name="first-point" select="substring-before($point,' ')"/>
4467				<xsl:variable name="other-point" select="substring-after($point,' ')"/>
4468				<xsl:variable name="xzuobiao">
4469					<xsl:value-of select="number(substring-before($first-point,',')) div 1000"/>
4470				</xsl:variable>
4471				<xsl:variable name="yzuobiao">
4472					<xsl:value-of select="number(substring-after($first-point,',')) div 1000"/>
4473				</xsl:variable>
4474				<xsl:call-template name="draw:points">
4475					<xsl:with-param name="point" select="$other-point"/>
4476					<xsl:with-param name="lujing" select="concat($lujing,$xzuobiao,' ',$yzuobiao,'lineto')"/>
4477				</xsl:call-template>
4478			</xsl:when>
4479			<xsl:otherwise>
4480				<xsl:variable name="xzuobiao">
4481					<xsl:value-of select="number(substring-before($point,',')) div 1000"/>
4482				</xsl:variable>
4483				<xsl:variable name="yzuobiao">
4484					<xsl:value-of select="number(substring-after($point,',')) div 1000"/>
4485				</xsl:variable>
4486				<xsl:value-of select="concat($lujing,$xzuobiao,' ',$yzuobiao)"/>
4487			</xsl:otherwise>
4488		</xsl:choose>
4489	</xsl:template>
4490	<xsl:template name="图:路径-graph">
4491		<xsl:variable name="path">
4492			<xsl:choose>
4493				<xsl:when test="@svg:d">
4494					<xsl:value-of select="@svg:d"/>
4495				</xsl:when>
4496				<xsl:when test="@draw:points">
4497					<xsl:call-template name="draw:points">
4498						<xsl:with-param name="point" select="@draw:points"/>
4499						<xsl:with-param name="lujing"/>
4500					</xsl:call-template>
4501				</xsl:when>
4502			</xsl:choose>
4503		</xsl:variable>
4504		<xsl:if test="(./@draw:points or ./@svg:d) and ./@svg:viewBox">
4505			<图:路径_801C>
4506				<图:视窗_806A>
4507					<xsl:element name="图:左上角_806B">
4508						<xsl:attribute name="x_C606"><xsl:value-of select="subsequence(tokenize(@svg:viewBox,' '),1,1)"/></xsl:attribute>
4509						<xsl:attribute name="y_C607"><xsl:value-of select="subsequence(tokenize(@svg:viewBox,' '),2,1)"/></xsl:attribute>
4510					</xsl:element>
4511					<xsl:element name="图:大小_806C">
4512						<xsl:attribute name="长_C604"><xsl:value-of select="subsequence(tokenize(@svg:viewBox,' '),4,1)"/></xsl:attribute>
4513						<xsl:attribute name="宽_C605"><xsl:value-of select="subsequence(tokenize(@svg:viewBox,' '),3,1)"/></xsl:attribute>
4514					</xsl:element>
4515				</图:视窗_806A>
4516				<xsl:element name="图:路径值_8069">
4517					<xsl:value-of select="$path"/>
4518				</xsl:element>
4519			</图:路径_801C>
4520		</xsl:if>
4521	</xsl:template>
4522	<xsl:template name="图:连接线规则-graph">
4523		<xsl:if test="name(.)='draw:connector'">
4524			<图:连接线规则_8027>
4525				<xsl:if test="@draw:style-name!=''">
4526					<xsl:attribute name="连接线引用_8028"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
4527				</xsl:if>
4528				<xsl:if test="@draw:start-shape!=''">
4529					<xsl:attribute name="始端对象引用_8029"><xsl:value-of select="@draw:start-shape"/></xsl:attribute>
4530				</xsl:if>
4531				<xsl:if test="@draw:end-shape!=''">
4532					<xsl:attribute name="终端对象引用_802A"><xsl:value-of select="@draw:end-shape"/></xsl:attribute>
4533				</xsl:if>
4534				<xsl:if test="@draw:start-glue-point!=''">
4535					<xsl:attribute name="始端对象连接点索引_802B"><xsl:value-of select="@draw:start-glue-point"/></xsl:attribute>
4536				</xsl:if>
4537				<xsl:if test="@draw:end-glue-point!=''">
4538					<xsl:attribute name="终端对象连接点索引_802C"><xsl:value-of select="@draw:end-glue-point"/></xsl:attribute>
4539				</xsl:if>
4540			</图:连接线规则_8027>
4541		</xsl:if>
4542	</xsl:template>
4543	<xsl:template name="图:预定义图形-graph">
4544		<xsl:param name="graphproperty"/>
4545		<图:预定义图形_8018>
4546			<xsl:call-template name="FindType">
4547				<xsl:with-param name="graphproperty" select="$graphproperty"/>
4548			</xsl:call-template>
4549			<图:生成软件_801B>NSO</图:生成软件_801B>
4550			<xsl:call-template name="图:路径-graph"/>
4551			<xsl:call-template name="图:属性-graph">
4552				<xsl:with-param name="graphproperty" select="$graphproperty"/>
4553			</xsl:call-template>
4554			<xsl:call-template name="图:连接线规则-graph"/>
4555		</图:预定义图形_8018>
4556	</xsl:template>
4557	<xsl:template name="图:svg图形对象-graph">
4558		<图:svg图形对象_8017 svg:version="1.1" svg:xmlns_xlink="http://www.w3.org/1999/xlink">
4559			<xsl:variable name="width" select="fun:Convert2uofUnit(@svg:width)"/>
4560			<xsl:attribute name="svg:x"><xsl:value-of select="fun:Convert2uofUnit(@svg:x)"/></xsl:attribute>
4561			<xsl:attribute name="svg:y"><xsl:value-of select="fun:Convert2uofUnit(@svg:y)"/></xsl:attribute>
4562			<xsl:attribute name="svg:width"><xsl:value-of select="fun:Convert2uofUnit(@svg:width)"/></xsl:attribute>
4563			<xsl:attribute name="svg:height"><xsl:value-of select="fun:Convert2uofUnit(@svg:height)"/></xsl:attribute>
4564			<xsl:attribute name="svg:viewBox"><xsl:value-of select="fun:Convert2uofUnit(@svg:viewBox)"/></xsl:attribute>
4565			<svg:path>
4566				<xsl:attribute name="svg:d"><xsl:value-of select="@svg:d"/></xsl:attribute>
4567			</svg:path>
4568		</图:svg图形对象_8017>
4569	</xsl:template>
4570	<xsl:template name="图:文本内容-graph">
4571		<xsl:param name="graphproperty"/>
4572		<图:文本_803C>
4573			<xsl:if test="draw:text-box">
4574				<xsl:attribute name="是否为文本框_8046">true</xsl:attribute>
4575			</xsl:if>
4576			<xsl:if test="$graphproperty/@fo:wrap-option = 'no-wrap'">
4577				<xsl:attribute name="是否自动换行_8047">false</xsl:attribute>
4578			</xsl:if>
4579			<xsl:choose>
4580				<xsl:when test="$graphproperty/@draw:auto-grow-height='true'">
4581					<xsl:attribute name="是否大小适应文字_8048">true</xsl:attribute>
4582				</xsl:when>
4583				<xsl:otherwise>
4584					<xsl:attribute name="是否大小适应文字_8048">false</xsl:attribute>
4585				</xsl:otherwise>
4586			</xsl:choose>
4587			<xsl:variable name="parent-style">
4588				<xsl:choose>
4589					<xsl:when test="$graphproperty/@style:parent-style-name">
4590						<xsl:value-of select="$graphproperty/@style:parent-style-name"/>
4591					</xsl:when>
4592					<xsl:otherwise>notFrame</xsl:otherwise>
4593				</xsl:choose>
4594			</xsl:variable>
4595			<xsl:for-each select="$graphproperty">
4596				<xsl:if test="($parent-style != 'Frame' or $parent-style = 'notFrame') and (@fo:padding-left or @fo:padding-right or @fo:padding-top or @fo:padding-bottom)">
4597					<图:边距_803D>
4598						<xsl:if test="@fo:padding-left">
4599							<xsl:attribute name="左_C608"><xsl:value-of select="number(fun:Convert2uofUnit(@fo:padding-left))"/></xsl:attribute>
4600						</xsl:if>
4601						<xsl:if test="@fo:padding-right">
4602							<xsl:attribute name="右_C60A"><xsl:value-of select="number(fun:Convert2uofUnit(@fo:padding-right))"/></xsl:attribute>
4603						</xsl:if>
4604						<xsl:if test="@fo:padding-top">
4605							<xsl:attribute name="上_C609"><xsl:value-of select="number(fun:Convert2uofUnit(@fo:padding-top))"/></xsl:attribute>
4606						</xsl:if>
4607						<xsl:if test="@fo:padding-bottom">
4608							<xsl:attribute name="下_C60B"><xsl:value-of select="number(fun:Convert2uofUnit(@fo:padding-bottom))"/></xsl:attribute>
4609						</xsl:if>
4610					</图:边距_803D>
4611				</xsl:if>
4612				<xsl:if test="@draw:textarea-horizontal-align or @draw:textarea-vertical-align">
4613					<图:对齐_803E>
4614						<xsl:if test="@draw:textarea-horizontal-align">
4615							<xsl:attribute name="水平对齐_421D"><xsl:choose><xsl:when test="@draw:textarea-horizontal-align='justify'">justified</xsl:when><xsl:otherwise><xsl:value-of select="@draw:textarea-horizontal-align"/></xsl:otherwise></xsl:choose></xsl:attribute>
4616						</xsl:if>
4617						<xsl:if test="@draw:textarea-vertical-align">
4618							<xsl:variable name="verticalType">
4619								<xsl:choose>
4620									<xsl:when test="@draw:textarea-vertical-align = 'top'">top</xsl:when>
4621									<xsl:when test="@draw:textarea-vertical-align = 'middle'">center</xsl:when>
4622									<xsl:when test="@draw:textarea-vertical-align = 'bottom'">bottom</xsl:when>
4623									<xsl:when test="@draw:textarea-vertical-align = 'justify'">base</xsl:when>
4624									<xsl:otherwise>top</xsl:otherwise>
4625								</xsl:choose>
4626							</xsl:variable>
4627							<xsl:attribute name="文字对齐_421E"><xsl:value-of select="$verticalType"/></xsl:attribute>
4628						</xsl:if>
4629					</图:对齐_803E>
4630				</xsl:if>
4631			</xsl:for-each>
4632			<xsl:variable name="textdirection">
4633				<xsl:variable name="styleName" select="draw:text-box/text:p/@text:style-name"/>
4634				<xsl:choose>
4635					<xsl:when test="$graphproperty/@style:writing-mode='tb-lr'">r2l-t2b-0e-90w</xsl:when>
4636					<xsl:when test="$graphproperty/@style:writing-mode='tb-rl'">l2r-b2t-270e-270w</xsl:when>
4637					<!--文字排列方向出现在段落属性的设置中-->
4638					<xsl:when test="../$graphproperty/style:paragraph-properties/@style:writing-mode='tb-lr'">r2l-t2b-0e-90w</xsl:when>
4639					<xsl:when test="../$graphproperty/style:paragraph-properties/@style:writing-mode='tb-rl'">l2r-b2t-270e-270w</xsl:when>
4640					<xsl:when test="key('ParaStyle',$styleName)/style:paragraph-properties/@style:writing-mode = 'rl-tb'">t2b-r2l-0e-0w</xsl:when>
4641					<!--xsl:when test="@draw:textarea-horizontal-align='right'">t2b-r2l-0e-0w</xsl:when-->
4642					<xsl:otherwise>t2b-l2r-0e-0w</xsl:otherwise>
4643				</xsl:choose>
4644			</xsl:variable>
4645			<xsl:if test="$textdirection != ''">
4646				<xsl:element name="图:文字排列方向_8042">
4647					<xsl:value-of select="$textdirection"/>
4648				</xsl:element>
4649			</xsl:if>
4650			<xsl:if test="draw:text-box/@draw:chain-next-name">
4651				<xsl:variable name="secondName" select="draw:text-box/@draw:chain-next-name"/>
4652				<图:前后链接_803F>
4653					<xsl:attribute name="后一链接_8041" select="generate-id(/office:document/office:body/office:text/text:p/draw:frame[@draw:name = $secondName])"/>
4654				</图:前后链接_803F>
4655			</xsl:if>
4656			<图:内容_8043>
4657				<xsl:choose>
4658					<xsl:when test="name(.)='draw:frame'">
4659						<xsl:for-each select="*">
4660							<xsl:choose>
4661								<xsl:when test="self::node()[name(.)='draw:text-box']">
4662									<xsl:call-template name="TextContent"/>
4663								</xsl:when>
4664								<xsl:when test="self::node()[name(.)='draw:image']">
4665									<xsl:call-template name="DrawContent"/>
4666								</xsl:when>
4667								<xsl:when test="self::node()[name(.)='table:table']">
4668									<xsl:apply-templates mode="text" select="."/>
4669								</xsl:when>
4670							</xsl:choose>
4671						</xsl:for-each>
4672					</xsl:when>
4673					<xsl:otherwise>
4674						<xsl:call-template name="DrawContent"/>
4675					</xsl:otherwise>
4676				</xsl:choose>
4677			</图:内容_8043>
4678		</图:文本_803C>
4679	</xsl:template>
4680	<xsl:template name="图:控制点">
4681		<xsl:variable name="modifiers" select="draw:enhanced-geometry/@draw:modifiers"/>
4682		<xsl:if test="$modifiers">
4683			<图:控制点_8039>
4684				<!--暂时无法判断draw:modifiers中只有一个数值时,这个值是x坐标还是y坐标。目前统一记在x坐标中-->
4685				<xsl:attribute name="x_C606"><xsl:choose><xsl:when test="contains($modifiers,' ')"><xsl:value-of select="substring-before($modifiers,' ')"/></xsl:when><xsl:otherwise><xsl:value-of select="$modifiers"/></xsl:otherwise></xsl:choose></xsl:attribute>
4686				<xsl:if test="contains($modifiers,' ')">
4687					<xsl:attribute name="y_C607"><!--schema校验问题--><xsl:value-of select="substring-before(substring-after($modifiers,' '),' ')"/></xsl:attribute>
4688				</xsl:if>
4689			</图:控制点_8039>
4690		</xsl:if>
4691	</xsl:template>
4692	<xsl:template name="图:翻转-graph">
4693		<xsl:variable name="svg_x1" select="fun:Convert2uofUnit(@svg:x1)"/>
4694		<xsl:variable name="svg_x2" select="fun:Convert2uofUnit(@svg:x2)"/>
4695		<xsl:variable name="svg_y1" select="fun:Convert2uofUnit(@svg:y1)"/>
4696		<xsl:variable name="svg_y2" select="fun:Convert2uofUnit(@svg:y2)"/>
4697		<xsl:if test="number($svg_x2) &lt; number($svg_x1) or number($svg_y2) &lt; number($svg_y1) or draw:enhanced-geometry/@draw:mirror-horizontal = 'true' or draw:enhanced-geometry/@draw:mirror-vertical = 'true'">
4698			<图:翻转_803A>
4699				<xsl:choose>
4700					<xsl:when test="(number($svg_x2) &lt; number($svg_x1) and number($svg_y2) &lt; number($svg_y1)) or (draw:enhanced-geometry/@draw:mirror-horizontal = 'true' and draw:enhanced-geometry/@draw:mirror-vertical = 'true')">
4701						<xsl:value-of select="'xy'"/>
4702					</xsl:when>
4703					<xsl:when test="number($svg_x2) &lt; number($svg_x1) or draw:enhanced-geometry/@draw:mirror-horizontal = 'true'">
4704						<xsl:value-of select="'x'"/>
4705					</xsl:when>
4706					<xsl:when test="number($svg_y2) &lt; number($svg_y1) or draw:enhanced-geometry/@draw:mirror-vertical = 'true'">
4707						<xsl:value-of select="'y'"/>
4708					</xsl:when>
4709				</xsl:choose>
4710			</图:翻转_803A>
4711		</xsl:if>
4712	</xsl:template>
4713	<xsl:template name="图:组合位置-graph">
4714		<xsl:param name="IsinGroup"/>
4715		<xsl:if test="$IsinGroup='true'">
4716			<图:组合位置_803B>
4717				<xsl:choose>
4718					<xsl:when test="@svg:x">
4719						<xsl:attribute name="x_C606"><xsl:value-of select="fun:Convert2uofUnit(@svg:x)"/></xsl:attribute>
4720						<xsl:if test="@svg:y">
4721							<xsl:attribute name="y_C607"><xsl:value-of select="fun:Convert2uofUnit(@svg:y)"/></xsl:attribute>
4722						</xsl:if>
4723					</xsl:when>
4724					<xsl:when test="@svg:x1">
4725						<xsl:variable name="svg_x1" select="fun:Convert2uofUnit(@svg:x1)"/>
4726						<xsl:variable name="svg_x2" select="fun:Convert2uofUnit(@svg:x2)"/>
4727						<xsl:variable name="svg_y1" select="fun:Convert2uofUnit(@svg:y1)"/>
4728						<xsl:variable name="svg_y2" select="fun:Convert2uofUnit(@svg:y2)"/>
4729						<xsl:choose>
4730							<xsl:when test="number($svg_x2) &gt; number($svg_x1)">
4731								<xsl:attribute name="x_C606"><xsl:value-of select="$svg_x1"/></xsl:attribute>
4732							</xsl:when>
4733							<xsl:otherwise>
4734								<xsl:attribute name="x_C606"><xsl:value-of select="$svg_x2"/></xsl:attribute>
4735							</xsl:otherwise>
4736						</xsl:choose>
4737						<xsl:choose>
4738							<xsl:when test="number($svg_y2) &gt; number($svg_y1)">
4739								<xsl:attribute name="y_C607"><xsl:value-of select="$svg_y1"/></xsl:attribute>
4740							</xsl:when>
4741							<xsl:otherwise>
4742								<xsl:attribute name="y_C607"><xsl:value-of select="$svg_y2"/></xsl:attribute>
4743							</xsl:otherwise>
4744						</xsl:choose>
4745					</xsl:when>
4746				</xsl:choose>
4747			</图:组合位置_803B>
4748		</xsl:if>
4749	</xsl:template>
4750	<xsl:template name="frmobject">
4751		<xsl:if test="draw:image[@*|* and not(preceding-sibling::*)]">
4752			<对象:对象数据_D701>
4753				<xsl:attribute name="标识符_D704"><xsl:value-of select="generate-id(draw:image)"/></xsl:attribute>
4754				<!--<xsl:choose>
4755					<xsl:when test="./draw:image/office:binary-data">
4756						<xsl:attribute name="是否内嵌_D705">true</xsl:attribute>
4757					</xsl:when>
4758					<xsl:otherwise>
4759						<xsl:attribute name="是否内嵌_D705">false</xsl:attribute>
4760					</xsl:otherwise>
4761				</xsl:choose>-->
4762				<xsl:choose>
4763					<xsl:when test="contains(./draw:image/@xlink:href,'Pictures/')">
4764						<xsl:attribute name="是否内嵌_D705">true</xsl:attribute>
4765					</xsl:when>
4766					<xsl:otherwise>
4767						<xsl:attribute name="是否内嵌_D705">false</xsl:attribute>
4768					</xsl:otherwise>
4769				</xsl:choose>
4770				<xsl:variable name="pic">
4771					<xsl:choose>
4772						<xsl:when test="contains(./draw:image/@xlink:href,'.png')">png</xsl:when>
4773						<xsl:when test="contains(./draw:image/@xlink:href,'.jpg') or draw:image/office:binary-data">jpg</xsl:when>
4774						<xsl:when test="contains(./draw:image/@xlink:href,'.gif')">gif</xsl:when>
4775						<xsl:when test="contains(./draw:image/@xlink:href,'.bmp')">bmp</xsl:when>
4776						<xsl:when test="contains(./draw:image/@xlink:href,'.pbm')">pbm</xsl:when>
4777						<xsl:when test="contains(./draw:image/@xlink:href,'.ras')">ras</xsl:when>
4778						<xsl:when test="contains(./draw:image/@xlink:href,'.txt')">text</xsl:when>
4779						<xsl:when test="contains(./draw:image/@xlink:href,'.xml')">xml</xsl:when>
4780						<xsl:when test="contains(./draw:image/@xlink:href,'.htm')">html</xsl:when>
4781						<xsl:when test="contains(./draw:image/@xlink:href,'.html')">html</xsl:when>
4782						<xsl:when test="contains(./draw:image/@xlink:href,'.wav')">wav</xsl:when>
4783						<xsl:when test="contains(./draw:image/@xlink:href,'.mid')">midi</xsl:when>
4784						<xsl:when test="contains(./draw:image/@xlink:href,'.ra')">ra</xsl:when>
4785						<xsl:when test="contains(./draw:image/@xlink:href,'.au')">au</xsl:when>
4786						<xsl:when test="contains(./draw:image/@xlink:href,'.mp3')">mp3</xsl:when>
4787						<xsl:when test="contains(./draw:image/@xlink:href,'.snd')">snd</xsl:when>
4788						<xsl:when test="contains(./draw:image/@xlink:href,'.svg')">svg</xsl:when>
4789						<xsl:when test="contains(./draw:image/@xlink:href,'.avi')">avi</xsl:when>
4790						<xsl:when test="contains(./draw:image/@xlink:href,'.mpeg')">mpeg4</xsl:when>
4791						<xsl:when test="contains(./draw:image/@xlink:href,'.qt')">qt</xsl:when>
4792						<xsl:when test="contains(./draw:image/@xlink:href,'.rm')">rm</xsl:when>
4793						<xsl:when test="contains(./draw:image/@xlink:href,'.asf')">asf</xsl:when>
4794						<xsl:otherwise>图片</xsl:otherwise>
4795					</xsl:choose>
4796				</xsl:variable>
4797				<xsl:choose>
4798					<xsl:when test="$pic!='图片'">
4799						<xsl:attribute name="公共类型_D706"><xsl:value-of select="$pic"/></xsl:attribute>
4800					</xsl:when>
4801					<xsl:otherwise>
4802						<xsl:attribute name="私有类型_D707">图片</xsl:attribute>
4803					</xsl:otherwise>
4804				</xsl:choose>
4805				<xsl:if test="./draw:image/office:binary-data">
4806					<对象:数据_D702>
4807						<xsl:value-of select="./draw:image/office:binary-data"/>
4808					</对象:数据_D702>
4809				</xsl:if>
4810				<xsl:if test="./draw:image/@xlink:href != ''">
4811					<对象:路径_D703>
4812						<xsl:value-of select="replace(./draw:image/@xlink:href,'Pictures','/data')"/>
4813					</对象:路径_D703>
4814				</xsl:if>
4815				<xsl:if test="count(./draw:image/office:binary-data)=0 and count(./draw:image[@xlink:href!= ''])=0">
4816					<对象:数据_D702>
4817					</对象:数据_D702>
4818				</xsl:if>
4819			</对象:对象数据_D701>
4820		</xsl:if>
4821		<xsl:if test="draw:object-ole[@*|*]">
4822			<对象:对象数据_D701>
4823				<xsl:attribute name="标识符_D704"><xsl:value-of select="generate-id(draw:object-ole)"/></xsl:attribute>
4824				<xsl:choose>
4825					<xsl:when test="./draw:object-ole/office:binary-data">
4826						<xsl:attribute name="是否内嵌_D705">true</xsl:attribute>
4827					</xsl:when>
4828					<xsl:otherwise>
4829						<xsl:attribute name="是否内嵌_D705">false</xsl:attribute>
4830					</xsl:otherwise>
4831				</xsl:choose>
4832				<xsl:attribute name="私有类型_D707">old对象</xsl:attribute>
4833				<xsl:if test="./draw:object-ole/office:binary-data">
4834					<对象:数据_D702>
4835						<xsl:value-of select="./draw:object-ole/office:binary-data"/>
4836					</对象:数据_D702>
4837				</xsl:if>
4838				<xsl:if test="./draw:object-ole/@xlink:href != ''">
4839					<对象:路径_D703>
4840						<xsl:value-of select="./draw:object-ole/@xlink:href"/>
4841					</对象:路径_D703>
4842				</xsl:if>
4843			</对象:对象数据_D701>
4844		</xsl:if>
4845		<!--xsl:if test="draw:object[@*|*]">
4846			<xsl:if test="./draw:object/math:math">
4847				<uof:数学公式 uof:locID="u0034" uof:attrList="标识符">
4848					<xsl:attribute name="uof:标识符"><xsl:value-of select="generate-id(draw:object)"/></xsl:attribute>
4849					<数:math>
4850						<xsl:copy-of select="draw:object/math:math/*"/>
4851					</数:math>
4852				</uof:数学公式>
4853			</xsl:if>
4854		</xsl:if-->
4855	</xsl:template>
4856	<xsl:template name="equations">
4857		<xsl:if test=".//draw:object[@*|*]">
4858			<xsl:if test=".//draw:object/math:math">
4859				<公式:数学公式_C201>
4860					<xsl:attribute name="标识符_C202"><xsl:value-of select="generate-id(draw:object)"/></xsl:attribute>
4861					<公式:math_C203>
4862						<xsl:copy-of select="draw:object/math:math/*"/>
4863					</公式:math_C203>
4864				</公式:数学公式_C201>
4865			</xsl:if>
4866		</xsl:if>
4867	</xsl:template>
4868	<xsl:template name="zuheliebiao">
4869		<xsl:param name="allnode"/>
4870		<xsl:choose>
4871			<xsl:when test="following-sibling::*[name()!='svg:title' and name()!='svg:desc' and name()!='office:eventlisteners' and name()!='draw:gluepoint']">
4872				<xsl:for-each select="following-sibling::*[name()!='svg:title' and name()!='svg:desc' and name()!='office:eventlisteners' and name()!='draw:gluepoint'][1]">
4873					<xsl:variable name="pic-name1">
4874						<xsl:choose>
4875							<xsl:when test="@draw:id">
4876								<xsl:value-of select="@draw:id"/>
4877							</xsl:when>
4878							<xsl:otherwise>
4879								<xsl:value-of select="generate-id()"/>
4880							</xsl:otherwise>
4881						</xsl:choose>
4882					</xsl:variable>
4883					<xsl:variable name="allnode1">
4884						<xsl:value-of select="concat($allnode,' ',$pic-name1)"/>
4885					</xsl:variable>
4886					<xsl:call-template name="zuheliebiao">
4887						<xsl:with-param name="allnode" select="$allnode1"/>
4888					</xsl:call-template>
4889				</xsl:for-each>
4890			</xsl:when>
4891			<xsl:otherwise>
4892				<xsl:value-of select="$allnode"/>
4893			</xsl:otherwise>
4894		</xsl:choose>
4895	</xsl:template>
4896	<xsl:template name="AnchorToUofObject">
4897		<xsl:param name="graphproperty"/>
4898		<xsl:variable name="IsinGroup">
4899			<xsl:choose>
4900				<xsl:when test="name(..)='draw:g'">
4901					<xsl:value-of select="string('true')"/>
4902				</xsl:when>
4903				<xsl:otherwise>
4904					<xsl:value-of select="string('false')"/>
4905				</xsl:otherwise>
4906			</xsl:choose>
4907		</xsl:variable>
4908		<图:图形_8062>
4909			<xsl:choose>
4910				<xsl:when test="@draw:id">
4911					<xsl:attribute name="标识符_804B"><xsl:value-of select="@draw:id"/></xsl:attribute>
4912				</xsl:when>
4913				<xsl:otherwise>
4914					<xsl:attribute name="标识符_804B"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
4915				</xsl:otherwise>
4916			</xsl:choose>
4917			<xsl:if test="name(.)='draw:g'">
4918				<xsl:variable name="grouplist">
4919					<xsl:for-each select="child::*[name()!='svg:title' and name()!='svg:desc' and name()!='office:eventlisteners' and name()!='draw:gluepoint'][1]">
4920						<xsl:variable name="pic-name">
4921							<xsl:choose>
4922								<xsl:when test="@draw:id">
4923									<xsl:value-of select="@draw:id"/>
4924								</xsl:when>
4925								<xsl:otherwise>
4926									<xsl:value-of select="generate-id(.)"/>
4927								</xsl:otherwise>
4928							</xsl:choose>
4929						</xsl:variable>
4930						<xsl:call-template name="zuheliebiao">
4931							<xsl:with-param name="allnode">
4932								<xsl:value-of select="$pic-name"/>
4933							</xsl:with-param>
4934						</xsl:call-template>
4935					</xsl:for-each>
4936				</xsl:variable>
4937				<xsl:attribute name="组合列表_8064"><xsl:value-of select="$grouplist"/></xsl:attribute>
4938			</xsl:if>
4939			<xsl:if test="$IsinGroup='false' and @draw:z-index">
4940				<xsl:attribute name="层次_8063"><xsl:value-of select="@draw:z-index"/></xsl:attribute>
4941			</xsl:if>
4942			<xsl:call-template name="图:预定义图形-graph">
4943				<xsl:with-param name="graphproperty" select="$graphproperty"/>
4944			</xsl:call-template>
4945			<!--xsl:choose>
4946				<xsl:when test="name(.)='draw:path'">
4947					<xsl:call-template name="图:svg图形对象-graph"/>
4948				</xsl:when-->
4949			<!-- test code, confirm draw:custom-shape
4950					<xsl:when test="name(.)='draw:custom-shape'">
4951						<图:svg图形对象 svg:version="1.1" svg:xmlns_xlink="http://www.w3.org/1999/xlink">
4952							<xsl:attribute name="svg:x"><xsl:value-of select="@svg:x"/></xsl:attribute>
4953							<xsl:attribute name="svg:y"><xsl:value-of select="@svg:y"/></xsl:attribute>
4954							<xsl:attribute name="svg:width"><xsl:value-of select="@svg:width"/></xsl:attribute>
4955							<xsl:attribute name="svg:height"><xsl:value-of select="@svg:height"/></xsl:attribute>
4956							<xsl:attribute name="svg:viewBox"><xsl:value-of select="draw:enhanced-geometry/@svg:viewBox"/></xsl:attribute>
4957							<svg:path>
4958								<xsl:attribute name="svg:d"><xsl:value-of select="draw:enhanced-geometry/@draw:enhanced-path"/></xsl:attribute>
4959							</svg:path>
4960						</图:svg图形对象>
4961					</xsl:when>	-->
4962			<!--xsl:otherwise>
4963					<xsl:call-template name="图:预定义图形-graph">
4964						<xsl:with-param name="graphproperty" select="$graphproperty"/>
4965					</xsl:call-template>
4966				</xsl:otherwise>
4967			</xsl:choose-->
4968			<xsl:if test="name(.)='draw:frame'">
4969				<!--<xsl:if test="name(.)='draw:frame'">-->
4970				<xsl:if test="draw:image/office:binary-data">
4971					<xsl:element name="图:图片数据引用_8037">
4972						<xsl:value-of select="generate-id(draw:image)"/>
4973					</xsl:element>
4974				</xsl:if>
4975				<!--
4976				<xsl:if test="key('Style',@draw:style-name)/style:graphic-properties/style:background-image/office:binary-data">
4977					<xsl:attribute name="图:其他对象"><xsl:value-of select="generate-id(key('Style',@draw:style-name)/style:graphic-properties/style:background-image)"/></xsl:attribute>
4978				</xsl:if>
4979				-->
4980				<xsl:if test="$graphproperty/style:background-image/office:binary-data">
4981					<xsl:element name="图:图片数据引用_8037">
4982						<xsl:value-of select="generate-id($graphproperty/style:background-image)"/>
4983					</xsl:element>
4984				</xsl:if>
4985				<xsl:if test="draw:image/@xlink:href and not(draw:object[@*|*])">
4986					<xsl:element name="图:图片数据引用_8037">
4987						<xsl:value-of select="generate-id(draw:image)"/>
4988					</xsl:element>
4989				</xsl:if>
4990				<xsl:if test="draw:object-ole/office:binary-data">
4991					<xsl:element name="图:其他对象引用_8038">
4992						<xsl:value-of select="generate-id(draw:object-ole)"/>
4993					</xsl:element>
4994				</xsl:if>
4995				<xsl:if test="draw:object[@*|*]">
4996					<xsl:element name="图:图表数据引用_8065">
4997						<xsl:value-of select="generate-id(draw:object)"/>
4998					</xsl:element>
4999				</xsl:if>
5000			</xsl:if>
5001			<xsl:call-template name="图:控制点"/>
5002			<xsl:call-template name="图:翻转-graph"/>
5003			<xsl:call-template name="图:组合位置-graph">
5004				<xsl:with-param name="IsinGroup" select="$IsinGroup"/>
5005			</xsl:call-template>
5006			<xsl:call-template name="图:文本内容-graph">
5007				<xsl:with-param name="graphproperty" select="$graphproperty"/>
5008			</xsl:call-template>
5009		</图:图形_8062>
5010	</xsl:template>
5011	<xsl:template name="printtest">
5012		<xsl:param name="graphproperty"/>
5013		<xsl:for-each select="$graphproperty/style:graphic-properties">
5014			<test1>
5015				<xsl:value-of select="@draw:stroke"/>
5016			</test1>
5017		</xsl:for-each>
5018	</xsl:template>
5019	<xsl:template name="ParentGraphicProp">
5020		<!--可从office:style中继承图形式样。且可多层继承-->
5021		<xsl:for-each select="key('GraphStyle',@style:parent-style-name)[name(../..)='office:style']">
5022			<xsl:if test="@style:parent-style-name">
5023				<xsl:call-template name="ParentGraphicProp"/>
5024			</xsl:if>
5025			<!--ODF 文字排列方向可出现在段属性中-->
5026			<xsl:copy-of select="style:paragraph-properties/@style:writing-mode"/>
5027			<xsl:copy-of select="style:graphic-properties/@*"/>
5028		</xsl:for-each>
5029	</xsl:template>
5030	<xsl:template name="OneGraphicStyle">
5031		<xsl:variable name="graphproperty-holder">
5032			<xsl:element name="style:graphic-properties">
5033				<xsl:if test="@style:parent-style-name">
5034					<xsl:attribute name="style:parent-style-name" select="@style:parent-style-name"/>
5035					<xsl:call-template name="ParentGraphicProp"/>
5036				</xsl:if>
5037				<!--ODF 文字排列方向可出现在段属性中-->
5038				<xsl:copy-of select="style:paragraph-properties/@style:writing-mode"/>
5039				<xsl:copy-of select="style:graphic-properties/@*"/>
5040			</xsl:element>
5041		</xsl:variable>
5042		<!--<xsl:variable name="graphproperty" select="style:graphic-properties"/>
5043		<xsl:call-template name="printtest">
5044			<xsl:with-param name="graphproperty" select="$graphproperty"/>
5045		</xsl:call-template>-->
5046		<xsl:variable name="anchors" select="key('findanchor', @style:name)"/>
5047		<xsl:choose>
5048			<xsl:when test="$anchors">
5049				<xsl:for-each select="$anchors">
5050					<xsl:call-template name="AnchorToUofObject">
5051						<xsl:with-param name="graphproperty" select="$graphproperty-holder/style:graphic-properties"/>
5052					</xsl:call-template>
5053				</xsl:for-each>
5054			</xsl:when>
5055			<xsl:otherwise>
5056				<xsl:variable name="anchors2" select="key('findanchorP', @style:name)"/>
5057				<xsl:for-each select="$anchors2">
5058					<xsl:call-template name="AnchorToUofObject">
5059						<xsl:with-param name="graphproperty" select="$graphproperty-holder/style:graphic-properties"/>
5060					</xsl:call-template>
5061				</xsl:for-each>
5062			</xsl:otherwise>
5063		</xsl:choose>
5064	</xsl:template>
5065	<xsl:template name="ObjectSets">
5066		<图形:图形集_7C00>
5067			<xsl:for-each select="office:styles/style:style[@style:family='graphic']">
5068				<xsl:call-template name="OneGraphicStyle"/>
5069			</xsl:for-each>
5070			<xsl:for-each select="office:styles/style:style[@style:family='presentation']">
5071				<xsl:call-template name="OneGraphicStyle"/>
5072			</xsl:for-each>
5073			<xsl:for-each select="office:automatic-styles/style:style[@style:family='graphic']">
5074				<xsl:call-template name="OneGraphicStyle"/>
5075			</xsl:for-each>
5076			<xsl:for-each select="office:automatic-styles/style:style[@style:family='presentation']">
5077				<xsl:call-template name="OneGraphicStyle"/>
5078			</xsl:for-each>
5079			<!--xsl:if test="$documentType='presentation'"三模块均适用-->
5080			<xsl:for-each select="/office:document/office:master-styles//draw:g | /office:document/office:body//draw:g |/office:document/office:body//table:shapes/draw:frame">
5081				<xsl:if test="not(@draw:style-name)">
5082					<xsl:call-template name="AnchorToUofObject">
5083						<xsl:with-param name="graphproperty">
5084							<style:graphic-properties/>
5085						</xsl:with-param>
5086					</xsl:call-template>
5087				</xsl:if>
5088			</xsl:for-each>
5089			<!--/xsl:if-->
5090			<xsl:for-each select="office:master-styles//draw:page-thumbnail[not(@draw:style-name) and not(@presentation:style-name)]|office:styles/style:presentation-page-layout/presentation:placeholder | office:body/office:presentation/draw:page//draw:page-thumbnail[not(@draw:style-name) and not(@presentation:style-name)]|office:body/office:presentation/draw:page//draw:frame[not(@draw:style-name) and not(@presentation:style-name)]">
5091				<xsl:call-template name="AnchorToUofObject">
5092					<xsl:with-param name="graphproperty">
5093						<style:graphic-properties>page-thumbnail</style:graphic-properties>
5094					</xsl:with-param>
5095				</xsl:call-template>
5096			</xsl:for-each>
5097		</图形:图形集_7C00>
5098	</xsl:template>
5099	<xsl:template name="Graphic_ObjectData">
5100		<xsl:variable name="anchors" select="key('findanchor', @style:name)"/>
5101		<xsl:choose>
5102			<xsl:when test="$anchors">
5103				<xsl:for-each select="$anchors">
5104					<xsl:if test="name(.)='draw:frame'">
5105						<xsl:call-template name="frmobject"/>
5106					</xsl:if>
5107				</xsl:for-each>
5108			</xsl:when>
5109			<xsl:otherwise>
5110				<xsl:variable name="anchors2" select="key('findanchorP', @style:name)"/>
5111				<xsl:for-each select="$anchors2">
5112					<xsl:if test="name(.)='draw:frame'">
5113						<xsl:call-template name="frmobject"/>
5114					</xsl:if>
5115				</xsl:for-each>
5116			</xsl:otherwise>
5117		</xsl:choose>
5118	</xsl:template>
5119	<xsl:template name="ObjectData">
5120		<xsl:for-each select="/office:document/office:styles/style:style[@style:family='graphic']">
5121			<xsl:call-template name="Graphic_ObjectData"/>
5122		</xsl:for-each>
5123		<xsl:for-each select="/office:document/office:styles/style:style[@style:family='presentation']">
5124			<xsl:call-template name="Graphic_ObjectData"/>
5125		</xsl:for-each>
5126		<xsl:for-each select="/office:document/office:automatic-styles/style:style[@style:family='graphic']">
5127			<xsl:call-template name="Graphic_ObjectData"/>
5128		</xsl:for-each>
5129		<xsl:for-each select="/office:document/office:automatic-styles/style:style[@style:family='presentation']">
5130			<xsl:call-template name="Graphic_ObjectData"/>
5131		</xsl:for-each>
5132		<xsl:for-each select="/office:document/office:body/office:presentation/draw:page//draw:frame[not(@draw:style-name) and not(@presentation:style-name)]">
5133			<xsl:if test="name(.)='draw:frame'">
5134				<xsl:call-template name="frmobject"/>
5135			</xsl:if>
5136		</xsl:for-each>
5137		<xsl:for-each select="(/office:document/office:styles/style:style/style:paragraph-properties/style:background-image) | (/office:document/office:automatic-styles/style:style/style:paragraph-properties/style:background-image) | (/office:document/office:automatic-styles/style:page-layout/style:page-layout-properties/style:background-image) | /office:document/office:automatic-styles/style:style/style:table-cell-properties/style:background-image | /office:document/office:automatic-styles/style:style/style:table-properties/style:background-image | /office:document/office:automatic-styles/style:style/style:graphic-properties/style:background-image">
5138			<xsl:if test="@xlink:href != '' or child::* or draw:image/@xlink:href != ''">
5139				<对象:对象数据_D701>
5140					<xsl:attribute name="标识符_D704"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
5141					<xsl:attribute name="公共类型_D706"><xsl:choose><xsl:when test="ends-with(@xlink:href,'png')">png</xsl:when><xsl:when test="ends-with(@xlink:href,'bmp')">bmp</xsl:when><xsl:when test="ends-with(@xlink:href,'ras')">ras</xsl:when><xsl:when test="ends-with(@xlink:href,'gif')">gif</xsl:when><xsl:otherwise>jpg</xsl:otherwise></xsl:choose></xsl:attribute>
5142					<xsl:attribute name="是否内嵌_D705"><xsl:choose><xsl:when test="contains(@xlink:href,'Pictures/')">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
5143					<xsl:if test="office:binary-data">
5144						<对象:数据_D702>
5145							<xsl:value-of select="office:binary-data"/>
5146						</对象:数据_D702>
5147					</xsl:if>
5148					<xsl:choose>
5149						<xsl:when test="@xlink:href != '' and contains(@xlink:href,'Pictures/')">
5150							<对象:路径_D703>
5151								<xsl:value-of select="replace(@xlink:href,'Pictures','/data')"/>
5152							</对象:路径_D703>
5153						</xsl:when>
5154						<xsl:otherwise>
5155							<对象:路径_D703>
5156								<xsl:value-of select="@xlink:href"/>
5157							</对象:路径_D703>
5158						</xsl:otherwise>
5159					</xsl:choose>
5160				</对象:对象数据_D701>
5161			</xsl:if>
5162		</xsl:for-each>
5163		<xsl:for-each select="(/office:document/office:styles/text:list-style/text:list-level-style-image) | (/office:document/office:automatic-styles/text:list-style/text:list-level-style-image)">
5164			<对象:对象数据_D701>
5165				<xsl:attribute name="标识符_D704"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
5166				<xsl:attribute name="公共类型_D706">png</xsl:attribute>
5167				<xsl:attribute name="是否内嵌_D705">true</xsl:attribute>
5168				<xsl:if test="office:binary-data">
5169					<对象:数据_D702>
5170						<xsl:value-of select="office:binary-data"/>
5171					</对象:数据_D702>
5172				</xsl:if>
5173				<xsl:if test="@xlink:href != ''">
5174					<对象:路径_D703>
5175						<xsl:value-of select="replace(@xlink:href,'Pictures','/data')"/>
5176					</对象:路径_D703>
5177				</xsl:if>
5178			</对象:对象数据_D701>
5179		</xsl:for-each>
5180		<!--<xsl:for-each select="//office:document/office:styles/draw:fill-image[@draw:name != '']">
5181			<对象:对象数据_D701>
5182				<xsl:attribute name="标识符_D704"><xsl:value-of select="@draw:name"/></xsl:attribute>
5183				<xsl:attribute name="公共类型_D706">png</xsl:attribute>
5184				<xsl:attribute name="是否内嵌_D705">true</xsl:attribute>
5185				<xsl:choose>
5186					<xsl:when test="office:binary-data">
5187						<对象:数据_D702>
5188							<xsl:value-of select="office:binary-data"/>
5189						</对象:数据_D702>
5190					</xsl:when>
5191					<xsl:when test="@xlink:href">
5192						<对象:路径_D703>
5193							<xsl:value-of select="replace(@xlink:href,'Pictures','data')"/>
5194						</对象:路径_D703>
5195					</xsl:when>
5196				</xsl:choose>
5197			</对象:对象数据_D701>
5198		</xsl:for-each>-->
5199		<!--过滤图表中和主体中重复数据对象-->
5200		<xsl:for-each-group group-by="@draw:name" select="//office:document/office:styles/draw:fill-image[@draw:name != '']">
5201			<对象:对象数据_D701>
5202				<xsl:attribute name="标识符_D704"><xsl:value-of select="@draw:name"/></xsl:attribute>
5203				<xsl:attribute name="公共类型_D706">png</xsl:attribute>
5204				<xsl:attribute name="是否内嵌_D705">true</xsl:attribute>
5205				<xsl:choose>
5206					<xsl:when test="office:binary-data">
5207						<对象:数据_D702>
5208							<xsl:value-of select="office:binary-data"/>
5209						</对象:数据_D702>
5210					</xsl:when>
5211					<xsl:when test="@xlink:href">
5212						<对象:路径_D703>
5213							<xsl:value-of select="replace(@xlink:href,'Pictures','/data')"/>
5214						</对象:路径_D703>
5215					</xsl:when>
5216				</xsl:choose>
5217			</对象:对象数据_D701>
5218		</xsl:for-each-group>
5219	</xsl:template>
5220	<xsl:template name="addsect">
5221		<xsl:if test="$documentType = 'text'">
5222			<xsl:variable name="bs">
5223				<xsl:choose>
5224					<xsl:when test="./@text:style-name">
5225						<xsl:value-of select="./@text:style-name"/>
5226					</xsl:when>
5227					<xsl:when test="./@table:style-name">
5228						<xsl:value-of select="./@table:style-name"/>
5229					</xsl:when>
5230				</xsl:choose>
5231			</xsl:variable>
5232			<xsl:variable name="bs1" select="/office:document/office:automatic-styles/style:style[@style:name=$bs]/@style:master-page-name"/>
5233			<xsl:if test="$bs1 != ''">
5234				<xsl:variable name="mpage" select="/office:document/office:master-styles/style:master-page[@style:name=$bs1]"/>
5235				<xsl:call-template name="text-page-layout">
5236					<xsl:with-param name="master-page" select="$mpage"/>
5237					<xsl:with-param name="textstylename" select="$bs"/>
5238				</xsl:call-template>
5239			</xsl:if>
5240		</xsl:if>
5241	</xsl:template>
5242	<xsl:template name="ParaStyleNameFromShape">
5243		<xsl:param name="shapestyle"/>
5244		<xsl:for-each select="key('GraphStyle',string($shapestyle))">
5245			<xsl:choose>
5246				<xsl:when test="style:paragraph-properties or style:text-properties">
5247					<xsl:value-of select="$shapestyle"/>
5248				</xsl:when>
5249				<xsl:when test="@style:parent-style-name">
5250					<xsl:call-template name="ParaStyleNameFromShape">
5251						<xsl:with-param name="shapestyle" select="@style:parent-style-name"/>
5252					</xsl:call-template>
5253				</xsl:when>
5254				<xsl:otherwise>Null</xsl:otherwise>
5255			</xsl:choose>
5256		</xsl:for-each>
5257	</xsl:template>
5258	<xsl:template name="PropFrmParaAttr">
5259		<xsl:param name="pstylename"/>
5260		<!--default-style 转为默认式样故此处可不添加-->
5261		<xsl:for-each select="key('ParaStyle',string($pstylename))">
5262			<xsl:if test="@style:parent-style-name">
5263				<xsl:call-template name="PropFrmParaAttr">
5264					<xsl:with-param name="pstylename" select="@style:parent-style-name"/>
5265				</xsl:call-template>
5266			</xsl:if>
5267			<xsl:copy-of select="style:paragraph-properties/@*"/>
5268		</xsl:for-each>
5269	</xsl:template>
5270	<xsl:template name="PropFrmParaElement">
5271		<xsl:param name="pstylename"/>
5272		<!--default-style 转为默认式样故此处可不添加-->
5273		<xsl:for-each select="key('ParaStyle',string($pstylename))">
5274			<xsl:choose>
5275				<xsl:when test="style:paragraph-properties/*">
5276					<xsl:copy-of select="style:paragraph-properties/*"/>
5277				</xsl:when>
5278				<xsl:otherwise>
5279					<xsl:if test="@style:parent-style-name">
5280						<xsl:call-template name="PropFrmParaElement">
5281							<xsl:with-param name="pstylename" select="@style:parent-style-name"/>
5282						</xsl:call-template>
5283					</xsl:if>
5284				</xsl:otherwise>
5285			</xsl:choose>
5286		</xsl:for-each>
5287	</xsl:template>
5288	<xsl:template name="PropFrmPara">
5289		<xsl:param name="pstylename"/>
5290		<xsl:call-template name="PropFrmParaAttr">
5291			<xsl:with-param name="pstylename" select="$pstylename"/>
5292		</xsl:call-template>
5293		<xsl:call-template name="PropFrmParaElement">
5294			<xsl:with-param name="pstylename" select="$pstylename"/>
5295		</xsl:call-template>
5296	</xsl:template>
5297	<xsl:template name="PropFrmTextPara">
5298		<xsl:param name="pstylename"/>
5299		<!--default-style 转为默认式样故此处可不添加-->
5300		<xsl:for-each select="key('ParaStyle',string($pstylename))">
5301			<xsl:if test="@style:parent-style-name">
5302				<xsl:call-template name="PropFrmTextPara">
5303					<xsl:with-param name="pstylename" select="@style:parent-style-name"/>
5304				</xsl:call-template>
5305			</xsl:if>
5306			<xsl:copy-of select="style:text-properties/@*"/>
5307		</xsl:for-each>
5308	</xsl:template>
5309	<xsl:template name="ParaPropAndStyleRef">
5310		<xsl:param name="currlistlvl"/>
5311		<xsl:param name="liststylename"/>
5312		<xsl:choose>
5313			<!--演 中 所有段都在图下,段实际的式样:图式样下的段式样 叠加 段本身引用式样-->
5314			<xsl:when test="$documentType = 'presentation' and not(ancestor::draw:frame/@presentation:class='outline')">
5315				<xsl:variable name="shapestyle">
5316					<xsl:for-each select="ancestor::draw:caption|ancestor::draw:circle|ancestor::draw:connector|ancestor::draw:custom-shape|ancestor::draw:ellipse|ancestor::draw:image|ancestor::draw:line|ancestor::draw:measure|ancestor::draw:path|ancestor::draw:polygon|ancestor::draw:polyline|ancestor::draw:rect|ancestor::draw:regular-polygon|ancestor::draw:frame">
5317						<xsl:choose>
5318							<xsl:when test="@presentation:style-name">
5319								<xsl:value-of select="@presentation:style-name"/>
5320							</xsl:when>
5321							<xsl:when test="@draw:style-name">
5322								<xsl:value-of select="@draw:style-name"/>
5323							</xsl:when>
5324						</xsl:choose>
5325					</xsl:for-each>
5326				</xsl:variable>
5327				<xsl:variable name="Pstylenamefrmshape">
5328					<xsl:choose>
5329						<xsl:when test="$shapestyle!=''">
5330							<xsl:call-template name="ParaStyleNameFromShape">
5331								<xsl:with-param name="shapestyle" select="string($shapestyle)"/>
5332							</xsl:call-template>
5333						</xsl:when>
5334						<xsl:otherwise>Null</xsl:otherwise>
5335					</xsl:choose>
5336				</xsl:variable>
5337				<xsl:choose>
5338					<xsl:when test="$Pstylenamefrmshape='Null'">
5339						<xsl:if test="@text:style-name">
5340							<xsl:attribute name="式样引用_419C"><xsl:value-of select="@text:style-name"/></xsl:attribute>
5341							<xsl:call-template name="字:大纲级别-paragraph">
5342								<xsl:with-param name="level" select="$currlistlvl"/>
5343							</xsl:call-template>
5344							<xsl:call-template name="字:自动编号信息-paragraph">
5345								<xsl:with-param name="autonum" select="$liststylename"/>
5346								<xsl:with-param name="level" select="$currlistlvl"/>
5347							</xsl:call-template>
5348						</xsl:if>
5349					</xsl:when>
5350					<xsl:otherwise>
5351						<!--图中段式样 作为 式样引用;-->
5352						<xsl:attribute name="式样引用_419C"><xsl:value-of select="$Pstylenamefrmshape"/></xsl:attribute>
5353						<xsl:choose>
5354							<xsl:when test="@text:style-name">
5355								<!--段所引式样移植过来作为段落属性-->
5356								<xsl:variable name="stylefrmpara">
5357									<xsl:element name="style:style">
5358										<xsl:element name="style:paragraph-properties">
5359											<xsl:call-template name="PropFrmPara">
5360												<xsl:with-param name="pstylename" select="@text:style-name"/>
5361											</xsl:call-template>
5362										</xsl:element>
5363										<style:text-properties>
5364											<xsl:call-template name="PropFrmTextPara">
5365												<xsl:with-param name="pstylename" select="@text:style-name"/>
5366											</xsl:call-template>
5367										</style:text-properties>
5368										<!-- default-style 转为默认式样 故此处可不添加
5369												<xsl:for-each select="/office:document/office:styles/style:default-style[@style:family='graphic']/style:text-properties">
5370													<xsl:copy-of select="."/>
5371
5372												</xsl:for-each>
5373-->
5374									</xsl:element>
5375								</xsl:variable>
5376								<!--补充句式样-->
5377								<xsl:variable name="stylefrmTextpara">
5378									<xsl:element name="style:style">
5379										<style:text-properties>
5380											<xsl:call-template name="PropFrmTextPara">
5381												<xsl:with-param name="pstylename" select="@text:style-name"/>
5382											</xsl:call-template>
5383										</style:text-properties>
5384									</xsl:element>
5385								</xsl:variable>
5386								<xsl:for-each select="$stylefrmpara/style:style">
5387									<xsl:call-template name="UofParagraphStyle">
5388										<xsl:with-param name="level" select="$currlistlvl"/>
5389										<xsl:with-param name="autonum" select="$liststylename"/>
5390									</xsl:call-template>
5391								</xsl:for-each>
5392								<xsl:for-each select="$stylefrmTextpara/style:style">
5393									<字:句属性_4158>
5394										<xsl:call-template name="UOFTextStyle"/>
5395									</字:句属性_4158>
5396								</xsl:for-each>
5397							</xsl:when>
5398							<xsl:otherwise>
5399								<xsl:call-template name="字:大纲级别-paragraph">
5400									<xsl:with-param name="level" select="$currlistlvl"/>
5401								</xsl:call-template>
5402								<xsl:call-template name="字:自动编号信息-paragraph">
5403									<xsl:with-param name="autonum" select="$liststylename"/>
5404									<xsl:with-param name="level" select="$currlistlvl"/>
5405								</xsl:call-template>
5406							</xsl:otherwise>
5407						</xsl:choose>
5408					</xsl:otherwise>
5409				</xsl:choose>
5410			</xsl:when>
5411			<xsl:otherwise>
5412				<xsl:if test="@text:style-name">
5413					<xsl:attribute name="式样引用_419C"><xsl:value-of select="@text:style-name"/></xsl:attribute>
5414				</xsl:if>
5415				<xsl:call-template name="字:大纲级别-paragraph">
5416					<xsl:with-param name="level" select="$currlistlvl"/>
5417				</xsl:call-template>
5418				<xsl:call-template name="字:自动编号信息-paragraph">
5419					<xsl:with-param name="autonum" select="$liststylename"/>
5420					<xsl:with-param name="level" select="$currlistlvl"/>
5421				</xsl:call-template>
5422			</xsl:otherwise>
5423		</xsl:choose>
5424	</xsl:template>
5425	<xsl:template match="text:p">
5426		<xsl:call-template name="addsect"/>
5427		<字:段落_416B>
5428			<xsl:if test="@text:id">
5429				<xsl:attribute name="标识符_4169"><xsl:value-of select="@text:id"/></xsl:attribute>
5430			</xsl:if>
5431			<xsl:element name="字:段落属性_419B">
5432				<xsl:call-template name="ParaPropAndStyleRef"/>
5433			</xsl:element>
5434			<xsl:if test="@text:style-name">
5435				<xsl:variable name="Curstyle" select="key('Style', @text:style-name)"/>
5436				<xsl:choose>
5437					<xsl:when test="$Curstyle/style:paragraph-properties/@fo:break-before='page'">
5438						<字:句_419D>
5439							<字:分页符_4163/>
5440						</字:句_419D>
5441					</xsl:when>
5442					<xsl:when test="$Curstyle/style:paragraph-properties/@fo:break-before='column'">
5443						<字:句_419D>
5444							<字:分栏符_4160/>
5445						</字:句_419D>
5446					</xsl:when>
5447				</xsl:choose>
5448			</xsl:if>
5449			<xsl:call-template name="paragraph_content"/>
5450			<xsl:if test="@text:style-name">
5451				<xsl:variable name="Curstyle" select="key('Style', @text:style-name)"/>
5452				<xsl:choose>
5453					<xsl:when test="$Curstyle/style:paragraph-properties/@fo:break-after='page'">
5454						<字:句_419D>
5455							<字:分页符_4163/>
5456						</字:句_419D>
5457					</xsl:when>
5458					<xsl:when test="$Curstyle/style:paragraph-properties/@fo:break-after='column'">
5459						<字:句_419D>
5460							<字:分栏符_4160/>
5461						</字:句_419D>
5462					</xsl:when>
5463				</xsl:choose>
5464			</xsl:if>
5465		</字:段落_416B>
5466	</xsl:template>
5467	<xsl:template match="text:h">
5468		<xsl:call-template name="addsect"/>
5469		<字:段落_416B>
5470			<xsl:if test="@text:id">
5471				<xsl:attribute name="标识符_4169"><xsl:value-of select="@text:id"/></xsl:attribute>
5472			</xsl:if>
5473			<xsl:element name="字:段落属性_419B">
5474				<xsl:call-template name="ParaPropAndStyleRef">
5475					<xsl:with-param name="currlistlvl" select="@text:outline-level"/>
5476				</xsl:call-template>
5477			</xsl:element>
5478			<xsl:call-template name="paragraph_content"/>
5479		</字:段落_416B>
5480	</xsl:template>
5481	<xsl:template match="text:number">
5482	</xsl:template>
5483	<xsl:template match="text:soft-page-break">
5484	</xsl:template>
5485	<xsl:template name="list-text-paragraph">
5486		<xsl:param name="currlistlvl"/>
5487		<xsl:param name="liststylename"/>
5488		<xsl:call-template name="addsect"/>
5489		<字:段落_416B>
5490			<xsl:if test="@text:id">
5491				<xsl:attribute name="标识符_4169"><xsl:value-of select="@text:id"/></xsl:attribute>
5492			</xsl:if>
5493			<xsl:element name="字:段落属性_419B">
5494				<xsl:call-template name="ParaPropAndStyleRef">
5495					<xsl:with-param name="currlistlvl" select="$currlistlvl"/>
5496					<xsl:with-param name="liststylename" select="$liststylename"/>
5497				</xsl:call-template>
5498			</xsl:element>
5499			<xsl:call-template name="paragraph_content"/>
5500		</字:段落_416B>
5501	</xsl:template>
5502	<xsl:template name="list-item-content">
5503		<xsl:param name="currlistlvl"/>
5504		<xsl:param name="liststylename"/>
5505		<!--<xsl:for-each select="child::node( )[1]">-->
5506		<xsl:for-each select="text:number | text:h | text:p| text:list | text:soft-page-break">
5507			<xsl:if test="position() = 1">
5508				<xsl:choose>
5509					<xsl:when test="self::node()[name(.)='text:number']">
5510						<xsl:apply-templates select="."/>
5511					</xsl:when>
5512					<xsl:when test="self::node()[name(.)='text:h']">
5513						<xsl:call-template name="list-text-paragraph">
5514							<xsl:with-param name="currlistlvl" select="$currlistlvl"/>
5515							<xsl:with-param name="liststylename" select="$liststylename"/>
5516						</xsl:call-template>
5517					</xsl:when>
5518					<xsl:when test="self::node()[name(.)='text:p']">
5519						<xsl:call-template name="list-text-paragraph">
5520							<xsl:with-param name="currlistlvl" select="$currlistlvl"/>
5521							<xsl:with-param name="liststylename" select="$liststylename"/>
5522						</xsl:call-template>
5523					</xsl:when>
5524					<xsl:when test="self::node()[name(.)='text:list']">
5525						<xsl:call-template name="list-content">
5526							<xsl:with-param name="currlistlvl" select="$currlistlvl+1"/>
5527							<xsl:with-param name="liststylename" select="$liststylename"/>
5528						</xsl:call-template>
5529					</xsl:when>
5530					<xsl:when test="self::node()[name(.)='text:soft-page-break']">
5531						<xsl:apply-templates select="."/>
5532					</xsl:when>
5533				</xsl:choose>
5534			</xsl:if>
5535		</xsl:for-each>
5536		<!--<xsl:for-each select="node( )[position() > 1]">-->
5537		<xsl:for-each select="text:number | text:h | text:p| text:list | text:soft-page-break">
5538			<xsl:if test="position() &gt; 1">
5539				<xsl:choose>
5540					<xsl:when test="self::node()[name(.)='text:number']">
5541						<xsl:apply-templates select="."/>
5542					</xsl:when>
5543					<xsl:when test="self::node()[name(.)='text:h']">
5544						<xsl:apply-templates select="."/>
5545					</xsl:when>
5546					<xsl:when test="self::node()[name(.)='text:p']">
5547						<xsl:apply-templates select="."/>
5548					</xsl:when>
5549					<xsl:when test="self::node()[name(.)='text:list']">
5550						<xsl:call-template name="list-content">
5551							<xsl:with-param name="currlistlvl" select="$currlistlvl+1"/>
5552							<xsl:with-param name="liststylename" select="$liststylename"/>
5553						</xsl:call-template>
5554					</xsl:when>
5555					<xsl:when test="self::node()[name(.)='text:soft-page-break']">
5556						<xsl:apply-templates select="."/>
5557					</xsl:when>
5558				</xsl:choose>
5559			</xsl:if>
5560		</xsl:for-each>
5561	</xsl:template>
5562	<xsl:template name="list-content">
5563		<xsl:param name="currlistlvl"/>
5564		<xsl:param name="liststylename"/>
5565		<xsl:for-each select="*">
5566			<xsl:choose>
5567				<xsl:when test="self::node()[name(.)='text:list-header']">
5568					<xsl:call-template name="list-item-content">
5569						<xsl:with-param name="currlistlvl" select="0"/>
5570						<xsl:with-param name="liststylename" select="$liststylename"/>
5571					</xsl:call-template>
5572				</xsl:when>
5573				<xsl:when test="self::node()[name(.)='text:list-item']">
5574					<xsl:call-template name="list-item-content">
5575						<xsl:with-param name="currlistlvl" select="$currlistlvl"/>
5576						<xsl:with-param name="liststylename" select="$liststylename"/>
5577					</xsl:call-template>
5578				</xsl:when>
5579			</xsl:choose>
5580		</xsl:for-each>
5581	</xsl:template>
5582	<xsl:template match="text:numbered-paragraph">
5583	</xsl:template>
5584	<xsl:template match="text:illustration-index">
5585	</xsl:template>
5586	<xsl:template match="text:table-index">
5587	</xsl:template>
5588	<xsl:template match="text:object-index">
5589	</xsl:template>
5590	<xsl:template match="text:user-index">
5591	</xsl:template>
5592	<xsl:template match="text:alphabetical-index">
5593		<xsl:element name="字:段落_416B">
5594			<xsl:element name="字:段落属性_419B">
5595				<xsl:attribute name="式样引用_419C"><xsl:value-of select="text:index-body/text:p/@text:style-name"/></xsl:attribute>
5596				<xsl:element name="字:制表位设置_418F">
5597					<xsl:element name="字:制表位_4171">
5598						<xsl:variable name="aa" select="text:index-body/text:p/@text:style-name"/>
5599						<xsl:attribute name="位置_4172"><xsl:value-of select="fun:Convert2uofUnit(key('Style',$aa)/style:paragraph-properties/style:tab-stops/style:tab-stop/@style:position)"/></xsl:attribute>
5600						<xsl:attribute name="类型_4173"><xsl:value-of select="key('Style',$aa)/style:paragraph-properties/style:tab-stops/style:tab-stop/@style:type"/></xsl:attribute>
5601						<xsl:attribute name="制表位字符_4175"><xsl:value-of select="key('Style',$aa)/style:paragraph-properties/style:tab-stops/style:tab-stop/@style:leader-text"/></xsl:attribute>
5602						<xsl:if test="key('Style',$aa)/style:paragraph-properties/style:tab-stops/style:tab-stop/@style:leader-style">
5603							<xsl:attribute name="前导符_4174"><xsl:value-of select="key('Style',$aa)/style:paragraph-properties/style:tab-stops/style:tab-stop/@style:leader-style"/></xsl:attribute>
5604						</xsl:if>
5605					</xsl:element>
5606				</xsl:element>
5607			</xsl:element>
5608			<xsl:element name="字:域开始_419E">
5609				<xsl:attribute name="类型_416E"><xsl:value-of select="'INDEX'"/></xsl:attribute>
5610				<xsl:if test="@text:protected">
5611					<xsl:attribute name="是否锁定_416F"><xsl:value-of select="@text:protected"/></xsl:attribute>
5612				</xsl:if>
5613			</xsl:element>
5614			<xsl:element name="字:域代码_419F">
5615				<字:段落_416B>
5616					<字:句_419D>
5617						<字:文本串_415B>
5618							<xsl:value-of select="'TOC \o 1-10 \h \z'"/>
5619						</字:文本串_415B>
5620					</字:句_419D>
5621				</字:段落_416B>
5622				<!--  bug118  -->
5623				<xsl:for-each select="text:index-body/text:index-title/text:p">
5624					<字:段落_416B>
5625						<xsl:element name="字:段落属性_419B">
5626							<xsl:call-template name="ParaPropAndStyleRef"/>
5627						</xsl:element>
5628						<字:句_419D>
5629							<字:句属性_4158>
5630								<xsl:attribute name="式样引用_417B"><xsl:value-of select="@text:style-name"/></xsl:attribute>
5631							</字:句属性_4158>
5632							<xsl:element name="字:文本串_415B">
5633								<xsl:value-of select="self::node()"/>
5634							</xsl:element>
5635						</字:句_419D>
5636					</字:段落_416B>
5637				</xsl:for-each>
5638				<xsl:for-each select="text:index-body/text:p">
5639					<字:段落_416B>
5640						<xsl:element name="字:段落属性_419B">
5641							<xsl:call-template name="ParaPropAndStyleRef"/>
5642							<!--xsl:element name="字:制表位设置">
5643								<xsl:attribute name="uof:locID">t0067</xsl:attribute>
5644								<xsl:element name="字:制表位">
5645									<xsl:attribute name="uof:locID">t0068</xsl:attribute>
5646									<xsl:attribute name="uof:attrList">位置 类型 前导符 制表位字符</xsl:attribute>
5647									<xsl:variable name="aa" select="@text:style-name"/>
5648									<xsl:attribute name="字:位置">
5649										<xsl:value-of select="fun:Convert2uofUnit(key('Style',$aa)/style:paragraph-properties/style:tab-stops/style:tab-stop/@style:position)"/>
5650									</xsl:attribute>
5651									<xsl:attribute name="字:类型">
5652										<xsl:value-of select="key('Style',$aa)/style:paragraph-properties/style:tab-stops/style:tab-stop/@style:type"/>
5653									</xsl:attribute>
5654									<xsl:attribute name="字:制表位字符">
5655										<xsl:value-of select="key('Style',$aa)/style:paragraph-properties/style:tab-stops/style:tab-stop/@style:leader-text"/>
5656									</xsl:attribute>
5657									<xsl:if test="key('Style',$aa)/style:paragraph-properties/style:tab-stops/style:tab-stop/@style:leader-style">
5658										<xsl:attribute name="字:前导符">
5659											<xsl:value-of select="key('Style',$aa)/style:paragraph-properties/style:tab-stops/style:tab-stop/@style:leader-style"/>
5660										</xsl:attribute>
5661									</xsl:if>
5662								</xsl:element>
5663							</xsl:element-->
5664						</xsl:element>
5665						<xsl:for-each select="node()">
5666							<字:句_419D>
5667								<xsl:choose>
5668									<xsl:when test="name(.)='text:tab-stop' or name(.)='text:tab'">
5669										<xsl:element name="字:制表符_415E">
5670										</xsl:element>
5671									</xsl:when>
5672									<xsl:otherwise>
5673										<xsl:element name="字:文本串_415B">
5674											<xsl:value-of select="."/>
5675										</xsl:element>
5676									</xsl:otherwise>
5677								</xsl:choose>
5678							</字:句_419D>
5679						</xsl:for-each>
5680					</字:段落_416B>
5681				</xsl:for-each>
5682			</xsl:element>
5683			<xsl:element name="字:域结束_419F"/>
5684		</xsl:element>
5685	</xsl:template>
5686	<xsl:template match="text:bibliography">
5687	</xsl:template>
5688	<xsl:template name="ComputeCellWidth">
5689		<xsl:param name="CurrentPosition"/>
5690		<xsl:param name="ColumnSpanned"/>
5691		<xsl:param name="nCellWidth"/>
5692		<xsl:choose>
5693			<xsl:when test="$ColumnSpanned &gt; 0">
5694				<xsl:variable name="ColumnStyle">
5695					<xsl:choose>
5696						<xsl:when test="name(../..)='table:table-header-rows' and ../../../table:table-column[number($CurrentPosition)]/@table:style-name">
5697							<xsl:value-of select="../../../table:table-column[number($CurrentPosition)]/@table:style-name"/>
5698						</xsl:when>
5699						<xsl:otherwise>
5700							<xsl:value-of select="../../table:table-column[number($CurrentPosition)]/@table:style-name"/>
5701						</xsl:otherwise>
5702					</xsl:choose>
5703				</xsl:variable>
5704				<xsl:variable name="colwidth" select="fun:Convert2uofUnit(key('ColStyle',$ColumnStyle)/style:table-column-properties/@style:column-width)"/>
5705				<xsl:variable name="Widthnew" select="$nCellWidth + $colwidth"/>
5706				<xsl:call-template name="ComputeCellWidth">
5707					<xsl:with-param name="CurrentPosition" select="$CurrentPosition + 1"/>
5708					<xsl:with-param name="ColumnSpanned" select="$ColumnSpanned - 1"/>
5709					<xsl:with-param name="nCellWidth" select="$Widthnew"/>
5710				</xsl:call-template>
5711			</xsl:when>
5712			<xsl:otherwise>
5713				<xsl:attribute name="绝对值_41A2"><xsl:value-of select="$nCellWidth"/></xsl:attribute>
5714			</xsl:otherwise>
5715		</xsl:choose>
5716	</xsl:template>
5717	<xsl:template name="execTableCellAttribute">
5718		<xsl:param name="CellPosition"/>
5719		<xsl:element name="字:单元格属性_41B7">
5720			<xsl:variable name="StyleName" select="@table:style-name"/>
5721			<xsl:element name="字:宽度_41A1">
5722				<xsl:variable name="sn">
5723					<xsl:number count="table:table-cell" format="1" from="/office:document/office:body/office:text" level="single"/>
5724				</xsl:variable>
5725				<xsl:variable name="sn1">
5726					<xsl:choose>
5727						<xsl:when test="../../table:table-column[number($sn)]/@table:style-name">
5728							<xsl:value-of select="$sn"/>
5729						</xsl:when>
5730						<xsl:when test=" name(../..)='table:table-header-rows' and ../../../table:table-column[number($sn)]/@table:style-name">
5731							<xsl:value-of select="$sn"/>
5732						</xsl:when>
5733						<xsl:otherwise>
5734							<xsl:value-of select="'1'"/>
5735						</xsl:otherwise>
5736					</xsl:choose>
5737				</xsl:variable>
5738				<xsl:variable name="KuanDu">
5739					<xsl:choose>
5740						<xsl:when test=" name(../..)='table:table-header-rows' and ../../../table:table-column[number($sn)]/@table:style-name">
5741							<xsl:value-of select="../../../table:table-column[number($sn1)]/@table:style-name"/>
5742						</xsl:when>
5743						<xsl:otherwise>
5744							<xsl:value-of select="../../table:table-column[number($sn1)]/@table:style-name"/>
5745						</xsl:otherwise>
5746					</xsl:choose>
5747				</xsl:variable>
5748				<!-- 递归计算绝对宽度 -->
5749				<xsl:choose>
5750					<xsl:when test="@table:number-columns-spanned">
5751						<xsl:variable name="nColumnSpanned" select="@table:number-columns-spanned"/>
5752						<xsl:variable name="nCellWidth" select="number(0)"/>
5753						<xsl:call-template name="ComputeCellWidth">
5754							<xsl:with-param name="CurrentPosition" select="$CellPosition"/>
5755							<xsl:with-param name="ColumnSpanned" select="$nColumnSpanned"/>
5756							<xsl:with-param name="nCellWidth" select="$nCellWidth"/>
5757						</xsl:call-template>
5758					</xsl:when>
5759					<xsl:otherwise>
5760						<xsl:if test="key('ColStyle',../../table:table-column[number($CellPosition)]/@table:style-name)/style:table-column-properties/@style:column-width">
5761							<xsl:variable name="colwidth" select="fun:Convert2uofUnit(key('ColStyle',../../table:table-column[number($CellPosition)]/@table:style-name)[1]/style:table-column-properties/@style:column-width)"/>
5762							<xsl:attribute name="绝对值_41A2"><xsl:value-of select="$colwidth"/></xsl:attribute>
5763						</xsl:if>
5764					</xsl:otherwise>
5765				</xsl:choose>
5766				<!-- end -->
5767				<xsl:if test="key('ColStyle',$KuanDu)/style:table-column-properties/@style:rel-column-width">
5768					<xsl:attribute name="相对值_41A3"><xsl:value-of select="substring-before(key('ColStyle',$KuanDu)[1]/style:table-column-properties/@style:rel-column-width,'*')"/></xsl:attribute>
5769				</xsl:if>
5770			</xsl:element>
5771			<!--由于UOF与ODF段落的单倍行距的行为不一致,为克服这一问题,uof2ootext样式单在处理电子公文案例的文字表时给位置标的单元格边距设置一个常量值,所以要在oo2uoftext样式单碰到这个值时当把它抛弃掉。-->
5772			<!--xsl:variable name="OffieceElectricDocumentDefaultStripBool">
5773				<xsl:choose>
5774					<xsl:when test="../../../../../draw:frame and contains(../../../../../draw:frame/@draw:name, 'Embeded_frame') and (count(../../../node()) = 1)">true</xsl:when>
5775					<xsl:otherwise>false</xsl:otherwise>
5776				</xsl:choose>
5777			</xsl:variable-->
5778			<xsl:for-each select="key('CellStyle',$StyleName)">
5779				<xsl:variable name="style_name">
5780					<xsl:variable name="bb">
5781						<xsl:for-each select="preceding-sibling::*[@style:family = 'table-cell']">
5782							<xsl:value-of select="@style:name"/>
5783						</xsl:for-each>
5784					</xsl:variable>
5785					<xsl:value-of select="concat($bb,'_')"/>
5786				</xsl:variable>
5787				<xsl:if test="not(contains($style_name,@style:name))">
5788					<xsl:element name="字:单元格边距_41A4">
5789						<xsl:choose>
5790							<!--xsl:when test="$OffieceElectricDocumentDefaultStripBool = 'true'">
5791								<xsl:attribute name="字:上">0</xsl:attribute>
5792								<xsl:attribute name="字:左">0</xsl:attribute>
5793								<xsl:attribute name="字:右">0</xsl:attribute>
5794								<xsl:attribute name="字:下">0</xsl:attribute>
5795							</xsl:when-->
5796							<xsl:when test="style:table-cell-properties/@fo:padding">
5797								<xsl:attribute name="上_C609"><xsl:value-of select="fun:Convert2uofUnit(style:table-cell-properties/@fo:padding)"/></xsl:attribute>
5798								<xsl:attribute name="左_C608"><xsl:value-of select="fun:Convert2uofUnit(style:table-cell-properties/@fo:padding)"/></xsl:attribute>
5799								<xsl:attribute name="右_C60A"><xsl:value-of select="fun:Convert2uofUnit(style:table-cell-properties/@fo:padding)"/></xsl:attribute>
5800								<xsl:attribute name="下_C60B"><xsl:value-of select="fun:Convert2uofUnit(style:table-cell-properties/@fo:padding)"/></xsl:attribute>
5801							</xsl:when>
5802							<xsl:otherwise>
5803								<xsl:attribute name="上_C609"><xsl:value-of select="fun:Convert2uofUnit(style:table-cell-properties/@fo:padding-top)"/></xsl:attribute>
5804								<xsl:attribute name="左_C608"><xsl:value-of select="fun:Convert2uofUnit(style:table-cell-properties/@fo:padding-left)"/></xsl:attribute>
5805								<xsl:attribute name="右_C60A"><xsl:value-of select="fun:Convert2uofUnit(style:table-cell-properties/@fo:padding-right)"/></xsl:attribute>
5806								<xsl:attribute name="下_C60B"><xsl:value-of select="fun:Convert2uofUnit(style:table-cell-properties/@fo:padding-bottom)"/></xsl:attribute>
5807							</xsl:otherwise>
5808						</xsl:choose>
5809					</xsl:element>
5810					<xsl:if test="style:table-cell-properties/@fo:border or style:table-cell-properties/@fo:border-top or style:table-cell-properties/@fo:border-bottom or style:table-cell-properties/@fo:border-left or style:table-cell-properties/@fo:border-right or style:table-cell-properties/@style:shadow">
5811						<xsl:element name="字:边框_4133">
5812							<xsl:for-each select="style:table-cell-properties">
5813								<xsl:call-template name="Border"/>
5814							</xsl:for-each>
5815						</xsl:element>
5816					</xsl:if>
5817					<xsl:if test="style:table-cell-properties/style:background-image/office:binary-data or style:table-cell-properties/@fo:background-color">
5818						<字:填充_4134>
5819							<xsl:for-each select="style:table-cell-properties">
5820								<xsl:call-template name="UOFFill"/>
5821							</xsl:for-each>
5822						</字:填充_4134>
5823					</xsl:if>
5824					<字:垂直对齐方式_41A5>
5825						<xsl:choose>
5826							<xsl:when test="style:table-cell-properties/@style:vertical-align='middle'">center</xsl:when>
5827							<xsl:when test="style:table-cell-properties/@style:vertical-align='bottom'">bottom</xsl:when>
5828							<xsl:otherwise>top</xsl:otherwise>
5829						</xsl:choose>
5830					</字:垂直对齐方式_41A5>
5831				</xsl:if>
5832			</xsl:for-each>
5833			<xsl:if test="@table:number-columns-spanned">
5834				<xsl:element name="字:跨列_41A7">
5835					<xsl:value-of select="@table:number-columns-spanned"/>
5836				</xsl:element>
5837			</xsl:if>
5838			<xsl:if test="@table:number-rows-spanned">
5839				<xsl:element name="字:跨行_41A6">
5840					<xsl:value-of select="@table:number-rows-spanned"/>
5841				</xsl:element>
5842			</xsl:if>
5843			<!--xsl:element name="字:是否自动换行_41A8"/-->
5844		</xsl:element>
5845	</xsl:template>
5846	<xsl:template match="table:table-cell" mode="text">
5847		<xsl:element name="字:单元格_41BE">
5848			<xsl:variable name="nColumnSpannedallbefore" select="sum(preceding-sibling::table:table-cell/@table:number-columns-spanned) + count(preceding-sibling::table:table-cell[not(@table:number-columns-spanned)]) + 1"/>
5849			<xsl:call-template name="execTableCellAttribute">
5850				<xsl:with-param name="CellPosition">
5851					<xsl:choose>
5852						<xsl:when test="not(preceding-sibling::table:table-cell)">
5853							<xsl:value-of select="number(1)"/>
5854						</xsl:when>
5855						<xsl:otherwise>
5856							<xsl:value-of select="$nColumnSpannedallbefore"/>
5857						</xsl:otherwise>
5858					</xsl:choose>
5859				</xsl:with-param>
5860			</xsl:call-template>
5861			<xsl:call-template name="TextContent"/>
5862		</xsl:element>
5863	</xsl:template>
5864	<xsl:template match="table:table-row" mode="text">
5865		<xsl:element name="字:行_41CD">
5866			<xsl:variable name="rowStyleName" select="./@table:style-name"/>
5867			<xsl:element name="字:表行属性_41BD">
5868				<xsl:for-each select="key('RowStyle',$rowStyleName)/style:table-row-properties[@style:row-height or @style:min-row-height]">
5869
5870					<xsl:variable name="style_name">
5871						<xsl:variable name="bb">
5872							<xsl:for-each select="../preceding-sibling::*[@style:family = 'table-row']">
5873								<xsl:value-of select="@style:name"/>
5874							</xsl:for-each>
5875						</xsl:variable>
5876						<xsl:value-of select="concat($bb,'_')"/>
5877					</xsl:variable>
5878					<xsl:if test="not(contains($style_name,../@style:name))">
5879						<xsl:element name="字:高度_41B8">
5880							<xsl:if test="@style:row-height">
5881								<xsl:attribute name="固定值_41B9"><xsl:value-of select="fun:Convert2uofUnit(@style:row-height)"/></xsl:attribute>
5882							</xsl:if>
5883							<xsl:if test="@style:min-row-height">
5884								<xsl:attribute name="最小值_41BA"><xsl:value-of select="fun:Convert2uofUnit(@style:min-row-height)"/></xsl:attribute>
5885							</xsl:if>
5886						</xsl:element>
5887					</xsl:if>
5888				</xsl:for-each>
5889				<xsl:if test="key('RowStyle',$rowStyleName)/style:table-row-properties[@style:keep-together]">
5890					<xsl:element name="字:是否跨页_41BB">
5891						<xsl:choose>
5892							<xsl:when test="key('RowStyle',$rowStyleName)/style:table-row-properties[@style:keep-together]/@style:keep-together='false'">false</xsl:when>
5893							<xsl:otherwise>true</xsl:otherwise>
5894						</xsl:choose>
5895					</xsl:element>
5896				</xsl:if>
5897				<xsl:if test="name(..)='table:table-header-rows'">
5898					<xsl:element name="字:是否表头行_41BC">true</xsl:element>
5899				</xsl:if>
5900			</xsl:element>
5901			<xsl:for-each select="node()">
5902				<xsl:choose>
5903					<xsl:when test="self::node()[name(.)='table:table-cell']">
5904						<xsl:apply-templates mode="text" select="."/>
5905					</xsl:when>
5906				</xsl:choose>
5907			</xsl:for-each>
5908		</xsl:element>
5909	</xsl:template>
5910	<xsl:template name="liekuan">
5911		<xsl:param name="count"/>
5912		<xsl:param name="width"/>
5913		<xsl:if test="$count &gt; 0">
5914			<字:列宽_41C2>
5915				<xsl:value-of select="$width"/>
5916			</字:列宽_41C2>
5917			<xsl:call-template name="liekuan">
5918				<xsl:with-param name="count" select="$count -1"/>
5919				<xsl:with-param name="width" select="$width"/>
5920			</xsl:call-template>
5921		</xsl:if>
5922	</xsl:template>
5923	<xsl:template match="table:table" mode="text">
5924		<xsl:call-template name="addsect"/>
5925		<字:文字表_416C>
5926			<!--xsl:choose>
5927				<xsl:when test="@table:is-sub-table='true'">
5928					<xsl:attribute name="字:类型">sub-table</xsl:attribute>
5929				</xsl:when>
5930				<xsl:otherwise>
5931					<xsl:attribute name="字:类型">table</xsl:attribute>
5932				</xsl:otherwise>
5933			</xsl:choose-->
5934			<xsl:element name="字:文字表属性_41CC">
5935				<xsl:attribute name="式样引用_419C"><xsl:choose><xsl:when test="@style:wrap = 'parallel'"><xsl:value-of select="generate-id(key('Style',@table:style-name))"/></xsl:when><xsl:otherwise><xsl:value-of select="@table:style-name"/></xsl:otherwise></xsl:choose></xsl:attribute>
5936				<xsl:element name="字:列宽集_41C1">
5937					<xsl:for-each select="table:table-column">
5938						<xsl:variable name="tableColName" select="@table:style-name"/>
5939						<xsl:variable name="colWidth" select="fun:Convert2uofUnit(//style:style[@style:name=$tableColName and @style:family='table-column'][1]/style:table-column-properties/@style:column-width)"/>
5940						<xsl:choose>
5941							<xsl:when test="@table:number-columns-repeated">
5942								<xsl:call-template name="liekuan">
5943									<xsl:with-param name="count" select="@table:number-columns-repeated"/>
5944									<xsl:with-param name="width" select="$colWidth"/>
5945								</xsl:call-template>
5946							</xsl:when>
5947							<xsl:otherwise>
5948								<字:列宽_41C2>
5949									<xsl:value-of select="$colWidth"/>
5950								</字:列宽_41C2>
5951							</xsl:otherwise>
5952						</xsl:choose>
5953					</xsl:for-each>
5954				</xsl:element>
5955				<字:绕排_41C5>
5956					<xsl:choose>
5957						<xsl:when test="@style:wrap= 'parallel'">around</xsl:when>
5958						<xsl:otherwise>none</xsl:otherwise>
5959					</xsl:choose>
5960				</字:绕排_41C5>
5961			</xsl:element>
5962			<xsl:for-each select="*">
5963				<xsl:choose>
5964					<xsl:when test="self::node()[name(.)='table:title']">
5965
5966					</xsl:when>
5967					<xsl:when test="self::node()[name(.)='table:desc']">
5968
5969					</xsl:when>
5970					<xsl:when test="self::node()[name(.)='table:table-source']">
5971
5972					</xsl:when>
5973					<xsl:when test="self::node()[name(.)='office:dde-source']">
5974
5975					</xsl:when>
5976					<xsl:when test="self::node()[name(.)='table:scenario']">
5977
5978					</xsl:when>
5979					<xsl:when test="self::node()[name(.)='office:forms']">
5980
5981					</xsl:when>
5982					<xsl:when test="self::node()[name(.)='table:shapes']">
5983
5984					</xsl:when>
5985					<xsl:when test="self::node()[name(.)='table:table-column-group']">
5986
5987					</xsl:when>
5988					<xsl:when test="self::node()[name(.)='table:table-columns']">
5989
5990					</xsl:when>
5991					<xsl:when test="self::node()[name(.)='table:table-column']">
5992
5993					</xsl:when>
5994					<xsl:when test="self::node()[name(.)='table:table-header-columns']">
5995
5996					</xsl:when>
5997					<xsl:when test="self::node()[name(.)='table:table-row-group']">
5998
5999					</xsl:when>
6000					<xsl:when test="self::node()[name(.)='table:table-rows']">
6001
6002					</xsl:when>
6003					<xsl:when test="self::node()[name(.)='text:soft-page-break']">
6004
6005					</xsl:when>
6006					<xsl:when test="self::node()[name(.)='table:table-row']">
6007						<xsl:apply-templates mode="text" select="."/>
6008					</xsl:when>
6009					<xsl:when test="self::node()[name(.)='table:table-header-rows']">
6010						<xsl:apply-templates mode="text" select="table:table-row"/>
6011					</xsl:when>
6012					<xsl:when test="self::node()[name(.)='table:named-expressions']">
6013
6014					</xsl:when>
6015				</xsl:choose>
6016			</xsl:for-each>
6017			<!--
6018			<xsl:apply-templates select="table:table-header-rows/table:table-row"/>
6019			<xsl:apply-templates select="table:table-row"/>-->
6020		</字:文字表_416C>
6021	</xsl:template>
6022	<xsl:template name="TextContent">
6023		<xsl:for-each select="*">
6024			<xsl:choose>
6025				<!--<xsl:when test="self::node()[name(.)='text:h']">
6026					<xsl:apply-templates select="."/>
6027				</xsl:when>
6028				<xsl:when test="self::node()[name(.)='text:p']">
6029					<xsl:apply-templates select="."/>
6030				</xsl:when>-->
6031				<xsl:when test="self::node()[name(.)='text:list']">
6032					<xsl:call-template name="list-content">
6033						<xsl:with-param name="currlistlvl" select="number('1')"/>
6034						<xsl:with-param name="liststylename" select="@text:style-name"/>
6035					</xsl:call-template>
6036				</xsl:when>
6037				<!--<xsl:when test="self::node()[name(.)='text:numbered-paragraph']">
6038					<xsl:apply-templates select="."/>
6039				</xsl:when>
6040				<xsl:when test="self::node()[name(.)='table:table']">
6041					<xsl:apply-templates mode="text" select="."/>
6042				</xsl:when>
6043				<xsl:when test="self::node()[name(.)='text:section']">
6044					<xsl:apply-templates select="."/>
6045				</xsl:when>
6046				<xsl:when test="self::node()[name(.)='text:soft-page-break']">
6047					<xsl:apply-templates select="."/>
6048				</xsl:when>
6049				<xsl:when test="self::node()[name(.)='text:table-of-content']">
6050					<xsl:apply-templates select="."/>
6051				</xsl:when>
6052				<xsl:when test="self::node()[name(.)='text:illustration-index']">
6053					<xsl:apply-templates select="."/>
6054				</xsl:when>
6055				<xsl:when test="self::node()[name(.)='text:table-index']">
6056					<xsl:apply-templates select="."/>
6057				</xsl:when>
6058				<xsl:when test="self::node()[name(.)='text:object-index']">
6059					<xsl:apply-templates select="."/>
6060				</xsl:when>
6061				<xsl:when test="self::node()[name(.)='text:user-index']">
6062					<xsl:apply-templates select="."/>
6063				</xsl:when>
6064				<xsl:when test="self::node()[name(.)='text:alphabetical-index']">
6065					<xsl:apply-templates select="."/>
6066				</xsl:when>
6067				<xsl:when test="self::node()[name(.)='text:bibliography']">
6068					<xsl:apply-templates select="."/>
6069				</xsl:when>
6070				<xsl:when test="self::node()[name(.)='text:change']">
6071					<xsl:apply-templates select="."/>
6072				</xsl:when>
6073				<xsl:when test="self::node()[name(.)='text:change-start']">
6074					<xsl:apply-templates select="."/>
6075				</xsl:when>
6076				<xsl:when test="self::node()[name(.)='text:change-end']">
6077					<xsl:apply-templates select="."/>
6078				</xsl:when>-->
6079				<!--UOF结构中的锚点只能包含在段落中的句之下,故在处理锁定在页面上的锚点时,要添加“字:段落”“字:句”两层标签-->
6080				<xsl:when test="self::node()[substring-before(name(.),':')='draw']">
6081					<xsl:element name="字:段落_416B">
6082						<xsl:element name="字:句_419D">
6083							<xsl:call-template name="textshape"/>
6084						</xsl:element>
6085					</xsl:element>
6086				</xsl:when>
6087				<xsl:otherwise>
6088					<xsl:apply-templates select="."/>
6089				</xsl:otherwise>
6090			</xsl:choose>
6091		</xsl:for-each>
6092	</xsl:template>
6093	<xsl:template name="DrawContent">
6094		<xsl:for-each select="*">
6095			<xsl:choose>
6096				<xsl:when test="self::node()[name(.)='text:p']">
6097					<xsl:apply-templates select="."/>
6098				</xsl:when>
6099				<xsl:when test="self::node()[name(.)='text:list']">
6100					<xsl:call-template name="list-content">
6101						<xsl:with-param name="currlistlvl" select="number('1')"/>
6102						<xsl:with-param name="liststylename" select="@text:style-name"/>
6103					</xsl:call-template>
6104				</xsl:when>
6105			</xsl:choose>
6106		</xsl:for-each>
6107	</xsl:template>
6108	<xsl:variable name="defectpage">
6109		<xsl:value-of select="/office:document/office:settings/config:config-item-set[@config:name='ooo:configuration-settings']/config:config-item[@config:name='CurrentDatabaseDataSource']"/>
6110	</xsl:variable>
6111	<xsl:template name="字:页边距-page">
6112		<xsl:param name="uof_top"/>
6113		<xsl:param name="uof_left"/>
6114		<xsl:param name="uof_bottom"/>
6115		<xsl:param name="uof_right"/>
6116		<xsl:element name="字:页边距_41EB">
6117			<xsl:attribute name="上_C609"><xsl:value-of select="$uof_top"/></xsl:attribute>
6118			<xsl:attribute name="左_C608"><xsl:value-of select="$uof_left"/></xsl:attribute>
6119			<xsl:attribute name="下_C60B"><xsl:value-of select="$uof_bottom"/></xsl:attribute>
6120			<xsl:attribute name="右_C60A"><xsl:value-of select="$uof_right"/></xsl:attribute>
6121		</xsl:element>
6122	</xsl:template>
6123	<xsl:template name="字:纸张-page">
6124		<xsl:element name="字:纸张_41EC">
6125			<xsl:attribute name="宽_C605"><xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:page-width)"/></xsl:attribute>
6126			<xsl:attribute name="长_C604"><xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:page-height)"/></xsl:attribute>
6127			<xsl:variable name="height">
6128				<xsl:value-of select="style:page-layout-properties/@fo:page-height"/>
6129			</xsl:variable>
6130			<xsl:variable name="width">
6131				<xsl:value-of select="style:page-layout-properties/@fo:page-width"/>
6132			</xsl:variable>
6133			<xsl:if test="$width='297mm' or $width='210cm' or $width='148cm' or $width='176cm' or $width='125cm' or $width='216cm' or $width='184cm' or $width='130cm' or $width='140cm' or $width='184cm'">
6134				<!-- 去掉纸型-->
6135				<!--xsl:attribute name="纸型_C60C">
6136					<xsl:choose>
6137						<xsl:when test="$width='297mm' and $height='420cm'">A3</xsl:when>
6138						<xsl:when test="$width='210cm' and $height='297cm'">A4</xsl:when>
6139						<xsl:when test="$width='148mm' and $height='210mm'">A5</xsl:when>
6140						<xsl:when test="$width='176mm' and $height='250mm'">B4</xsl:when>
6141						<xsl:when test="$width='125mm' and $height='176mm'">B5</xsl:when>
6142
6143						<xsl:when test="$width='216mm' and $height='279mm'">Letter</xsl:when>
6144						<xsl:when test="$width='184mm' and $height='260mm'">PRC-16K</xsl:when>
6145						<xsl:when test="$width='130mm' and $height='184mm'">PRC-32K</xsl:when>
6146						<xsl:when test="$width='140mm' and $height='203mm'">PRC-32K(Big)</xsl:when>
6147						<xsl:when test="$width='184mm' and $height='260mm'">letter-small</xsl:when>
6148
6149						<xsl:otherwise>A4</xsl:otherwise>
6150					</xsl:choose>
6151				</xsl:attribute-->
6152			</xsl:if>
6153		</xsl:element>
6154	</xsl:template>
6155	<xsl:template name="字:奇偶页页眉页脚不同-page">
6156		<xsl:for-each select="/office:document/office:master-styles/style:master-page">
6157			<xsl:if test="(style:header-left and style:header) or (style:footer-left and style:footer)">
6158				<xsl:element name="字:是否奇偶页页眉页脚不同_41ED">true</xsl:element>
6159			</xsl:if>
6160		</xsl:for-each>
6161	</xsl:template>
6162	<xsl:template name="字:页眉位置-page">
6163		<xsl:if test="style:header-style/style:header-footer-properties">
6164			<xsl:element name="字:页眉位置_41EF">
6165				<xsl:attribute name="距版芯_41F1"><xsl:value-of select="fun:Convert2uofUnit(style:header-style/style:header-footer-properties/@fo:margin-bottom)"/></xsl:attribute>
6166				<xsl:variable name="borderPaddingTop">
6167					<xsl:choose>
6168						<xsl:when test="style:page-layout-properties/@fo:padding or style:page-layout-properties/@fo:padding-top">
6169							<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:padding|style:page-layout-properties/@fo:padding-top)"/>
6170						</xsl:when>
6171						<xsl:otherwise>0</xsl:otherwise>
6172					</xsl:choose>
6173				</xsl:variable>
6174				<xsl:variable name="pageMarginTop" select="fun:Convert2uofUnit(style:page-layout-properties/@fo:margin-top)"/>
6175				<xsl:attribute name="距边界_41F0"><xsl:value-of select="number($borderPaddingTop) + number($pageMarginTop)"/></xsl:attribute>
6176			</xsl:element>
6177		</xsl:if>
6178	</xsl:template>
6179	<xsl:template name="字:页脚位置-page">
6180		<xsl:if test="style:footer-style/style:header-footer-properties">
6181			<xsl:element name="字:页脚位置_41F2">
6182				<xsl:attribute name="距版芯_41F1"><xsl:value-of select="fun:Convert2uofUnit(style:footer-style/style:header-footer-properties/@fo:margin-top)"/></xsl:attribute>
6183				<xsl:variable name="borderPaddingBottom">
6184					<xsl:choose>
6185						<xsl:when test="style:page-layout-properties/@fo:padding or style:page-layout-properties/@fo:padding-bottom">
6186							<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:padding|style:page-layout-properties/@fo:padding-top)"/>
6187						</xsl:when>
6188						<xsl:otherwise>0</xsl:otherwise>
6189					</xsl:choose>
6190				</xsl:variable>
6191				<xsl:variable name="pageMarginBottom" select="fun:Convert2uofUnit(style:page-layout-properties/@fo:margin-bottom)"/>
6192				<xsl:attribute name="距边界_41F0"><xsl:value-of select="number($borderPaddingBottom) + number($pageMarginBottom)"/></xsl:attribute>
6193			</xsl:element>
6194		</xsl:if>
6195	</xsl:template>
6196	<xsl:template name="字:装订线-page">
6197		<xsl:if test="style:page-layout-properties/@style:gutter-location">
6198			<xsl:element name="字:装订线_41FB">
6199				<xsl:attribute name="位置_4150"><xsl:value-of select="style:page-layout-properties/@style:gutter-location"/></xsl:attribute>
6200				<xsl:if test="style:page-layout-properties/@style:gutter-margin">
6201					<xsl:attribute name="距边界_41FC"><xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@style:gutter-margin)"/></xsl:attribute>
6202				</xsl:if>
6203			</xsl:element>
6204		</xsl:if>
6205	</xsl:template>
6206	<xsl:template name="字:对称页边距-page">
6207		<xsl:if test="@style:page-usage">
6208			<字:是否对称页边距_41FD>
6209				<xsl:choose>
6210					<xsl:when test="@style:page-usage='mirrored'">true</xsl:when>
6211					<xsl:otherwise>false</xsl:otherwise>
6212				</xsl:choose>
6213			</字:是否对称页边距_41FD>
6214		</xsl:if>
6215	</xsl:template>
6216	<xsl:template name="字:拼页-page">
6217		<xsl:variable name="pinye">
6218			<xsl:value-of select="substring-before(substring-after($defectpage,'/'),'(')"/>
6219		</xsl:variable>
6220		<xsl:if test="@style:page-usage='mirrored' or not($pinye='')">
6221			<xsl:element name="字:是否拼页_41FE">true</xsl:element>
6222		</xsl:if>
6223	</xsl:template>
6224	<xsl:template name="字:纸张方向和来源-page">
6225		<xsl:element name="字:纸张方向_41FF">
6226			<xsl:value-of select="style:page-layout-properties/@style:print-orientation"/>
6227		</xsl:element>
6228		<xsl:if test="style:page-layout-properties/@style:paper-tray-name">
6229			<字:纸张来源_4200 其他页_4202="style:page-layout-properties/@style:paper-tray-name" 首页_4201="false"/>
6230		</xsl:if>
6231	</xsl:template>
6232	<xsl:template name="oo数字格式">
6233		<xsl:param name="oo_format"/>
6234		<xsl:choose>
6235			<xsl:when test="$oo_format='1'">decimal</xsl:when>
6236			<xsl:when test="$oo_format='I'">upper-roman</xsl:when>
6237			<xsl:when test="$oo_format='i'">lower-roman</xsl:when>
6238			<xsl:when test="$oo_format='A'">upper-letter</xsl:when>
6239			<xsl:when test="$oo_format='a'">lower-letter</xsl:when>
6240			<xsl:when test="$oo_format='1, 2, 3, ...'">decimal-full-width</xsl:when>
6241			<xsl:when test="$oo_format='①, ②, ③, ...'">decimal-enclosed-circle</xsl:when>
6242			<xsl:when test="$oo_format='一, 二, 三, ...'">chinese-counting</xsl:when>
6243			<xsl:when test="$oo_format='壹, 贰, 叁, ...'">chinese-legal-simplified</xsl:when>
6244			<xsl:when test="$oo_format='甲, 乙, 丙, ...'">ideograph-traditional</xsl:when>
6245			<xsl:when test="$oo_format='子, 丑, 寅, ...'">ideograph-zodiac</xsl:when>
6246			<xsl:otherwise>decimal</xsl:otherwise>
6247		</xsl:choose>
6248	</xsl:template>
6249	<xsl:template name="字:页码设置-page">
6250		<xsl:param name="master-page"/>
6251		<xsl:param name="textstylename"/>
6252		<xsl:param name="page-layout-name"/>
6253		<xsl:param name="nextStyleName"/>
6254		<xsl:variable name="textPageNum">
6255			<xsl:choose>
6256				<xsl:when test="$master-page/@style:next-style-name != '' and /office:document/office:master-styles/style:master-page[@style:name = $nextStyleName]/style:footer//text:page-number">
6257					<xsl:value-of select="/office:document/office:master-styles/style:master-page[@style:name = $nextStyleName]/style:footer//text:page-number"/>
6258				</xsl:when>
6259				<xsl:otherwise>0</xsl:otherwise>
6260			</xsl:choose>
6261		</xsl:variable>
6262		<xsl:if test="$master-page/style:footer/text:p//text:page-number or (/office:document/office:automatic-styles/style:page-layout[@style:name = $page-layout-name]/style:page-layout-properties/@style:num-format and not (/office:document/office:automatic-styles/style:page-layout[@style:name = $page-layout-name]/style:footer-style)) or $textPageNum != '0'">
6263			<xsl:element name="字:页码设置_4205">
6264				<!--<xsl:attribute name="字:首页显示"><xsl:choose><xsl:when test="$master-page/@style:next-style-name">false</xsl:when><xsl:otherwise>true</xsl:otherwise></xsl:choose></xsl:attribute>-->
6265				<xsl:attribute name="格式_4151"><xsl:call-template name="oo数字格式"><xsl:with-param name="oo_format" select="$master-page/style:footer/text:p/text:page-number/@style:num-format"/></xsl:call-template></xsl:attribute>
6266				<xsl:variable name="startPageNumber">
6267					<xsl:choose>
6268						<xsl:when test="/office:document/office:automatic-styles/style:style[@style:name = $textstylename]/style:paragraph-properties/@style:page-number = 'auto'">
6269							<xsl:value-of select="number(1)"/>
6270						</xsl:when>
6271						<xsl:when test="/office:document/office:automatic-styles/style:style[@style:name = $textstylename]/style:paragraph-properties/@style:page-number">
6272							<xsl:value-of select="/office:document/office:automatic-styles/style:style[@style:name = $textstylename]/style:paragraph-properties/@style:page-number"/>
6273						</xsl:when>
6274						<xsl:when test="$textPageNum != '0'">
6275							<xsl:value-of select="$textPageNum"/>
6276						</xsl:when>
6277					</xsl:choose>
6278				</xsl:variable>
6279				<xsl:if test="$startPageNumber != ''">
6280					<xsl:attribute name="起始编号_4152"><xsl:value-of select="$startPageNumber"/></xsl:attribute>
6281				</xsl:if>
6282				<xsl:attribute name="是否包含章节号_4207">false</xsl:attribute>
6283				<xsl:variable name="pagesep">
6284					<xsl:value-of select="substring-before(substring-after($defectpage,'%'),'*')"/>
6285				</xsl:variable>
6286				<xsl:attribute name="分隔符_4209"><xsl:choose><xsl:when test="not($pagesep='')"><xsl:value-of select="$pagesep"/></xsl:when><xsl:otherwise>hyphen</xsl:otherwise></xsl:choose></xsl:attribute>
6287			</xsl:element>
6288		</xsl:if>
6289	</xsl:template>
6290	<xsl:template name="字:脚注设置和尾注设置-page">
6291		<xsl:if test="/office:document/office:styles/text:notes-configuration[@text:note-class='footnote']">
6292			<xsl:element name="字:脚注设置_4203">
6293				<xsl:for-each select="/office:document/office:styles/text:notes-configuration[@text:note-class='footnote']">
6294					<xsl:attribute name="位置_4150"><xsl:choose><xsl:when test="@text:footnotes-position='page'">page-bottom</xsl:when><xsl:when test="@text:footnotes-position='document'">below-text</xsl:when><xsl:otherwise>page-bottom</xsl:otherwise></xsl:choose></xsl:attribute>
6295					<xsl:attribute name="编号方式_4153"><xsl:choose><xsl:when test="@text:start-numbering-at='document'">continuous</xsl:when><xsl:when test="@text:start-numbering-at='chapter'">section</xsl:when><xsl:when test="@text:start-numbering-at='page'">page</xsl:when><xsl:otherwise>continuous</xsl:otherwise></xsl:choose></xsl:attribute>
6296					<xsl:attribute name="起始编号_4152"><xsl:choose><xsl:when test="@text:start-value"><xsl:value-of select="@text:start-value + 1"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:attribute>
6297					<xsl:attribute name="格式_4151"><xsl:variable name="format"><xsl:value-of select="@style:num-format"/></xsl:variable><xsl:call-template name="oo数字格式"><xsl:with-param name="oo_format" select="$format"/></xsl:call-template></xsl:attribute>
6298				</xsl:for-each>
6299			</xsl:element>
6300		</xsl:if>
6301		<xsl:if test="/office:document/office:styles/text:notes-configuration[@text:note-class='endnote']">
6302			<字:尾注设置_4204>
6303				<xsl:for-each select="/office:document/office:styles/text:notes-configuration[@text:note-class='endnote']">
6304					<xsl:attribute name="格式_4151"><xsl:variable name="format"><xsl:value-of select="@style:num-format"/></xsl:variable><xsl:call-template name="oo数字格式"><xsl:with-param name="oo_format" select="$format"/></xsl:call-template></xsl:attribute>
6305					<xsl:attribute name="起始编号_4152"><xsl:choose><xsl:when test="@text:start-value"><xsl:value-of select="@text:start-value + 1"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:attribute>
6306				</xsl:for-each>
6307			</字:尾注设置_4204>
6308		</xsl:if>
6309	</xsl:template>
6310	<xsl:template name="字:行号设置-page">
6311		<xsl:if test="/office:document/office:styles/text:linenumbering-configuration">
6312			<字:行号设置_420A>
6313				<xsl:for-each select="/office:document/office:styles/text:linenumbering-configuration">
6314					<xsl:choose>
6315						<xsl:when test="@text:number-lines='false'">
6316							<xsl:attribute name="是否使用行号_420B">false</xsl:attribute>
6317						</xsl:when>
6318						<xsl:otherwise>
6319							<xsl:attribute name="是否使用行号_420B">true</xsl:attribute>
6320							<xsl:attribute name="编号方式_4153"><xsl:choose><xsl:when test="@text:count-in-floating-frames='true'">section</xsl:when><xsl:when test="@text:restart-on-page='true'">page</xsl:when><xsl:when test="@text:count-empty-lines='false'"/><xsl:otherwise>continuous</xsl:otherwise></xsl:choose></xsl:attribute>
6321						</xsl:otherwise>
6322					</xsl:choose>
6323					<xsl:if test="@style:num-format">
6324						<xsl:attribute name="起始编号_420C"><xsl:value-of select="@style:num-format"/></xsl:attribute>
6325					</xsl:if>
6326					<xsl:if test="@text:offset">
6327						<xsl:attribute name="距边界_41F0"><xsl:value-of select="fun:Convert2uofUnit(@text:offset)"/></xsl:attribute>
6328					</xsl:if>
6329					<xsl:if test="@text:increment">
6330						<xsl:attribute name="行号间隔_420D"><xsl:value-of select="@text:increment"/></xsl:attribute>
6331					</xsl:if>
6332				</xsl:for-each>
6333			</字:行号设置_420A>
6334		</xsl:if>
6335	</xsl:template>
6336	<xsl:template name="字:网格设置和稿纸设置-page">
6337		<xsl:param name="uof_top"/>
6338		<xsl:param name="uof_left"/>
6339		<xsl:param name="uof_bottom"/>
6340		<xsl:param name="uof_right"/>
6341		<xsl:variable name="aa">
6342			<xsl:choose>
6343				<xsl:when test="style:page-layout-properties/@style:layout-grid-ruby-height">
6344					<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@style:layout-grid-ruby-height)"/>
6345				</xsl:when>
6346				<xsl:otherwise>0</xsl:otherwise>
6347			</xsl:choose>
6348		</xsl:variable>
6349		<xsl:variable name="layoutGridBaseHeight" select="fun:Convert2uofUnit(style:page-layout-properties/@style:layout-grid-base-height)"/>
6350		<xsl:variable name="layoutGridRubyHeight" select="fun:Convert2uofUnit(style:page-layout-properties/@style:layout-grid-ruby-height)"/>
6351		<xsl:variable name="pageHeight" select="fun:Convert2uofUnit(style:page-layout-properties/@fo:page-height)"/>
6352		<xsl:variable name="layoutGridRubyWidth" select="fun:Convert2uofUnit(style:page-layout-properties/@style:layout-grid-base-width)"/>
6353		<xsl:variable name="pageWidth" select="fun:Convert2uofUnit(style:page-layout-properties/@fo:page-width)"/>
6354		<xsl:choose>
6355			<xsl:when test="style:page-layout-properties/@style:layout-grid-mode='line' and (style:page-layout-properties/@style:layout-grid-lines='10' or style:page-layout-properties/@style:layout-grid-lines='15' or style:page-layout-properties/@style:layout-grid-lines='20' or style:page-layout-properties/@style:layout-grid-lines='24') and style:page-layout-properties/@style:layout-grid-display = 'true'">
6356				<字:稿纸设置_4216>
6357					<xsl:variable name="GridLine">
6358						<xsl:value-of select="style:page-layout-properties/@style:layout-grid-lines"/>
6359					</xsl:variable>
6360					<xsl:attribute name="类型_4173">letter-paper</xsl:attribute>
6361					<xsl:if test="style:page-layout-properties/@style:layout-grid-mode='line'">
6362						<xsl:choose>
6363							<xsl:when test="$GridLine='10'">
6364								<xsl:attribute name="格式_4217">first-gear</xsl:attribute>
6365							</xsl:when>
6366							<xsl:when test="$GridLine='15'">
6367								<xsl:attribute name="格式_4217">second-gear</xsl:attribute>
6368							</xsl:when>
6369							<xsl:when test="$GridLine='20'">
6370								<xsl:attribute name="格式_4217">third-gear</xsl:attribute>
6371							</xsl:when>
6372							<xsl:when test="$GridLine='24'">
6373								<xsl:attribute name="格式_4217">fourth-gear</xsl:attribute>
6374							</xsl:when>
6375						</xsl:choose>
6376					</xsl:if>
6377					<xsl:if test="style:page-layout-properties/@style:layout-grid-ruby-height">
6378						<xsl:attribute name="线型_4218"><xsl:choose><xsl:when test="$layoutGridRubyHeight='0'">single-line</xsl:when><xsl:otherwise>double-line</xsl:otherwise></xsl:choose></xsl:attribute>
6379					</xsl:if>
6380					<xsl:if test="style:page-layout-properties/@style:layout-grid-color">
6381						<xsl:attribute name="颜色_4219"><xsl:value-of select="style:page-layout-properties/@style:layout-grid-color"/></xsl:attribute>
6382					</xsl:if>
6383					<xsl:attribute name="方向_421A"><xsl:call-template name="LetterTypeSet"/></xsl:attribute>
6384				</字:稿纸设置_4216>
6385			</xsl:when>
6386			<xsl:when test="$aa='0'">
6387				<xsl:if test="style:page-layout-properties/@style:layout-grid-mode">
6388					<字:网格设置_420E>
6389						<xsl:if test="style:page-layout-properties/@style:layout-grid-mode">
6390							<xsl:attribute name="网格类型_420F"><xsl:choose><xsl:when test="style:page-layout-properties/@style:layout-grid-mode='both' and style:page-layout-properties/@style:layout-grid-snap-to-characters = 'false'">line-char</xsl:when><xsl:when test="style:page-layout-properties/@style:layout-grid-mode='both' and style:page-layout-properties/@style:layout-grid-snap-to-characters = 'true'">char</xsl:when><xsl:when test="style:page-layout-properties/@style:layout-grid-mode='line'">line</xsl:when><xsl:when test="style:page-layout-properties/@style:layout-grid-mode='none'">none</xsl:when></xsl:choose></xsl:attribute>
6391						</xsl:if>
6392						<xsl:if test="style:page-layout-properties/@style:layout-grid-base-width and (style:page-layout-properties/@style:layout-grid-mode = 'both' or style:page-layout-properties/@style:layout-grid-mode = 'both-nosnap')">
6393							<xsl:attribute name="字符数_4228"><xsl:value-of select="floor((number($pageWidth) - $uof_left - $uof_right) div number($layoutGridRubyWidth) * 1.003)"/></xsl:attribute>
6394						</xsl:if>
6395						<xsl:if test="style:page-layout-properties/@style:layout-grid-base-height">
6396							<xsl:attribute name="行数_4210"><xsl:value-of select="floor((number($pageHeight) - $uof_top - $uof_bottom) div number($layoutGridBaseHeight))"/></xsl:attribute>
6397						</xsl:if>
6398						<xsl:if test="style:page-layout-properties/@style:layout-grid-display">
6399							<xsl:attribute name="是否显示网格_4211"><xsl:choose><xsl:when test="style:page-layout-properties/@style:layout-grid-display='true'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
6400						</xsl:if>
6401						<xsl:if test="style:page-layout-properties/@style:layout-grid-print">
6402							<xsl:attribute name="是否打印网格_4212"><xsl:choose><xsl:when test="style:page-layout-properties/@style:layout-grid-print='true'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
6403						</xsl:if>
6404					</字:网格设置_420E>
6405				</xsl:if>
6406			</xsl:when>
6407			<xsl:when test="style:page-layout-properties/@style:layout-grid-mode='both' and number($layoutGridRubyHeight) != 0">
6408				<字:稿纸设置_4216>
6409					<xsl:variable name="cell_width">
6410						<xsl:choose>
6411							<xsl:when test="style:page-layout-properties/@style:layout-grid-base-width">
6412								<xsl:value-of select="$layoutGridRubyWidth"/>
6413							</xsl:when>
6414							<xsl:when test="style:page-layout-properties/@style:layout-grid-base-height">
6415								<xsl:value-of select="$layoutGridBaseHeight"/>
6416							</xsl:when>
6417							<xsl:otherwise>1</xsl:otherwise>
6418						</xsl:choose>
6419					</xsl:variable>
6420					<xsl:attribute name="类型_4173"><xsl:choose><xsl:when test="style:page-layout-properties/@style:layout-grid-mode='line'">letter-paper</xsl:when><xsl:when test="style:page-layout-properties/@style:layout-grid-mode='both'">draft-paper</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
6421					<xsl:variable name="length">
6422						<xsl:variable name="direction">
6423							<xsl:call-template name="LetterTypeSet"/>
6424						</xsl:variable>
6425						<xsl:choose>
6426							<xsl:when test="$direction = 't2b-l2r-0e-0w'">
6427								<xsl:value-of select="$pageWidth"/>
6428							</xsl:when>
6429							<xsl:otherwise>
6430								<xsl:value-of select="$pageHeight"/>
6431							</xsl:otherwise>
6432						</xsl:choose>
6433					</xsl:variable>
6434					<xsl:variable name="column" select="(number($length) - number($uof_left) - number($uof_right)) div number($cell_width)"/>
6435					<xsl:variable name="girdType">
6436						<xsl:choose>
6437							<xsl:when test="style:page-layout-properties/@style:layout-grid-lines = 10">first-gear</xsl:when>
6438							<xsl:when test="style:page-layout-properties/@style:layout-grid-lines = 15">second-gear</xsl:when>
6439							<xsl:when test="style:page-layout-properties/@style:layout-grid-lines = 20">
6440								<xsl:choose>
6441									<xsl:when test="contains(string($column),'20')">third-gear</xsl:when>
6442									<xsl:when test="contains(string($column),'25') or ($column &gt; 25)">fourth-gear</xsl:when>
6443									<xsl:otherwise>fourth-gear</xsl:otherwise>
6444								</xsl:choose>
6445							</xsl:when>
6446						</xsl:choose>
6447					</xsl:variable>
6448					<xsl:if test="$girdType != ''">
6449						<xsl:attribute name="格式_4217"><xsl:value-of select="$girdType"/></xsl:attribute>
6450					</xsl:if>
6451					<xsl:if test="style:page-layout-properties/@style:layout-grid-color">
6452						<xsl:attribute name="颜色_4219"><xsl:value-of select="style:page-layout-properties/@style:layout-grid-color"/></xsl:attribute>
6453					</xsl:if>
6454					<xsl:attribute name="方向_421A"><xsl:call-template name="LetterTypeSet"/></xsl:attribute>
6455				</字:稿纸设置_4216>
6456			</xsl:when>
6457		</xsl:choose>
6458	</xsl:template>
6459	<xsl:template name="LetterTypeSet">
6460		<xsl:choose>
6461			<xsl:when test="style:page-layout-properties/@style:writing-mode = 'lr-tb'">hori-l2r</xsl:when>
6462			<xsl:when test="style:page-layout-properties/@style:writing-mode = 'tb-lr'">hori-r2l</xsl:when>
6463			<xsl:when test="style:page-layout-properties/@style:writing-mode = 'tb-rl'">vert-r2l</xsl:when>
6464			<xsl:otherwise>hori-l2r</xsl:otherwise>
6465		</xsl:choose>
6466	</xsl:template>
6467	<xsl:template name="字:垂直对齐方式-page">
6468		<xsl:if test="style:page-layout-properties/@style:vertical-align">
6469			<字:垂直对齐方式_4213>
6470				<xsl:value-of select="style:page-layout-properties/@style:vertical-align"/>
6471			</字:垂直对齐方式_4213>
6472		</xsl:if>
6473	</xsl:template>
6474	<xsl:template name="字:文字排列方向-page">
6475		<字:文字排列方向_4214>
6476			<xsl:variable name="writing_mode">
6477				<xsl:value-of select="style:page-layout-properties/@style:writing-mode"/>
6478			</xsl:variable>
6479			<xsl:choose>
6480				<xsl:when test="$writing_mode='lr-tb' or $writing_mode='lr'">t2b-l2r-0e-0w</xsl:when>
6481				<xsl:when test="$writing_mode='rl-tb' or $writing_mode='rl'">t2b-r2l-0e-0w</xsl:when>
6482				<xsl:when test="$writing_mode='tb-rl'">r2l-t2b-0e-90w</xsl:when>
6483				<xsl:when test="$writing_mode='tb-lr'">l2r-b2t-270e-270w</xsl:when>
6484				<xsl:otherwise>t2b-l2r-0e-0w</xsl:otherwise>
6485			</xsl:choose>
6486		</字:文字排列方向_4214>
6487	</xsl:template>
6488	<xsl:template name="字:边框-page">
6489		<xsl:if test="style:page-layout-properties/@fo:border or style:page-layout-properties/@fo:border-top or style:page-layout-properties/@fo:border-bottom or style:page-layout-properties/@fo:border-left or style:page-layout-properties/@fo:border-right or style:page-layout-properties/@style:shadow[.!='none']">
6490			<xsl:element name="字:边框_4133">
6491				<xsl:if test="style:page-layout-properties/@style:shadow[.!='none']">
6492					<xsl:variable name="shadowAngle">
6493						<xsl:call-template name="getShadowAngle">
6494							<xsl:with-param name="style_shadow" select="style:page-layout-properties/@style:shadow"/>
6495						</xsl:call-template>
6496					</xsl:variable>
6497					<xsl:attribute name="阴影类型_C645" select="$shadowAngle"/>
6498				</xsl:if>
6499				<xsl:for-each select="style:page-layout-properties">
6500					<xsl:call-template name="Border"/>
6501				</xsl:for-each>
6502			</xsl:element>
6503		</xsl:if>
6504	</xsl:template>
6505	<xsl:template name="字:填充-page">
6506		<xsl:if test="style:page-layout-properties/@fo:background-color or style:page-layout-properties/style:background-gradient or style:page-layout-properties/style:background-image">
6507			<xsl:element name="字:填充_4134">
6508				<xsl:for-each select="style:page-layout-properties">
6509					<xsl:call-template name="UOFFill"/>
6510				</xsl:for-each>
6511			</xsl:element>
6512		</xsl:if>
6513	</xsl:template>
6514	<xsl:template name="字:分栏-page">
6515		<xsl:if test="style:page-layout-properties/style:columns">
6516			<xsl:element name="字:分栏_4215">
6517				<xsl:element name="字:是否等宽_41E9">
6518					<xsl:choose>
6519						<xsl:when test="style:page-layout-properties/style:columns/@fo:column-gap">true</xsl:when>
6520						<xsl:otherwise>false</xsl:otherwise>
6521					</xsl:choose>
6522				</xsl:element>
6523				<xsl:if test="style:page-layout-properties/style:columns/style:column-sep">
6524					<xsl:element name="字:分隔线_41E3">
6525						<xsl:attribute name="分隔线宽度_41E6"><xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/style:columns/style:column-sep/@style:width)"/></xsl:attribute>
6526						<xsl:attribute name="分隔线颜色_41E7"><xsl:value-of select="style:page-layout-properties/style:columns/style:column-sep/@style:color"/></xsl:attribute>
6527						<xsl:attribute name="分隔线线型_41E4">single</xsl:attribute>
6528					</xsl:element>
6529				</xsl:if>
6530				<xsl:if test="style:page-layout-properties/style:columns/@fo:column-count">
6531					<xsl:element name="字:栏数_41E8">
6532						<xsl:value-of select="style:page-layout-properties/style:columns/@fo:column-count"/>
6533					</xsl:element>
6534				</xsl:if>
6535				<xsl:for-each select="style:page-layout-properties/style:columns/style:column">
6536					<xsl:element name="字:栏_41E0">
6537						<xsl:variable name="left" select="fun:Convert2uofUnit(@fo:start-indent)"/>
6538						<xsl:variable name="right" select="fun:Convert2uofUnit(@fo:end-indent)"/>
6539						<xsl:if test="@style:rel-width">
6540							<xsl:variable name="width">
6541								<xsl:variable name="rel-width">
6542									<xsl:value-of select="substring-before(@style:rel-width,'*')"/>
6543								</xsl:variable>
6544								<xsl:value-of select="number($rel-width div 1440 * 2.54 div $other-to-cm-conversion-factor )"/>
6545							</xsl:variable>
6546							<xsl:attribute name="宽度_41E1"><xsl:value-of select="$width - $left - $right"/></xsl:attribute>
6547						</xsl:if>
6548						<xsl:attribute name="间距_41E2"><xsl:value-of select="2 * $right"/></xsl:attribute>
6549					</xsl:element>
6550				</xsl:for-each>
6551			</xsl:element>
6552		</xsl:if>
6553	</xsl:template>
6554	<xsl:template name="字:首页页眉页脚不同-page">
6555		<xsl:param name="master-page"/>
6556		<xsl:param name="firstPageHeader"/>
6557		<xsl:param name="firstPageFooter"/>
6558		<xsl:param name="secondPageHeader"/>
6559		<xsl:param name="secondPageFooter"/>
6560		<xsl:if test="$firstPageHeader != $secondPageHeader or $firstPageFooter != $secondPageFooter">
6561			<字:是否首页页眉页脚不同_41EE>true</字:是否首页页眉页脚不同_41EE>
6562		</xsl:if>
6563	</xsl:template>
6564	<xsl:template name="页眉页脚-page">
6565		<xsl:param name="master-page"/>
6566		<xsl:param name="firstPageHeader"/>
6567		<xsl:param name="firstPageFooter"/>
6568		<xsl:param name="secondPageHeader"/>
6569		<xsl:param name="secondPageFooter"/>
6570		<xsl:param name="nextStyleName"/>
6571		<xsl:param name="firstPageNum"/>
6572		<xsl:choose>
6573			<xsl:when test="$firstPageHeader != $secondPageHeader">
6574				<字:页眉_41F3>
6575					<xsl:for-each select="/office:document/office:master-styles/style:master-page[@style:name = $nextStyleName]/style:header">
6576						<字:奇数页页眉_41F4>
6577							<xsl:call-template name="TextContent"/>
6578						</字:奇数页页眉_41F4>
6579					</xsl:for-each>
6580					<xsl:for-each select="/office:document/office:master-styles/style:master-page[@style:name = $nextStyleName]/style:header-left">
6581						<字:偶数页页眉_41F5>
6582							<xsl:call-template name="TextContent"/>
6583						</字:偶数页页眉_41F5>
6584					</xsl:for-each>
6585					<xsl:for-each select="$master-page/style:header">
6586						<字:首页页眉_41F6>
6587							<xsl:call-template name="TextContent"/>
6588						</字:首页页眉_41F6>
6589					</xsl:for-each>
6590				</字:页眉_41F3>
6591			</xsl:when>
6592			<xsl:when test="$master-page/style:header-left or $master-page/style:header">
6593				<字:页眉_41F3>
6594					<xsl:for-each select="$master-page/style:header">
6595						<字:奇数页页眉_41F4>
6596							<xsl:call-template name="TextContent"/>
6597						</字:奇数页页眉_41F4>
6598					</xsl:for-each>
6599					<xsl:for-each select="$master-page/style:header-left">
6600						<字:偶数页页眉_41F5>
6601							<xsl:call-template name="TextContent"/>
6602						</字:偶数页页眉_41F5>
6603					</xsl:for-each>
6604				</字:页眉_41F3>
6605			</xsl:when>
6606		</xsl:choose>
6607		<xsl:choose>
6608			<xsl:when test="$firstPageFooter != $secondPageFooter or $firstPageNum != ''">
6609				<字:页脚_41F7>
6610					<xsl:for-each select="/office:document/office:master-styles/style:master-page[@style:name = $nextStyleName]/style:footer">
6611						<字:奇数页页脚_41F8>
6612							<xsl:call-template name="TextContent"/>
6613						</字:奇数页页脚_41F8>
6614					</xsl:for-each>
6615					<xsl:for-each select="/office:document/office:master-styles/style:master-page[@style:name = $nextStyleName]/style:footer-left">
6616						<字:偶数页页脚_41F9>
6617							<xsl:call-template name="TextContent"/>
6618						</字:偶数页页脚_41F9>
6619					</xsl:for-each>
6620					<xsl:for-each select="$master-page/style:footer">
6621						<字:首页页脚_41FA>
6622							<xsl:call-template name="TextContent"/>
6623						</字:首页页脚_41FA>
6624					</xsl:for-each>
6625				</字:页脚_41F7>
6626			</xsl:when>
6627			<xsl:when test="$master-page/style:footer-left or $master-page/style:footer">
6628				<字:页脚_41F7>
6629					<xsl:for-each select="$master-page/style:footer">
6630						<字:奇数页页脚_41F8>
6631							<xsl:call-template name="TextContent"/>
6632						</字:奇数页页脚_41F8>
6633					</xsl:for-each>
6634					<xsl:for-each select="$master-page/style:footer-left">
6635						<字:偶数页页脚_41F9>
6636							<xsl:call-template name="TextContent"/>
6637						</字:偶数页页脚_41F9>
6638					</xsl:for-each>
6639					<xsl:for-each select="/office:document/office:master-styles/style:master-page[@style:name = $nextStyleName]/style:footer">
6640						<字:首页页脚_41FA>
6641							<xsl:call-template name="TextContent"/>
6642						</字:首页页脚_41FA>
6643					</xsl:for-each>
6644				</字:页脚_41F7>
6645			</xsl:when>
6646		</xsl:choose>
6647	</xsl:template>
6648	<xsl:template name="text-page-layout">
6649		<xsl:param name="master-page"/>
6650		<xsl:param name="textstylename"/>
6651		<xsl:variable name="page-layout-name" select="$master-page/@style:page-layout-name"/>
6652		<xsl:if test="$page-layout-name != ''">
6653			<字:分节_416A>
6654				<xsl:attribute name="名称_4166"><xsl:value-of select="$master-page/@style:name"/></xsl:attribute>
6655				<字:节属性_421B>
6656					<字:节类型_41EA>
6657						<xsl:choose>
6658							<xsl:when test="$master-page/@style:page-section-name = '奇数页'">odd-page</xsl:when>
6659							<xsl:when test="$master-page/@style:page-section-name = '偶数页'">even-page</xsl:when>
6660							<xsl:otherwise>new-page</xsl:otherwise>
6661						</xsl:choose>
6662					</字:节类型_41EA>
6663					<xsl:variable name="nextStyleName" select="$master-page/@style:next-style-name"/>
6664					<xsl:variable name="firstPageHeader" select="$master-page/style:header/text:p"/>
6665					<xsl:variable name="firstPageFooter" select="$master-page/style:footer/text:p"/>
6666					<xsl:variable name="secondPageHeader" select="/office:document/office:master-styles/style:master-page[@style:name = $nextStyleName]/style:header/text:p"/>
6667					<xsl:variable name="secondPageFooter" select="/office:document/office:master-styles/style:master-page[@style:name = $nextStyleName]/style:footer/text:p"/>
6668					<xsl:variable name="firstPageNum" select="/office:document/office:master-styles/style:master-page[@style:name = $nextStyleName]/style:footer/text:p/text:page-number"/>
6669					<xsl:call-template name="页眉页脚-page">
6670						<xsl:with-param name="master-page" select="$master-page"/>
6671						<xsl:with-param name="firstPageHeader" select="$firstPageHeader"/>
6672						<xsl:with-param name="firstPageFooter" select="$firstPageFooter"/>
6673						<xsl:with-param name="secondPageHeader" select="$secondPageHeader"/>
6674						<xsl:with-param name="secondPageFooter" select="$secondPageFooter"/>
6675						<xsl:with-param name="nextStyleName" select="$nextStyleName"/>
6676						<xsl:with-param name="firstPageNum" select="$firstPageNum"/>
6677					</xsl:call-template>
6678					<xsl:for-each select="/office:document/office:automatic-styles/style:page-layout[@style:name = $page-layout-name]">
6679						<xsl:variable name="margin_top" select="fun:Convert2uofUnit(style:page-layout-properties/@fo:margin-top)"/>
6680						<xsl:variable name="min_height_top">
6681							<xsl:choose>
6682								<xsl:when test="style:header-style/style:header-footer-properties/@fo:min-height">
6683									<xsl:value-of select="fun:Convert2uofUnit(style:header-style/style:header-footer-properties/@fo:min-height)"/>
6684								</xsl:when>
6685								<xsl:otherwise>
6686									<xsl:value-of select="'0'"/>
6687								</xsl:otherwise>
6688							</xsl:choose>
6689						</xsl:variable>
6690						<xsl:variable name="padding_top">
6691							<xsl:choose>
6692								<xsl:when test="style:page-layout-properties/@fo:padding-top">
6693									<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:padding-top)"/>
6694								</xsl:when>
6695								<xsl:when test="style:page-layout-properties/@fo:padding">
6696									<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:padding)"/>
6697								</xsl:when>
6698								<xsl:otherwise>
6699									<xsl:value-of select="'0'"/>
6700								</xsl:otherwise>
6701							</xsl:choose>
6702						</xsl:variable>
6703						<xsl:variable name="margin_left" select="fun:Convert2uofUnit(style:page-layout-properties/@fo:margin-left)"/>
6704						<xsl:variable name="padding_left">
6705							<xsl:choose>
6706								<xsl:when test="style:page-layout-properties/@fo:padding-left">
6707									<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:padding-left)"/>
6708								</xsl:when>
6709								<xsl:when test="style:page-layout-properties/@fo:padding">
6710									<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:padding)"/>
6711								</xsl:when>
6712								<xsl:otherwise>
6713									<xsl:value-of select="number('0')"/>
6714								</xsl:otherwise>
6715							</xsl:choose>
6716						</xsl:variable>
6717						<xsl:variable name="margin_bottom" select="fun:Convert2uofUnit(style:page-layout-properties/@fo:margin-bottom)"/>
6718						<xsl:variable name="min_height_bottom">
6719							<xsl:choose>
6720								<xsl:when test="style:footer-style/style:header-footer-properties/@fo:min-height">
6721									<xsl:value-of select="fun:Convert2uofUnit(style:footer-style/style:header-footer-properties/@fo:min-height)"/>
6722								</xsl:when>
6723								<xsl:otherwise>
6724									<xsl:value-of select="'0'"/>
6725								</xsl:otherwise>
6726							</xsl:choose>
6727						</xsl:variable>
6728						<xsl:variable name="padding_bottom">
6729							<xsl:choose>
6730								<xsl:when test="style:page-layout-properties/@fo:padding-bottom">
6731									<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:padding-bottom)"/>
6732								</xsl:when>
6733								<xsl:when test="style:page-layout-properties/@fo:padding">
6734									<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:padding)"/>
6735								</xsl:when>
6736								<xsl:otherwise>
6737									<xsl:value-of select="'0'"/>
6738								</xsl:otherwise>
6739							</xsl:choose>
6740						</xsl:variable>
6741						<xsl:variable name="padding_right">
6742							<xsl:choose>
6743								<xsl:when test="style:page-layout-properties/@fo:padding-right">
6744									<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:padding-right)"/>
6745								</xsl:when>
6746								<xsl:when test="style:page-layout-properties/@fo:padding">
6747									<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:padding)"/>
6748								</xsl:when>
6749								<xsl:otherwise>
6750									<xsl:value-of select="'0'"/>
6751								</xsl:otherwise>
6752							</xsl:choose>
6753						</xsl:variable>
6754						<xsl:variable name="margin_right" select="fun:Convert2uofUnit(style:page-layout-properties/@fo:margin-right)"/>
6755						<xsl:variable name="uof_top" select="number($margin_top) + number($min_height_top) + number($padding_top)"/>
6756						<xsl:variable name="uof_left" select="$margin_left + $padding_left"/>
6757						<xsl:variable name="uof_bottom" select="number($margin_bottom) + number($min_height_bottom) + number($padding_bottom)"/>
6758						<xsl:variable name="uof_right" select="number($margin_right) + number($padding_right)"/>
6759						<xsl:call-template name="字:页边距-page">
6760							<xsl:with-param name="uof_top" select="$uof_top"/>
6761							<xsl:with-param name="uof_left" select="$uof_left"/>
6762							<xsl:with-param name="uof_bottom" select="$uof_bottom"/>
6763							<xsl:with-param name="uof_right" select="$uof_right"/>
6764						</xsl:call-template>
6765						<xsl:call-template name="字:纸张-page"/>
6766						<xsl:call-template name="字:奇偶页页眉页脚不同-page"/>
6767						<xsl:call-template name="字:页眉位置-page"/>
6768						<xsl:call-template name="字:页脚位置-page"/>
6769						<xsl:call-template name="字:装订线-page"/>
6770						<xsl:call-template name="字:对称页边距-page"/>
6771						<xsl:call-template name="字:拼页-page"/>
6772						<xsl:call-template name="字:纸张方向和来源-page"/>
6773						<xsl:call-template name="字:脚注设置和尾注设置-page"/>
6774						<xsl:call-template name="字:行号设置-page"/>
6775						<xsl:call-template name="字:网格设置和稿纸设置-page">
6776							<xsl:with-param name="uof_top" select="$uof_top"/>
6777							<xsl:with-param name="uof_left" select="$uof_left"/>
6778							<xsl:with-param name="uof_bottom" select="$uof_bottom"/>
6779							<xsl:with-param name="uof_right" select="$uof_right"/>
6780						</xsl:call-template>
6781						<xsl:call-template name="字:垂直对齐方式-page"/>
6782						<xsl:call-template name="字:文字排列方向-page"/>
6783						<xsl:call-template name="字:边框-page"/>
6784						<xsl:call-template name="字:填充-page"/>
6785						<xsl:call-template name="字:分栏-page"/>
6786					</xsl:for-each>
6787					<xsl:call-template name="字:页码设置-page">
6788						<xsl:with-param name="master-page" select="$master-page"/>
6789						<xsl:with-param name="textstylename" select="$textstylename"/>
6790						<xsl:with-param name="page-layout-name" select="$page-layout-name"/>
6791						<xsl:with-param name="nextStyleName" select="$nextStyleName"/>
6792					</xsl:call-template>
6793					<xsl:call-template name="字:首页页眉页脚不同-page">
6794						<xsl:with-param name="master-page" select="$master-page"/>
6795						<xsl:with-param name="firstPageHeader" select="$firstPageHeader"/>
6796						<xsl:with-param name="firstPageFooter" select="$firstPageFooter"/>
6797						<xsl:with-param name="secondPageHeader" select="$secondPageHeader"/>
6798						<xsl:with-param name="secondPageFooter" select="$secondPageFooter"/>
6799					</xsl:call-template>
6800				</字:节属性_421B>
6801			</字:分节_416A>
6802		</xsl:if>
6803	</xsl:template>
6804	<xsl:template match="text:s">
6805		<xsl:choose>
6806			<xsl:when test="not(@text:c)">
6807				<字:空格符_4161 个数_4162="1"/>
6808			</xsl:when>
6809			<xsl:otherwise>
6810				<字:空格符_4161 个数_4162="{@text:c}"/>
6811			</xsl:otherwise>
6812		</xsl:choose>
6813	</xsl:template>
6814	<xsl:template match="text:tab">
6815		<xsl:element name="字:制表符_415E">
6816
6817		</xsl:element>
6818	</xsl:template>
6819	<xsl:template match="text:line-break">
6820		<xsl:element name="字:换行符_415F">
6821
6822		</xsl:element>
6823	</xsl:template>
6824	<xsl:template match="text:use-soft-page-breaks">
6825	</xsl:template>
6826	<xsl:template match="text:span">
6827		<xsl:variable name="Count" select="count(child::node())"/>
6828		<xsl:choose>
6829			<xsl:when test="$Count=0">
6830				<字:句_419D>
6831					<xsl:if test="@text:style-name!=''">
6832						<字:句属性_4158>
6833							<xsl:attribute name="式样引用_417B"><xsl:value-of select="@text:style-name"/></xsl:attribute>
6834						</字:句属性_4158>
6835					</xsl:if>
6836				</字:句_419D>
6837			</xsl:when>
6838			<xsl:otherwise>
6839				<xsl:variable name="FirstName">
6840					<xsl:for-each select="child::node()[1]">
6841						<xsl:value-of select="name(.)"/>
6842					</xsl:for-each>
6843				</xsl:variable>
6844				<xsl:variable name="FirstSentence">
6845					<xsl:call-template name="IsNewSentect">
6846						<xsl:with-param name="CurrName">
6847							<xsl:value-of select="$FirstName"/>
6848						</xsl:with-param>
6849					</xsl:call-template>
6850				</xsl:variable>
6851				<xsl:if test="($FirstSentence='1')">
6852					<xsl:text disable-output-escaping="yes">&lt;字:句_419D&gt;</xsl:text>
6853					<xsl:if test="@text:style-name!=''">
6854						<字:句属性_4158>
6855							<xsl:attribute name="式样引用_417B"><xsl:value-of select="@text:style-name"/></xsl:attribute>
6856						</字:句属性_4158>
6857					</xsl:if>
6858				</xsl:if>
6859				<xsl:for-each select="node()">
6860					<xsl:variable name="NewSentence">
6861						<xsl:call-template name="IsNewSentect">
6862							<xsl:with-param name="CurrName">
6863								<xsl:value-of select="name(.)"/>
6864							</xsl:with-param>
6865						</xsl:call-template>
6866					</xsl:variable>
6867					<xsl:if test="position()&gt;1">
6868						<xsl:variable name="PrevName">
6869							<xsl:for-each select="preceding-sibling::node()[1]">
6870								<xsl:value-of select="name(.)"/>
6871							</xsl:for-each>
6872						</xsl:variable>
6873						<xsl:variable name="PrevNewSentence">
6874							<xsl:call-template name="IsNewSentect">
6875								<xsl:with-param name="CurrName">
6876									<xsl:value-of select="$PrevName"/>
6877								</xsl:with-param>
6878							</xsl:call-template>
6879						</xsl:variable>
6880						<xsl:choose>
6881							<xsl:when test="($PrevNewSentence ='0')">
6882								<xsl:if test="($NewSentence='1')">
6883									<xsl:text disable-output-escaping="yes">&lt;字:句_419D&gt;</xsl:text>
6884									<xsl:if test="name(.)!='' and @text:style-name!=''">
6885										<字:句属性_4158>
6886											<xsl:attribute name="式样引用_417B"><xsl:value-of select="@text:style-name"/></xsl:attribute>
6887										</字:句属性_4158>
6888									</xsl:if>
6889								</xsl:if>
6890							</xsl:when>
6891							<xsl:otherwise>
6892								<xsl:if test="($NewSentence='0')">
6893									<xsl:text disable-output-escaping="yes">&lt;/字:句_419D&gt;</xsl:text>
6894								</xsl:if>
6895							</xsl:otherwise>
6896						</xsl:choose>
6897					</xsl:if>
6898					<xsl:call-template name="one_paragraph_content"/>
6899					<xsl:if test="position()=last() and $NewSentence='1'">
6900						<xsl:text disable-output-escaping="yes">&lt;/字:句_419D&gt;</xsl:text>
6901					</xsl:if>
6902				</xsl:for-each>
6903			</xsl:otherwise>
6904		</xsl:choose>
6905	</xsl:template>
6906	<xsl:template match="text:meta">
6907	</xsl:template>
6908	<xsl:template match="text:bookmark">
6909		<字:区域开始_4165 名称_4166="{@text:name}" 标识符_4100="{@text:name}" 类型_413B="bookmark"/>
6910		<字:区域结束_4167 标识符引用_4168="{@text:name}"/>
6911	</xsl:template>
6912	<xsl:template match="text:bookmark-start">
6913		<字:区域开始_4165>
6914			<xsl:attribute name="名称_4166"><xsl:value-of select="@text:name"/></xsl:attribute>
6915			<xsl:attribute name="类型_413B">bookmark</xsl:attribute>
6916			<xsl:attribute name="标识符_4100"><xsl:value-of select="@text:name"/></xsl:attribute>
6917		</字:区域开始_4165>
6918	</xsl:template>
6919	<xsl:template match="text:bookmark-end">
6920		<字:区域结束_4167>
6921			<xsl:attribute name="标识符引用_4168"><xsl:value-of select="@text:name"/></xsl:attribute>
6922		</字:区域结束_4167>
6923	</xsl:template>
6924	<xsl:template match="text:reference-mark">
6925	</xsl:template>
6926	<xsl:template match="text:reference-mark-start">
6927	</xsl:template>
6928	<xsl:template match="text:reference-mark-end">
6929	</xsl:template>
6930	<xsl:template match="text:note">
6931		<xsl:choose>
6932			<xsl:when test="@text:note-class='footnote'">
6933				<字:脚注_4159>
6934					<xsl:attribute name="引文体_4157"><xsl:value-of select="text:note-citation"/></xsl:attribute>
6935					<xsl:for-each select="text:note-body">
6936						<xsl:call-template name="TextContent"/>
6937					</xsl:for-each>
6938				</字:脚注_4159>
6939			</xsl:when>
6940			<xsl:when test="@text:note-class='endnote'">
6941				<字:尾注_415A>
6942					<xsl:attribute name="引文体_4157"><xsl:value-of select="text:note-citation"/></xsl:attribute>
6943					<xsl:for-each select="text:note-body">
6944						<xsl:call-template name="TextContent"/>
6945					</xsl:for-each>
6946				</字:尾注_415A>
6947			</xsl:when>
6948		</xsl:choose>
6949	</xsl:template>
6950	<xsl:template match="text:ruby">
6951	</xsl:template>
6952	<xsl:template match="office:annotation">
6953		<xsl:variable name="ID" select="generate-id(.)"/>
6954		<xsl:if test="not(contains(./dc:creator,'__@*Start@')) and not(contains(./dc:creator,'__@*End@'))">
6955			<xsl:element name="字:区域开始_4165">
6956				<xsl:attribute name="标识符_4100"><xsl:value-of select="concat('cmt', $ID)"/></xsl:attribute>
6957				<xsl:attribute name="名称_4166">Comment</xsl:attribute>
6958				<xsl:attribute name="类型_413B">annotation</xsl:attribute>
6959			</xsl:element>
6960		</xsl:if>
6961		<xsl:choose>
6962			<xsl:when test="contains(./dc:creator,'__@*Start@')">
6963				<xsl:element name="字:区域开始_4165">
6964					<xsl:attribute name="标识符_4100"><xsl:value-of select="concat('cmt',$ID)"/></xsl:attribute>
6965					<xsl:attribute name="类型_413B">user-data</xsl:attribute>
6966				</xsl:element>
6967			</xsl:when>
6968			<xsl:when test="contains(./dc:creator,'__@*End@')">
6969				<!--<xsl:variable name="IDEnd">
6970					<xsl:choose>
6971						<xsl:when test="name(preceding-sibling::*[1]) = 'office:annotation'">
6972							<xsl:value-of select="generate-id(preceding-sibling::*[1])"/>
6973						</xsl:when>
6974						<xsl:when test="name(..) = 'text:span'">
6975							<xsl:value-of select="generate-id(../preceding-sibling::*[office:annotation][1]/office:annotation)"/>
6976						</xsl:when>
6977					</xsl:choose>
6978				</xsl:variable>-->
6979				<xsl:variable name="IDEnd">
6980					<xsl:choose>
6981						<xsl:when test="preceding-sibling::*[name() = 'office:annotation']">
6982							<xsl:value-of select="generate-id(preceding-sibling::*[name() = 'office:annotation'][1])"/>
6983						</xsl:when>
6984						<xsl:when test="preceding-sibling::*[office:annotation]">
6985							<xsl:value-of select="generate-id(preceding-sibling::*[office:annotation][1]/office:annotation)"/>
6986						</xsl:when>
6987						<xsl:when test="name(..) = 'text:span' and ../preceding-sibling::*[office:annotation]">
6988							<xsl:value-of select="generate-id(../preceding-sibling::*[office:annotation][1]/office:annotation)"/>
6989						</xsl:when>
6990						<xsl:when test="name(..) = 'text:span'">
6991							<xsl:value-of select="generate-id(../preceding-sibling::*[name() = 'office:annotation'][1])"/>
6992						</xsl:when>
6993					</xsl:choose>
6994				</xsl:variable>
6995				<xsl:element name="字:区域结束_4167">
6996					<xsl:attribute name="标识符引用_4168"><xsl:value-of select="concat('cmt',$IDEnd)"/></xsl:attribute>
6997				</xsl:element>
6998			</xsl:when>
6999			<xsl:when test="not(./@office:name)">
7000				<xsl:element name="字:区域结束_4167">
7001					<xsl:attribute name="标识符引用_4168"><xsl:value-of select="concat('cmt', $ID)"/></xsl:attribute>
7002				</xsl:element>
7003			</xsl:when>
7004			<xsl:otherwise>
7005				<xsl:variable name="HasEnd">
7006					<xsl:for-each select="following::node()[name(.)=office:annotation_end]">
7007						<xsl:if test="@office:name=./@office:name">
7008							<xsl:value-of select="1"/>
7009						</xsl:if>
7010					</xsl:for-each>
7011				</xsl:variable>
7012				<xsl:if test="$HasEnd != '1'">
7013					<xsl:element name="字:区域结束_4167">
7014						<xsl:attribute name="标识符引用_4168"><xsl:value-of select="concat('cmt', $ID)"/></xsl:attribute>
7015					</xsl:element>
7016				</xsl:if>
7017			</xsl:otherwise>
7018		</xsl:choose>
7019	</xsl:template>
7020	<xsl:template match="office:annotation_end">
7021		<xsl:for-each select="preceding::node()[name(.)=office:annotation]">
7022			<xsl:if test="@office:name = ./@office:name">
7023				<xsl:variable name="ID" select="generate-id(.)"/>
7024				<xsl:element name="字:区域结束_4167">
7025					<xsl:attribute name="标识符引用_4168">concat("cmt", $ID)</xsl:attribute>
7026				</xsl:element>
7027			</xsl:if>
7028		</xsl:for-each>
7029	</xsl:template>
7030	<xsl:template match="text:change">
7031	</xsl:template>
7032	<xsl:template match="text:change-start">
7033		<xsl:variable name="changeID">
7034			<xsl:value-of select="@text:change-id"/>
7035		</xsl:variable>
7036		<xsl:element name="字:修订开始_421F">
7037			<xsl:attribute name="标识符_4220"><xsl:value-of select="$changeID"/></xsl:attribute>
7038			<xsl:for-each select="/office:document/office:body/office:text/text:tracked-changes/text:changed-region[@text:id = $changeID]">
7039				<xsl:choose>
7040					<xsl:when test="text:insertion">
7041						<xsl:attribute name="类型_4221">insert</xsl:attribute>
7042					</xsl:when>
7043					<xsl:when test="text:format-change">
7044						<xsl:attribute name="类型_4221">format</xsl:attribute>
7045					</xsl:when>
7046					<xsl:when test="text:deletion">
7047						<xsl:attribute name="类型_4221">delete</xsl:attribute>
7048					</xsl:when>
7049				</xsl:choose>
7050			</xsl:for-each>
7051			<xsl:attribute name="修订信息引用_4222"><xsl:value-of select="$changeID"/></xsl:attribute>
7052		</xsl:element>
7053	</xsl:template>
7054	<xsl:template match="text:change-end">
7055		<xsl:variable name="changeendID">
7056			<xsl:value-of select="@text:change-id"/>
7057		</xsl:variable>
7058		<xsl:for-each select="/office:document/office:body/office:text/text:tracked-changes/text:changed-region[@text:id = $changeendID]">
7059			<xsl:choose>
7060				<xsl:when test="text:insertion">
7061					<xsl:element name="字:修订结束_4223">
7062						<xsl:attribute name="开始标识引用_4224"><xsl:value-of select="@text:id"/></xsl:attribute>
7063					</xsl:element>
7064				</xsl:when>
7065				<xsl:when test="text:deletion">
7066					<xsl:element name="字:修订结束_4223">
7067						<xsl:attribute name="开始标识引用_4224"><xsl:value-of select="@text:id"/></xsl:attribute>
7068					</xsl:element>
7069				</xsl:when>
7070				<xsl:when test="text:format-change">
7071					<xsl:element name="字:修订结束_4223">
7072						<xsl:attribute name="开始标识引用_4224"><xsl:value-of select="@text:id"/></xsl:attribute>
7073					</xsl:element>
7074				</xsl:when>
7075			</xsl:choose>
7076		</xsl:for-each>
7077	</xsl:template>
7078	<xsl:template match="text:a">
7079		<xsl:variable name="ID" select="generate-id(.)"/>
7080		<字:句_419D>
7081			<xsl:element name="字:区域开始_4165">
7082				<xsl:attribute name="标识符_4100"><xsl:value-of select="concat('hlnk', $ID)"/></xsl:attribute>
7083				<xsl:attribute name="名称_4166">Hyperlink</xsl:attribute>
7084				<xsl:attribute name="类型_413B">hyperlink</xsl:attribute>
7085			</xsl:element>
7086		</字:句_419D>
7087		<xsl:call-template name="paragraph_content"/>
7088		<字:句_419D>
7089			<xsl:element name="字:区域结束_4167">
7090				<xsl:attribute name="标识符引用_4168"><xsl:value-of select="concat('hlnk', $ID)"/></xsl:attribute>
7091			</xsl:element>
7092		</字:句_419D>
7093	</xsl:template>
7094	<!--
7095	<xsl:template match="text:a">
7096		<xsl:variable name="ID" select="generate-id(.)"/>
7097		<xsl:element name="字:区域开始_4165">
7098			<xsl:attribute name="字:标识符"><xsl:value-of select="concat('hlnk', $ID)"/></xsl:attribute>
7099			<xsl:attribute name="字:名称">Hyperlink</xsl:attribute>
7100			<xsl:attribute name="字:类型">hyperlink</xsl:attribute>
7101		</xsl:element>
7102		<xsl:for-each select="node( )">
7103			<xsl:call-template name="one_paragraph_content"/>
7104		</xsl:for-each>
7105		<xsl:element name="字:区域结束">
7106			<xsl:attribute name="字:标识符引用"><xsl:value-of select="concat('hlnk', $ID)"/></xsl:attribute>
7107		</xsl:element>
7108	</xsl:template>-->
7109	<xsl:preserve-space elements="*"/>
7110	<xsl:template name="one_paragraph_content">
7111		<xsl:choose>
7112			<xsl:when test="self::node()[name(.)='text:date']">
7113				<xsl:apply-templates select="."/>
7114			</xsl:when>
7115			<xsl:when test="self::node()[name(.)='text:creation-date']">
7116				<xsl:apply-templates select="."/>
7117			</xsl:when>
7118			<xsl:when test="self::node()[name(.)='text:modification-date']">
7119				<xsl:apply-templates select="."/>
7120			</xsl:when>
7121			<xsl:when test="self::node()[name(.)='text:time']">
7122				<xsl:apply-templates select="."/>
7123			</xsl:when>
7124			<xsl:when test="self::node()[name(.)='text:creation-time']">
7125				<xsl:apply-templates select="."/>
7126			</xsl:when>
7127			<xsl:when test="self::node()[name(.)='text:modification-time']">
7128				<xsl:apply-templates select="."/>
7129			</xsl:when>
7130			<xsl:when test="self::node()[name(.)='text:page-number']">
7131				<xsl:apply-templates select="."/>
7132			</xsl:when>
7133			<xsl:when test="self::node()[name(.)='text:page-continuation']">
7134				<xsl:apply-templates select="."/>
7135			</xsl:when>
7136			<xsl:when test="self::node()[name(.)='text:sender-firstname']">
7137				<xsl:apply-templates select="."/>
7138			</xsl:when>
7139			<xsl:when test="self::node()[name(.)='text:sender-lastname']">
7140				<xsl:apply-templates select="."/>
7141			</xsl:when>
7142			<xsl:when test="self::node()[name(.)='text:sender-initials']">
7143				<xsl:apply-templates select="."/>
7144			</xsl:when>
7145			<xsl:when test="self::node()[name(.)='text:sender-title']">
7146				<xsl:apply-templates select="."/>
7147			</xsl:when>
7148			<xsl:when test="self::node()[name(.)='text:sender-position']">
7149				<xsl:apply-templates select="."/>
7150			</xsl:when>
7151			<xsl:when test="self::node()[name(.)='text:sender-email']">
7152				<xsl:apply-templates select="."/>
7153			</xsl:when>
7154			<xsl:when test="self::node()[name(.)='text:sender-phone-private']">
7155				<xsl:apply-templates select="."/>
7156			</xsl:when>
7157			<xsl:when test="self::node()[name(.)='text:sender-fax']">
7158				<xsl:apply-templates select="."/>
7159			</xsl:when>
7160			<xsl:when test="self::node()[name(.)='text:sender-company']">
7161				<xsl:apply-templates select="."/>
7162			</xsl:when>
7163			<xsl:when test="self::node()[name(.)='text:sender-phone-work']">
7164				<xsl:apply-templates select="."/>
7165			</xsl:when>
7166			<xsl:when test="self::node()[name(.)='text:sender-street']">
7167				<xsl:apply-templates select="."/>
7168			</xsl:when>
7169			<xsl:when test="self::node()[name(.)='text:sender-city']">
7170				<xsl:apply-templates select="."/>
7171			</xsl:when>
7172			<xsl:when test="self::node()[name(.)='text:sender-postal-code']">
7173				<xsl:apply-templates select="."/>
7174			</xsl:when>
7175			<xsl:when test="self::node()[name(.)='text:sender-country']">
7176				<xsl:apply-templates select="."/>
7177			</xsl:when>
7178			<xsl:when test="self::node()[name(.)='text:sender-state-or-province']">
7179				<xsl:apply-templates select="."/>
7180			</xsl:when>
7181			<xsl:when test="self::node()[name(.)='text:author-name']">
7182				<xsl:apply-templates select="."/>
7183			</xsl:when>
7184			<xsl:when test="self::node()[name(.)='text:author-initials']">
7185				<xsl:apply-templates select="."/>
7186			</xsl:when>
7187			<xsl:when test="self::node()[name(.)='text:chapter']">
7188				<xsl:apply-templates select="."/>
7189			</xsl:when>
7190			<xsl:when test="self::node()[name(.)='text:file-name']">
7191				<xsl:apply-templates select="."/>
7192			</xsl:when>
7193			<xsl:when test="self::node()[name(.)='text:template-name']">
7194				<xsl:apply-templates select="."/>
7195			</xsl:when>
7196			<xsl:when test="self::node()[name(.)='text:sheet-name']">
7197				<xsl:apply-templates select="."/>
7198			</xsl:when>
7199			<xsl:when test="self::node()[name(.)='text:variable-set']">
7200				<xsl:apply-templates select="."/>
7201			</xsl:when>
7202			<xsl:when test="self::node()[name(.)='text:variable-get']">
7203				<xsl:apply-templates select="."/>
7204			</xsl:when>
7205			<xsl:when test="self::node()[name(.)='text:variable-input']">
7206				<xsl:apply-templates select="."/>
7207			</xsl:when>
7208			<xsl:when test="self::node()[name(.)='text:user-field-get']">
7209				<xsl:apply-templates select="."/>
7210			</xsl:when>
7211			<xsl:when test="self::node()[name(.)='text:user-field-input']">
7212				<xsl:apply-templates select="."/>
7213			</xsl:when>
7214			<xsl:when test="self::node()[name(.)='text:sequence']">
7215				<xsl:apply-templates select="."/>
7216			</xsl:when>
7217			<xsl:when test="self::node()[name(.)='text:expression']">
7218				<xsl:apply-templates select="."/>
7219			</xsl:when>
7220			<xsl:when test="self::node()[name(.)='text:text-input']">
7221				<xsl:apply-templates select="."/>
7222			</xsl:when>
7223			<xsl:when test="self::node()[name(.)='text:initial-creator']">
7224				<xsl:apply-templates select="."/>
7225			</xsl:when>
7226			<xsl:when test="self::node()[name(.)='text:description']">
7227				<xsl:apply-templates select="."/>
7228			</xsl:when>
7229			<xsl:when test="self::node()[name(.)='text:user-defined']">
7230				<xsl:apply-templates select="."/>
7231			</xsl:when>
7232			<xsl:when test="self::node()[name(.)='text:print-time']">
7233				<xsl:apply-templates select="."/>
7234			</xsl:when>
7235			<xsl:when test="self::node()[name(.)='text:print-date']">
7236				<xsl:apply-templates select="."/>
7237			</xsl:when>
7238			<xsl:when test="self::node()[name(.)='text:printed-by']">
7239				<xsl:apply-templates select="."/>
7240			</xsl:when>
7241			<xsl:when test="self::node()[name(.)='text:title']">
7242				<xsl:apply-templates select="."/>
7243			</xsl:when>
7244			<xsl:when test="self::node()[name(.)='text:subject']">
7245				<xsl:apply-templates select="."/>
7246			</xsl:when>
7247			<xsl:when test="self::node()[name(.)='text:keywords']">
7248				<xsl:apply-templates select="."/>
7249			</xsl:when>
7250			<xsl:when test="self::node()[name(.)='text:editing-cycles']">
7251				<xsl:apply-templates select="."/>
7252			</xsl:when>
7253			<xsl:when test="self::node()[name(.)='text:editing-duration']">
7254				<xsl:apply-templates select="."/>
7255			</xsl:when>
7256			<xsl:when test="self::node()[name(.)='text:creator']">
7257				<xsl:apply-templates select="."/>
7258			</xsl:when>
7259			<xsl:when test="self::node()[name(.)='text:page-count']">
7260				<xsl:apply-templates select="."/>
7261			</xsl:when>
7262			<xsl:when test="self::node()[name(.)='text:paragraph-count']">
7263				<xsl:apply-templates select="."/>
7264			</xsl:when>
7265			<xsl:when test="self::node()[name(.)='text:word-count']">
7266				<xsl:apply-templates select="."/>
7267			</xsl:when>
7268			<xsl:when test="self::node()[name(.)='text:character-count']">
7269				<xsl:apply-templates select="."/>
7270			</xsl:when>
7271			<xsl:when test="self::node()[name(.)='text:table-count']">
7272				<xsl:apply-templates select="."/>
7273			</xsl:when>
7274			<xsl:when test="self::node()[name(.)='text:image-count']">
7275				<xsl:apply-templates select="."/>
7276			</xsl:when>
7277			<xsl:when test="self::node()[name(.)='text:object-count']">
7278				<xsl:apply-templates select="."/>
7279			</xsl:when>
7280			<xsl:when test="self::node()[name(.)='text:database-display']">
7281				<xsl:apply-templates select="."/>
7282			</xsl:when>
7283			<xsl:when test="self::node()[name(.)='text:database-next']">
7284				<xsl:apply-templates select="."/>
7285			</xsl:when>
7286			<xsl:when test="self::node()[name(.)='text:database-row-select']">
7287				<xsl:apply-templates select="."/>
7288			</xsl:when>
7289			<xsl:when test="self::node()[name(.)='text:database-row-number']">
7290				<xsl:apply-templates select="."/>
7291			</xsl:when>
7292			<xsl:when test="self::node()[name(.)='text:database-name']">
7293				<xsl:apply-templates select="."/>
7294			</xsl:when>
7295			<xsl:when test="self::node()[name(.)='text:page-variable-set']">
7296				<xsl:apply-templates select="."/>
7297			</xsl:when>
7298			<xsl:when test="self::node()[name(.)='text:page-variable-get']">
7299				<xsl:apply-templates select="."/>
7300			</xsl:when>
7301			<xsl:when test="self::node()[name(.)='text:placeholder']">
7302				<xsl:apply-templates select="."/>
7303			</xsl:when>
7304			<xsl:when test="self::node()[name(.)='text:conditional-text']">
7305				<xsl:apply-templates select="."/>
7306			</xsl:when>
7307			<xsl:when test="self::node()[name(.)='text:hidden-text']">
7308				<xsl:apply-templates select="."/>
7309			</xsl:when>
7310			<xsl:when test="self::node()[name(.)='text:reference-ref']">
7311				<xsl:apply-templates select="."/>
7312			</xsl:when>
7313			<xsl:when test="self::node()[name(.)='text:bookmark-ref']">
7314				<xsl:apply-templates select="."/>
7315			</xsl:when>
7316			<xsl:when test="self::node()[name(.)='text:note-ref']">
7317				<xsl:apply-templates select="."/>
7318			</xsl:when>
7319			<xsl:when test="self::node()[name(.)='text:sequence-ref']">
7320				<xsl:apply-templates select="."/>
7321			</xsl:when>
7322			<xsl:when test="self::node()[name(.)='text:script']">
7323				<xsl:apply-templates select="."/>
7324			</xsl:when>
7325			<xsl:when test="self::node()[name(.)='text:execute-macro']">
7326				<xsl:apply-templates select="."/>
7327			</xsl:when>
7328			<xsl:when test="self::node()[name(.)='text:hidden-paragraph']">
7329				<xsl:apply-templates select="."/>
7330			</xsl:when>
7331			<xsl:when test="self::node()[name(.)='text:dde-connection']">
7332				<xsl:apply-templates select="."/>
7333			</xsl:when>
7334			<xsl:when test="self::node()[name(.)='text:measure']">
7335				<xsl:apply-templates select="."/>
7336			</xsl:when>
7337			<xsl:when test="self::node()[name(.)='text:table-formula']">
7338				<xsl:apply-templates select="."/>
7339			</xsl:when>
7340			<xsl:when test="self::node()[name(.)='text:meta-field']">
7341				<xsl:apply-templates select="."/>
7342			</xsl:when>
7343			<xsl:when test="self::node()[name(.)='text:toc-mark-start']">
7344				<xsl:apply-templates select="."/>
7345			</xsl:when>
7346			<xsl:when test="self::node()[name(.)='text:toc-mark-end']">
7347				<xsl:apply-templates select="."/>
7348			</xsl:when>
7349			<xsl:when test="self::node()[name(.)='text:toc-mark']">
7350				<xsl:apply-templates select="."/>
7351			</xsl:when>
7352			<xsl:when test="self::node()[name(.)='text:user-index-mark-start']">
7353				<xsl:apply-templates select="."/>
7354			</xsl:when>
7355			<xsl:when test="self::node()[name(.)='text:user-index-mark-end']">
7356				<xsl:apply-templates select="."/>
7357			</xsl:when>
7358			<xsl:when test="self::node()[name(.)='text:user-index-mark']">
7359				<xsl:apply-templates select="."/>
7360			</xsl:when>
7361			<xsl:when test="self::node()[name(.)='text:alphabetical-index-mark-start']">
7362				<xsl:apply-templates select="."/>
7363			</xsl:when>
7364			<xsl:when test="self::node()[name(.)='text:alphabetical-index-mark-end']">
7365				<xsl:apply-templates select="."/>
7366			</xsl:when>
7367			<xsl:when test="self::node()[name(.)='text:alphabetical-index-mark']">
7368				<xsl:apply-templates select="."/>
7369			</xsl:when>
7370			<xsl:when test="self::node()[name(.)='text:bibliography-mark']">
7371				<xsl:apply-templates select="."/>
7372			</xsl:when>
7373			<xsl:when test="self::node()[name(.)='presentation:date-time']">
7374				<xsl:apply-templates select="."/>
7375			</xsl:when>
7376			<xsl:when test="self::node()[name(.)='presentation:header']">
7377				<xsl:apply-templates select="."/>
7378			</xsl:when>
7379			<xsl:when test="self::node()[name(.)='presentation:footer']">
7380				<xsl:apply-templates select="."/>
7381			</xsl:when>
7382			<xsl:when test="self::node()[name(.)='text:s']">
7383				<xsl:apply-templates select="."/>
7384			</xsl:when>
7385			<xsl:when test="self::node()[name(.)='text:tab']">
7386				<xsl:apply-templates select="."/>
7387			</xsl:when>
7388			<xsl:when test="self::node()[name(.)='text:line-break']">
7389				<xsl:apply-templates select="."/>
7390			</xsl:when>
7391			<xsl:when test="self::node()[name(.)='text:soft-page-break']">
7392				<xsl:apply-templates select="."/>
7393			</xsl:when>
7394			<xsl:when test="self::node()[name(.)='text:span']">
7395				<xsl:apply-templates select="."/>
7396			</xsl:when>
7397			<xsl:when test="self::node()[name(.)='text:meta']">
7398				<xsl:apply-templates select="."/>
7399			</xsl:when>
7400			<xsl:when test="self::node()[name(.)='text:bookmark']">
7401				<xsl:apply-templates select="."/>
7402			</xsl:when>
7403			<xsl:when test="self::node()[name(.)='text:bookmark-start']">
7404				<xsl:apply-templates select="."/>
7405			</xsl:when>
7406			<xsl:when test="self::node()[name(.)='text:bookmark-end']">
7407				<xsl:apply-templates select="."/>
7408			</xsl:when>
7409			<xsl:when test="self::node()[name(.)='text:reference-mark']">
7410				<xsl:apply-templates select="."/>
7411			</xsl:when>
7412			<xsl:when test="self::node()[name(.)='text:reference-mark-start']">
7413				<xsl:apply-templates select="."/>
7414			</xsl:when>
7415			<xsl:when test="self::node()[name(.)='text:reference-mark-end']">
7416				<xsl:apply-templates select="."/>
7417			</xsl:when>
7418			<xsl:when test="self::node()[name(.)='text:note']">
7419				<xsl:apply-templates select="."/>
7420			</xsl:when>
7421			<xsl:when test="self::node()[name(.)='text:ruby']">
7422				<xsl:apply-templates select="."/>
7423			</xsl:when>
7424			<xsl:when test="self::node()[name(.)='office:annotation']">
7425				<xsl:apply-templates select="."/>
7426			</xsl:when>
7427			<xsl:when test="self::node()[name(.)='office:annotation_end']">
7428				<xsl:apply-templates select="."/>
7429			</xsl:when>
7430			<xsl:when test="self::node()[name(.)='text:change']">
7431				<xsl:apply-templates select="."/>
7432			</xsl:when>
7433			<xsl:when test="self::node()[name(.)='text:change-start']">
7434				<xsl:apply-templates select="."/>
7435			</xsl:when>
7436			<xsl:when test="self::node()[name(.)='text:change-end']">
7437				<xsl:apply-templates select="."/>
7438			</xsl:when>
7439			<xsl:when test="self::node()[substring-before(name(.),':')='draw']">
7440				<xsl:call-template name="textshape"/>
7441			</xsl:when>
7442			<xsl:when test="self::node()[name(.)='text:a']">
7443				<xsl:apply-templates select="."/>
7444			</xsl:when>
7445			<xsl:otherwise>
7446				<xsl:element name="字:文本串_415B">
7447					<xsl:value-of select="string(.)"/>
7448				</xsl:element>
7449			</xsl:otherwise>
7450		</xsl:choose>
7451	</xsl:template>
7452	<xsl:template name="IsNewSentect">
7453		<xsl:param name="CurrName"/>
7454		<xsl:choose>
7455			<xsl:when test="$CurrName=''">
7456				<xsl:value-of select="1"/>
7457			</xsl:when>
7458			<xsl:when test="$CurrName='text:span'">
7459				<xsl:value-of select="0"/>
7460			</xsl:when>
7461			<xsl:when test="$CurrName='text:a'">
7462				<xsl:value-of select="0"/>
7463			</xsl:when>
7464			<xsl:when test="$CurrName='text:date'">
7465				<xsl:value-of select="0"/>
7466			</xsl:when>
7467			<xsl:when test="$CurrName='text:creation-date'">
7468				<xsl:value-of select="0"/>
7469			</xsl:when>
7470			<xsl:when test="$CurrName='text:modification-date'">
7471				<xsl:value-of select="0"/>
7472			</xsl:when>
7473			<xsl:when test="$CurrName='text:time'">
7474				<xsl:value-of select="0"/>
7475			</xsl:when>
7476			<xsl:when test="$CurrName='creation-time'">
7477				<xsl:value-of select="0"/>
7478			</xsl:when>
7479			<xsl:when test="$CurrName='modification-time'">
7480				<xsl:value-of select="0"/>
7481			</xsl:when>
7482			<xsl:when test="$CurrName='text:page-number'">
7483				<xsl:value-of select="0"/>
7484			</xsl:when>
7485			<xsl:when test="$CurrName='text:page-continuation'">
7486				<xsl:value-of select="0"/>
7487			</xsl:when>
7488			<xsl:when test="$CurrName='text:sender-firstname'">
7489				<xsl:value-of select="0"/>
7490			</xsl:when>
7491			<xsl:when test="$CurrName='text:sender-lastname'">
7492				<xsl:value-of select="0"/>
7493			</xsl:when>
7494			<xsl:when test="$CurrName='text:sender-initials'">
7495				<xsl:value-of select="0"/>
7496			</xsl:when>
7497			<xsl:when test="$CurrName='text:sender-title'">
7498				<xsl:value-of select="0"/>
7499			</xsl:when>
7500			<xsl:when test="$CurrName='text:sender-position'">
7501				<xsl:value-of select="0"/>
7502			</xsl:when>
7503			<xsl:when test="$CurrName='text:sender-email'">
7504				<xsl:value-of select="0"/>
7505			</xsl:when>
7506			<xsl:when test="$CurrName='text:sender-phone-private'">
7507				<xsl:value-of select="0"/>
7508			</xsl:when>
7509			<xsl:when test="$CurrName='text:sender-fax'">
7510				<xsl:value-of select="0"/>
7511			</xsl:when>
7512			<xsl:when test="$CurrName='text:sender-company'">
7513				<xsl:value-of select="0"/>
7514			</xsl:when>
7515			<xsl:when test="$CurrName='text:sender-phone-work'">
7516				<xsl:value-of select="0"/>
7517			</xsl:when>
7518			<xsl:when test="$CurrName='text:sender-street'">
7519				<xsl:value-of select="0"/>
7520			</xsl:when>
7521			<xsl:when test="$CurrName='text:sender-city'">
7522				<xsl:value-of select="0"/>
7523			</xsl:when>
7524			<xsl:when test="$CurrName='text:sender-postal-code'">
7525				<xsl:value-of select="0"/>
7526			</xsl:when>
7527			<xsl:when test="$CurrName='text:sender-country'">
7528				<xsl:value-of select="0"/>
7529			</xsl:when>
7530			<xsl:when test="$CurrName='text:sender-state-or-province'">
7531				<xsl:value-of select="0"/>
7532			</xsl:when>
7533			<xsl:when test="$CurrName='text:author-name'">
7534				<xsl:value-of select="0"/>
7535			</xsl:when>
7536			<xsl:when test="$CurrName='text:author-initials'">
7537				<xsl:value-of select="0"/>
7538			</xsl:when>
7539			<xsl:when test="$CurrName='text:chapter'">
7540				<xsl:value-of select="0"/>
7541			</xsl:when>
7542			<xsl:when test="$CurrName='text:file-name'">
7543				<xsl:value-of select="0"/>
7544			</xsl:when>
7545			<xsl:when test="$CurrName='text:template-name'">
7546				<xsl:value-of select="0"/>
7547			</xsl:when>
7548			<xsl:when test="$CurrName='text:sheet-name'">
7549				<xsl:value-of select="0"/>
7550			</xsl:when>
7551			<xsl:when test="$CurrName='text:variable-set'">
7552				<xsl:value-of select="0"/>
7553			</xsl:when>
7554			<xsl:when test="$CurrName='text:variable-get'">
7555				<xsl:value-of select="0"/>
7556			</xsl:when>
7557			<xsl:when test="$CurrName='text:variable-input'">
7558				<xsl:value-of select="0"/>
7559			</xsl:when>
7560			<xsl:when test="$CurrName='text:user-field-get'">
7561				<xsl:value-of select="0"/>
7562			</xsl:when>
7563			<xsl:when test="$CurrName='text:user-field-input'">
7564				<xsl:value-of select="0"/>
7565			</xsl:when>
7566			<xsl:when test="$CurrName='text:sequence'">
7567				<xsl:value-of select="0"/>
7568			</xsl:when>
7569			<xsl:when test="$CurrName='text:expression'">
7570				<xsl:value-of select="0"/>
7571			</xsl:when>
7572			<xsl:when test="$CurrName='text:text-input'">
7573				<xsl:value-of select="0"/>
7574			</xsl:when>
7575			<xsl:when test="$CurrName='text:initial-creator'">
7576				<xsl:value-of select="0"/>
7577			</xsl:when>
7578			<xsl:when test="$CurrName='text:description'">
7579				<xsl:value-of select="0"/>
7580			</xsl:when>
7581			<xsl:when test="$CurrName='text:text:user-defined'">
7582				<xsl:value-of select="0"/>
7583			</xsl:when>
7584			<xsl:when test="$CurrName='text:print-time'">
7585				<xsl:value-of select="0"/>
7586			</xsl:when>
7587			<xsl:when test="$CurrName='text:print-date'">
7588				<xsl:value-of select="0"/>
7589			</xsl:when>
7590			<xsl:when test="$CurrName='text:printed-by'">
7591				<xsl:value-of select="0"/>
7592			</xsl:when>
7593			<xsl:when test="$CurrName='text:title'">
7594				<xsl:value-of select="0"/>
7595			</xsl:when>
7596			<xsl:when test="$CurrName='text:subject'">
7597				<xsl:value-of select="0"/>
7598			</xsl:when>
7599			<xsl:when test="$CurrName='text:keywords'">
7600				<xsl:value-of select="0"/>
7601			</xsl:when>
7602			<xsl:when test="$CurrName='text:editing-cycles'">
7603				<xsl:value-of select="0"/>
7604			</xsl:when>
7605			<xsl:when test="$CurrName='text:editing-duration'">
7606				<xsl:value-of select="0"/>
7607			</xsl:when>
7608			<xsl:when test="$CurrName='text:creator'">
7609				<xsl:value-of select="0"/>
7610			</xsl:when>
7611			<xsl:when test="$CurrName='text:page-count'">
7612				<xsl:value-of select="0"/>
7613			</xsl:when>
7614			<xsl:when test="$CurrName='text:paragraph-count'">
7615				<xsl:value-of select="0"/>
7616			</xsl:when>
7617			<xsl:when test="$CurrName='text:word-count'">
7618				<xsl:value-of select="0"/>
7619			</xsl:when>
7620			<xsl:when test="$CurrName='text:character-count'">
7621				<xsl:value-of select="0"/>
7622			</xsl:when>
7623			<xsl:when test="$CurrName='text:table-count'">
7624				<xsl:value-of select="0"/>
7625			</xsl:when>
7626			<xsl:when test="$CurrName='text:image-count'">
7627				<xsl:value-of select="0"/>
7628			</xsl:when>
7629			<xsl:when test="$CurrName='text:object-count'">
7630				<xsl:value-of select="0"/>
7631			</xsl:when>
7632			<xsl:when test="$CurrName='text:database-display'">
7633				<xsl:value-of select="0"/>
7634			</xsl:when>
7635			<xsl:when test="$CurrName='text:database-next'">
7636				<xsl:value-of select="0"/>
7637			</xsl:when>
7638			<xsl:when test="$CurrName='text:database-row-select'">
7639				<xsl:value-of select="0"/>
7640			</xsl:when>
7641			<xsl:when test="$CurrName='text:database-row-number'">
7642				<xsl:value-of select="0"/>
7643			</xsl:when>
7644			<xsl:when test="$CurrName='text:database-name'">
7645				<xsl:value-of select="0"/>
7646			</xsl:when>
7647			<xsl:when test="$CurrName='text:page-variable-set'">
7648				<xsl:value-of select="0"/>
7649			</xsl:when>
7650			<xsl:when test="$CurrName='text:page-variable-get'">
7651				<xsl:value-of select="0"/>
7652			</xsl:when>
7653			<xsl:when test="$CurrName='text:placeholder'">
7654				<xsl:value-of select="0"/>
7655			</xsl:when>
7656			<xsl:when test="$CurrName='text:conditional-text'">
7657				<xsl:value-of select="0"/>
7658			</xsl:when>
7659			<xsl:when test="$CurrName='text:hidden-text'">
7660				<xsl:value-of select="0"/>
7661			</xsl:when>
7662			<xsl:when test="$CurrName='text:reference-ref'">
7663				<xsl:value-of select="0"/>
7664			</xsl:when>
7665			<xsl:when test="$CurrName='text:bookmark-ref'">
7666				<xsl:value-of select="0"/>
7667			</xsl:when>
7668			<xsl:when test="$CurrName='text:note-ref'">
7669				<xsl:value-of select="0"/>
7670			</xsl:when>
7671			<xsl:when test="$CurrName='text:sequence-ref'">
7672				<xsl:value-of select="0"/>
7673			</xsl:when>
7674			<xsl:when test="$CurrName='text:script'">
7675				<xsl:value-of select="0"/>
7676			</xsl:when>
7677			<xsl:when test="$CurrName='text:execute-macro'">
7678				<xsl:value-of select="0"/>
7679			</xsl:when>
7680			<xsl:when test="$CurrName='text:hidden-paragraph'">
7681				<xsl:value-of select="0"/>
7682			</xsl:when>
7683			<xsl:when test="$CurrName='text:dde-connection'">
7684				<xsl:value-of select="0"/>
7685			</xsl:when>
7686			<xsl:when test="$CurrName='text:measure'">
7687				<xsl:value-of select="0"/>
7688			</xsl:when>
7689			<xsl:when test="$CurrName='text:table-formula'">
7690				<xsl:value-of select="0"/>
7691			</xsl:when>
7692			<xsl:when test="$CurrName='text:meta-field'">
7693				<xsl:value-of select="0"/>
7694			</xsl:when>
7695			<xsl:when test="$CurrName='text:toc-mark-start'">
7696				<xsl:value-of select="0"/>
7697			</xsl:when>
7698			<xsl:when test="$CurrName='text:toc-mark-end'">
7699				<xsl:value-of select="0"/>
7700			</xsl:when>
7701			<xsl:when test="$CurrName='text:toc-mark'">
7702				<xsl:value-of select="0"/>
7703			</xsl:when>
7704			<xsl:when test="$CurrName='text:user-index-mark-start'">
7705				<xsl:value-of select="0"/>
7706			</xsl:when>
7707			<xsl:when test="$CurrName='text:user-index-mark-end'">
7708				<xsl:value-of select="0"/>
7709			</xsl:when>
7710			<xsl:when test="$CurrName='text:user-index-mark'">
7711				<xsl:value-of select="0"/>
7712			</xsl:when>
7713			<xsl:when test="$CurrName='text:alphabetical-index-mark-start'">
7714				<xsl:value-of select="0"/>
7715			</xsl:when>
7716			<xsl:when test="$CurrName='text:alphabetical-index-mark-end'">
7717				<xsl:value-of select="0"/>
7718			</xsl:when>
7719			<xsl:when test="$CurrName='text:alphabetical-index-mark'">
7720				<xsl:value-of select="0"/>
7721			</xsl:when>
7722			<xsl:when test="$CurrName='text:bibliography-mark'">
7723				<xsl:value-of select="0"/>
7724			</xsl:when>
7725			<xsl:when test="substring-before($CurrName,':')='draw'">
7726				<xsl:value-of select="1"/>
7727			</xsl:when>
7728			<xsl:otherwise>
7729				<xsl:value-of select="1"/>
7730			</xsl:otherwise>
7731		</xsl:choose>
7732	</xsl:template>
7733	<xsl:template name="paragraph_content">
7734		<xsl:variable name="Count" select="count(child::node())"/>
7735		<xsl:choose>
7736			<xsl:when test="$Count=0">
7737				<字:句_419D/>
7738			</xsl:when>
7739			<xsl:otherwise>
7740				<xsl:variable name="FirstName">
7741					<xsl:for-each select="child::node()[1]">
7742						<xsl:value-of select="name(.)"/>
7743					</xsl:for-each>
7744				</xsl:variable>
7745				<xsl:variable name="FirstSentence">
7746					<xsl:call-template name="IsNewSentect">
7747						<xsl:with-param name="CurrName">
7748							<xsl:value-of select="$FirstName"/>
7749						</xsl:with-param>
7750					</xsl:call-template>
7751				</xsl:variable>
7752				<xsl:if test="($FirstSentence='1')">
7753					<xsl:text disable-output-escaping="yes">&lt;字:句_419D&gt;</xsl:text>
7754				</xsl:if>
7755				<xsl:for-each select="node()">
7756					<xsl:variable name="NewSentence">
7757						<xsl:call-template name="IsNewSentect">
7758							<xsl:with-param name="CurrName">
7759								<xsl:value-of select="name(.)"/>
7760							</xsl:with-param>
7761						</xsl:call-template>
7762					</xsl:variable>
7763					<xsl:if test="position()&gt;1">
7764						<xsl:variable name="PrevName">
7765							<xsl:for-each select="preceding-sibling::node()[1]">
7766								<xsl:value-of select="name(.)"/>
7767							</xsl:for-each>
7768						</xsl:variable>
7769						<xsl:variable name="PrevNewSentence">
7770							<xsl:call-template name="IsNewSentect">
7771								<xsl:with-param name="CurrName">
7772									<xsl:value-of select="$PrevName"/>
7773								</xsl:with-param>
7774							</xsl:call-template>
7775						</xsl:variable>
7776						<xsl:choose>
7777							<xsl:when test="($PrevNewSentence ='0')">
7778								<xsl:if test="($NewSentence='1')">
7779									<xsl:text disable-output-escaping="yes">&lt;字:句_419D&gt;</xsl:text>
7780									<xsl:if test="name(.)!='' and @text:style-name != ''">
7781										<字:句属性_4158>
7782											<xsl:attribute name="式样引用_417B"><xsl:value-of select="@text:style-name"/></xsl:attribute>
7783										</字:句属性_4158>
7784									</xsl:if>
7785								</xsl:if>
7786							</xsl:when>
7787							<xsl:otherwise>
7788								<xsl:if test="($NewSentence='0')">
7789									<xsl:text disable-output-escaping="yes">&lt;/字:句_419D&gt;</xsl:text>
7790								</xsl:if>
7791							</xsl:otherwise>
7792						</xsl:choose>
7793					</xsl:if>
7794					<xsl:call-template name="one_paragraph_content"/>
7795					<xsl:if test="position()=last() and $NewSentence='1'">
7796						<xsl:text disable-output-escaping="yes">&lt;/字:句_419D&gt;</xsl:text>
7797					</xsl:if>
7798				</xsl:for-each>
7799			</xsl:otherwise>
7800		</xsl:choose>
7801	</xsl:template>
7802	<xsl:template match="text:section">
7803		<xsl:element name="字:段落_416B">
7804			<xsl:element name="字:域开始_419E">
7805				<xsl:attribute name="类型_416E"><xsl:value-of select="'section'"/></xsl:attribute>
7806				<xsl:if test="@text:protected">
7807					<xsl:attribute name="是否锁定_416F"><xsl:value-of select="@text:protected"/></xsl:attribute>
7808				</xsl:if>
7809			</xsl:element>
7810			<xsl:element name="字:域代码_419F">
7811				<xsl:call-template name="TextContent"/>
7812			</xsl:element>
7813			<xsl:element name="字:域结束_41A0">
7814			</xsl:element>
7815		</xsl:element>
7816	</xsl:template>
7817	<xsl:template name="index-content-main">
7818		<xsl:for-each select="*">
7819			<xsl:choose>
7820				<xsl:when test="self::node()[name(.)='text:index-title']">
7821					<xsl:call-template name="index-content-main"/>
7822				</xsl:when>
7823				<xsl:when test="self::node()[name(.)='text:h']">
7824					<xsl:apply-templates select="."/>
7825				</xsl:when>
7826				<xsl:when test="self::node()[name(.)='text:p']">
7827					<xsl:apply-templates select="."/>
7828				</xsl:when>
7829				<xsl:when test="self::node()[name(.)='text:list']">
7830					<xsl:call-template name="list-content">
7831						<xsl:with-param name="currlistlvl" select="number('1')"/>
7832						<xsl:with-param name="liststylename" select="@text:style-name"/>
7833					</xsl:call-template>
7834				</xsl:when>
7835				<xsl:when test="self::node()[name(.)='text:numbered-paragraph']">
7836					<xsl:apply-templates select="."/>
7837				</xsl:when>
7838				<xsl:when test="self::node()[name(.)='table:table']">
7839					<xsl:apply-templates select="."/>
7840				</xsl:when>
7841				<xsl:when test="self::node()[name(.)='text:section']">
7842					<xsl:apply-templates select="."/>
7843				</xsl:when>
7844				<xsl:when test="self::node()[name(.)='text:soft-page-break']">
7845					<xsl:apply-templates select="."/>
7846				</xsl:when>
7847				<xsl:when test="self::node()[name(.)='text:table-of-content']">
7848					<xsl:apply-templates select="."/>
7849				</xsl:when>
7850				<xsl:when test="self::node()[name(.)='text:illustration-index']">
7851					<xsl:apply-templates select="."/>
7852				</xsl:when>
7853				<xsl:when test="self::node()[name(.)='text:table-index']">
7854					<xsl:apply-templates select="."/>
7855				</xsl:when>
7856				<xsl:when test="self::node()[name(.)='text:object-index']">
7857					<xsl:apply-templates select="."/>
7858				</xsl:when>
7859				<xsl:when test="self::node()[name(.)='text:user-index']">
7860					<xsl:apply-templates select="."/>
7861				</xsl:when>
7862				<xsl:when test="self::node()[name(.)='text:alphabetical-index']">
7863					<xsl:apply-templates select="."/>
7864				</xsl:when>
7865				<xsl:when test="self::node()[name(.)='text:bibliography']">
7866					<xsl:apply-templates select="."/>
7867				</xsl:when>
7868				<xsl:when test="self::node()[name(.)='text:change']">
7869					<xsl:apply-templates select="."/>
7870				</xsl:when>
7871				<xsl:when test="self::node()[name(.)='text:change-start']">
7872					<xsl:apply-templates select="."/>
7873				</xsl:when>
7874				<xsl:when test="self::node()[name(.)='text:change-end']">
7875					<xsl:apply-templates select="."/>
7876				</xsl:when>
7877				<!--
7878				<xsl:when test="self::node()[substring-before(name(.),':')='draw']">
7879					<xsl:call-template name="textshape"/>
7880				</xsl:when>-->
7881			</xsl:choose>
7882		</xsl:for-each>
7883	</xsl:template>
7884	<xsl:template name="FieldCodeContent">
7885		<xsl:param name="text"/>
7886		<字:段落_416B>
7887			<xsl:for-each select="../../@text:style-name">
7888				<xsl:element name="字:段落属性_419B">
7889					<xsl:attribute name="式样引用_419C"><xsl:value-of select="."/></xsl:attribute>
7890				</xsl:element>
7891			</xsl:for-each>
7892			<字:句_419D>
7893				<字:句属性_4158>
7894					<xsl:for-each select="../@text:style-name">
7895						<xsl:attribute name="式样引用_417B"><xsl:value-of select="."/></xsl:attribute>
7896					</xsl:for-each>
7897				</字:句属性_4158>
7898				<字:文本串_415B>
7899					<xsl:value-of select="$text"/>
7900				</字:文本串_415B>
7901			</字:句_419D>
7902		</字:段落_416B>
7903	</xsl:template>
7904	<xsl:template match="text:table-of-content">
7905		<xsl:element name="字:段落_416B">
7906			<xsl:element name="字:段落属性_419B">
7907				<xsl:attribute name="式样引用_419C"><xsl:value-of select="text:index-body/text:p/@text:style-name"/></xsl:attribute>
7908			</xsl:element>
7909			<xsl:element name="字:域开始_419E">
7910				<xsl:attribute name="类型_416E"><xsl:value-of select="'REF'"/></xsl:attribute>
7911				<xsl:if test="@text:protected">
7912					<xsl:attribute name="是否锁定_416F"><xsl:value-of select="@text:protected"/></xsl:attribute>
7913				</xsl:if>
7914			</xsl:element>
7915			<xsl:element name="字:域代码_419F">
7916				<xsl:call-template name="FieldCodeContent">
7917					<xsl:with-param name="text" select="'TOC \o 1-10 \h \z'"/>
7918				</xsl:call-template>
7919				<xsl:for-each select="text:index-body">
7920					<xsl:call-template name="index-content-main"/>
7921				</xsl:for-each>
7922			</xsl:element>
7923			<xsl:element name="字:域结束_41A0">
7924      </xsl:element>
7925		</xsl:element>
7926	</xsl:template>
7927	<xsl:template name="TimeDateFormat">
7928		<xsl:choose>
7929			<xsl:when test="@number:style='rolong'">
7930				<xsl:variable name="format">
7931					<xsl:if test="self::node( )[name(.)='number:year']">yyyy</xsl:if>
7932					<xsl:if test="self::node( )[name(.)='number:month']">M</xsl:if>
7933					<xsl:if test="self::node( )[name(.)='number:day']">d</xsl:if>
7934					<xsl:if test="self::node( )[name(.)='number:am-pm']">AM/PM</xsl:if>
7935					<xsl:if test="self::node( )[name(.)='number:hours']">h</xsl:if>
7936					<xsl:if test="self::node( )[name(.)='number:minutes']">m</xsl:if>
7937					<xsl:if test="self::node( )[name(.)='number:seconds']">s</xsl:if>
7938				</xsl:variable>
7939				<xsl:value-of select="concat('[DBNum1]',$format)"/>
7940			</xsl:when>
7941			<xsl:when test="@number:style='long' ">
7942				<xsl:if test="self::node( )[name(.)='number:year']">yyyy</xsl:if>
7943				<xsl:if test="self::node( )[name(.)='number:month' and (not(@number:textual) or @number:textual != 'true')]">MM</xsl:if>
7944				<xsl:if test="self::node( )[name(.)='number:month' and @number:textual = 'true']">MMMM</xsl:if>
7945				<xsl:if test="self::node( )[name(.)='number:day']">dd</xsl:if>
7946				<xsl:if test="self::node( )[name(.)='number:hours']">hh</xsl:if>
7947				<xsl:if test="self::node( )[name(.)='number:minutes']">mm</xsl:if>
7948				<xsl:if test="self::node( )[name(.)='number:seconds']">ss</xsl:if>
7949				<xsl:if test="self::node( )[name(.)='number:quarter']">第QQ季度</xsl:if>
7950				<xsl:if test="self::node( )[name(.)='number:day-of-week']">dddd</xsl:if>
7951				<xsl:if test="self::node( )[name(.)='number:week-of-year']">WW</xsl:if>
7952			</xsl:when>
7953			<xsl:otherwise>
7954				<xsl:if test="self::node( )[name(.)='number:text']">
7955					<xsl:value-of select="."/>
7956				</xsl:if>
7957				<xsl:if test="self::node( )[name(.)='number:year']">yy</xsl:if>
7958				<xsl:if test="self::node( )[name(.)='number:month']">M</xsl:if>
7959				<xsl:if test="self::node( )[name(.)='number:day']">d</xsl:if>
7960				<xsl:if test="self::node( )[name(.)='number:hours']">h</xsl:if>
7961				<xsl:if test="self::node( )[name(.)='number:minutes']">m</xsl:if>
7962				<xsl:if test="self::node( )[name(.)='number:seconds']">s</xsl:if>
7963				<xsl:if test="self::node( )[name(.)='number:quarter']">Q季</xsl:if>
7964				<xsl:if test="self::node( )[name(.)='number:day-of-week']">星期N</xsl:if>
7965				<xsl:if test="self::node( )[name(.)='number:week-of-year']">WW</xsl:if>
7966				<xsl:if test="self::node( )[name(.)='number:am-pm']">am/pm</xsl:if>
7967			</xsl:otherwise>
7968		</xsl:choose>
7969	</xsl:template>
7970	<xsl:template match="text:date | text:creation-date |text:modification-date">
7971		<!-- add 'text:modification-date' maj20080115 -->
7972		<!--createdate和date-->
7973		<xsl:element name="字:域开始_419E">
7974			<!--xsl:attribute name="类型_416E"><xsl:value-of select="'date'"/></xsl:attribute-->
7975			<xsl:if test="name(.)='text:date'">
7976				<xsl:attribute name="类型_416E"><xsl:value-of select="'date'"/></xsl:attribute>
7977			</xsl:if>
7978			<xsl:if test="name(.)='text:creation-date'">
7979				<xsl:attribute name="类型_416E"><xsl:value-of select="'createdate'"/></xsl:attribute>
7980			</xsl:if>
7981			<xsl:if test="name(.)='text:modification-date'">
7982				<xsl:attribute name="类型_416E"><xsl:value-of select="'modificationdate'"/></xsl:attribute>
7983			</xsl:if>
7984			<xsl:choose>
7985				<xsl:when test="@text:fixed='1' or @text:fixed='true'">
7986					<xsl:attribute name="是否锁定_416F">true</xsl:attribute>
7987				</xsl:when>
7988				<xsl:otherwise>
7989					<xsl:attribute name="是否锁定_416F">false</xsl:attribute>
7990				</xsl:otherwise>
7991			</xsl:choose>
7992		</xsl:element>
7993		<xsl:element name="字:域代码_419F">
7994			<xsl:variable name="datefmt">
7995				<xsl:variable name="bb" select="@style:data-style-name"/>
7996				<xsl:for-each select="key('AllNumberStyle',$bb)/number:year | key('AllNumberStyle',$bb)/number:month | key('AllNumberStyle',$bb)/number:day |  key('AllNumberStyle',$bb)/number:hours |  key('AllNumberStyle',$bb)/number:minutes | key('AllNumberStyle',$bb)/number:seconds | key('AllNumberStyle',$bb)/number:quarter | key('AllNumberStyle',$bb)/number:day-of-week | key('AllNumberStyle',$bb)/number:week-of-year |  key('AllNumberStyle',$bb)/number:text | key('AllNumberStyle',$bb)/number:am-pm">
7997					<xsl:call-template name="TimeDateFormat"/>
7998				</xsl:for-each>
7999			</xsl:variable>
8000			<xsl:variable name="quote">"</xsl:variable>
8001			<xsl:variable name="text">
8002				<!--xsl:value-of select="concat('CREATEDATE \@ ',$quote,$datefmt,$quote)"/-->
8003				<xsl:choose>
8004					<xsl:when test="name(.)='text:date'">
8005						<xsl:value-of select="concat('DATE \@ ',$quote,$datefmt,$quote)"/>
8006					</xsl:when>
8007					<xsl:when test="name(.)='text:modification-date'">
8008						<xsl:value-of select="concat('MODIFICATIONDATE \@ ',$quote,$datefmt,$quote)"/>
8009					</xsl:when>
8010					<xsl:otherwise>
8011						<xsl:value-of select="concat('CREATEDATE \@ ',$quote,$datefmt,$quote)"/>
8012					</xsl:otherwise>
8013				</xsl:choose>
8014			</xsl:variable>
8015			<xsl:call-template name="FieldCodeContent">
8016				<xsl:with-param name="text" select="$text"/>
8017			</xsl:call-template>
8018		</xsl:element>
8019		<字:句_419D>
8020			<xsl:if test="parent::text:span/@text:style-name">
8021				<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8022			</xsl:if>
8023			<字:文本串_415B>
8024				<!--xsl:value-of select="string(.)"/-->
8025				<!-- 用来保存date-value的值(它用来当具有fixed属性时显示固定了的日期值)-->
8026				<xsl:choose>
8027					<xsl:when test="@text:date-value">
8028						<!--xsl:value-of select="@text:date-value"/-->
8029						<!--  起始编号实现-->
8030						<xsl:choose>
8031							<xsl:when test="@text:date-adjust">
8032								<xsl:value-of select="concat(@text:date-value,',',@text:date-adjust)"/>
8033							</xsl:when>
8034							<xsl:otherwise>
8035								<xsl:value-of select="@text:date-value"/>
8036							</xsl:otherwise>
8037						</xsl:choose>
8038					</xsl:when>
8039					<xsl:otherwise>
8040						<xsl:value-of select="string(.)"/>
8041					</xsl:otherwise>
8042				</xsl:choose>
8043			</字:文本串_415B>
8044		</字:句_419D>
8045		<xsl:element name="字:域结束_41A0">
8046    </xsl:element>
8047	</xsl:template>
8048	<xsl:template match="text:time | text:creation-time |text:modification-time">
8049		<!--把 creation-time添加到time模块-->
8050		<xsl:element name="字:域开始_419E">
8051			<!--xsl:attribute name="类型_416E"><xsl:value-of select="'time'"/></xsl:attribute-->
8052			<xsl:if test="name(.)='text:time'">
8053				<xsl:attribute name="类型_416E"><xsl:value-of select="'time'"/></xsl:attribute>
8054			</xsl:if>
8055			<xsl:if test="name(.)='text:creation-time'">
8056				<xsl:attribute name="类型_416E"><xsl:value-of select="'createtime'"/></xsl:attribute>
8057			</xsl:if>
8058			<xsl:if test="name(.)='text:modification-time'">
8059				<xsl:attribute name="类型_416E"><xsl:value-of select="'modificationtime'"/></xsl:attribute>
8060			</xsl:if>
8061			<xsl:choose>
8062				<xsl:when test="@text:fixed='1' or @text:fixed='true'">
8063					<xsl:attribute name="是否锁定_416F">true</xsl:attribute>
8064				</xsl:when>
8065				<xsl:otherwise>
8066					<xsl:attribute name="是否锁定_416F">false</xsl:attribute>
8067				</xsl:otherwise>
8068			</xsl:choose>
8069		</xsl:element>
8070		<xsl:element name="字:域代码_419F">
8071			<xsl:variable name="timefmt">
8072				<!--xsl:variable name="aa" select="@style:data-style-name"/>
8073						<xsl:for-each select="key('AllNumberStyle',$aa)/number:hours | key('AllNumberStyle',$aa)/number:minutes | key('AllNumberStyle',$aa)/number:am-pm | key('AllNumberStyle',$aa)/number:seconds | key('AllNumberStyle',$aa)/number:text">
8074							<xsl:choose>
8075								<xsl:when test="@number:style='long' ">
8076									<xsl:if test="self::node( )[name(.)='number:hours']">HH</xsl:if>
8077									<xsl:if test="self::node( )[name(.)='number:minutes']">MM</xsl:if>
8078									<xsl:if test="self::node( )[name(.)='number:seconds']">SS</xsl:if>
8079								</xsl:when>
8080								<xsl:otherwise>
8081									<xsl:if test="self::node( )[name(.)='number:text']">
8082										<xsl:value-of select="."/>
8083									</xsl:if>
8084									<xsl:if test="self::node( )[name(.)='number:hours']">H</xsl:if>
8085									<xsl:if test="self::node( )[name(.)='number:minutes']">M</xsl:if>
8086									<xsl:if test="self::node( )[name(.)='number:seconds']">S</xsl:if>
8087									<xsl:if test="self::node( )[name(.)='number:am-pm']">am/pm</xsl:if>
8088								</xsl:otherwise>
8089							</xsl:choose>
8090						</xsl:for-each-->
8091				<xsl:variable name="bb" select="@style:data-style-name"/>
8092				<xsl:for-each select="key('AllNumberStyle',$bb)/number:year | key('AllNumberStyle',$bb)/number:month | key('AllNumberStyle',$bb)/number:day |  key('AllNumberStyle',$bb)/number:hours |  key('AllNumberStyle',$bb)/number:minutes | key('AllNumberStyle',$bb)/number:seconds | key('AllNumberStyle',$bb)/number:quarter | key('AllNumberStyle',$bb)/number:day-of-week | key('AllNumberStyle',$bb)/number:week-of-year |  key('AllNumberStyle',$bb)/number:text | key('AllNumberStyle',$bb)/number:am-pm">
8093					<xsl:call-template name="TimeDateFormat"/>
8094				</xsl:for-each>
8095			</xsl:variable>
8096			<xsl:variable name="quote">"</xsl:variable>
8097			<xsl:variable name="text">
8098				<!--xsl:value-of select="concat('TIME \@ ',$quote,$timefmt,$quote)"/-->
8099				<xsl:choose>
8100					<xsl:when test="name(.)='text:time'">
8101						<xsl:value-of select="concat('TIME \@ ',$quote,$timefmt,$quote)"/>
8102					</xsl:when>
8103					<xsl:when test="name(.)='text:modification-time'">
8104						<xsl:value-of select="concat('MODIFICATIONTIME \@ ',$quote,$timefmt,$quote)"/>
8105					</xsl:when>
8106					<xsl:otherwise>
8107						<xsl:value-of select="concat('CREATETIME \@ ',$quote,$timefmt,$quote)"/>
8108					</xsl:otherwise>
8109				</xsl:choose>
8110			</xsl:variable>
8111			<xsl:call-template name="FieldCodeContent">
8112				<xsl:with-param name="text" select="$text"/>
8113			</xsl:call-template>
8114		</xsl:element>
8115		<字:句_419D>
8116			<xsl:if test="parent::text:span/@text:style-name">
8117				<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8118			</xsl:if>
8119			<字:文本串_415B>
8120				<!--xsl:value-of select="string(.)"/-->
8121				<!--用来保存time-value的值(它用来当具有fixed属性时显示固定了的时间值)-->
8122				<xsl:choose>
8123					<xsl:when test="@text:time-value">
8124						<!--xsl:value-of select="@text:time-value"/-->
8125						<!-- 起始编号实现-->
8126						<xsl:choose>
8127							<xsl:when test="@text:time-adjust">
8128								<xsl:value-of select="concat(@text:time-value,',',@text:time-adjust)"/>
8129							</xsl:when>
8130							<xsl:otherwise>
8131								<xsl:value-of select="@text:time-value"/>
8132							</xsl:otherwise>
8133						</xsl:choose>
8134					</xsl:when>
8135					<xsl:otherwise>
8136						<xsl:value-of select="string(.)"/>
8137					</xsl:otherwise>
8138				</xsl:choose>
8139			</字:文本串_415B>
8140		</字:句_419D>
8141		<xsl:element name="字:域结束_41A0">
8142    </xsl:element>
8143	</xsl:template>
8144	<xsl:template name="oo数字格式域开关">
8145		<xsl:param name="oo_format"/>
8146		<xsl:choose>
8147			<xsl:when test="$oo_format='1'">Arabic</xsl:when>
8148			<xsl:when test="$oo_format='I'">ROMAN</xsl:when>
8149			<xsl:when test="$oo_format='i'">roman</xsl:when>
8150			<xsl:when test="$oo_format='A'">ALPHABETIC</xsl:when>
8151			<xsl:when test="$oo_format='a'">alphabetic</xsl:when>
8152			<xsl:when test="$oo_format='1, 2, 3, ...'">GB1</xsl:when>
8153			<xsl:when test="$oo_format='①, ②, ③, ...'">GB3</xsl:when>
8154			<xsl:when test="$oo_format='一, 二, 三, ...'">CHINESENUM3</xsl:when>
8155			<xsl:when test="$oo_format='壹, 贰, 叁, ...'">CHINESENUM2</xsl:when>
8156			<xsl:when test="$oo_format='甲, 乙, 丙, ...'">ZODIAC1</xsl:when>
8157			<xsl:when test="$oo_format='子, 丑, 寅, ...'">ZODIAC2</xsl:when>
8158			<xsl:when test="$oo_format='㈠, ㈡, ㈢, ...'">GB4</xsl:when>
8159			<xsl:otherwise>Arabic</xsl:otherwise>
8160			<!--xsl:when test="$oo_format='1., 2., 3., ...'">GB1</xsl:when>
8161			<xsl:when test="$oo_format='(1),(2),(3), ...'">GB2</xsl:when>
8162			<xsl:when test="$oo_format='①, ②, ③, ...'">GB3</xsl:when>
8163			<xsl:when test="$oo_format='(一), (二), (三), ...'">GB4</xsl:when-->
8164		</xsl:choose>
8165	</xsl:template>
8166	<xsl:template match="text:page-number">
8167		<xsl:variable name="IsInMasterPage">
8168			<xsl:call-template name="InMasterPage"/>
8169		</xsl:variable>
8170		<xsl:choose>
8171			<xsl:when test="$IsInMasterPage = 'true'">
8172				<字:句_419D>
8173					<xsl:if test="parent::text:span/@text:style-name">
8174						<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8175					</xsl:if>
8176					<字:文本串_415B>&lt;#&gt;</字:文本串_415B>
8177				</字:句_419D>
8178			</xsl:when>
8179			<xsl:otherwise>
8180				<!--插入页码域-->
8181				<xsl:element name="字:域开始_419E">
8182					<xsl:attribute name="类型_416E"><xsl:value-of select="'page'"/></xsl:attribute>
8183					<xsl:choose>
8184						<xsl:when test="@text:fixed='1' or @text:fixed='true'">
8185							<xsl:attribute name="是否锁定_416F">true</xsl:attribute>
8186						</xsl:when>
8187						<xsl:otherwise>
8188							<xsl:attribute name="是否锁定_416F">false</xsl:attribute>
8189						</xsl:otherwise>
8190					</xsl:choose>
8191				</xsl:element>
8192				<xsl:element name="字:域代码_419F">
8193					<xsl:variable name="fmt">
8194						<xsl:call-template name="oo数字格式域开关">
8195							<xsl:with-param name="oo_format" select="@style:num-format"/>
8196						</xsl:call-template>
8197					</xsl:variable>
8198					<xsl:variable name="text">
8199						<xsl:choose>
8200							<xsl:when test="@style:num-format">
8201								<xsl:value-of select="concat('PAGE \* ',$fmt)"/>
8202							</xsl:when>
8203							<xsl:otherwise>PAGE</xsl:otherwise>
8204						</xsl:choose>
8205					</xsl:variable>
8206					<xsl:call-template name="FieldCodeContent">
8207						<xsl:with-param name="text" select="$text"/>
8208					</xsl:call-template>
8209				</xsl:element>
8210				<字:句_419D>
8211					<xsl:if test="parent::text:span/@text:style-name">
8212						<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8213					</xsl:if>
8214					<字:文本串_415B>
8215						<xsl:if test="@text:page-adjust">
8216							<xsl:value-of select="string(.)"/>
8217						</xsl:if>
8218					</字:文本串_415B>
8219				</字:句_419D>
8220				<xsl:element name="字:域结束_41A0">
8221        </xsl:element>
8222			</xsl:otherwise>
8223		</xsl:choose>
8224	</xsl:template>
8225	<xsl:template match="text:page-continuation">
8226  </xsl:template>
8227	<xsl:template match="text:sender-firstname">
8228  </xsl:template>
8229	<xsl:template match="text:sender-lastname">
8230  </xsl:template>
8231	<xsl:template match="text:sender-initials">
8232  </xsl:template>
8233	<xsl:template match="text:sender-title">
8234  </xsl:template>
8235	<xsl:template match="text:sender-position">
8236  </xsl:template>
8237	<xsl:template match="text:sender-email">
8238  </xsl:template>
8239	<xsl:template match="text:sender-phone-private">
8240  </xsl:template>
8241	<xsl:template match="text:sender-fax">
8242  </xsl:template>
8243	<xsl:template match="text:sender-company">
8244  </xsl:template>
8245	<xsl:template match="text:sender-phone-work">
8246  </xsl:template>
8247	<xsl:template match="text:sender-street">
8248  </xsl:template>
8249	<xsl:template match="text:sender-city">
8250  </xsl:template>
8251	<xsl:template match="text:sender-postal-code">
8252  </xsl:template>
8253	<xsl:template match="text:sender-country">
8254  </xsl:template>
8255	<xsl:template match="text:sender-state-or-province">
8256  </xsl:template>
8257	<xsl:template match="text:author-name">
8258		<xsl:param name="tStyle"/>
8259		<xsl:element name="字:域开始_419E">
8260			<xsl:attribute name="类型_416E"><xsl:value-of select="'author'"/></xsl:attribute>
8261			<xsl:choose>
8262				<xsl:when test="@text:fixed='1' or @text:fixed='true'">
8263					<xsl:attribute name="是否锁定_416F">true</xsl:attribute>
8264				</xsl:when>
8265				<xsl:otherwise>
8266					<xsl:attribute name="是否锁定_416F">false</xsl:attribute>
8267				</xsl:otherwise>
8268			</xsl:choose>
8269		</xsl:element>
8270		<xsl:element name="字:域代码_419F">
8271			<字:段落_416B>
8272				<字:句_419D>
8273					<xsl:if test="$tStyle!=''">
8274						<字:句属性_4158 式样引用_417B="{$tStyle}"/>
8275					</xsl:if>
8276					<字:文本串_415B>AUTHOR</字:文本串_415B>
8277				</字:句_419D>
8278			</字:段落_416B>
8279		</xsl:element>
8280		<字:句_419D>
8281			<xsl:if test="parent::text:span/@text:style-name">
8282				<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8283			</xsl:if>
8284			<字:文本串_415B>
8285				<xsl:value-of select="."/>
8286			</字:文本串_415B>
8287		</字:句_419D>
8288		<xsl:element name="字:域结束_41A0">
8289    </xsl:element>
8290	</xsl:template>
8291	<xsl:template match="text:author-initials">
8292		<xsl:param name="tStyle"/>
8293		<xsl:element name="字:域开始_419E">
8294			<xsl:attribute name="类型_416E"><xsl:value-of select="'userinitials'"/></xsl:attribute>
8295			<xsl:choose>
8296				<xsl:when test="@text:fixed='1' or @text:fixed='true'">
8297					<xsl:attribute name="是否锁定_416F">true</xsl:attribute>
8298				</xsl:when>
8299				<xsl:otherwise>
8300					<xsl:attribute name="是否锁定_416F">false</xsl:attribute>
8301				</xsl:otherwise>
8302			</xsl:choose>
8303		</xsl:element>
8304		<xsl:element name="字:域代码_419F">
8305			<字:段落_416B>
8306				<字:句_419D>
8307					<xsl:if test="$tStyle!=''">
8308						<字:句属性_4158 式样引用_417B="{$tStyle}"/>
8309					</xsl:if>
8310					<!--字:文本串_415B uof:locID="t0109" uof:attrList="标识符">AUTHOR</字:文本串_415B-->
8311					<xsl:value-of select="concat('AUTHORINITIALS',' \* Upper')"/>
8312				</字:句_419D>
8313			</字:段落_416B>
8314		</xsl:element>
8315		<字:句_419D>
8316			<xsl:if test="parent::text:span/@text:style-name">
8317				<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8318			</xsl:if>
8319			<字:文本串_415B>
8320				<xsl:value-of select="."/>
8321			</字:文本串_415B>
8322		</字:句_419D>
8323		<xsl:element name="字:域结束_41A0">
8324    </xsl:element>
8325	</xsl:template>
8326	<xsl:template match="text:chapter">
8327  </xsl:template>
8328	<xsl:template match="text:file-name">
8329		<xsl:element name="字:域开始_419E">
8330			<xsl:attribute name="类型_416E"><xsl:value-of select="'filename'"/></xsl:attribute>
8331			<xsl:choose>
8332				<xsl:when test="@text:fixed='1' or @text:fixed='true'">
8333					<xsl:attribute name="是否锁定_416F">true</xsl:attribute>
8334				</xsl:when>
8335				<xsl:otherwise>
8336					<xsl:attribute name="是否锁定_416F">false</xsl:attribute>
8337				</xsl:otherwise>
8338			</xsl:choose>
8339		</xsl:element>
8340		<xsl:element name="字:域代码_419F">
8341			<xsl:variable name="text">
8342				<!--xsl:value-of select="concat('FILENAME \* ','Caps',' \* MERGEFORMAT')"/-->
8343				<xsl:value-of select="concat('FILENAME',' \p')"/>
8344			</xsl:variable>
8345			<xsl:call-template name="FieldCodeContent">
8346				<xsl:with-param name="text" select="$text"/>
8347			</xsl:call-template>
8348		</xsl:element>
8349		<字:句_419D>
8350			<xsl:if test="parent::text:span/@text:style-name">
8351				<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8352			</xsl:if>
8353			<字:文本串_415B>
8354				<xsl:value-of select="."/>
8355			</字:文本串_415B>
8356		</字:句_419D>
8357		<xsl:element name="字:域结束_41A0">
8358    </xsl:element>
8359	</xsl:template>
8360	<xsl:template match="text:template-name">
8361  </xsl:template>
8362	<xsl:template match="text:sheet-name">
8363  </xsl:template>
8364	<xsl:template match="text:variable-set">
8365  </xsl:template>
8366	<xsl:template match="text:variable-get">
8367  </xsl:template>
8368	<xsl:template match="text:variable-input">
8369  </xsl:template>
8370	<xsl:template match="text:user-field-get">
8371  </xsl:template>
8372	<xsl:template match="text:user-field-input">
8373  </xsl:template>
8374	<xsl:template match="text:sequence">
8375		<xsl:param name="tStyle"/>
8376		<xsl:if test="@text:name='Illustration'  or @text:name='Text'  or @text:name='Drawing'  or @text:name='Table'">
8377			<xsl:element name="字:域开始_419E">
8378				<xsl:attribute name="类型_416E"><xsl:value-of select="'SEQ'"/></xsl:attribute>
8379			</xsl:element>
8380			<xsl:element name="字:域代码_419F">
8381				<字:段落_416B>
8382					<字:句_419D>
8383						<xsl:if test="$tStyle!=''">
8384							<字:句属性_4158 式样引用_417B="{$tStyle}"/>
8385						</xsl:if>
8386						<xsl:variable name="fmt">
8387							<xsl:call-template name="oo数字格式域开关">
8388								<xsl:with-param name="oo_format" select="@style:num-format"/>
8389							</xsl:call-template>
8390						</xsl:variable>
8391						<字:文本串_415B>
8392							<xsl:value-of select="concat('SEQ ',@text:name,' \* ',$fmt,' \f ',@text:formula)"/>
8393						</字:文本串_415B>
8394					</字:句_419D>
8395				</字:段落_416B>
8396			</xsl:element>
8397			<字:句_419D>
8398				<字:文本串_415B>
8399					<xsl:value-of select="string(.)"/>
8400				</字:文本串_415B>
8401			</字:句_419D>
8402			<xsl:element name="字:域结束_41A0">
8403      </xsl:element>
8404		</xsl:if>
8405	</xsl:template>
8406	<xsl:template match="text:expression">
8407  </xsl:template>
8408	<xsl:template match="text:text-input">
8409  </xsl:template>
8410	<!--<xsl:template match="text:creator">
8411	</xsl:template>	-->
8412	<xsl:template match="text:initial-creator | text:creator">
8413		<xsl:element name="字:域开始_419E">
8414			<xsl:attribute name="类型_416E"><xsl:value-of select="'author'"/></xsl:attribute>
8415			<xsl:choose>
8416				<xsl:when test="@text:fixed='1' or @text:fixed='true'">
8417					<xsl:attribute name="是否锁定_416F">true</xsl:attribute>
8418				</xsl:when>
8419				<xsl:otherwise>
8420					<xsl:attribute name="是否锁定_416F">false</xsl:attribute>
8421				</xsl:otherwise>
8422			</xsl:choose>
8423		</xsl:element>
8424		<xsl:element name="字:域代码_419F">
8425			<xsl:variable name="text">
8426				<!--xsl:value-of select="concat('AUTHOR \* ','Caps',' \* MERGEFORMAT')"/-->
8427				<!--xsl:value-of select="'AUTHOR'"/-->
8428				<xsl:if test="name(.)='text:initial-creator'">
8429					<xsl:value-of select="concat('INITIALCREATOR',' \* Upper')"/>
8430				</xsl:if>
8431				<xsl:if test="name(.)='text:creator'">
8432					<xsl:value-of select="concat('MODIFICATIONAUTHOR',' \* Upper')"/>
8433				</xsl:if>
8434			</xsl:variable>
8435			<xsl:call-template name="FieldCodeContent">
8436				<xsl:with-param name="text" select="$text"/>
8437			</xsl:call-template>
8438		</xsl:element>
8439		<字:句_419D>
8440			<xsl:if test="parent::text:span/@text:style-name">
8441				<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8442			</xsl:if>
8443			<字:文本串_415B>
8444				<xsl:value-of select="string(.)"/>
8445			</字:文本串_415B>
8446		</字:句_419D>
8447		<xsl:element name="字:域结束_41A0">
8448    </xsl:element>
8449	</xsl:template>
8450	<xsl:template match="text:description">
8451		<xsl:element name="字:域开始_419E">
8452			<xsl:attribute name="类型_416E"><xsl:value-of select="'comments'"/></xsl:attribute>
8453			<xsl:choose>
8454				<xsl:when test="@text:fixed='1' or @text:fixed='true'">
8455					<xsl:attribute name="是否锁定_416F">true</xsl:attribute>
8456				</xsl:when>
8457				<xsl:otherwise>
8458					<xsl:attribute name="是否锁定_416F">false</xsl:attribute>
8459				</xsl:otherwise>
8460			</xsl:choose>
8461		</xsl:element>
8462		<xsl:element name="字:域代码_419F">
8463			<xsl:variable name="text">
8464				<xsl:value-of select="concat('COMMENTS',' \* Upper')"/>
8465			</xsl:variable>
8466			<xsl:call-template name="FieldCodeContent">
8467				<xsl:with-param name="text" select="$text"/>
8468			</xsl:call-template>
8469		</xsl:element>
8470		<字:句_419D>
8471			<xsl:if test="parent::text:span/@text:style-name">
8472				<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8473			</xsl:if>
8474			<字:文本串_415B>
8475				<xsl:value-of select="."/>
8476			</字:文本串_415B>
8477		</字:句_419D>
8478		<xsl:element name="字:域结束_41A0">
8479    </xsl:element>
8480	</xsl:template>
8481	<xsl:template match="text:user-defined">
8482  </xsl:template>
8483	<xsl:template match="text:print-time">
8484  </xsl:template>
8485	<xsl:template match="text:print-date">
8486  </xsl:template>
8487	<xsl:template match="text:printed-by">
8488  </xsl:template>
8489	<xsl:template match="text:title">
8490		<xsl:element name="字:域开始_419E">
8491			<xsl:attribute name="类型_416E"><xsl:value-of select="'title'"/></xsl:attribute>
8492			<xsl:choose>
8493				<xsl:when test="@text:fixed='1' or @text:fixed='true'">
8494					<xsl:attribute name="是否锁定_416F">true</xsl:attribute>
8495				</xsl:when>
8496				<xsl:otherwise>
8497					<xsl:attribute name="是否锁定_416F">false</xsl:attribute>
8498				</xsl:otherwise>
8499			</xsl:choose>
8500		</xsl:element>
8501		<xsl:element name="字:域代码_419F">
8502			<xsl:variable name="titlename" select="/office:document/office:meta/dc:title"/>
8503			<xsl:variable name="text">
8504				<xsl:value-of select="concat('TITLE',' \* Upper')"/>
8505			</xsl:variable>
8506			<xsl:call-template name="FieldCodeContent">
8507				<xsl:with-param name="text" select="$text"/>
8508			</xsl:call-template>
8509		</xsl:element>
8510		<字:句_419D>
8511			<xsl:if test="parent::text:span/@text:style-name">
8512				<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8513			</xsl:if>
8514			<字:文本串_415B>
8515				<xsl:value-of select="."/>
8516			</字:文本串_415B>
8517		</字:句_419D>
8518		<xsl:element name="字:域结束_41A0">
8519    </xsl:element>
8520	</xsl:template>
8521	<xsl:template match="text:subject">
8522		<xsl:element name="字:域开始_419E">
8523			<xsl:attribute name="类型_416E"><xsl:value-of select="'subject'"/></xsl:attribute>
8524			<xsl:choose>
8525				<xsl:when test="@text:fixed='1' or @text:fixed='true'">
8526					<xsl:attribute name="是否锁定_416F">true</xsl:attribute>
8527				</xsl:when>
8528				<xsl:otherwise>
8529					<xsl:attribute name="是否锁定_416F">false</xsl:attribute>
8530				</xsl:otherwise>
8531			</xsl:choose>
8532		</xsl:element>
8533		<xsl:element name="字:域代码_419F">
8534			<xsl:variable name="text">
8535				<xsl:value-of select="concat('SUBJECT \* ','Caps',' \* MERGEFORMAT')"/>
8536			</xsl:variable>
8537			<xsl:call-template name="FieldCodeContent">
8538				<xsl:with-param name="text" select="$text"/>
8539			</xsl:call-template>
8540		</xsl:element>
8541		<字:句_419D>
8542			<xsl:if test="parent::text:span/@text:style-name">
8543				<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8544			</xsl:if>
8545			<字:文本串_415B>
8546				<xsl:value-of select="."/>
8547			</字:文本串_415B>
8548		</字:句_419D>
8549		<xsl:element name="字:域结束_41A0">
8550    </xsl:element>
8551	</xsl:template>
8552	<xsl:template match="text:keywords">
8553		<xsl:element name="字:域开始_419E">
8554			<xsl:attribute name="类型_416E"><xsl:value-of select="'keywords'"/></xsl:attribute>
8555			<xsl:choose>
8556				<xsl:when test="@text:fixed='1' or @text:fixed='true'">
8557					<xsl:attribute name="是否锁定_416F">true</xsl:attribute>
8558				</xsl:when>
8559				<xsl:otherwise>
8560					<xsl:attribute name="是否锁定_416F">false</xsl:attribute>
8561				</xsl:otherwise>
8562			</xsl:choose>
8563		</xsl:element>
8564		<xsl:element name="字:域代码_419F">
8565			<xsl:variable name="text">
8566				<xsl:value-of select="concat('KEYWORDS',' \* Upper')"/>
8567			</xsl:variable>
8568			<xsl:call-template name="FieldCodeContent">
8569				<xsl:with-param name="text" select="$text"/>
8570			</xsl:call-template>
8571		</xsl:element>
8572		<字:句_419D>
8573			<xsl:if test="parent::text:span/@text:style-name">
8574				<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8575			</xsl:if>
8576			<字:文本串_415B>
8577				<xsl:value-of select="."/>
8578			</字:文本串_415B>
8579		</字:句_419D>
8580		<xsl:element name="字:域结束_41A0">
8581    </xsl:element>
8582	</xsl:template>
8583	<xsl:template match="text:editing-cycles">
8584		<xsl:element name="字:域开始_419E">
8585			<xsl:attribute name="类型_416E"><xsl:value-of select="'revnum'"/></xsl:attribute>
8586			<xsl:choose>
8587				<xsl:when test="@text:fixed='1' or @text:fixed='true'">
8588					<xsl:attribute name="是否锁定_416F">true</xsl:attribute>
8589				</xsl:when>
8590				<xsl:otherwise>
8591					<xsl:attribute name="是否锁定_416F">false</xsl:attribute>
8592				</xsl:otherwise>
8593			</xsl:choose>
8594		</xsl:element>
8595		<xsl:element name="字:域代码_419F">
8596			<xsl:variable name="text">
8597				<xsl:value-of select="concat('REVNUM',' \* Upper')"/>
8598			</xsl:variable>
8599			<xsl:call-template name="FieldCodeContent">
8600				<xsl:with-param name="text" select="$text"/>
8601			</xsl:call-template>
8602		</xsl:element>
8603		<字:句_419D>
8604			<xsl:if test="parent::text:span/@text:style-name">
8605				<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8606			</xsl:if>
8607			<字:文本串_415B>
8608				<xsl:value-of select="."/>
8609			</字:文本串_415B>
8610		</字:句_419D>
8611		<xsl:element name="字:域结束_41A0">
8612    </xsl:element>
8613	</xsl:template>
8614	<xsl:template match="text:editing-duration">
8615		<xsl:element name="字:域开始_419E">
8616			<xsl:attribute name="类型_416E"><xsl:value-of select="'edittime'"/></xsl:attribute>
8617			<xsl:choose>
8618				<xsl:when test="@text:fixed='1' or @text:fixed='true'">
8619					<xsl:attribute name="是否锁定_416F">true</xsl:attribute>
8620				</xsl:when>
8621				<xsl:otherwise>
8622					<xsl:attribute name="是否锁定_416F">false</xsl:attribute>
8623				</xsl:otherwise>
8624			</xsl:choose>
8625			<!--xsl:if test="@style:data-style-name">
8626				<xsl:attribute name="字:编辑类型"><xsl:value-of select="@style:data-style-name"/></xsl:attribute>
8627			</xsl:if-->
8628			<!-- del 3.28  lvxg(no definition in the schema)-->
8629		</xsl:element>
8630		<xsl:element name="字:域代码_419F">
8631			<xsl:variable name="timefmt">
8632				<xsl:variable name="aa" select="@style:data-style-name"/>
8633				<xsl:for-each select="key('AllNumberStyle',$aa)/number:hours | key('AllNumberStyle',$aa)/number:minutes | key('AllNumberStyle',$aa)/number:am-pm | key('AllNumberStyle',$aa)/number:seconds | key('AllNumberStyle',$aa)/number:text">
8634					<xsl:choose>
8635						<xsl:when test="@number:style='long' ">
8636							<xsl:if test="self::node( )[name(.)='number:hours']">HH</xsl:if>
8637							<xsl:if test="self::node( )[name(.)='number:minutes']">MM</xsl:if>
8638							<xsl:if test="self::node( )[name(.)='number:seconds']">SS</xsl:if>
8639						</xsl:when>
8640						<xsl:otherwise>
8641							<xsl:if test="self::node( )[name(.)='number:text']">
8642								<xsl:value-of select="."/>
8643							</xsl:if>
8644							<xsl:if test="self::node( )[name(.)='number:hours']">H</xsl:if>
8645							<xsl:if test="self::node( )[name(.)='number:minutes']">M</xsl:if>
8646							<xsl:if test="self::node( )[name(.)='number:seconds']">S</xsl:if>
8647							<xsl:if test="self::node( )[name(.)='number:am-pm']">am/pm</xsl:if>
8648						</xsl:otherwise>
8649					</xsl:choose>
8650				</xsl:for-each>
8651			</xsl:variable>
8652			<xsl:variable name="quote">"</xsl:variable>
8653			<xsl:variable name="text">
8654				<xsl:value-of select="concat('EDITTIME \@ ',$quote,$timefmt,$quote,' \* MERGEFORMAT ')"/>
8655			</xsl:variable>
8656			<xsl:call-template name="FieldCodeContent">
8657				<xsl:with-param name="text" select="$text"/>
8658			</xsl:call-template>
8659		</xsl:element>
8660		<字:句_419D>
8661			<xsl:if test="parent::text:span/@text:style-name">
8662				<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8663			</xsl:if>
8664			<字:文本串_415B>
8665				<xsl:value-of select="."/>
8666			</字:文本串_415B>
8667		</字:句_419D>
8668		<xsl:element name="字:域结束_41A0">
8669    </xsl:element>
8670	</xsl:template>
8671	<xsl:template match="text:page-count">
8672		<!--插入页数域-->
8673		<xsl:element name="字:域开始_419E">
8674			<xsl:attribute name="类型_416E"><xsl:value-of select="'numpages'"/></xsl:attribute>
8675			<xsl:choose>
8676				<xsl:when test="@text:fixed='1' or @text:fixed='true'">
8677					<xsl:attribute name="是否锁定_416F">true</xsl:attribute>
8678				</xsl:when>
8679				<xsl:otherwise>
8680					<xsl:attribute name="是否锁定_416F">false</xsl:attribute>
8681				</xsl:otherwise>
8682			</xsl:choose>
8683		</xsl:element>
8684		<xsl:element name="字:域代码_419F">
8685			<xsl:variable name="fmt">
8686				<xsl:call-template name="oo数字格式域开关">
8687					<xsl:with-param name="oo_format" select="@style:num-format"/>
8688				</xsl:call-template>
8689			</xsl:variable>
8690			<xsl:variable name="text">
8691				<xsl:choose>
8692					<xsl:when test="@style:num-format">
8693						<!--xsl:value-of select="concat('NumPages \* ',$fmt,' \* MERGEFORMAT')"/-->
8694						<!--<xsl:value-of select="concat('NumPages \* ',$fmt,' \* Upper')"/> -->
8695						<xsl:value-of select="concat('NumPages \* ',$fmt)"/>
8696						<!--指南与兼容性案例格式不一致-->
8697					</xsl:when>
8698					<xsl:otherwise>NumPages</xsl:otherwise>
8699				</xsl:choose>
8700			</xsl:variable>
8701			<xsl:call-template name="FieldCodeContent">
8702				<xsl:with-param name="text" select="$text"/>
8703			</xsl:call-template>
8704		</xsl:element>
8705		<字:句_419D>
8706			<xsl:if test="parent::text:span/@text:style-name">
8707				<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8708			</xsl:if>
8709			<字:文本串_415B>
8710				<xsl:value-of select="string(.)"/>
8711			</字:文本串_415B>
8712		</字:句_419D>
8713		<xsl:element name="字:域结束_41A0">
8714    </xsl:element>
8715	</xsl:template>
8716	<xsl:template match="text:paragraph-count">
8717  </xsl:template>
8718	<xsl:template match="text:word-count">
8719  </xsl:template>
8720	<xsl:template match="text:character-count">
8721		<xsl:element name="字:域开始_419E">
8722			<xsl:attribute name="类型_416E"><xsl:value-of select="'numchars'"/></xsl:attribute>
8723			<xsl:choose>
8724				<xsl:when test="@text:fixed='1' or @text:fixed='true'">
8725					<xsl:attribute name="是否锁定_416F">true</xsl:attribute>
8726				</xsl:when>
8727				<xsl:otherwise>
8728					<xsl:attribute name="是否锁定_416F">false</xsl:attribute>
8729				</xsl:otherwise>
8730			</xsl:choose>
8731		</xsl:element>
8732		<xsl:element name="字:域代码_419F">
8733			<xsl:variable name="quote" select="'&quot;'"/>
8734			<xsl:variable name="fmt">
8735				<xsl:call-template name="oo数字格式域开关">
8736					<xsl:with-param name="oo_format" select="@style:num-format"/>
8737				</xsl:call-template>
8738			</xsl:variable>
8739			<xsl:variable name="text">
8740				<xsl:value-of select="concat('NUMCHARS \* ',$fmt,' \# ',$quote,0,$quote)"/>
8741			</xsl:variable>
8742			<xsl:call-template name="FieldCodeContent">
8743				<xsl:with-param name="text" select="$text"/>
8744			</xsl:call-template>
8745		</xsl:element>
8746		<字:句_419D>
8747			<字:文本串_415B>
8748				<xsl:value-of select="."/>
8749			</字:文本串_415B>
8750		</字:句_419D>
8751		<xsl:element name="字:域结束_41A0">
8752    </xsl:element>
8753	</xsl:template>
8754	<xsl:template match="text:table-count">
8755  </xsl:template>
8756	<xsl:template match="text:image-count">
8757  </xsl:template>
8758	<xsl:template match="text:object-count">
8759  </xsl:template>
8760	<xsl:template match="text:database-display">
8761  </xsl:template>
8762	<xsl:template match="text:database-next">
8763  </xsl:template>
8764	<xsl:template match="text:database-row-select">
8765  </xsl:template>
8766	<xsl:template match="text:database-row-number">
8767  </xsl:template>
8768	<xsl:template match="text:database-name">
8769  </xsl:template>
8770	<xsl:template match="text:page-variable-set">
8771  </xsl:template>
8772	<xsl:template match="text:page-variable-get">
8773  </xsl:template>
8774	<xsl:template match="text:placeholder">
8775		<xsl:element name="字:域开始_419E">
8776			<xsl:variable name="type">
8777				<xsl:value-of select="@text:placeholder-type"/>
8778			</xsl:variable>
8779			<xsl:attribute name="类型_416E"><xsl:value-of select="concat($type,'placeholder')"/></xsl:attribute>
8780		</xsl:element>
8781		<xsl:element name="字:域代码_419F">
8782			<xsl:variable name="text">
8783				<xsl:value-of select="@text:description"/>
8784			</xsl:variable>
8785			<xsl:call-template name="FieldCodeContent">
8786				<xsl:with-param name="text" select="$text"/>
8787			</xsl:call-template>
8788		</xsl:element>
8789		<字:句_419D>
8790			<xsl:if test="parent::text:span/@text:style-name">
8791				<字:句属性_4158 式样引用_417B="{parent::text:span/@text:style-name}"/>
8792			</xsl:if>
8793			<字:文本串_415B>
8794				<xsl:value-of select="string(.)"/>
8795			</字:文本串_415B>
8796		</字:句_419D>
8797		<xsl:element name="字:域结束_41A0">
8798		</xsl:element>
8799	</xsl:template>
8800	<xsl:template match="text:conditional-text">
8801	</xsl:template>
8802	<xsl:template match="text:hidden-text">
8803	</xsl:template>
8804	<xsl:template match="text:reference-ref">
8805	</xsl:template>
8806	<xsl:template match="text:bookmark-ref">
8807	</xsl:template>
8808	<xsl:template match="text:note-ref">
8809	</xsl:template>
8810	<xsl:template match="text:sequence-ref">
8811	</xsl:template>
8812	<xsl:template match="text:script">
8813	</xsl:template>
8814	<xsl:template match="text:execute-macro">
8815	</xsl:template>
8816	<xsl:template match="text:hidden-paragraph">
8817	</xsl:template>
8818	<xsl:template match="text:dde-connection">
8819	</xsl:template>
8820	<xsl:template match="text:measure">
8821	</xsl:template>
8822	<xsl:template match="text:table-formula">
8823	</xsl:template>
8824	<xsl:template match="text:meta-field">
8825	</xsl:template>
8826	<xsl:template match="text:toc-mark-start">
8827	</xsl:template>
8828	<xsl:template match="text:toc-mark-end">
8829	</xsl:template>
8830	<xsl:template match="text:toc-mark">
8831	</xsl:template>
8832	<xsl:template match="text:user-index-mark-start">
8833	</xsl:template>
8834	<xsl:template match="text:user-index-mark-end">
8835	</xsl:template>
8836	<xsl:template match="text:user-index-mark">
8837	</xsl:template>
8838	<xsl:template match="text:alphabetical-index-mark-start">
8839	</xsl:template>
8840	<xsl:template match="text:alphabetical-index-mark-end">
8841	</xsl:template>
8842	<xsl:template match="text:alphabetical-index-mark">
8843	</xsl:template>
8844	<xsl:template match="text:bibliography-mark">
8845	</xsl:template>
8846	<xsl:template match="presentation:date-time">
8847		<字:文本串_415B>&lt;日期/时间&gt;</字:文本串_415B>
8848	</xsl:template>
8849	<xsl:template match="presentation:header">
8850		<字:文本串_415B>&lt;页眉&gt;</字:文本串_415B>
8851	</xsl:template>
8852	<xsl:template match="presentation:footer">
8853		<字:文本串_415B>&lt;页脚&gt;</字:文本串_415B>
8854	</xsl:template>
8855	<xsl:template name="UOFAnchor">
8856		<!--xsl:param name="anchor_name1"/-->
8857		<xsl:if test="not(name(.)='draw:glue-point')">
8858			<!--xsl:variable name="anchor_name">
8859				<xsl:choose>
8860					<xsl:when test="$documentType='presentation'">
8861						<xsl:value-of select="concat('演:','锚点_6B19')"/>
8862					</xsl:when>
8863					<xsl:when test="$documentType='spreadsheet'">
8864						<xsl:value-of select="concat('表:','锚点_E81C')"/>
8865					</xsl:when>
8866					<xsl:when test="$documentType='text'">
8867						<xsl:value-of select="concat('字:','锚点_415D')"/>
8868					</xsl:when>
8869				</xsl:choose>
8870			</xsl:variable-->
8871			<xsl:choose>
8872				<xsl:when test="name(.) = 'draw:a'">
8873					<xsl:for-each select="child::node( )">
8874						<xsl:call-template name="UOFAnchor">
8875							<!--xsl:with-param name="anchor_name1" select="$anchor_name1"/-->
8876						</xsl:call-template>
8877					</xsl:for-each>
8878				</xsl:when>
8879				<!--<xsl:when test="name(.) = 'draw:frame' and (./draw:object/office:document[@office:mimetype = 'application/vnd.oasis.opendocument.chart'])">
8880					<xsl:call-template name="DrawFrameChart"/>
8881				</xsl:when>-->
8882				<xsl:otherwise>
8883					<xsl:element name="uof:锚点_C644">
8884						<xsl:choose>
8885							<xsl:when test="@draw:id">
8886								<xsl:attribute name="图形引用_C62E"><xsl:value-of select="@draw:id"/></xsl:attribute>
8887							</xsl:when>
8888							<xsl:otherwise>
8889								<xsl:attribute name="图形引用_C62E"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
8890							</xsl:otherwise>
8891						</xsl:choose>
8892						<xsl:attribute name="是否显示缩略图_C630"><xsl:choose><xsl:when test="name(.)='draw:page-thumbnail'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
8893						<xsl:if test="$documentType = 'spreadsheet'">
8894							<xsl:for-each select="key('GraphStyle',@draw:style-name)/style:graphic-properties">
8895								<xsl:if test="key('GraphStyle',@draw:style-name)/style:graphic-properties/@style:protect != ''">
8896									<uof:保护_C62A>
8897										<xsl:choose>
8898											<xsl:when test="@style:protect='size'">
8899												<xsl:attribute name="是否保护大小"><xsl:value-of select="'true'"/></xsl:attribute>
8900											</xsl:when>
8901											<xsl:when test="@style:protect='position'">
8902												<xsl:attribute name="是否保护位置"><xsl:value-of select="'true'"/></xsl:attribute>
8903											</xsl:when>
8904											<xsl:when test="@style:protect='position size'">
8905												<xsl:attribute name="是否保护大小"><xsl:value-of select="'true'"/></xsl:attribute>
8906												<xsl:attribute name="是否保护位置"><xsl:value-of select="'true'"/></xsl:attribute>
8907											</xsl:when>
8908										</xsl:choose>
8909									</uof:保护_C62A>
8910								</xsl:if>
8911								<xsl:variable name="refpicname">
8912									<xsl:choose>
8913										<xsl:when test="./@draw:style-name">
8914											<xsl:value-of select="@draw:style-name"/>
8915										</xsl:when>
8916										<xsl:when test="./@table:end-cell-address">
8917											<xsl:value-of select="@table:end-cell-address"/>
8918										</xsl:when>
8919										<xsl:otherwise>
8920											<xsl:value-of select="./@draw:id"/>
8921										</xsl:otherwise>
8922									</xsl:choose>
8923								</xsl:variable>
8924								<xsl:attribute name="随动方式_C62F"><xsl:choose><xsl:when test="name(..)='table:shapes'">none</xsl:when><xsl:when test="key('GraphStyle',$refpicname)/style:graphic-properties/@style:protect and name(..)='table:table-cell'">move</xsl:when><xsl:when test="name(..)='table:table-cell'">movesize</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
8925							</xsl:for-each>
8926						</xsl:if>
8927						<xsl:call-template name="位置-anchor"/>
8928						<uof:大小_C621>
8929							<xsl:variable name="object_width">
8930								<xsl:call-template name="宽度-anchor"/>
8931							</xsl:variable>
8932							<xsl:if test="$object_width !=''">
8933								<xsl:attribute name="宽_C605"><xsl:value-of select="$object_width"/></xsl:attribute>
8934							</xsl:if>
8935							<xsl:variable name="object_height">
8936								<xsl:call-template name="高度-anchor"/>
8937							</xsl:variable>
8938							<xsl:if test="$object_height !=''">
8939								<xsl:attribute name="长_C604"><xsl:value-of select="$object_height"/></xsl:attribute>
8940							</xsl:if>
8941							<!--bug for title in masterpage-->
8942							<xsl:if test="($documentType = 'presentation') and (name(.) = 'draw:frame') and (@presentation:class = 'title') and (name(..) = 'style:master-page')">
8943								<xsl:variable name="bug-height" select="0.254 div $other-to-cm-conversion-factor"/>
8944								<xsl:attribute name="长_C604"><xsl:value-of select="number($object_height) - number($bug-height)"/></xsl:attribute>
8945							</xsl:if>
8946						</uof:大小_C621>
8947						<xsl:call-template name="graphic-properties-anchor"/>
8948						<xsl:if test="key('GraphStyle',@draw:style-name)/style:graphic-properties/@style:allowoverlap">
8949							<uof:是否允许重叠_C62B>
8950								<xsl:for-each select="key('GraphStyle',@draw:style-name)/style:graphic-properties">
8951									<xsl:value-of select="@style:allowoverlap"/>
8952								</xsl:for-each>
8953							</uof:是否允许重叠_C62B>
8954						</xsl:if>
8955						<xsl:variable name="presentationType">
8956							<xsl:choose>
8957								<xsl:when test="@presentation:object">
8958									<xsl:value-of select="@presentation:object"/>
8959								</xsl:when>
8960								<xsl:when test="@presentation:class">
8961									<xsl:value-of select="@presentation:class"/>
8962								</xsl:when>
8963							</xsl:choose>
8964						</xsl:variable>
8965						<xsl:variable name="presentationClass">
8966							<xsl:choose>
8967								<xsl:when test="$presentationType = 'date-time'">date</xsl:when>
8968								<xsl:when test="$presentationType = 'page-number'">number</xsl:when>
8969								<xsl:when test="$presentationType = 'page'">notes</xsl:when>
8970								<xsl:when test="$presentationType = 'subtitle'">subtitle</xsl:when>
8971								<xsl:when test="$presentationType = 'text'">text</xsl:when>
8972								<xsl:when test="$presentationType = 'graphic'">graphics</xsl:when>
8973								<xsl:when test="$presentationType = 'object'">object</xsl:when>
8974								<xsl:when test="$presentationType = 'header'">header</xsl:when>
8975								<xsl:when test="$presentationType = 'footer'">footer</xsl:when>
8976								<xsl:when test="$presentationType = 'table'">table</xsl:when>
8977								<xsl:when test="$presentationType = 'outline'">outline</xsl:when>
8978								<xsl:when test="$presentationType = 'handout'">handout</xsl:when>
8979								<xsl:when test="$presentationType = 'notes'">notes</xsl:when>
8980								<xsl:when test="$presentationType = 'chart'">chart</xsl:when>
8981								<xsl:when test="$presentationType = 'title'">
8982									<xsl:variable name="IsInMasterPage">
8983										<xsl:call-template name="InMasterPage"/>
8984									</xsl:variable>
8985									<xsl:choose>
8986										<xsl:when test="$IsInMasterPage = 'true'">
8987											<xsl:choose>
8988												<xsl:when test="draw:text-box/text:p//presentation:date-time">date</xsl:when>
8989												<xsl:when test="draw:text-box/text:p//presentation:header">header</xsl:when>
8990												<xsl:when test="draw:text-box/text:p//presentation:footer">footer</xsl:when>
8991												<xsl:when test="draw:text-box/text:p//text:page-number">number</xsl:when>
8992												<xsl:otherwise>title</xsl:otherwise>
8993											</xsl:choose>
8994										</xsl:when>
8995										<xsl:otherwise>title</xsl:otherwise>
8996									</xsl:choose>
8997								</xsl:when>
8998							</xsl:choose>
8999						</xsl:variable>
9000						<xsl:if test="@presentation:object or @presentation:class">
9001							<uof:占位符_C626>
9002								<xsl:attribute name="类型_C627"><xsl:value-of select="$presentationClass"/></xsl:attribute>
9003							</uof:占位符_C626>
9004						</xsl:if>
9005					</xsl:element>
9006				</xsl:otherwise>
9007			</xsl:choose>
9008		</xsl:if>
9009	</xsl:template>
9010	<xsl:template name="宽度-anchor">
9011		<xsl:choose>
9012			<xsl:when test="name()='draw:g'">
9013				<xsl:choose>
9014					<xsl:when test="child::*[1]/@svg:width and child::*[last()]/@svg:width">
9015						<xsl:value-of select="number(fun:Convert2uofUnit(child::*[last()]/@svg:width)) - number(fun:Convert2uofUnit(child::*[1]/@svg:width))"/>
9016					</xsl:when>
9017					<xsl:when test="child::*[1]/@svg:x1 and child::*[last()]/@svg:x2">
9018						<xsl:value-of select="number(fun:Convert2uofUnit(child::*[last()]/@svg:x2)) - number(fun:Convert2uofUnit(child::*[1]/@svg:x1))"/>
9019					</xsl:when>
9020				</xsl:choose>
9021			</xsl:when>
9022			<xsl:otherwise>
9023				<xsl:choose>
9024					<xsl:when test="@svg:width">
9025						<xsl:value-of select="fun:Convert2uofUnit(@svg:width)"/>
9026					</xsl:when>
9027					<xsl:when test="@fo:min-width">
9028						<xsl:value-of select="fun:Convert2uofUnit(@fo:min-width)"/>
9029					</xsl:when>
9030					<xsl:when test="@svg:x1">
9031						<xsl:variable name="svg_x1">
9032							<xsl:value-of select="fun:Convert2uofUnit(@svg:x1)"/>
9033						</xsl:variable>
9034						<xsl:variable name="svg_x2">
9035							<xsl:value-of select="fun:Convert2uofUnit(@svg:x2)"/>
9036						</xsl:variable>
9037						<xsl:choose>
9038							<xsl:when test="number($svg_x2) &gt; number($svg_x1)">
9039								<xsl:value-of select="$svg_x2 - $svg_x1"/>
9040							</xsl:when>
9041							<xsl:otherwise>
9042								<xsl:value-of select="$svg_x1 - $svg_x2"/>
9043							</xsl:otherwise>
9044						</xsl:choose>
9045					</xsl:when>
9046				</xsl:choose>
9047			</xsl:otherwise>
9048		</xsl:choose>
9049	</xsl:template>
9050	<xsl:template name="高度-anchor">
9051		<xsl:choose>
9052			<xsl:when test="name()='draw:g'">
9053				<xsl:choose>
9054					<xsl:when test="child::*[1]/@svg:height and child::*[last()]/@svg:height">
9055						<xsl:value-of select="number(fun:Convert2uofUnit(child::*[last()]/@svg:height)) - number(fun:Convert2uofUnit(child::*[1]/@svg:height))"/>
9056					</xsl:when>
9057					<xsl:when test="child::*[1]/@svg:y1 and child::*[last()]/@svg:y2">
9058						<xsl:value-of select="number(fun:Convert2uofUnit(child::*[last()]/@svg:y2)) - number(fun:Convert2uofUnit(child::*[1]/@svg:y1))"/>
9059					</xsl:when>
9060				</xsl:choose>
9061			</xsl:when>
9062			<xsl:otherwise>
9063				<xsl:choose>
9064					<xsl:when test="@svg:height">
9065						<xsl:value-of select="fun:Convert2uofUnit(@svg:height)"/>
9066					</xsl:when>
9067					<xsl:when test="@svg:y1">
9068						<xsl:variable name="svg_y1">
9069							<xsl:value-of select="fun:Convert2uofUnit(@svg:y1)"/>
9070						</xsl:variable>
9071						<xsl:variable name="svg_y2">
9072							<xsl:value-of select="fun:Convert2uofUnit(@svg:y2)"/>
9073						</xsl:variable>
9074						<xsl:choose>
9075							<xsl:when test="number($svg_y2) &gt; number($svg_y1)">
9076								<xsl:value-of select="$svg_y2 - $svg_y1"/>
9077							</xsl:when>
9078							<xsl:otherwise>
9079								<xsl:value-of select="$svg_y1 - $svg_y2"/>
9080							</xsl:otherwise>
9081						</xsl:choose>
9082					</xsl:when>
9083					<xsl:when test="child::draw:text-box/@fo:min-height">
9084						<xsl:value-of select="fun:Convert2uofUnit(child::draw:text-box/@fo:min-height)"/>
9085					</xsl:when>
9086				</xsl:choose>
9087			</xsl:otherwise>
9088		</xsl:choose>
9089	</xsl:template>
9090	<xsl:template name="self_definition_x2">
9091		<xsl:param name="draw_transform"/>
9092		<xsl:choose>
9093			<xsl:when test="contains($draw_transform, 'translate')">
9094				<xsl:value-of select="fun:Convert2uofUnit(normalize-space(substring-before(substring-after(substring-after($draw_transform, 'translate'), '('), ' ')))"/>
9095			</xsl:when>
9096			<xsl:otherwise>0</xsl:otherwise>
9097		</xsl:choose>
9098	</xsl:template>
9099	<xsl:template name="self_definition_y2">
9100		<xsl:param name="draw_transform"/>
9101		<xsl:choose>
9102			<xsl:when test="contains($draw_transform, 'translate')">
9103				<!--xsl:value-of select="normalize-space(substring-before(substring-after($draw_transform, $uofUnit), $uofUnit))"/-->
9104				<xsl:value-of select="fun:Convert2uofUnit(normalize-space(substring-before(substring-after(substring-after($draw_transform, 'translate '), ' '), ')')))"/>
9105			</xsl:when>
9106			<xsl:otherwise>0</xsl:otherwise>
9107		</xsl:choose>
9108	</xsl:template>
9109	<xsl:template name="位置X-anchor">
9110		<xsl:choose>
9111			<xsl:when test="@draw:transform">
9112				<xsl:variable name="arc">
9113					<xsl:call-template name="arc">
9114						<xsl:with-param name="draw_transform">
9115							<xsl:value-of select="@draw:transform"/>
9116						</xsl:with-param>
9117					</xsl:call-template>
9118				</xsl:variable>
9119				<xsl:variable name="x2">
9120					<xsl:call-template name="self_definition_x2">
9121						<xsl:with-param name="draw_transform">
9122							<xsl:value-of select="@draw:transform"/>
9123						</xsl:with-param>
9124					</xsl:call-template>
9125				</xsl:variable>
9126				<xsl:variable name="y2">
9127					<xsl:call-template name="self_definition_y2">
9128						<xsl:with-param name="draw_transform">
9129							<xsl:value-of select="@draw:transform"/>
9130						</xsl:with-param>
9131					</xsl:call-template>
9132				</xsl:variable>
9133				<xsl:variable name="width">
9134					<xsl:value-of select="fun:Convert2uofUnit(@svg:width)"/>
9135				</xsl:variable>
9136				<xsl:variable name="hight">
9137					<xsl:value-of select="fun:Convert2uofUnit(@svg:height)"/>
9138				</xsl:variable>
9139				<xsl:variable name="cos">
9140					<xsl:call-template name="cos">
9141						<xsl:with-param name="arc">
9142							<xsl:value-of select="$arc"/>
9143						</xsl:with-param>
9144					</xsl:call-template>
9145				</xsl:variable>
9146				<xsl:variable name="sin">
9147					<xsl:call-template name="sin">
9148						<xsl:with-param name="arc">
9149							<xsl:value-of select="$arc"/>
9150						</xsl:with-param>
9151					</xsl:call-template>
9152				</xsl:variable>
9153				<xsl:variable name="position_x">
9154					<xsl:value-of select="number($x2) - number($width) div 2 + (number($width) div 2) * $cos + (number($hight) div 2) * $sin"/>
9155				</xsl:variable>
9156				<xsl:value-of select="$position_x"/>
9157			</xsl:when>
9158			<xsl:when test="@svg:x or @svg:x1">
9159				<xsl:variable name="position_x">
9160					<xsl:choose>
9161						<xsl:when test="@svg:x">
9162							<xsl:value-of select="fun:Convert2uofUnit(@svg:x)"/>
9163						</xsl:when>
9164						<xsl:when test="@svg:x1">
9165							<xsl:variable name="svg_x1">
9166								<xsl:value-of select="fun:Convert2uofUnit(@svg:x1)"/>
9167							</xsl:variable>
9168							<xsl:variable name="svg_x2">
9169								<xsl:value-of select="fun:Convert2uofUnit(@svg:x2)"/>
9170							</xsl:variable>
9171							<xsl:choose>
9172								<xsl:when test="number($svg_x1) &lt; number($svg_x2)">
9173									<xsl:value-of select="$svg_x1"/>
9174								</xsl:when>
9175								<xsl:otherwise>
9176									<xsl:value-of select="$svg_x2"/>
9177								</xsl:otherwise>
9178							</xsl:choose>
9179						</xsl:when>
9180					</xsl:choose>
9181				</xsl:variable>
9182				<xsl:value-of select="$position_x"/>
9183			</xsl:when>
9184			<xsl:when test="name()='draw:g' and (./*[1]/@svg:x or ./*[1]/@svg:x1)">
9185				<xsl:choose>
9186					<xsl:when test="./*[1]/@svg:x">
9187						<xsl:value-of select="fun:Convert2uofUnit(./*[1]/@svg:x)"/>
9188					</xsl:when>
9189					<xsl:when test="./*[1]/@svg:x1">
9190						<xsl:value-of select="fun:Convert2uofUnit(./*[1]/@svg:x1)"/>
9191					</xsl:when>
9192				</xsl:choose>
9193			</xsl:when>
9194		</xsl:choose>
9195	</xsl:template>
9196	<xsl:template name="位置Y-anchor">
9197		<xsl:choose>
9198			<xsl:when test="@draw:transform">
9199				<xsl:variable name="arc">
9200					<xsl:call-template name="arc">
9201						<xsl:with-param name="draw_transform">
9202							<xsl:value-of select="@draw:transform"/>
9203						</xsl:with-param>
9204					</xsl:call-template>
9205				</xsl:variable>
9206				<xsl:variable name="x2">
9207					<xsl:call-template name="self_definition_x2">
9208						<xsl:with-param name="draw_transform">
9209							<xsl:value-of select="@draw:transform"/>
9210						</xsl:with-param>
9211					</xsl:call-template>
9212				</xsl:variable>
9213				<xsl:variable name="y2">
9214					<xsl:call-template name="self_definition_y2">
9215						<xsl:with-param name="draw_transform">
9216							<xsl:value-of select="@draw:transform"/>
9217						</xsl:with-param>
9218					</xsl:call-template>
9219				</xsl:variable>
9220				<xsl:variable name="width" select="fun:Convert2uofUnit(@svg:width)"/>
9221				<xsl:variable name="hight" select="fun:Convert2uofUnit(@svg:height)"/>
9222				<xsl:variable name="cos">
9223					<xsl:call-template name="cos">
9224						<xsl:with-param name="arc">
9225							<xsl:value-of select="$arc"/>
9226						</xsl:with-param>
9227					</xsl:call-template>
9228				</xsl:variable>
9229				<xsl:variable name="sin">
9230					<xsl:call-template name="sin">
9231						<xsl:with-param name="arc">
9232							<xsl:value-of select="$arc"/>
9233						</xsl:with-param>
9234					</xsl:call-template>
9235				</xsl:variable>
9236				<xsl:variable name="position_y">
9237					<xsl:value-of select="number($y2) - number($hight) div 2 - (number($width) div 2) * $sin + (number($hight) div 2) * $cos"/>
9238				</xsl:variable>
9239				<xsl:value-of select="$position_y"/>
9240			</xsl:when>
9241			<xsl:when test="@svg:y or @svg:y1">
9242				<xsl:variable name="position_y">
9243					<xsl:choose>
9244						<xsl:when test="@svg:y">
9245							<xsl:value-of select="fun:Convert2uofUnit(@svg:y)"/>
9246						</xsl:when>
9247						<xsl:when test="@svg:y1">
9248							<xsl:variable name="svg_y1">
9249								<xsl:value-of select="fun:Convert2uofUnit(@svg:y1)"/>
9250							</xsl:variable>
9251							<xsl:variable name="svg_y2">
9252								<xsl:value-of select="fun:Convert2uofUnit(@svg:y2)"/>
9253							</xsl:variable>
9254							<xsl:choose>
9255								<xsl:when test="number($svg_y1) &lt; number($svg_y2)">
9256									<xsl:value-of select="$svg_y1"/>
9257								</xsl:when>
9258								<xsl:otherwise>
9259									<xsl:value-of select="$svg_y2"/>
9260								</xsl:otherwise>
9261							</xsl:choose>
9262						</xsl:when>
9263					</xsl:choose>
9264				</xsl:variable>
9265				<xsl:value-of select="$position_y"/>
9266			</xsl:when>
9267			<xsl:when test="name()='draw:g' and (./*[1]/@svg:y or ./*[1]/@svg:y1)">
9268				<xsl:choose>
9269					<xsl:when test="./*[1]/@svg:y">
9270						<xsl:value-of select="fun:Convert2uofUnit(./*[1]/@svg:y)"/>
9271					</xsl:when>
9272					<xsl:when test="./*[1]/@svg:y1">
9273						<xsl:value-of select="fun:Convert2uofUnit(./*[1]/@svg:y1)"/>
9274					</xsl:when>
9275				</xsl:choose>
9276			</xsl:when>
9277		</xsl:choose>
9278	</xsl:template>
9279	<xsl:template name="位置-anchor">
9280		<uof:位置_C620>
9281			<xsl:variable name="anchor_type">
9282				<xsl:choose>
9283					<xsl:when test="@text:anchor-type = 'paragraph'">paragraph</xsl:when>
9284					<xsl:when test="@text:anchor-type = 'char'">char</xsl:when>
9285					<xsl:when test="@text:anchor-type = 'as-char'">as-char</xsl:when>
9286					<xsl:when test="@text:anchor-type = 'page'">page</xsl:when>
9287					<xsl:when test="@text:anchor-type = 'frame'">textbox</xsl:when>
9288					<xsl:otherwise>paragraph</xsl:otherwise>
9289				</xsl:choose>
9290			</xsl:variable>
9291			<!--Schema 100520 中去掉了属性‘位置-类型’-->
9292			<xsl:if test="$documentType = 'text'">
9293				<xsl:attribute name="类型_C646"><xsl:value-of select="$anchor_type"/></xsl:attribute>
9294			</xsl:if>
9295			<xsl:if test="not(@text:anchor-type='as-char')">
9296				<uof:水平_4106>
9297					<xsl:if test="$documentType = 'text'">
9298						<xsl:for-each select="key('GraphStyle',@draw:style-name)/style:graphic-properties">
9299							<xsl:attribute name="相对于_410C"><xsl:choose><xsl:when test="@style:horizontal-rel='page'">page</xsl:when><xsl:when test="@style:horizontal-rel='paragraph'">column</xsl:when><xsl:when test="@style:horizontal-rel='page-content'">margin</xsl:when><xsl:when test="@style:horizontal-rel='paragraph-content'">column</xsl:when><xsl:when test="@style:horizontal-rel='char'">char</xsl:when><xsl:otherwise>column</xsl:otherwise></xsl:choose></xsl:attribute>
9300						</xsl:for-each>
9301					</xsl:if>
9302					<xsl:variable name="position_x">
9303						<xsl:call-template name="位置X-anchor"/>
9304					</xsl:variable>
9305					<xsl:choose>
9306						<xsl:when test="$position_x != '' and (key('GraphStyle',@draw:style-name)/style:graphic-properties/@style:horizontal-pos='from-left' or not(key('GraphStyle',@draw:style-name)/style:graphic-properties/@style:horizontal-pos)) and $documentType = 'text'">
9307							<uof:绝对_4107>
9308								<xsl:attribute name="值_4108"><xsl:value-of select="$position_x"/></xsl:attribute>
9309							</uof:绝对_4107>
9310						</xsl:when>
9311						<xsl:when test="$position_x != '' and $documentType != 'text'">
9312							<uof:绝对_4107>
9313								<xsl:attribute name="值_4108"><xsl:value-of select="$position_x"/></xsl:attribute>
9314							</uof:绝对_4107>
9315						</xsl:when>
9316						<xsl:otherwise>
9317							<uof:相对_4109>
9318								<xsl:for-each select="key('GraphStyle',@draw:style-name)/style:graphic-properties">
9319									<xsl:attribute name="参考点_410A"><xsl:choose><xsl:when test="@style:horizontal-pos='right'">right</xsl:when><xsl:when test="@style:horizontal-pos='center'">center</xsl:when><xsl:otherwise>left</xsl:otherwise></xsl:choose></xsl:attribute>
9320								</xsl:for-each>
9321							</uof:相对_4109>
9322						</xsl:otherwise>
9323					</xsl:choose>
9324				</uof:水平_4106>
9325				<uof:垂直_410D>
9326					<xsl:if test="$documentType = 'text'">
9327						<xsl:for-each select="key('GraphStyle',@draw:style-name)/style:graphic-properties">
9328							<xsl:attribute name="相对于_410C"><xsl:choose><xsl:when test="@style:vertical-rel='page'">page</xsl:when><xsl:when test="@style:vertical-rel='paragraph'">paragraph</xsl:when><xsl:when test="@style:vertical-rel='page-content'">margin</xsl:when><xsl:when test="@style:vertical-rel='line'">line</xsl:when><xsl:otherwise>paragraph</xsl:otherwise></xsl:choose></xsl:attribute>
9329						</xsl:for-each>
9330					</xsl:if>
9331					<xsl:variable name="position_y">
9332						<xsl:call-template name="位置Y-anchor"/>
9333					</xsl:variable>
9334					<xsl:choose>
9335						<xsl:when test="$position_y != '' and $documentType != 'text'">
9336							<uof:绝对_4107>
9337								<xsl:attribute name="值_4108"><xsl:value-of select="$position_y"/></xsl:attribute>
9338							</uof:绝对_4107>
9339						</xsl:when>
9340						<!--<xsl:when test="$position_y != '' and (key('GraphStyle',@draw:style-name)/style:graphic-properties/@style:vertical-pos='from-top' or key('GraphStyle',@draw:style-name)/style:graphic-properties/@style:vertical-pos='bottom') and key('GraphStyle',@draw:style-name)/style:graphic-properties/@style:vertical-rel='line'">-->
9341						<xsl:when test="$position_y != '' and key('GraphStyle',@draw:style-name)/style:graphic-properties/@style:vertical-pos='from-top' and key('GraphStyle',@draw:style-name)/style:graphic-properties/@style:vertical-rel='line' and $documentType = 'text'">
9342							<uof:绝对_4107>
9343								<xsl:attribute name="值_4108"><xsl:value-of select="$position_y"/></xsl:attribute>
9344							</uof:绝对_4107>
9345						</xsl:when>
9346						<xsl:when test="$position_y != '' and key('GraphStyle',@draw:style-name)/style:graphic-properties/@style:vertical-pos = 'from-top' and $documentType = 'text'">
9347							<uof:绝对_4107>
9348								<xsl:attribute name="值_4108"><xsl:value-of select="$position_y"/></xsl:attribute>
9349							</uof:绝对_4107>
9350						</xsl:when>
9351						<xsl:otherwise>
9352							<uof:相对_4109>
9353								<xsl:for-each select="key('GraphStyle',@draw:style-name)/style:graphic-properties">
9354									<xsl:attribute name="参考点_410A"><xsl:choose><xsl:when test="@style:vertical-pos='bottom'">bottom</xsl:when><xsl:when test="@style:vertical-pos='middle'">center</xsl:when><xsl:when test="@style:vertical-pos='below'">inside</xsl:when><xsl:otherwise>top</xsl:otherwise></xsl:choose></xsl:attribute>
9355								</xsl:for-each>
9356							</uof:相对_4109>
9357						</xsl:otherwise>
9358					</xsl:choose>
9359				</uof:垂直_410D>
9360			</xsl:if>
9361		</uof:位置_C620>
9362	</xsl:template>
9363	<xsl:template name="字:绕排-anchor">
9364		<xsl:variable name="wrap_type1">
9365			<xsl:value-of select="@style:wrap"/>
9366		</xsl:variable>
9367		<xsl:variable name="wrap_type2">
9368			<xsl:value-of select="@style:run-through"/>
9369		</xsl:variable>
9370		<xsl:variable name="wrap_type3">
9371			<xsl:value-of select="@style:wrap-contour-mode"/>
9372		</xsl:variable>
9373		<xsl:variable name="wrap_place">
9374			<xsl:value-of select="@style:wrap-contour"/>
9375		</xsl:variable>
9376		<xsl:if test="$wrap_type1 or $wrap_type2 or $wrap_type3 or $wrap_place">
9377			<uof:绕排_C622>
9378				<xsl:choose>
9379					<xsl:when test="$wrap_type1='run-through' and $wrap_type2='background' ">
9380						<xsl:attribute name="绕排方式_C623">behind-text</xsl:attribute>
9381					</xsl:when>
9382					<xsl:when test="$wrap_type1='run-through'">
9383						<xsl:attribute name="绕排方式_C623">infront-of-text</xsl:attribute>
9384					</xsl:when>
9385					<xsl:when test="$wrap_place='false'">
9386						<xsl:attribute name="绕排方式_C623">square</xsl:attribute>
9387					</xsl:when>
9388					<xsl:when test="$wrap_type3='outside' and $wrap_place='true'">
9389						<xsl:attribute name="绕排方式_C623">tight</xsl:attribute>
9390					</xsl:when>
9391					<xsl:when test="$wrap_type3='full' and $wrap_place='true'">
9392						<xsl:attribute name="绕排方式_C623">through</xsl:attribute>
9393					</xsl:when>
9394					<xsl:when test="$wrap_type1='none' ">
9395						<xsl:attribute name="绕排方式_C623">top-bottom</xsl:attribute>
9396					</xsl:when>
9397				</xsl:choose>
9398				<xsl:choose>
9399					<xsl:when test="$wrap_type1='right'">
9400						<xsl:attribute name="环绕文字_C624">right</xsl:attribute>
9401					</xsl:when>
9402					<xsl:when test="$wrap_type1='left'">
9403						<xsl:attribute name="环绕文字_C624">left</xsl:attribute>
9404					</xsl:when>
9405					<xsl:when test="$wrap_type1='parallel'">
9406						<xsl:attribute name="环绕文字_C624">both</xsl:attribute>
9407					</xsl:when>
9408					<xsl:when test="$wrap_type1='dynamic'">
9409						<xsl:attribute name="环绕文字_C624">largest</xsl:attribute>
9410					</xsl:when>
9411				</xsl:choose>
9412			</uof:绕排_C622>
9413		</xsl:if>
9414	</xsl:template>
9415	<xsl:template name="字:边距-anchor">
9416		<uof:边距_C628>
9417			<xsl:choose>
9418				<xsl:when test="@fo:margin-top">
9419					<xsl:attribute name="上_C609"><xsl:value-of select="fun:Convert2uofUnit(@fo:margin-top)"/></xsl:attribute>
9420					<xsl:attribute name="下_C60B"><xsl:value-of select="fun:Convert2uofUnit(@fo:margin-bottom)"/></xsl:attribute>
9421				</xsl:when>
9422				<xsl:when test="../@style:parent-style-name = 'Frame'">
9423					<xsl:attribute name="上_C609"><xsl:value-of select="fun:Convert2uofUnit(/office:document/office:styles/style:style[@style:name = 'Frame']/style:graphic-properties/@fo:margin-top)"/></xsl:attribute>
9424					<xsl:attribute name="下_C60B"><xsl:value-of select="fun:Convert2uofUnit(/office:document/office:styles/style:style[@style:name = 'Frame']/style:graphic-properties/@fo:margin-bottom)"/></xsl:attribute>
9425				</xsl:when>
9426				<!--xsl:otherwise>
9427					<xsl:attribute name="上_C609">0.0</xsl:attribute>
9428					<xsl:attribute name="下_C60B">0.0</xsl:attribute>
9429				</xsl:otherwise-->
9430			</xsl:choose>
9431			<xsl:choose>
9432				<xsl:when test="@fo:margin-right">
9433					<xsl:attribute name="右_C60A"><xsl:value-of select="fun:Convert2uofUnit(@fo:margin-right)"/></xsl:attribute>
9434					<xsl:attribute name="左_C608"><xsl:value-of select="fun:Convert2uofUnit(@fo:margin-left)"/></xsl:attribute>
9435				</xsl:when>
9436				<xsl:when test="../@style:parent-style-name = 'Frame'">
9437					<xsl:attribute name="右_C60A"><xsl:value-of select="fun:Convert2uofUnit(/office:document/office:styles/style:style[@style:name = 'Frame']/style:graphic-properties/@fo:margin-right)"/></xsl:attribute>
9438					<xsl:attribute name="左_C608"><xsl:value-of select="fun:Convert2uofUnit(/office:document/office:styles/style:style[@style:name = 'Frame']/style:graphic-properties/@fo:margin-left)"/></xsl:attribute>
9439				</xsl:when>
9440				<!--xsl:otherwise>
9441					<xsl:attribute name="右_C60A">0.0</xsl:attribute>
9442					<xsl:attribute name="左_C608">0.0</xsl:attribute>
9443				</xsl:otherwise-->
9444			</xsl:choose>
9445		</uof:边距_C628>
9446	</xsl:template>
9447	<xsl:template name="字:锁定-anchor">
9448		<uof:是否锁定_C629>
9449			<xsl:choose>
9450				<xsl:when test="@draw:move-protect='false'">false</xsl:when>
9451				<xsl:otherwise>true</xsl:otherwise>
9452			</xsl:choose>
9453		</uof:是否锁定_C629>
9454	</xsl:template>
9455	<xsl:template name="字:保护-anchor">
9456		<xsl:param name="objectname"/>
9457		<uof:保护_C62A>
9458			<xsl:choose>
9459				<xsl:when test="$objectname='draw:image' or $objectname='draw:text-box'">
9460					<xsl:attribute name="大小_C643"><xsl:choose><xsl:when test="@style:protect = 'content size position' or @style:protect = 'content' or @style:protect = 'content size'  or @style:protect = 'size position' or @style:protect = 'size' or @style:protect = 'position' or @style:protect = 'content position' and @draw:size-protect= 'true'and @draw:move-protect= 'true'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
9461				</xsl:when>
9462				<xsl:otherwise>
9463					<xsl:attribute name="大小_C643"><xsl:choose><xsl:when test="@style:protect = 'position size'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
9464				</xsl:otherwise>
9465			</xsl:choose>
9466		</uof:保护_C62A>
9467	</xsl:template>
9468	<xsl:template name="graphic-properties-anchor">
9469		<xsl:variable name="objectname">
9470			<xsl:value-of select="name(.)"/>
9471		</xsl:variable>
9472		<xsl:for-each select="key('GraphStyle',@draw:style-name)/style:graphic-properties">
9473			<xsl:call-template name="字:绕排-anchor"/>
9474			<xsl:call-template name="字:边距-anchor"/>
9475			<xsl:call-template name="字:锁定-anchor"/>
9476			<xsl:call-template name="字:保护-anchor">
9477				<xsl:with-param name="objectname" select="$objectname"/>
9478			</xsl:call-template>
9479		</xsl:for-each>
9480	</xsl:template>
9481	<xsl:template name="textshape">
9482		<xsl:if test="not(name(.)='draw:glue-point')">
9483			<xsl:choose>
9484				<xsl:when test="name(.) = 'draw:a'">
9485					<xsl:for-each select="child::node( )">
9486						<xsl:call-template name="textshape"/>
9487					</xsl:for-each>
9488				</xsl:when>
9489				<xsl:otherwise>
9490					<!--uof:锚点_C644>
9491						<xsl:choose>
9492							<xsl:when test="@draw:id">
9493								<xsl:attribute name="图形引用_C62E"><xsl:value-of select="@draw:id"/></xsl:attribute>
9494							</xsl:when>
9495							<xsl:otherwise>
9496								<xsl:attribute name="图形引用_C62E"><xsl:value-of select="generate-id(.)"/></xsl:attribute>
9497							</xsl:otherwise>
9498						</xsl:choose>
9499						<uof:大小_C621>
9500							<xsl:variable name="object_width">
9501								<xsl:call-template name="宽度-anchor"/>
9502							</xsl:variable>
9503							<xsl:if test="$object_width !=''">
9504								<xsl:attribute name="宽_C605"><xsl:value-of select="$object_width"/></xsl:attribute>
9505							</xsl:if>
9506							<xsl:variable name="object_height">
9507								<xsl:call-template name="高度-anchor"/>
9508							</xsl:variable>
9509							<xsl:if test="$object_height !=''">
9510								<xsl:attribute name="长_C604"><xsl:value-of select="$object_height"/></xsl:attribute>
9511							</xsl:if>
9512						</uof:大小_C621>
9513						<xsl:call-template name="字:位置-anchor"/>
9514						<xsl:call-template name="graphic-properties-anchor"/>
9515						<xsl:if test="key('GraphStyle',@draw:style-name)/style:graphic-properties/@style:allowoverlap">
9516							<uof:是否允许重叠_C62B>
9517								<xsl:for-each select="key('GraphStyle',@draw:style-name)/style:graphic-properties">
9518									<xsl:value-of select="@style:allowoverlap"/>
9519								</xsl:for-each>
9520							</uof:是否允许重叠_C62B>
9521						</xsl:if>
9522					</uof:锚点_C644-->
9523					<xsl:call-template name="UOFAnchor">
9524						<!--xsl:with-param name="anchor_name1" select="'uof:锚点_C644'"/-->
9525					</xsl:call-template>
9526				</xsl:otherwise>
9527			</xsl:choose>
9528		</xsl:if>
9529	</xsl:template>
9530	<xsl:template name="arc">
9531		<xsl:param name="draw_transform"/>
9532		<xsl:value-of select="substring-before(substring-after($draw_transform, 'rotate ('), ')')"/>
9533	</xsl:template>
9534	<!--此为正弦函数的模板,即sin(x)。-->
9535	<!--x取值不能太大,否则会发生浮点运算溢出。-->
9536	<!--正弦函数展开式:sin(x) = x - x^3 / 3! + x^5 / 5! - ... +(-1)^(n-1) * x^(2 * n - 1) / (2 * n - 1) + ...-->
9537	<xsl:template name="sin">
9538		<xsl:param name="arc"/>
9539		<xsl:param name="n">
9540			<xsl:value-of select="'1'"/>
9541		</xsl:param>
9542		<xsl:param name="result"/>
9543		<xsl:choose>
9544			<xsl:when test="$n = '1'">
9545				<xsl:call-template name="sin">
9546					<xsl:with-param name="arc">
9547						<xsl:value-of select="$arc"/>
9548					</xsl:with-param>
9549					<xsl:with-param name="n">
9550						<xsl:value-of select="$n + 1"/>
9551					</xsl:with-param>
9552					<xsl:with-param name="result">
9553						<xsl:value-of select="$arc"/>
9554					</xsl:with-param>
9555				</xsl:call-template>
9556			</xsl:when>
9557			<xsl:when test="($n mod 2) = 0">
9558				<xsl:variable name="NPowerOfArc">
9559					<xsl:call-template name="power">
9560						<xsl:with-param name="x">
9561							<xsl:value-of select="$arc"/>
9562						</xsl:with-param>
9563						<xsl:with-param name="n">
9564							<xsl:value-of select="2 * $n - 1"/>
9565						</xsl:with-param>
9566					</xsl:call-template>
9567				</xsl:variable>
9568				<xsl:variable name="NFactorial">
9569					<xsl:call-template name="factorial">
9570						<xsl:with-param name="n">
9571							<xsl:value-of select="2 * $n - 1"/>
9572						</xsl:with-param>
9573					</xsl:call-template>
9574				</xsl:variable>
9575				<xsl:variable name="factor">
9576					<xsl:value-of select="$NPowerOfArc div $NFactorial"/>
9577				</xsl:variable>
9578				<xsl:choose>
9579					<xsl:when test="$factor &gt; -0.0000001 and $factor &lt; 0.0000001">
9580						<xsl:value-of select="$result - $factor"/>
9581					</xsl:when>
9582					<xsl:otherwise>
9583						<xsl:call-template name="sin">
9584							<xsl:with-param name="arc">
9585								<xsl:value-of select="$arc"/>
9586							</xsl:with-param>
9587							<xsl:with-param name="n">
9588								<xsl:value-of select="$n + 1"/>
9589							</xsl:with-param>
9590							<xsl:with-param name="result">
9591								<xsl:value-of select="$result - $factor"/>
9592							</xsl:with-param>
9593						</xsl:call-template>
9594					</xsl:otherwise>
9595				</xsl:choose>
9596			</xsl:when>
9597			<xsl:when test="($n mod 2) = 1">
9598				<xsl:variable name="NPowerOfArc">
9599					<xsl:call-template name="power">
9600						<xsl:with-param name="x">
9601							<xsl:value-of select="$arc"/>
9602						</xsl:with-param>
9603						<xsl:with-param name="n">
9604							<xsl:value-of select="2 * $n - 1"/>
9605						</xsl:with-param>
9606					</xsl:call-template>
9607				</xsl:variable>
9608				<xsl:variable name="NFactorial">
9609					<xsl:call-template name="factorial">
9610						<xsl:with-param name="n">
9611							<xsl:value-of select="2 * $n - 1"/>
9612						</xsl:with-param>
9613					</xsl:call-template>
9614				</xsl:variable>
9615				<xsl:variable name="factor">
9616					<xsl:value-of select="$NPowerOfArc div $NFactorial"/>
9617				</xsl:variable>
9618				<xsl:choose>
9619					<xsl:when test="$factor &gt; -0.0000001 and $factor &lt; 0.0000001">
9620						<xsl:value-of select="$result + $factor"/>
9621					</xsl:when>
9622					<xsl:otherwise>
9623						<xsl:call-template name="sin">
9624							<xsl:with-param name="arc">
9625								<xsl:value-of select="$arc"/>
9626							</xsl:with-param>
9627							<xsl:with-param name="n">
9628								<xsl:value-of select="$n + 1"/>
9629							</xsl:with-param>
9630							<xsl:with-param name="result">
9631								<xsl:value-of select="$result + $factor"/>
9632							</xsl:with-param>
9633						</xsl:call-template>
9634					</xsl:otherwise>
9635				</xsl:choose>
9636			</xsl:when>
9637		</xsl:choose>
9638	</xsl:template>
9639	<!--此为余弦函数的模板,即cos(x)。-->
9640	<!--x取值不能太大,否则会发生浮点运算溢出。-->
9641	<!--余弦函数展开式:cos(x) = 1 - x^2 / 2! + x^4 / 4! - ... + (-1)^n * x^(2 * n) / (2 * n)! + ...-->
9642	<xsl:template name="cos">
9643		<xsl:param name="arc"/>
9644		<xsl:param name="n">
9645			<xsl:value-of select="'0'"/>
9646		</xsl:param>
9647		<xsl:param name="result"/>
9648		<xsl:choose>
9649			<xsl:when test="$n = '0'">
9650				<xsl:call-template name="cos">
9651					<xsl:with-param name="arc">
9652						<xsl:value-of select="$arc"/>
9653					</xsl:with-param>
9654					<xsl:with-param name="n">
9655						<xsl:value-of select="$n + 1"/>
9656					</xsl:with-param>
9657					<xsl:with-param name="result">
9658						<xsl:value-of select="1"/>
9659					</xsl:with-param>
9660				</xsl:call-template>
9661			</xsl:when>
9662			<xsl:when test="($n mod 2) = 0">
9663				<xsl:variable name="NPowerOfArc">
9664					<xsl:call-template name="power">
9665						<xsl:with-param name="x">
9666							<xsl:value-of select="$arc"/>
9667						</xsl:with-param>
9668						<xsl:with-param name="n">
9669							<xsl:value-of select="2 * $n"/>
9670						</xsl:with-param>
9671					</xsl:call-template>
9672				</xsl:variable>
9673				<xsl:variable name="NFactorial">
9674					<xsl:call-template name="factorial">
9675						<xsl:with-param name="n">
9676							<xsl:value-of select="2 * $n"/>
9677						</xsl:with-param>
9678					</xsl:call-template>
9679				</xsl:variable>
9680				<xsl:variable name="factor">
9681					<xsl:value-of select="$NPowerOfArc div $NFactorial"/>
9682				</xsl:variable>
9683				<xsl:choose>
9684					<xsl:when test="$factor &gt; -0.0000001 and $factor &lt; 0.0000001">
9685						<xsl:value-of select="$result + $factor"/>
9686					</xsl:when>
9687					<xsl:otherwise>
9688						<xsl:call-template name="cos">
9689							<xsl:with-param name="arc">
9690								<xsl:value-of select="$arc"/>
9691							</xsl:with-param>
9692							<xsl:with-param name="n">
9693								<xsl:value-of select="$n + 1"/>
9694							</xsl:with-param>
9695							<xsl:with-param name="result">
9696								<xsl:value-of select="$result + $factor"/>
9697							</xsl:with-param>
9698						</xsl:call-template>
9699					</xsl:otherwise>
9700				</xsl:choose>
9701			</xsl:when>
9702			<xsl:when test="($n mod 2) = 1">
9703				<xsl:variable name="NPowerOfArc">
9704					<xsl:call-template name="power">
9705						<xsl:with-param name="x">
9706							<xsl:value-of select="$arc"/>
9707						</xsl:with-param>
9708						<xsl:with-param name="n">
9709							<xsl:value-of select="2 * $n"/>
9710						</xsl:with-param>
9711					</xsl:call-template>
9712				</xsl:variable>
9713				<xsl:variable name="NFactorial">
9714					<xsl:call-template name="factorial">
9715						<xsl:with-param name="n">
9716							<xsl:value-of select="2 * $n"/>
9717						</xsl:with-param>
9718					</xsl:call-template>
9719				</xsl:variable>
9720				<xsl:variable name="factor">
9721					<xsl:value-of select="$NPowerOfArc div $NFactorial"/>
9722				</xsl:variable>
9723				<xsl:choose>
9724					<xsl:when test="$factor &gt; -0.0000001 and $factor &lt; 0.0000001 ">
9725						<xsl:value-of select="$result - $factor"/>
9726					</xsl:when>
9727					<xsl:otherwise>
9728						<xsl:call-template name="cos">
9729							<xsl:with-param name="arc">
9730								<xsl:value-of select="$arc"/>
9731							</xsl:with-param>
9732							<xsl:with-param name="n">
9733								<xsl:value-of select="$n + 1"/>
9734							</xsl:with-param>
9735							<xsl:with-param name="result">
9736								<xsl:value-of select="$result - $factor"/>
9737							</xsl:with-param>
9738						</xsl:call-template>
9739					</xsl:otherwise>
9740				</xsl:choose>
9741			</xsl:when>
9742		</xsl:choose>
9743	</xsl:template>
9744	<xsl:template name="power">
9745		<xsl:param name="x"/>
9746		<xsl:param name="n"/>
9747		<xsl:param name="i">
9748			<xsl:value-of select="1"/>
9749		</xsl:param>
9750		<xsl:param name="result">
9751			<xsl:value-of select="1"/>
9752		</xsl:param>
9753		<xsl:choose>
9754			<xsl:when test="$n = 0">
9755				<xsl:value-of select="1"/>
9756			</xsl:when>
9757			<xsl:when test="$i = 1">
9758				<xsl:choose>
9759					<xsl:when test="$n = 1">
9760						<xsl:value-of select="$x"/>
9761					</xsl:when>
9762					<xsl:otherwise>
9763						<xsl:call-template name="power">
9764							<xsl:with-param name="x">
9765								<xsl:value-of select="$x"/>
9766							</xsl:with-param>
9767							<xsl:with-param name="n">
9768								<xsl:value-of select="$n"/>
9769							</xsl:with-param>
9770							<xsl:with-param name="i">
9771								<xsl:value-of select="$i + 1"/>
9772							</xsl:with-param>
9773							<xsl:with-param name="result">
9774								<xsl:value-of select="$x"/>
9775							</xsl:with-param>
9776						</xsl:call-template>
9777					</xsl:otherwise>
9778				</xsl:choose>
9779			</xsl:when>
9780			<xsl:when test="$i = $n">
9781				<xsl:value-of select="$result * $x"/>
9782			</xsl:when>
9783			<xsl:otherwise>
9784				<xsl:call-template name="power">
9785					<xsl:with-param name="x">
9786						<xsl:value-of select="$x"/>
9787					</xsl:with-param>
9788					<xsl:with-param name="n">
9789						<xsl:value-of select="$n"/>
9790					</xsl:with-param>
9791					<xsl:with-param name="i">
9792						<xsl:value-of select="$i + 1"/>
9793					</xsl:with-param>
9794					<xsl:with-param name="result">
9795						<xsl:value-of select="$result * $x"/>
9796					</xsl:with-param>
9797				</xsl:call-template>
9798			</xsl:otherwise>
9799		</xsl:choose>
9800	</xsl:template>
9801	<!--此模板计算阶乘,即n!-->
9802	<xsl:template name="factorial">
9803		<xsl:param name="n"/>
9804		<xsl:param name="i">
9805			<xsl:value-of select="1"/>
9806		</xsl:param>
9807		<xsl:param name="result">
9808			<xsl:value-of select="1"/>
9809		</xsl:param>
9810		<xsl:choose>
9811			<xsl:when test="$n = 0">
9812				<xsl:value-of select="1"/>
9813			</xsl:when>
9814			<xsl:when test="$i = 1">
9815				<xsl:choose>
9816					<xsl:when test="$n = 1">
9817						<xsl:value-of select="1"/>
9818					</xsl:when>
9819					<xsl:otherwise>
9820						<xsl:call-template name="factorial">
9821							<xsl:with-param name="n">
9822								<xsl:value-of select="$n"/>
9823							</xsl:with-param>
9824							<xsl:with-param name="i">
9825								<xsl:value-of select="$i + 1"/>
9826							</xsl:with-param>
9827							<xsl:with-param name="result">
9828								<xsl:value-of select="1"/>
9829							</xsl:with-param>
9830						</xsl:call-template>
9831					</xsl:otherwise>
9832				</xsl:choose>
9833			</xsl:when>
9834			<xsl:when test="$i = $n">
9835				<xsl:value-of select="$result * $i"/>
9836			</xsl:when>
9837			<xsl:otherwise>
9838				<xsl:call-template name="factorial">
9839					<xsl:with-param name="n">
9840						<xsl:value-of select="$n"/>
9841					</xsl:with-param>
9842					<xsl:with-param name="i">
9843						<xsl:value-of select="$i + 1"/>
9844					</xsl:with-param>
9845					<xsl:with-param name="result">
9846						<xsl:value-of select="$result * $i"/>
9847					</xsl:with-param>
9848				</xsl:call-template>
9849			</xsl:otherwise>
9850		</xsl:choose>
9851	</xsl:template>
9852	<xsl:template name="sw-BookMarks">
9853		<xsl:if test="/office:document/office:body/office:text/text:p/text:bookmark-start|/office:document/office:body/office:text/text:p/text:bookmark">
9854			<xsl:for-each select="/office:document/office:body/office:text/text:p/text:bookmark-start|/office:document/office:body/office:text/text:p/text:bookmark">
9855				<书签:书签_9105>
9856					<xsl:attribute name="名称_9103"><xsl:value-of select="@text:name"/></xsl:attribute>
9857					<书签:区域_9100>
9858						<xsl:attribute name="区域引用_41CE"><xsl:value-of select="@text:name"/></xsl:attribute>
9859					</书签:区域_9100>
9860				</书签:书签_9105>
9861			</xsl:for-each>
9862		</xsl:if>
9863	</xsl:template>
9864	<xsl:template name="UserDataSet">
9865		<uof:用户数据集>
9866			<uof:用户数据>
9867				<xsl:for-each select="/office:document/office:body/office:text//office:annotation[contains(dc:creator,'__@*Start@')]">
9868					<xsl:call-template name="UOFRelation"/>
9869				</xsl:for-each>
9870			</uof:用户数据>
9871		</uof:用户数据集>
9872	</xsl:template>
9873	<!--公文域有命名规则和节点路径,该部分信息分别保存在uof:关系中-->
9874	<xsl:template name="UOFRelation">
9875		<uof:关系 uof:名称="{text:p}">
9876			<xsl:variable name="fieldPath">
9877				<xsl:call-template name="UOF_docFieldNodePath">
9878					<xsl:with-param name="aName" select="text:p"/>
9879				</xsl:call-template>
9880			</xsl:variable>
9881			<xsl:if test="$fieldPath">
9882				<uof:用户XML uof:节点路径="{$fieldPath}"/>
9883			</xsl:if>
9884			<uof:UOF uof:用户数据引用="{concat('cmt',generate-id(.))}"/>
9885		</uof:关系>
9886	</xsl:template>
9887	<xsl:template name="UOF_docFieldNodePath">
9888		<xsl:param name="aName"/>
9889		<xsl:param name="i"/>
9890		<xsl:choose>
9891			<xsl:when test="$aName='fenshuxuhao' or $aName='h_count' or $aName='份数序号'">/公文体/眉首/份数序号</xsl:when>
9892			<xsl:when test="$aName='mimidengji' or $aName='h_sLevel' or $aName='秘密等级'">/公文体/眉首/秘密等级</xsl:when>
9893			<xsl:when test="$aName='baomiqixian' or $aName='h_sTime' or $aName='保密期限'">/公文体/眉首/保密期限</xsl:when>
9894			<xsl:when test="$aName='jinjiqixian' or $aName='h_eDegree' or $aName='紧急程度'">/公文体/眉首/紧急程度</xsl:when>
9895			<xsl:when test="starts-with($aName,'fawenjiguanmingcheng') or $aName='h_oName' or starts-with($aName,'发文机关名称')">/公文体/眉首/发文机关标识/发文机关名称<xsl:if test="substring-after($aName,'fawenjiguanmingcheng_')">
9896					<xsl:value-of select="concat('[',substring-after($aName,'fawenjiguanmingcheng_'),']')"/>
9897				</xsl:if>
9898				<xsl:if test="substring-after($aName,'发文机关名称_')">
9899					<xsl:value-of select="concat('[',substring-after($aName,'发文机关名称_'),']')"/>
9900				</xsl:if>
9901			</xsl:when>
9902			<xsl:when test="$aName='biaoshihouzhuei' or $aName='h_idSuffix' or $aName='发文机关标识后缀'">/公文体/眉首/发文机关标识/标识后缀</xsl:when>
9903			<xsl:when test="$aName='fawenjiguandaizi' or $aName='h_sender' or $aName='发文机关代字'">/公文体/眉首/发文字号/发文机关代字</xsl:when>
9904			<xsl:when test="$aName='fawennianhao' or $aName='h_oYear' or $aName='发文年号'">/公文体/眉首/发文字号/发文年号</xsl:when>
9905			<xsl:when test="$aName='fawenxuhao' or $aName='h_oSequence' or $aName='发文序号'">/公文体/眉首/发文字号/发文序号</xsl:when>
9906			<xsl:when test="starts-with($aName,'qianfaren') or $aName='h_signer' or starts-with($aName,'签发人')">/公文体/眉首/签发人<xsl:if test="substring-after($aName,'qianfaren_')">
9907					<xsl:value-of select="concat('[',substring-after($aName,'qianfaren_'),']')"/>
9908				</xsl:if>
9909				<xsl:if test="substring-after($aName,'签发人_')">
9910					<xsl:value-of select="concat('[',substring-after($aName,'签发人_'),']')"/>
9911				</xsl:if>
9912			</xsl:when>
9913			<!--end of header-->
9914			<!--冲突"标题"-->
9915			<xsl:when test="starts-with($aName,'biaotizhu')">公文体/主体/正文<xsl:if test="substring-before(substring-after($aName,'biaotizhu_'),'_')">
9916					<xsl:value-of select="concat('[',substring-before(substring-after($aName,'biaotizhu_'),'_'),']')"/>
9917				</xsl:if>/表格<xsl:if test="substring-after(substring-after($aName,'biaotizhu_'),'_')">
9918					<xsl:value-of select="concat('[',substring-after(substring-after($aName,'biaotizhu_'),'_'),']')"/>
9919				</xsl:if>/表说明/表序</xsl:when>
9920			<xsl:when test="$aName='biaoti' or $aName='b_title' or $aName='标题'">/公文体/主体/标题</xsl:when>
9921			<xsl:when test="starts-with($aName,'zhusongjiguan') or $aName='b_sender' or starts-with($aName,'主送机关')">/公文体/主体/主送机关<xsl:if test="substring-after($aName,'zhusongjiguan_')">
9922					<xsl:value-of select="substring-after($aName,'zhusongjiguan_')"/>
9923				</xsl:if>
9924				<xsl:if test="substring-after($aName,'主送机关_')">
9925					<xsl:value-of select="substring-after($aName,'主送机关_')"/>
9926				</xsl:if>
9927			</xsl:when>
9928			<xsl:when test="starts-with($aName,'ziranduan') or starts-with($aName,'b_paragraph') or starts-with($aName,'正文段落')">/公文体/主体/正文<xsl:if test="substring-before(substring-after($aName,'ziranduan_'),'_')">
9929					<xsl:value-of select="concat('[',substring-before(substring-after($aName,'ziranduan_'),'_'),']')"/>
9930				</xsl:if>/自然段<xsl:if test="substring-after(substring-after($aName,'ziranduan_'),'_')">
9931					<xsl:value-of select="concat('[',substring-after(substring-after($aName,'ziranduan_'),'_'),']')"/>
9932				</xsl:if>
9933			</xsl:when>
9934			<xsl:when test="starts-with($aName,'biaoge') or starts-with($aName,'b_table') or starts-with($aName,'正文表格')">/公文体/主体/正文<xsl:if test="substring-before(substring-after($aName,'biaoge_'),'_')">
9935					<xsl:value-of select="concat('[',substring-before(substring-after($aName,'biaoge_'),'_'),']')"/>
9936				</xsl:if>/表格<xsl:if test="substring-after(substring-after($aName,'biaoge_'),'_')">
9937					<xsl:value-of select="concat('[',substring-after(substring-after($aName,'biaoge_'),'_'),']')"/>
9938				</xsl:if>
9939			</xsl:when>
9940			<xsl:when test="starts-with($aName,'biaogeziranduan')">公文体/主体/正文<xsl:if test="substring-before(substring-after($aName,'biaogeziranduan_'),'_')">
9941					<xsl:value-of select="concat('[',substring-before(substring-after($aName,'biaogeziranduan_'),'_'),']')"/>
9942				</xsl:if>/表格<xsl:if test="substring-before(substring-after(substring-after($aName,'biaogeziranduan_'),'_'),'_')">
9943					<xsl:value-of select="concat('[',substring-before(substring-after(substring-after($aName,'biaogeziranduan_'),'_'),'_'),']')"/>
9944				</xsl:if>/表行<xsl:if test="substring-before(substring-after(substring-after(substring-after($aName,'biaogeziranduan_'),'_'),'_'),'_')">
9945					<xsl:value-of select="concat('[',substring-before(substring-after(substring-after(substring-after($aName,'biaogeziranduan_'),'_'),'_'),'_'),']')"/>
9946				</xsl:if>/表单元格<xsl:if test="substring-before(substring-after(substring-after(substring-after(substring-after($aName,'biaogeziranduan_'),'_'),'_'),'_'),'_')">
9947					<xsl:value-of select="concat('[',substring-before(substring-after(substring-after(substring-after(substring-after($aName,'biaogeziranduan_'),'_'),'_'),'_'),'_'),']')"/>
9948				</xsl:if>/自然段<xsl:if test="substring-after(substring-after(substring-after(substring-after(substring-after($aName,'biaogeziranduan_'),'_'),'_'),'_'),'_')">
9949					<xsl:value-of select="concat('[',substring-after(substring-after(substring-after(substring-after(substring-after($aName,'biaogeziranduan_'),'_'),'_'),'_'),'_'),']')"/>
9950				</xsl:if>
9951			</xsl:when>
9952			<xsl:when test="starts-with($aName,'tu') or starts-with($aName,'b_picture') or starts-with($aName,'正文图')">/公文体/主体/正文<xsl:if test="substring-before(substring-after($aName,'tu_'),'_')">
9953					<xsl:value-of select="concat('[',substring-before(substring-after($aName,'tu_'),'_'),']')"/>
9954				</xsl:if>/图<xsl:if test="substring-after(substring-after($aName,'tu_'),'_')">
9955					<xsl:value-of select="concat('[',substring-after(substring-after($aName,'tu_'),'_'),']')"/>
9956				</xsl:if>
9957			</xsl:when>
9958			<xsl:when test="starts-with($aName,'biaoxu')">公文体/主体/正文<xsl:if test="substring-before(substring-after($aName,'biaoxu_'),'_')">
9959					<xsl:value-of select="concat('[',substring-before(substring-after($aName,'biaoxu_'),'_'),']')"/>
9960				</xsl:if>/表格<xsl:if test="substring-after(substring-after($aName,'biaoxu_'),'_')">
9961					<xsl:value-of select="concat('[',substring-after(substring-after($aName,'biaoxu_'),'_'),']')"/>
9962				</xsl:if>/表说明/表序</xsl:when>
9963			<xsl:when test="starts-with($aName,'tuxu')">公文体/主体/正文<xsl:if test="substring-before(substring-after($aName,'tuxu_'),'_')">
9964					<xsl:value-of select="concat('[',substring-before(substring-after($aName,'tuxu_'),'_'),']')"/>
9965				</xsl:if>/图<xsl:if test="substring-after(substring-after($aName,'tuxu_'),'_')">
9966					<xsl:value-of select="concat('[',substring-after(substring-after($aName,'tuxu_'),'_'),']')"/>
9967				</xsl:if>/图说明/图序</xsl:when>
9968			<xsl:when test="starts-with($aName,'tutizhu')">公文体/主体/正文<xsl:if test="substring-before(substring-after($aName,'tutizhu_'),'_')">
9969					<xsl:value-of select="concat('[',substring-before(substring-after($aName,'tutizhu_'),'_'),']')"/>
9970				</xsl:if>/图<xsl:if test="substring-after(substring-after($aName,'tutizhu_'),'_')">
9971					<xsl:value-of select="concat('[',substring-after(substring-after($aName,'tutizhu_'),'_'),']')"/>
9972				</xsl:if>/图说明/图题</xsl:when>
9973			<xsl:when test="starts-with($aName,'fujianwenjianming') or starts-with($aName,'b_attach') or starts-with($aName,'附件')">/公文体/主体/附件<xsl:if test="substring-after($aName,'fujianwenjianming_')">
9974					<xsl:value-of select="concat('[',substring-after($aName,'fujianwenjianming_'),']')"/>
9975				</xsl:if>/文件名</xsl:when>
9976			<xsl:when test="starts-with($aName,'awenjiguanshuming') or starts-with($aName,'b_oName') or starts-with($aName,'发文机关署名')">/公文体/主体/公文生效标识/发文机关署名<xsl:if test="substring-after($aName,'fawenjiguanshuming_')">
9977					<xsl:value-of select="concat('[',substring-after($aName,'fawenjiguanshuming_'),']')"/>
9978				</xsl:if>
9979			</xsl:when>
9980			<xsl:when test="starts-with($aName,'fawenjiguanyinzhang') or starts-with($aName,'b_oSeal') or starts-with($aName,'发文机关印章')">/公文体/主体/公文生效标识/发文机关印章<xsl:if test="substring-after($aName,'fawenjiguanyinzhang_')">
9981					<xsl:value-of select="concat('[',substring-after($aName,'fawenjiguanyinzhang_'),']')"/>
9982				</xsl:if>
9983			</xsl:when>
9984			<xsl:when test="starts-with($aName,'qianfarenzhiwu') or starts-with($aName,'b_sTitle') or starts-with($aName,'签发人职务')">/公文体/主体/公文生效标识/签发人职务<xsl:if test="substring-after($aName,'qianfarenzhiwu_')">
9985					<xsl:value-of select="concat('[',substring-after($aName,'qianfarenzhiwu_'),']')"/>
9986				</xsl:if>
9987			</xsl:when>
9988			<xsl:when test="starts-with($aName,'qianfarenmingzhang') or starts-with($aName,'b_sSeal') or starts-with($aName,'签发人名章')">/公文体/主体/公文生效标识/签发人名章<xsl:if test="substring-after($aName,'qianfarenmingzhang_')">
9989					<xsl:value-of select="concat('[',substring-after($aName,'qianfarenmingzhang_'),']')"/>
9990				</xsl:if>
9991			</xsl:when>
9992			<xsl:when test="$aName='chengwenriqi' or $aName='b_pDate' or $aName='成文日期'">/公文体/主体/成文日期</xsl:when>
9993			<xsl:when test="$aName='yinfachuandafanwei' or $aName='b_scope' or $aName='印发传达范围'">/公文体/主体/印发传达范围</xsl:when>
9994			<xsl:when test="$aName='fuzhu' or $aName='b_annotations' or $aName='附注'">/公文体/主体/附注</xsl:when>
9995			<!--end of body-->
9996			<xsl:when test="starts-with($aName,'cimu') or starts-with($aName,'e_subject') or starts-with($aName,'主题词')">/公文体/版记/主题词/词目<xsl:if test="substring-after($aName,'cimu_')">
9997					<xsl:value-of select="concat('[',substring-after($aName,'cimu_'),']')"/>
9998				</xsl:if>
9999			</xsl:when>
10000			<xsl:when test="starts-with($aName,'chaosongjiguan') or starts-with($aName,'e_dOrg') or starts-with($aName,'抄送机关')">/公文体/版记/抄送机关<xsl:if test="substring-after($aName,'chaosongjiguan_')">
10001					<xsl:value-of select="concat('[',substring-after($aName,'chaosongjiguan_'),']')"/>
10002				</xsl:if>
10003			</xsl:when>
10004			<xsl:when test="starts-with($aName,'chaosongleibie')">/公文体/版记/抄送机关/@抄送类别</xsl:when>
10005			<xsl:when test="starts-with($aName,'yinfajiguan') or starts-with($aName,'e_pOrg') or starts-with($aName,'印发机关')">/公文体/版记/印制版记/印发机关<xsl:if test="substring-after($aName,'yinfajiguan_')">
10006					<xsl:value-of select="concat('[',substring-after($aName,'yinfajiguan_'),']')"/>
10007				</xsl:if>
10008			</xsl:when>
10009			<xsl:when test="starts-with($aName,'yinfariqi') or starts-with($aName,'e_pDate') or starts-with($aName,'印发日期')">/公文体/版记/印制版记/印发日期<xsl:if test="substring-after($aName,'yinfariqi_')">
10010					<xsl:value-of select="concat('[',substring-after($aName,'yinfariqi_'),']')"/>
10011				</xsl:if>
10012			</xsl:when>
10013			<xsl:when test="$aName='yinfafenshu' or $aName='e_pCount' or $aName='印发份数'">/公文体/版记/印制版记/印发份数</xsl:when>
10014			<!--end of layout-->
10015			<!--其他任意名称:归属?-->
10016			<xsl:when test="starts-with($aName,'meishoukuozhanyaosu_')">公文体/眉首/扩展要素<xsl:value-of select="substring-after($aName,'meishoukuozhanyaosu_')"/>
10017			</xsl:when>
10018			<xsl:when test="starts-with($aName,'zhutikuozhanyaosu_')">公文体/眉首/扩展要素<xsl:value-of select="substring-after($aName,'zhutikuozhanyaosu_')"/>
10019			</xsl:when>
10020			<xsl:when test="starts-with($aName,'banjikuozhanyaosu_')">公文体/眉首/扩展要素<xsl:value-of select="substring-after($aName,'banjikuozhanyaosu_')"/>
10021			</xsl:when>
10022			<xsl:otherwise>/公文体/[眉首|主体|版记]/扩展要素/@要素名称</xsl:otherwise>
10023		</xsl:choose>
10024	</xsl:template>
10025	<xsl:template name="GetUsers">
10026		<xsl:if test="/office:document/office:body/office:text/text:tracked-changes//office:change-info/dc:creator or //office:annotation/@office:author or /office:document/office:body/office:text//office:annotation[not(contains(./dc:creator,'__@*Start@')) and not(contains(./dc:creator,'__@*End@'))]">
10027			<规则:用户集_B667>
10028				<xsl:for-each select="/office:document/office:body/office:text/text:tracked-changes/text:changed-region">
10029					<规则:用户_B668 姓名_41DC="{node()//office:change-info/dc:creator}" 标识符_4100="{generate-id()}"/>
10030				</xsl:for-each>
10031				<xsl:for-each select="//office:annotation[not(contains(./dc:creator,'__@*Start@')) and not(contains(./dc:creator,'__@*End@'))]">
10032					<规则:用户_B668>
10033						<xsl:attribute name="标识符_4100"><xsl:value-of select="generate-id()"/></xsl:attribute>
10034						<xsl:if test="dc:creator">
10035							<xsl:attribute name="姓名_41DC"><xsl:value-of select="dc:creator"/></xsl:attribute>
10036						</xsl:if>
10037					</规则:用户_B668>
10038				</xsl:for-each>
10039			</规则:用户集_B667>
10040		</xsl:if>
10041	</xsl:template>
10042	<xsl:template name="GetTrackChanges">
10043		<xsl:if test="/office:document/office:body/office:text/text:tracked-changes/text:changed-region">
10044			<规则:修订信息集_B60E>
10045				<xsl:for-each select="/office:document/office:body/office:text/text:tracked-changes/text:changed-region">
10046					<规则:修订信息_B60F 作者_B611="{generate-id()}" 日期_B612="{node()//office:change-info/dc:date}" 标识符_B610="{@text:id}"/>
10047				</xsl:for-each>
10048			</规则:修订信息集_B60E>
10049		</xsl:if>
10050	</xsl:template>
10051	<xsl:variable name="defect">
10052		<xsl:value-of select="/office:document/office:settings/config:config-item-set[@config:name='ooo:configuration-settings']/config:config-item[@config:name='CurrentDatabaseDataSource']"/>
10053	</xsl:variable>
10054	<xsl:template name="GetAnnotations">
10055		<xsl:if test="/office:document/office:body//office:annotation[not(contains(./dc:creator,'__@*Start@')) and not(contains(./dc:creator,'__@*End@'))]">
10056			<规则:批注集_B669>
10057				<xsl:for-each select="/office:document/office:body//office:annotation[not(contains(./dc:creator,'__@*Start@')) and not(contains(./dc:creator,'__@*End@'))]">
10058					<规则:批注_B66A>
10059						<xsl:attribute name="作者_41DD"><xsl:value-of select="generate-id()"/></xsl:attribute>
10060						<xsl:if test="string(dc:creator-initials) != ''">
10061							<xsl:attribute name="作者缩写_41DF"><xsl:value-of select="dc:creator-initials"/></xsl:attribute>
10062						</xsl:if>
10063						<xsl:if test="dc:date">
10064							<xsl:attribute name="日期_41DE"><xsl:value-of select="dc:date"/></xsl:attribute>
10065						</xsl:if>
10066						<xsl:variable name="ID" select="generate-id(.)"/>
10067						<xsl:attribute name="区域引用_41CE"><xsl:value-of select="concat('cmt', $ID)"/></xsl:attribute>
10068						<xsl:variable name="anthor">
10069							<xsl:value-of select="substring-before(substring-after($defect,'@'),'%')"/>
10070						</xsl:variable>
10071						<xsl:for-each select="./*">
10072							<xsl:choose>
10073								<xsl:when test="name()='text:p'">
10074									<xsl:apply-templates select="."/>
10075								</xsl:when>
10076								<xsl:when test="name()='text:list'">
10077									<xsl:call-template name="list-content">
10078										<xsl:with-param name="currlistlvl" select="number('1')"/>
10079										<xsl:with-param name="liststylename" select="@text:style-name"/>
10080									</xsl:call-template>
10081								</xsl:when>
10082								<xsl:otherwise/>
10083							</xsl:choose>
10084						</xsl:for-each>
10085					</规则:批注_B66A>
10086				</xsl:for-each>
10087			</规则:批注集_B669>
10088		</xsl:if>
10089	</xsl:template>
10090	<xsl:template match="office:settings">
10091		<规则:文档设置_B600>
10092			<!--<规则:标点压缩_B60B>
10093				<xsl:attribute name="是否采用_B60C"><xsl:choose><xsl:when test="config:config-item-set[@config:name='ooo:configuration-settings']/config:config-item[@config:name='CharacterCompressionType']='1'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
10094			</规则:标点压缩_B60B>-->
10095			<!--schema20101215版本无此属性-->
10096			<!--<规则:字距调整是否用于西文和标点符号_B60B>
10097				<xsl:choose><xsl:when test="config:config-item-set[@config:name='ooo:configuration-settings']/config:config-item[@config:name='CharacterCompressionType']='1'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose>
10098			</规则:字距调整是否用于西文和标点符号_B60B>-->
10099			<xsl:variable name="outview">
10100				<xsl:value-of select="substring-before(substring-after($defect,'#'),'@')"/>
10101			</xsl:variable>
10102			<规则:当前视图_B601>
10103				<xsl:choose>
10104					<xsl:when test="not($outview='')">
10105						<xsl:value-of select="$outview"/>
10106					</xsl:when>
10107					<xsl:when test="config:config-item-set[@config:name='ooo:view-settings']/config:config-item[@config:name='InBrowseMode']='false'">page</xsl:when>
10108					<xsl:when test="config:config-item-set[@config:name='ooo:view-settings']/config:config-item[@config:name='InBrowseMode']='true'">web</xsl:when>
10109					<xsl:otherwise>page</xsl:otherwise>
10110				</xsl:choose>
10111			</规则:当前视图_B601>
10112			<xsl:if test="config:config-item-set[@config:name='ooo:configuration-settings']/config:config-item[@config:name='IsKernAsianPunctuation']='false'">
10113				<规则:字距调整_B606>none</规则:字距调整_B606>
10114			</xsl:if>
10115			<xsl:if test="/office:document/office:styles/style:default-style[@style:family='paragraph']/style:paragraph-properties/@style:tab-stop-distance">
10116				<规则:默认制表位位置_B604>
10117					<xsl:variable name="tabStopDistance" select="fun:Convert2uofUnit(/office:document/office:styles/style:default-style[@style:family='paragraph']/style:paragraph-properties/@style:tab-stop-distance)"/>
10118					<xsl:value-of select="string($tabStopDistance)"/>
10119				</规则:默认制表位位置_B604>
10120			</xsl:if>
10121			<xsl:if test="config:config-item-set[@config:name='ooo:view-settings']/config:config-item-map-indexed[@config:name='Views']/config:config-item-map-entry/config:config-item[@config:name='ZoomFactor']">
10122				<规则:缩放_B603>
10123					<xsl:value-of select="config:config-item-set[@config:name='ooo:view-settings']/config:config-item-map-indexed[@config:name='Views']/config:config-item-map-entry/config:config-item[@config:name='ZoomFactor']"/>
10124				</规则:缩放_B603>
10125			</xsl:if>
10126			<规则:是否修订_B605>
10127				<xsl:choose>
10128					<xsl:when test="/office:document/office:body/office:text/text:tracked-changes/@text:track-changes='false' or not(/office:document/office:body/office:text/text:tracked-changes)">false</xsl:when>
10129					<xsl:otherwise>true</xsl:otherwise>
10130				</xsl:choose>
10131			</规则:是否修订_B605>
10132			<xsl:if test="config:config-item-set[@config:name='ooo:configuration-settings']/config:config-item-map-indexed[@config:name='ForbiddenCharacters']">
10133				<规则:标点禁则_B608>
10134					<规则:行首字符_B609>
10135						<xsl:value-of select="config:config-item-set[@config:name='ooo:configuration-settings']/config:config-item-map-indexed[@config:name='ForbiddenCharacters']/config:config-item-map-entry/config:config-item[@config:name='BeginLine']"/>
10136					</规则:行首字符_B609>
10137					<规则:行尾字符_B60A>
10138						<xsl:value-of select="config:config-item-set[@config:name='ooo:configuration-settings']/config:config-item-map-indexed[@config:name='ForbiddenCharacters']/config:config-item-map-entry/config:config-item[@config:name='EndLine']"/>
10139					</规则:行尾字符_B60A>
10140				</规则:标点禁则_B608>
10141				<xsl:if test="/office:document/office:styles/text:notes-configuration[@text:note-class='endnote']">
10142					<规则:尾注位置_B607>doc-end</规则:尾注位置_B607>
10143				</xsl:if>
10144			</xsl:if>
10145		</规则:文档设置_B600>
10146	</xsl:template>
10147	<xsl:template name="FirstMasterPage">
10148		<xsl:param name="pos"/>
10149		<xsl:variable name="nodeName" select="name(/office:document/office:body/office:text/*[$pos])"/>
10150		<xsl:variable name="bsText">
10151			<xsl:choose>
10152				<xsl:when test="/office:document/office:body/office:text/*[$pos]/@text:style-name">
10153					<xsl:value-of select="/office:document/office:body/office:text/*[$pos]/@text:style-name"/>
10154				</xsl:when>
10155				<xsl:when test="/office:document/office:body/office:text/*[$pos]/@table:style-name">
10156					<xsl:value-of select="/office:document/office:body/office:text/*[$pos]/@table:style-name"/>
10157				</xsl:when>
10158			</xsl:choose>
10159		</xsl:variable>
10160		<xsl:choose>
10161			<xsl:when test="$nodeName = 'text:p' or $nodeName = 'table:table' or $nodeName = 'text:h'">
10162				<xsl:choose>
10163					<xsl:when test="not(/office:document/office:automatic-styles/style:style[@style:name=$bsText]/@style:master-page-name)">true</xsl:when>
10164					<xsl:otherwise>false</xsl:otherwise>
10165				</xsl:choose>
10166			</xsl:when>
10167			<xsl:when test="$nodeName = 'text:section'">
10168				<xsl:variable name="bsSec" select="/office:document/office:body/office:text/*[$pos]/text:p[1]/@text:style-name"/>
10169				<xsl:choose>
10170					<xsl:when test="not(/office:document/office:automatic-styles/style:style[@style:name=$bsSec]/@style:master-page-name)">true</xsl:when>
10171					<xsl:otherwise>false</xsl:otherwise>
10172				</xsl:choose>
10173			</xsl:when>
10174			<xsl:when test="$nodeName = 'text:list'">
10175				<xsl:variable name="bsSec" select="/office:document/office:body/office:text/*[$pos]/text:p[1]/@text:style-name"/>
10176				<xsl:choose>
10177					<xsl:when test="not(/office:document/office:automatic-styles/style:style[@style:name=$bsSec]/@style:master-page-name)">true</xsl:when>
10178					<xsl:otherwise>false</xsl:otherwise>
10179				</xsl:choose>
10180			</xsl:when>
10181			<xsl:otherwise>
10182				<xsl:if test="$nodeName != ''">
10183					<xsl:call-template name="FirstMasterPage">
10184						<xsl:with-param name="pos" select="$pos + 1"/>
10185					</xsl:call-template>
10186				</xsl:if>
10187			</xsl:otherwise>
10188		</xsl:choose>
10189	</xsl:template>
10190	<xsl:template name="TextBody">
10191		<!--处理第一段的默认页面设置,无显式的页面设置引用-->
10192		<!--<xsl:variable name="bsText" select="/office:document/office:body/office:text/text:sequence-decls/following-sibling::*[1]/@text:style-name"/>
10193				<xsl:variable name="bsTable" select="/office:document/office:body/office:text/text:sequence-decls/following-sibling::*[1]/@table:style-name"/>
10194				<xsl:variable name="bsText" select="/office:document/office:body/office:text/text:p[1]/@text:style-name"/>
10195				<xsl:variable name="bsTable" select="/office:document/office:body/office:text/text:table[1]/@table:style-name"/>
10196				<xsl:variable name="bsSection" select="/office:document/office:body/office:text/text:section[1]/text:p[1]/@text:style-name"/>-->
10197		<xsl:variable name="isFirstMasterPage">
10198			<xsl:call-template name="FirstMasterPage">
10199				<xsl:with-param name="pos" select="1"/>
10200			</xsl:call-template>
10201		</xsl:variable>
10202		<!--<xsl:if test="not(/office:document/office:automatic-styles/style:style[@style:name=$bsText]/@style:master-page-name) and not(/office:document/office:automatic-styles/style:style[@style:name=$bsTable]/@style:master-page-name) and not(/office:document/office:automatic-styles/style:style[@style:name=$bsSection]/@style:master-page-name) and ( name(/office:document/office:body/office:text/text:sequence-decls/following-sibling::*[1]) != 'text:list')">-->
10203		<xsl:if test="$isFirstMasterPage = 'true'">
10204			<xsl:for-each select="/office:document/office:master-styles/style:master-page[1]">
10205				<xsl:call-template name="text-page-layout">
10206					<xsl:with-param name="master-page" select="."/>
10207				</xsl:call-template>
10208			</xsl:for-each>
10209		</xsl:if>
10210		<xsl:for-each select="office:body/office:text">
10211			<xsl:call-template name="TextContent"/>
10212		</xsl:for-each>
10213	</xsl:template>
10214	<xsl:template name="sc-BookMarks">
10215		<xsl:if test="$documentType='spreadsheet'">
10216			<xsl:for-each select="/office:document/office:body/office:spreadsheet/table:named-expressions/table:named-range">
10217				<书签:书签_9105>
10218					<xsl:attribute name="名称_9103"><xsl:value-of select="@table:name"/></xsl:attribute>
10219					<书签:区域_9100>
10220						<xsl:attribute name="区域引用_41CE"><xsl:call-template name="bookmaker"><xsl:with-param name="cellrangeaddress"><xsl:value-of select="@table:cell-range-address"/></xsl:with-param></xsl:call-template></xsl:attribute>
10221					</书签:区域_9100>
10222				</书签:书签_9105>
10223			</xsl:for-each>
10224		</xsl:if>
10225	</xsl:template>
10226	<xsl:template name="bookmaker">
10227		<xsl:param name="cellrangeaddress"/>
10228		<xsl:choose>
10229			<xsl:when test="contains($cellrangeaddress,':.')">
10230				<xsl:variable name="string4">$</xsl:variable>
10231				<xsl:variable name="tablename">
10232					<xsl:variable name="fortablename" select="substring-before($cellrangeaddress,'.')"/>
10233					<xsl:choose>
10234						<xsl:when test="contains($fortablename,'$')">
10235							<xsl:value-of select="substring-after(substring-before($cellrangeaddress,'.'),'$')"/>
10236						</xsl:when>
10237						<xsl:when test="not(contains($fortablename,'$'))">
10238							<xsl:value-of select="substring-before($cellrangeaddress,'.')"/>
10239						</xsl:when>
10240					</xsl:choose>
10241				</xsl:variable>
10242				<xsl:variable name="firstcolumn" select="substring-before(substring-after(substring-after($cellrangeaddress,'.'),'$'),'$')"/>
10243				<xsl:variable name="firstline" select="substring-after(substring-after(substring-before($cellrangeaddress,':.'),'.$'),'$')"/>
10244				<xsl:variable name="secondcolumn" select="substring-before(substring-after($cellrangeaddress,':.$'),'$')"/>
10245				<xsl:variable name="secondline" select="substring-after(substring-after($cellrangeaddress,':.$'),'$')"/>
10246				<xsl:variable name="string3">'</xsl:variable>
10247				<xsl:variable name="string1">
10248					<xsl:value-of select="'!$'"/>
10249				</xsl:variable>
10250				<xsl:variable name="string2">
10251					<xsl:value-of select="':$'"/>
10252				</xsl:variable>
10253				<xsl:choose>
10254					<xsl:when test="$firstcolumn = $secondcolumn and $firstline = '1' and $secondline = '65536'">
10255						<xsl:value-of select="concat($string3,$tablename,$string3,'!$',$firstcolumn,':$',$firstcolumn)"/>
10256					</xsl:when>
10257					<xsl:when test="$secondcolumn = 'IV' and $firstline = $secondline">
10258						<xsl:value-of select="concat($string3,$tablename,$string3,'!$',$firstline,':$',$firstline)"/>
10259					</xsl:when>
10260					<xsl:otherwise>
10261						<xsl:value-of select="concat($string3,$tablename,$string3,$string1,$firstcolumn,$string4,$firstline,$string2,$secondcolumn,$string4,$secondline)"/>
10262					</xsl:otherwise>
10263				</xsl:choose>
10264			</xsl:when>
10265			<xsl:when test="not(contains($cellrangeaddress,':.'))">
10266				<xsl:variable name="tablename" select="substring-before ($cellrangeaddress,'.')"/>
10267				<xsl:variable name="firstcolumn" select="substring-before (substring-after(substring-after($cellrangeaddress,'.'),'$'),'$')"/>
10268				<xsl:variable name="firstline" select="substring-after (substring-after(substring-after($cellrangeaddress,'.'),'$'),'$')"/>
10269				<xsl:variable name="string3">'</xsl:variable>
10270				<xsl:variable name="string1">
10271					<xsl:value-of select="'!$'"/>
10272				</xsl:variable>
10273				<xsl:variable name="string2">$</xsl:variable>
10274				<xsl:value-of select="concat ($string3,$tablename,$string3,$string1,$firstcolumn,$string2,$firstline)"/>
10275			</xsl:when>
10276		</xsl:choose>
10277	</xsl:template>
10278	<xsl:template name="SpreadsheetBody">
10279		<xsl:for-each select="office:body/office:spreadsheet/table:table">
10280			<xsl:apply-templates mode="table" select="."/>
10281		</xsl:for-each>
10282	</xsl:template>
10283	<xsl:template match="table:tracked-changes"/>
10284	<xsl:template match="table:data-pilot-tables"/>
10285	<xsl:template match="table:consolidation"/>
10286	<xsl:template match="table:dde-links"/>
10287	<xsl:template name="SpreadsheetCommonRule">
10288		<xsl:if test="/office:document/office:automatic-styles/style:style[@style:family='table-cell' and style:map]">
10289			<xsl:element name="规则:条件格式化集_B618">
10290				<xsl:call-template name="create-condition-format"/>
10291			</xsl:element>
10292		</xsl:if>
10293		<xsl:element name="规则:是否RC引用_B634">
10294			<xsl:choose>
10295				<xsl:when test="$isRCCellAddress = 'true'">
10296					<xsl:value-of select="'true'"/>
10297				</xsl:when>
10298				<xsl:otherwise>
10299					<xsl:value-of select="'false'"/>
10300				</xsl:otherwise>
10301			</xsl:choose>
10302		</xsl:element>
10303		<xsl:if test="/office:document/office:settings/config:config-item-set/config:config-item-map-indexed/config:config-item-map-entry/config:config-item[@config:name='HasSheetTabs']">
10304			<xsl:element name="规则:是否显示工作表标签_B635">
10305				<xsl:value-of select="/office:document/office:settings/config:config-item-set/config:config-item-map-indexed/config:config-item-map-entry/config:config-item[@config:name='HasSheetTabs']"/>
10306			</xsl:element>
10307		</xsl:if>
10308		<xsl:element name="规则:是否显示水平滚动条_B636">true</xsl:element>
10309		<xsl:element name="规则:是否显示垂直滚动条_B637">true</xsl:element>
10310		<!--uof2.0标准中无是否自动重算,故暂时注释掉-->
10311		<!--<xsl:if test="/office:document/office:settings/config:config-item-set/config:config-item/@config:name='AutoCalculate'">
10312			<xsl:element name="表:是否自动重算">
10313				<xsl:attribute name="uof:locID">s0174</xsl:attribute>
10314				<xsl:attribute name="uof:attrList">值</xsl:attribute>
10315				<xsl:attribute name="表:值" select="/office:document/office:settings/config:config-item-set/config:config-item[@config:name='AutoCalculate']"/>
10316			</xsl:element>
10317			</xsl:if>-->
10318	</xsl:template>
10319	<xsl:template match="table:calculation-settings" mode="common">
10320		<xsl:if test="@table:precision-as-shown">
10321			<xsl:element name="规则:精确度是否以显示值为准_B613">
10322				<xsl:value-of select="@table:precision-as-shown"/>
10323			</xsl:element>
10324		</xsl:if>
10325		<xsl:element name="规则:日期系统_B614">
10326			<xsl:choose>
10327				<xsl:when test="table:null-date/@table:date-value='1904-01-01'">1904</xsl:when>
10328				<xsl:when test="table:null-date/@table:date-value='1900-01-01'">iso8601</xsl:when>
10329				<xsl:otherwise>1899</xsl:otherwise>
10330			</xsl:choose>
10331		</xsl:element>
10332		<xsl:if test="table:iteration/@table:status='enable'">
10333			<规则:计算设置_B615>
10334				<xsl:attribute name="迭代次数_B616"><xsl:choose><xsl:when test="table:iteration/@table:steps"><xsl:value-of select="table:iteration/@table:steps"/></xsl:when><xsl:otherwise>100</xsl:otherwise><!--默认迭代次数--></xsl:choose></xsl:attribute>
10335				<xsl:attribute name="偏差值_B617"><xsl:choose><xsl:when test="table:iteration/@table:maximum-difference"><xsl:value-of select="table:iteration/@table:maximum-difference"/></xsl:when><xsl:otherwise>0.001</xsl:otherwise><!--默认偏差值--></xsl:choose></xsl:attribute>
10336			</规则:计算设置_B615>
10337		</xsl:if>
10338	</xsl:template>
10339	<xsl:template match="table:content-validations" mode="common">
10340		<xsl:element name="规则:数据有效性集_B618">
10341			<xsl:call-template name="create-validation-set"/>
10342		</xsl:element>
10343	</xsl:template>
10344	<xsl:template name="search-left-top-validation-inatable">
10345		<xsl:param name="row-num"/>
10346		<xsl:param name="firsttablerows"/>
10347		<xsl:param name="validation-name"/>
10348		<xsl:param name="return"/>
10349		<xsl:param name="currentRowCount"/>
10350		<!--在行结点集合中的位置-->
10351		<xsl:variable name="firstcells" select="$firsttablerows[position() = $currentRowCount]/table:table-cell"/>
10352		<xsl:variable name="first-left-top">
10353			<xsl:if test="not($currentRowCount &gt; count($firsttablerows))">
10354				<xsl:choose>
10355					<xsl:when test="$firsttablerows[position() = $currentRowCount]/table:table-cell[@table:content-validation-name = $validation-name]">
10356						<xsl:call-template name="search-left-top-validation-inarow">
10357							<xsl:with-param name="row-num" select="$row-num"/>
10358							<xsl:with-param name="column-num" select="number('1')"/>
10359							<xsl:with-param name="firstcells" select="$firstcells"/>
10360							<xsl:with-param name="validation-name" select="$validation-name"/>
10361							<xsl:with-param name="return" select="''"/>
10362							<xsl:with-param name="currentColumnCount" select="number('1')"/>
10363						</xsl:call-template>
10364					</xsl:when>
10365					<xsl:otherwise>
10366						<xsl:call-template name="search-left-top-validation-inatable">
10367							<xsl:with-param name="row-num">
10368								<xsl:choose>
10369									<xsl:when test="$firsttablerows[position() = $currentRowCount]/@table:number-rows-repeated">
10370										<xsl:value-of select="$row-num+ $firsttablerows[position() = $currentRowCount]/@table:number-rows-repeated"/>
10371									</xsl:when>
10372									<xsl:otherwise>
10373										<xsl:value-of select="number($row-num) + 1"/>
10374									</xsl:otherwise>
10375								</xsl:choose>
10376							</xsl:with-param>
10377							<xsl:with-param name="firsttablerows" select="$firsttablerows"/>
10378							<xsl:with-param name="validation-name" select="$validation-name"/>
10379							<xsl:with-param name="return" select="$return"/>
10380							<xsl:with-param name="currentRowCount" select="$currentRowCount + 1"/>
10381						</xsl:call-template>
10382					</xsl:otherwise>
10383				</xsl:choose>
10384			</xsl:if>
10385		</xsl:variable>
10386		<xsl:choose>
10387			<xsl:when test="$first-left-top!=''">
10388				<xsl:value-of select="$first-left-top"/>
10389			</xsl:when>
10390			<xsl:otherwise>
10391				<xsl:value-of select="''"/>
10392			</xsl:otherwise>
10393		</xsl:choose>
10394	</xsl:template>
10395	<xsl:template name="search-left-top-validation-inarow">
10396		<xsl:param name="row-num"/>
10397		<xsl:param name="column-num"/>
10398		<xsl:param name="firstcells"/>
10399		<xsl:param name="validation-name"/>
10400		<xsl:param name="return"/>
10401		<xsl:param name="currentColumnCount"/>
10402		<xsl:variable name="cellsCount" select="count($firstcells[not(@table:number-columns-repeated)]) + sum($firstcells/@table:number-columns-repeated)"/>
10403		<xsl:variable name="first-left-top">
10404			<xsl:if test="not($column-num &gt; $cellsCount)">
10405				<xsl:choose>
10406					<xsl:when test="$firstcells[position() = $currentColumnCount][@table:content-validation-name = $validation-name]">
10407						<xsl:value-of select="concat($firstcells[position() = $currentColumnCount]/ancestor::table:table/@table:name,'.',$column-num,' ',$row-num)"/>
10408					</xsl:when>
10409					<xsl:otherwise>
10410						<xsl:call-template name="search-left-top-validation-inarow">
10411							<xsl:with-param name="row-num" select="$row-num"/>
10412							<xsl:with-param name="column-num">
10413								<xsl:choose>
10414									<xsl:when test="$firstcells[position() = $currentColumnCount]/@table:number-columns-repeated">
10415										<xsl:value-of select="number($column-num) + $firstcells[position() = $currentColumnCount]/@table:number-columns-repeated"/>
10416									</xsl:when>
10417									<xsl:otherwise>
10418										<xsl:value-of select="number($column-num) + 1"/>
10419									</xsl:otherwise>
10420								</xsl:choose>
10421							</xsl:with-param>
10422							<xsl:with-param name="firstcells" select="$firstcells"/>
10423							<xsl:with-param name="validation-name" select="$validation-name"/>
10424							<xsl:with-param name="return" select="$return"/>
10425							<xsl:with-param name="currentColumnCount" select="$currentColumnCount + 1"/>
10426						</xsl:call-template>
10427					</xsl:otherwise>
10428				</xsl:choose>
10429			</xsl:if>
10430		</xsl:variable>
10431		<xsl:choose>
10432			<xsl:when test="$first-left-top!=''">
10433				<xsl:value-of select="$first-left-top"/>
10434			</xsl:when>
10435			<xsl:otherwise>
10436				<xsl:value-of select="$return"/>
10437			</xsl:otherwise>
10438		</xsl:choose>
10439	</xsl:template>
10440	<xsl:template name="search-left-top-validation">
10441		<xsl:param name="validation-name"/>
10442		<xsl:param name="tableslist"/>
10443		<xsl:param name="return"/>
10444		<xsl:param name="tableNumber"/>
10445		<xsl:variable name="firsttablerows" select="$tableslist[position() = $tableNumber]/table:table-row"/>
10446		<xsl:variable name="first-left-top">
10447			<xsl:if test="not($tableNumber &gt; count($tableslist))">
10448				<xsl:choose>
10449					<xsl:when test="$tableslist[position() = $tableNumber]/table:table-row/table:table-cell[@table:content-validation-name = $validation-name]">
10450						<xsl:call-template name="search-left-top-validation-inatable">
10451							<xsl:with-param name="row-num" select="number('1')"/>
10452							<xsl:with-param name="firsttablerows" select="$firsttablerows"/>
10453							<xsl:with-param name="validation-name" select="$validation-name"/>
10454							<xsl:with-param name="return" select="''"/>
10455							<xsl:with-param name="currentRowCount" select="number('1')"/>
10456						</xsl:call-template>
10457					</xsl:when>
10458					<xsl:otherwise>
10459						<xsl:call-template name="search-left-top-validation">
10460							<xsl:with-param name="validation-name" select="$validation-name"/>
10461							<xsl:with-param name="tableslist" select="$tableslist"/>
10462							<xsl:with-param name="return" select="''"/>
10463							<xsl:with-param name="tableNumber" select="$tableNumber + 1"/>
10464						</xsl:call-template>
10465					</xsl:otherwise>
10466				</xsl:choose>
10467			</xsl:if>
10468		</xsl:variable>
10469		<xsl:choose>
10470			<xsl:when test="$first-left-top != ''">
10471				<xsl:value-of select="$first-left-top"/>
10472			</xsl:when>
10473			<xsl:otherwise>
10474				<xsl:value-of select="$return"/>
10475			</xsl:otherwise>
10476		</xsl:choose>
10477	</xsl:template>
10478	<xsl:template name="translate-left-top">
10479		<xsl:param name="left-top"/>
10480		<xsl:variable name="column-number" select="substring-before(substring-after($left-top,'.'),' ')"/>
10481		<xsl:variable name="column-number1" select="floor( number($column-number) div 26 )"/>
10482		<xsl:variable name="danyinhao">'</xsl:variable>
10483		<xsl:variable name="column-number2" select="number($column-number) mod 26"/>
10484		<xsl:variable name="column-character1">
10485			<xsl:call-template name="number-to-character">
10486				<xsl:with-param name="number" select="$column-number1"/>
10487			</xsl:call-template>
10488		</xsl:variable>
10489		<xsl:variable name="column-character2">
10490			<xsl:call-template name="number-to-character">
10491				<xsl:with-param name="number" select="$column-number2"/>
10492			</xsl:call-template>
10493		</xsl:variable>
10494		<xsl:value-of select="concat($danyinhao,substring-before($left-top,'.'),$danyinhao,'!','$',$column-character1,$column-character2,'$',substring-after($left-top,' '))"/>
10495	</xsl:template>
10496	<xsl:template name="search-right-bottom-validation">
10497		<xsl:param name="validation-name"/>
10498		<xsl:param name="tablelist"/>
10499		<xsl:param name="tableNumber"/>
10500		<xsl:variable name="tableCount">
10501			<xsl:value-of select="count($tablelist)"/>
10502		</xsl:variable>
10503		<xsl:variable name="rowCount">
10504			<xsl:value-of select="count($tablelist[position() = $tableNumber]/table:table-row)"/>
10505		</xsl:variable>
10506		<xsl:if test="not($tableNumber &gt; $tableCount)">
10507			<xsl:choose>
10508				<xsl:when test="$tablelist[position() = $tableNumber]/table:table-row/table:table-cell[@table:content-validation-name = $validation-name]">
10509					<xsl:call-template name="search-right-bottom-validation-inRow">
10510						<xsl:with-param name="rowList" select="$tablelist[position() = $tableNumber]/table:table-row"/>
10511						<xsl:with-param name="rowCount" select="$rowCount"/>
10512						<xsl:with-param name="rowNumber" select="number('1')"/>
10513						<xsl:with-param name="currentRowPosition" select="number('1')"/>
10514						<xsl:with-param name="tableName" select="$tablelist[position() = $tableNumber]/@table:name"/>
10515						<xsl:with-param name="validation-name" select="$validation-name"/>
10516					</xsl:call-template>
10517				</xsl:when>
10518				<xsl:otherwise>
10519					<xsl:call-template name="search-right-bottom-validation">
10520						<xsl:with-param name="validation-name" select="$validation-name"/>
10521						<xsl:with-param name="tablelist" select="$tablelist"/>
10522						<xsl:with-param name="tableNumber" select="$tableNumber + 1"/>
10523					</xsl:call-template>
10524				</xsl:otherwise>
10525			</xsl:choose>
10526		</xsl:if>
10527	</xsl:template>
10528	<xsl:template name="search-right-bottom-validation-inRow">
10529		<xsl:param name="rowList"/>
10530		<xsl:param name="rowCount"/>
10531		<xsl:param name="rowNumber"/>
10532		<xsl:param name="currentRowPosition"/>
10533		<xsl:param name="tableName"/>
10534		<xsl:param name="validation-name"/>
10535		<xsl:variable name="cellCount">
10536			<xsl:value-of select="count($rowList[position() = $currentRowPosition]/table:table-cell)"/>
10537		</xsl:variable>
10538		<xsl:if test="not($currentRowPosition &gt; $rowCount)">
10539			<xsl:choose>
10540				<xsl:when test="$rowList[position() = $currentRowPosition]/table:table-cell[@table:content-validation-name = $validation-name]  and not($rowList[position() &gt; $currentRowPosition]/table:table-cell[@table:content-validation-name = $validation-name])">
10541					<xsl:call-template name="search-right-bottom-validation-inCell">
10542						<xsl:with-param name="cellList" select="$rowList[position() = $currentRowPosition]/table:table-cell"/>
10543						<xsl:with-param name="cellCount" select="$cellCount"/>
10544						<xsl:with-param name="cellNumber" select="number('1')"/>
10545						<xsl:with-param name="rowNumber">
10546							<xsl:choose>
10547								<xsl:when test="$rowList[position() = $currentRowPosition]/@table:number-rows-repeated">
10548									<xsl:value-of select="$rowNumber + $rowList[position() = $currentRowPosition]/@table:number-rows-repeated - 1"/>
10549								</xsl:when>
10550								<xsl:otherwise>
10551									<xsl:value-of select="$rowNumber"/>
10552								</xsl:otherwise>
10553							</xsl:choose>
10554						</xsl:with-param>
10555						<xsl:with-param name="currentCellPosition" select="number('1')"/>
10556						<xsl:with-param name="tableName" select="$tableName"/>
10557						<xsl:with-param name="validation-name" select="$validation-name"/>
10558					</xsl:call-template>
10559				</xsl:when>
10560				<xsl:otherwise>
10561					<xsl:call-template name="search-right-bottom-validation-inRow">
10562						<xsl:with-param name="rowList" select="$rowList"/>
10563						<xsl:with-param name="rowCount" select="$rowCount"/>
10564						<xsl:with-param name="rowNumber">
10565							<xsl:choose>
10566								<xsl:when test="$rowList[position() = $currentRowPosition]/@table:number-rows-repeated">
10567									<xsl:value-of select="$rowNumber + $rowList[position() = $currentRowPosition]/@table:number-rows-repeated"/>
10568								</xsl:when>
10569								<xsl:otherwise>
10570									<xsl:value-of select="$rowNumber + 1"/>
10571								</xsl:otherwise>
10572							</xsl:choose>
10573						</xsl:with-param>
10574						<xsl:with-param name="currentRowPosition" select="$currentRowPosition + 1"/>
10575						<xsl:with-param name="tableName" select="$tableName"/>
10576						<xsl:with-param name="validation-name" select="$validation-name"/>
10577					</xsl:call-template>
10578				</xsl:otherwise>
10579			</xsl:choose>
10580		</xsl:if>
10581	</xsl:template>
10582	<xsl:template name="search-right-bottom-validation-inCell">
10583		<xsl:param name="cellList"/>
10584		<xsl:param name="cellCount"/>
10585		<xsl:param name="cellNumber"/>
10586		<xsl:param name="rowNumber"/>
10587		<xsl:param name="currentCellPosition"/>
10588		<xsl:param name="tableName"/>
10589		<xsl:param name="validation-name"/>
10590		<xsl:if test="not($currentCellPosition &gt; $cellCount)">
10591			<xsl:choose>
10592				<xsl:when test="$cellList[position() = $currentCellPosition][@table:content-validation-name = $validation-name] and not($cellList[position() &gt; $currentCellPosition][@table:content-validation-name = $validation-name])">
10593					<xsl:variable name="columnResult">
10594						<xsl:choose>
10595							<xsl:when test="$cellList[position() = $currentCellPosition]/@table:number-columns-repeated">
10596								<xsl:value-of select="$cellNumber + $cellList[position() = $currentCellPosition]/@table:number-columns-repeated - 1"/>
10597							</xsl:when>
10598							<xsl:otherwise>
10599								<xsl:value-of select="$cellNumber"/>
10600							</xsl:otherwise>
10601						</xsl:choose>
10602					</xsl:variable>
10603					<xsl:value-of select="concat($tableName,'.',$columnResult,' ',$rowNumber)"/>
10604				</xsl:when>
10605				<xsl:otherwise>
10606					<xsl:call-template name="search-right-bottom-validation-inCell">
10607						<xsl:with-param name="cellList" select="$cellList"/>
10608						<xsl:with-param name="cellCount" select="$cellCount"/>
10609						<xsl:with-param name="cellNumber">
10610							<xsl:choose>
10611								<xsl:when test="$cellList[position() = $currentCellPosition]/@table:number-columns-repeated">
10612									<xsl:value-of select="$cellNumber + $cellList[position() = $currentCellPosition]/@table:number-columns-repeated"/>
10613								</xsl:when>
10614								<xsl:otherwise>
10615									<xsl:value-of select="$cellNumber + 1"/>
10616								</xsl:otherwise>
10617							</xsl:choose>
10618						</xsl:with-param>
10619						<xsl:with-param name="rowNumber" select="$rowNumber"/>
10620						<xsl:with-param name="currentCellPosition" select="$currentCellPosition + 1"/>
10621						<xsl:with-param name="tableName" select="$tableName"/>
10622						<xsl:with-param name="validation-name" select="$validation-name"/>
10623					</xsl:call-template>
10624				</xsl:otherwise>
10625			</xsl:choose>
10626		</xsl:if>
10627	</xsl:template>
10628	<xsl:template name="create-help-error-message-content">
10629		<xsl:param name="text-p-set"/>
10630		<xsl:if test="$text-p-set">
10631			<xsl:value-of select="$text-p-set"/>
10632			<xsl:call-template name="create-help-error-message-content">
10633				<xsl:with-param name="text-p-set" select="$text-p-set[position()!=1]"/>
10634			</xsl:call-template>
10635		</xsl:if>
10636	</xsl:template>
10637	<xsl:template name="validationList">
10638		<xsl:param name="sourceString"/>
10639		<xsl:variable name="quotes">"</xsl:variable>
10640		<xsl:variable name="temp1" select="substring-before($sourceString,';')"/>
10641		<xsl:variable name="temp2" select="substring-before(substring-after($temp1,$quotes),$quotes)"/>
10642		<xsl:variable name="isContinue" select="substring-after($sourceString,';')"/>
10643		<xsl:choose>
10644			<xsl:when test="$temp2!=''">
10645				<xsl:value-of select="$temp2"/>
10646			</xsl:when>
10647			<xsl:otherwise>
10648				<xsl:value-of select="substring-before(substring-after($sourceString,$quotes),$quotes)"/>
10649			</xsl:otherwise>
10650		</xsl:choose>
10651		<xsl:if test="$isContinue !=''">
10652			<xsl:value-of select="','"/>
10653			<xsl:call-template name="validationList">
10654				<xsl:with-param name="sourceString" select="substring-after($sourceString,';')"/>
10655			</xsl:call-template>
10656		</xsl:if>
10657	</xsl:template>
10658	<xsl:template name="create-validation-set">
10659		<xsl:for-each select="//table:content-validation">
10660			<xsl:element name="规则:数据有效性_B619">
10661				<!--插件对数据有效性预处理-->
10662				<xsl:attribute name="表:name"><xsl:value-of select="@table:name"/></xsl:attribute>
10663				<xsl:variable name="conditiontext" select="@table:condition"/>
10664				<xsl:variable name="danyinhao">'</xsl:variable>
10665				<xsl:variable name="operatortext">
10666					<xsl:choose>
10667						<xsl:when test="contains($conditiontext,'and')">
10668							<xsl:value-of select="substring-after($conditiontext,'and ')"/>
10669						</xsl:when>
10670						<xsl:otherwise>
10671							<xsl:value-of select="$conditiontext"/>
10672						</xsl:otherwise>
10673					</xsl:choose>
10674				</xsl:variable>
10675				<xsl:element name="规则:区域集_B61A">
10676					<!--插件中预处理-->
10677					<xsl:element name="规则:区域_B61B">
10678						<xsl:variable name="left-top">
10679							<xsl:call-template name="search-left-top-validation">
10680								<xsl:with-param name="validation-name" select="@table:name"/>
10681								<xsl:with-param name="tableslist" select="/office:document/office:body/office:spreadsheet/table:table"/>
10682								<xsl:with-param name="return" select="''"/>
10683								<xsl:with-param name="tableNumber" select="number('1')"/>
10684							</xsl:call-template>
10685						</xsl:variable>
10686						<xsl:variable name="after-translated-left-top">
10687							<xsl:call-template name="translate-left-top">
10688								<xsl:with-param name="left-top" select="$left-top"/>
10689							</xsl:call-template>
10690						</xsl:variable>
10691						<xsl:variable name="right-bottom">
10692							<xsl:call-template name="search-right-bottom-validation">
10693								<xsl:with-param name="validation-name" select="@table:name"/>
10694								<xsl:with-param name="tablelist" select="/office:document/office:body/office:spreadsheet/table:table"/>
10695								<xsl:with-param name="tableNumber" select="number('1')"/>
10696							</xsl:call-template>
10697						</xsl:variable>
10698						<xsl:variable name="after-translate-right-bottom">
10699							<xsl:call-template name="translate-left-top">
10700								<xsl:with-param name="left-top" select="$right-bottom"/>
10701							</xsl:call-template>
10702						</xsl:variable>
10703						<xsl:variable name="rest-right-bottom">
10704							<xsl:value-of select="substring-after($after-translate-right-bottom,'!')"/>
10705						</xsl:variable>
10706						<xsl:choose>
10707							<xsl:when test="$rest-right-bottom!='$$'">
10708								<xsl:value-of select="concat($after-translated-left-top,':',$rest-right-bottom)"/>
10709							</xsl:when>
10710							<xsl:otherwise>
10711								<xsl:value-of select="$after-translated-left-top"/>
10712								<!--单个单元格区域-->
10713							</xsl:otherwise>
10714						</xsl:choose>
10715					</xsl:element>
10716				</xsl:element>
10717				<xsl:element name="规则:校验类型_B61C">
10718					<xsl:variable name="listtest">cell-content-is-in-list("</xsl:variable>
10719					<xsl:choose>
10720						<xsl:when test="contains($conditiontext,'cell-content-is-whole-number()')">whole-number</xsl:when>
10721						<xsl:when test="contains($conditiontext,'cell-content-is-decimal-number()')">decimal</xsl:when>
10722						<xsl:when test="contains($conditiontext,'cell-content-is-date()')">date</xsl:when>
10723						<xsl:when test="contains($conditiontext,'cell-content-is-time()')">time</xsl:when>
10724						<xsl:when test="contains($conditiontext,'cell-content-is-in-list') and contains($conditiontext,$listtest)">list</xsl:when>
10725						<xsl:when test="contains($conditiontext,'cell-content-text-length')">text-length</xsl:when>
10726						<xsl:otherwise>any-value</xsl:otherwise>
10727					</xsl:choose>
10728				</xsl:element>
10729				<xsl:if test="contains($operatortext,'cell-content()') or contains($conditiontext,'cell-content-text-length()') or contains($conditiontext,'is-between') or contains($conditiontext,'is-not-between')">
10730					<xsl:element name="规则:操作码_B61D">
10731						<xsl:choose>
10732							<xsl:when test="contains($operatortext,'cell-content()&lt;=') ">less-than-or-equal-to</xsl:when>
10733							<xsl:when test="contains($operatortext,'cell-content()&gt;=')">greater-than-or-equal-to</xsl:when>
10734							<xsl:when test="contains($operatortext,'cell-content()&lt;')">less-than</xsl:when>
10735							<xsl:when test="contains($operatortext,'cell-content()&gt;')">greater-than</xsl:when>
10736							<xsl:when test="contains($operatortext,'cell-content()!=')">not-equal-to</xsl:when>
10737							<xsl:when test="contains($operatortext,'cell-content()=')">equal-to</xsl:when>
10738							<xsl:when test="contains($conditiontext,'cell-content-text-length()')">
10739								<xsl:variable name="operator" select="substring-after($conditiontext,'cell-content-text-length()')"/>
10740								<xsl:choose>
10741									<xsl:when test="starts-with($operator,'&lt;=')">less-than-or-equal-to</xsl:when>
10742									<xsl:when test="starts-with($operator,'&gt;=')">greater-than-or-equal-to</xsl:when>
10743									<xsl:when test="starts-with($operator,'&lt;')">less-than</xsl:when>
10744									<xsl:when test="starts-with($operator,'&gt;')">greater-than</xsl:when>
10745									<xsl:when test="starts-with($operator,'!=')">not-equal-to</xsl:when>
10746									<xsl:when test="starts-with($operator,'=')">equal-to</xsl:when>
10747								</xsl:choose>
10748							</xsl:when>
10749							<xsl:when test="contains($conditiontext,'is-between')">between</xsl:when>
10750							<xsl:when test="contains($conditiontext,'is-not-between')">not-between</xsl:when>
10751						</xsl:choose>
10752					</xsl:element>
10753				</xsl:if>
10754				<xsl:element name="规则:第一操作数_B61E">
10755					<xsl:choose>
10756						<xsl:when test="starts-with($operatortext,'cell-content-is-between') or contains($operatortext,'of:cell-content-text-length-is-between')">
10757							<xsl:choose>
10758								<xsl:when test="starts-with($operatortext,'cell-content-is-between')">
10759									<xsl:value-of select="substring-before(substring-after($operatortext,'cell-content-is-between('),',')"/>
10760								</xsl:when>
10761								<xsl:otherwise>
10762									<xsl:value-of select="substring-before(substring-after($operatortext,'cell-content-text-length-is-between('),',')"/>
10763								</xsl:otherwise>
10764							</xsl:choose>
10765						</xsl:when>
10766						<xsl:when test="starts-with($operatortext,'cell-content-is-not-between')">
10767							<xsl:value-of select="substring-before(substring-after($operatortext,'cell-content-is-not-between('),',')"/>
10768						</xsl:when>
10769						<xsl:when test="contains($conditiontext,'cell-content-text-length()')">
10770							<xsl:variable name="operator" select="substring-after($conditiontext,'cell-content-text-length()')"/>
10771							<xsl:choose>
10772								<xsl:when test="starts-with($operator,'&lt;=')">
10773									<xsl:value-of select="substring-after($operator,'&lt;=')"/>
10774								</xsl:when>
10775								<xsl:when test="starts-with($operator,'&gt;=')">
10776									<xsl:value-of select="substring-after($operator,'&gt;=')"/>
10777								</xsl:when>
10778								<xsl:when test="starts-with($operator,'&lt;')">
10779									<xsl:value-of select="substring-after($operator,'&lt;')"/>
10780								</xsl:when>
10781								<xsl:when test="starts-with($operator,'&gt;')">
10782									<xsl:value-of select="substring-after($operator,'&gt;')"/>
10783								</xsl:when>
10784								<xsl:when test="starts-with($operator,'!=')">
10785									<xsl:value-of select="substring-after($operator,'!=')"/>
10786								</xsl:when>
10787								<xsl:when test="starts-with($operator,'=')">
10788									<xsl:value-of select="substring-after($operator,'=')"/>
10789								</xsl:when>
10790							</xsl:choose>
10791						</xsl:when>
10792						<xsl:when test="contains($conditiontext,'cell-content-is-in-list')">
10793							<xsl:call-template name="validationList">
10794								<xsl:with-param name="sourceString" select="substring-after(substring-before($conditiontext,')'),'(')"/>
10795							</xsl:call-template>
10796						</xsl:when>
10797						<xsl:when test="starts-with($conditiontext,'oooc:cell-content-text-length-is-not-between')">
10798							<xsl:value-of select="substring-before(substring-after($conditiontext,'oooc:cell-content-text-length-is-not-between('),',')"/>
10799						</xsl:when>
10800						<xsl:when test="starts-with($conditiontext,'oooc:cell-content-text-length-is-between')">
10801							<xsl:value-of select="substring-before(substring-after($conditiontext,'oooc:cell-content-text-length-is-between('),',')"/>
10802						</xsl:when>
10803						<xsl:when test="starts-with($operatortext,'cell-content()')">
10804							<xsl:variable name="operator" select="substring-after($conditiontext,'cell-content()')"/>
10805							<xsl:choose>
10806								<xsl:when test="starts-with($operator,'&lt;=')">
10807									<xsl:value-of select="substring-after($operator,'&lt;=')"/>
10808								</xsl:when>
10809								<xsl:when test="starts-with($operator,'&gt;=')">
10810									<xsl:value-of select="substring-after($operator,'&gt;=')"/>
10811								</xsl:when>
10812								<xsl:when test="starts-with($operator,'&lt;')">
10813									<xsl:value-of select="substring-after($operator,'&lt;')"/>
10814								</xsl:when>
10815								<xsl:when test="starts-with($operator,'&gt;')">
10816									<xsl:value-of select="substring-after($operator,'&gt;')"/>
10817								</xsl:when>
10818								<xsl:when test="starts-with($operator,'!=')">
10819									<xsl:value-of select="substring-after($operator,'!=')"/>
10820								</xsl:when>
10821								<xsl:when test="starts-with($operator,'=')">
10822									<xsl:value-of select="substring-after($operator,'=')"/>
10823								</xsl:when>
10824							</xsl:choose>
10825						</xsl:when>
10826					</xsl:choose>
10827				</xsl:element>
10828				<xsl:if test="starts-with($operatortext,'cell-content-is-between') or starts-with($operatortext,'cell-content-is-not-between') or starts-with($operatortext,'of:cell-content-text-length-is-between')">
10829					<xsl:element name="规则:第二操作数_B61F">
10830						<xsl:value-of select="substring-before(substring-after($operatortext,','),')')"/>
10831					</xsl:element>
10832				</xsl:if>
10833				<xsl:if test="starts-with($conditiontext,'oooc:cell-content-text-length-is-not-between') or starts-with($conditiontext,'oooc:cell-content-text-length-is-between')">
10834					<xsl:element name="规则:第二操作数_B61F">
10835						<xsl:value-of select="substring-before(substring-after($conditiontext,','),')')"/>
10836					</xsl:element>
10837				</xsl:if>
10838				<xsl:if test="@table:allow-empty-cell">
10839					<xsl:element name="规则:是否忽略空格_B620">
10840						<xsl:value-of select="@table:allow-empty-cell"/>
10841					</xsl:element>
10842				</xsl:if>
10843				<xsl:if test="contains($conditiontext,'cell-content-is-in-list') ">
10844					<xsl:element name="规则:是否显示下拉箭头_B621">
10845						<xsl:variable name="listshow">
10846							<xsl:choose>
10847								<xsl:when test="@table:display-list='no'">
10848									<xsl:value-of select="'false'"/>
10849								</xsl:when>
10850								<xsl:otherwise>true</xsl:otherwise>
10851							</xsl:choose>
10852						</xsl:variable>
10853						<xsl:value-of select="$listshow"/>
10854					</xsl:element>
10855				</xsl:if>
10856				<xsl:if test="table:help-message">
10857					<xsl:element name="规则:输入提示_B622">
10858						<xsl:if test="table:help-message/@table:display">
10859							<xsl:attribute name="是否显示_B623"><xsl:value-of select="table:help-message/@table:display"/></xsl:attribute>
10860						</xsl:if>
10861						<xsl:if test="table:help-message/@table:title">
10862							<xsl:attribute name="标题_B624"><xsl:value-of select="table:help-message/@table:title"/></xsl:attribute>
10863						</xsl:if>
10864						<xsl:if test="table:help-message/text:p">
10865							<xsl:variable name="content">
10866								<xsl:call-template name="create-help-error-message-content">
10867									<xsl:with-param name="text-p-set" select="table:help-message/text:p"/>
10868								</xsl:call-template>
10869							</xsl:variable>
10870							<xsl:if test="$content">
10871								<xsl:attribute name="内容_B625"><xsl:value-of select="$content"/></xsl:attribute>
10872							</xsl:if>
10873						</xsl:if>
10874					</xsl:element>
10875				</xsl:if>
10876				<xsl:if test="table:error-message">
10877					<xsl:element name="规则:错误提示_B626">
10878						<xsl:if test="table:error-message/@table:display">
10879							<xsl:attribute name="是否显示_B623"><xsl:value-of select="table:error-message/@table:display"/></xsl:attribute>
10880						</xsl:if>
10881						<xsl:if test="table:error-message/@table:message-type">
10882							<xsl:attribute name="类型_B627"><xsl:value-of select="table:error-message/@table:message-type"/></xsl:attribute>
10883						</xsl:if>
10884						<xsl:if test="table:error-message/@table:title">
10885							<xsl:attribute name="标题_B624"><xsl:value-of select="table:error-message/@table:title"/></xsl:attribute>
10886						</xsl:if>
10887						<xsl:if test="table:error-message/text:p">
10888							<xsl:variable name="content">
10889								<xsl:call-template name="create-help-error-message-content">
10890									<xsl:with-param name="text-p-set" select="table:error-message/text:p"/>
10891								</xsl:call-template>
10892							</xsl:variable>
10893							<xsl:if test="not($content='')">
10894								<xsl:attribute name="内容_B625"><xsl:value-of select="$content"/></xsl:attribute>
10895							</xsl:if>
10896						</xsl:if>
10897					</xsl:element>
10898				</xsl:if>
10899			</xsl:element>
10900		</xsl:for-each>
10901	</xsl:template>
10902	<xsl:template name="create-condition-format">
10903		<xsl:variable name="unique-map-cellstyle" select="/office:document/office:automatic-styles/style:style[style:map and not(style:map/@style:condition=preceding-sibling::style:style/style:map/@style:condition and style:map/@style:apply-style-name=preceding-sibling::style:style/style:map/@style:apply-style-name and style:map/@style:base-cell-address=preceding-sibling::style:style/style:map/@style:base-cell-address)]"/>
10904		<xsl:for-each select="$unique-map-cellstyle">
10905			<!--xsl:if test="style:map"-->
10906			<xsl:element name="规则:条件格式化_B629">
10907				<xsl:element name="规则:区域集_B61A">
10908					<xsl:element name="规则:区域_B62A">
10909						<xsl:variable name="left-top">
10910							<xsl:call-template name="search-left-top-condition-format">
10911								<xsl:with-param name="validation-name" select="@style:name"/>
10912								<xsl:with-param name="tableslist" select="/office:document/office:body/office:spreadsheet/table:table"/>
10913								<xsl:with-param name="return" select="''"/>
10914								<xsl:with-param name="tableNumber" select="number('1')"/>
10915							</xsl:call-template>
10916						</xsl:variable>
10917						<xsl:variable name="after-translated-left-top">
10918							<xsl:call-template name="translate-left-top">
10919								<xsl:with-param name="left-top" select="$left-top"/>
10920							</xsl:call-template>
10921						</xsl:variable>
10922						<xsl:variable name="right-bottom">
10923							<xsl:call-template name="search-right-bottom-condition-format">
10924								<xsl:with-param name="validation-name" select="@style:name"/>
10925								<xsl:with-param name="tablelist" select="/office:document/office:body/office:spreadsheet/table:table"/>
10926								<xsl:with-param name="tableNumber" select="number('1')"/>
10927							</xsl:call-template>
10928						</xsl:variable>
10929						<xsl:variable name="after-translate-right-bottom">
10930							<xsl:call-template name="translate-left-top">
10931								<xsl:with-param name="left-top" select="$right-bottom"/>
10932							</xsl:call-template>
10933						</xsl:variable>
10934						<xsl:variable name="rest-right-bottom">
10935							<xsl:value-of select="substring-after($after-translate-right-bottom,'!')"/>
10936						</xsl:variable>
10937						<xsl:choose>
10938							<xsl:when test="$rest-right-bottom!='$$'">
10939								<xsl:value-of select="concat($after-translated-left-top,':',$rest-right-bottom)"/>
10940							</xsl:when>
10941							<xsl:otherwise>
10942								<xsl:value-of select="$after-translated-left-top"/>
10943							</xsl:otherwise>
10944						</xsl:choose>
10945					</xsl:element>
10946				</xsl:element>
10947				<!--插件中预处理生成区域<xsl:call-template name="create-cell-condition-format"/>-->
10948			</xsl:element>
10949		</xsl:for-each>
10950	</xsl:template>
10951	<xsl:template name="create-cell-condition-format">
10952		<xsl:for-each select="style:map">
10953			<xsl:element name="规则:条件_B62B">
10954				<xsl:variable name="conditiontext" select="@style:condition"/>
10955				<xsl:attribute name="类型_B673"><xsl:choose><xsl:when test="contains($conditiontext,'cell-content')">cell-value</xsl:when><xsl:when test="contains($conditiontext,'is-true-formula')">formula</xsl:when><xsl:otherwise>条件字符串错误!</xsl:otherwise></xsl:choose></xsl:attribute>
10956				<xsl:if test="$conditiontext">
10957					<xsl:element name="规则:操作码_B62C">
10958						<xsl:choose>
10959							<xsl:when test="starts-with($conditiontext,'is-true-formula')">equal-to</xsl:when>
10960							<xsl:when test="starts-with($conditiontext,'cell-content()')">
10961								<xsl:variable name="operatortext" select="substring-after($conditiontext,'cell-content()')"/>
10962								<xsl:choose>
10963									<xsl:when test="starts-with($operatortext,'&lt;=')">less-than-or-equal-to</xsl:when>
10964									<xsl:when test="starts-with($operatortext,'&gt;=')">greater-than-or-equal-to</xsl:when>
10965									<xsl:when test="starts-with($operatortext,'&lt;')">less-than</xsl:when>
10966									<xsl:when test="starts-with($operatortext,'&gt;')">greater-than</xsl:when>
10967									<xsl:when test="starts-with($operatortext,'!=')">not-equal-to</xsl:when>
10968									<xsl:when test="starts-with($operatortext,'=')">equal-to</xsl:when>
10969								</xsl:choose>
10970							</xsl:when>
10971							<xsl:when test="starts-with($conditiontext,'cell-content-is-between')">between</xsl:when>
10972							<xsl:when test="starts-with($conditiontext,'cell-content-is-not-between')">not-between</xsl:when>
10973						</xsl:choose>
10974					</xsl:element>
10975				</xsl:if>
10976				<xsl:element name="规则:第一操作数_B61E">
10977					<xsl:choose>
10978						<xsl:when test="starts-with($conditiontext,'is-true-formula')">
10979							<xsl:value-of select="substring(substring-after($conditiontext,'is-true-formula('),1,string-length($conditiontext)-1-string-length('is-true-formula('))"/>
10980						</xsl:when>
10981						<xsl:when test="starts-with($conditiontext,'cell-content-is-between')">
10982							<xsl:value-of select="substring-before(substring-after($conditiontext,'cell-content-is-between('),',')"/>
10983						</xsl:when>
10984						<xsl:when test="starts-with($conditiontext,'cell-content-is-not-between')">
10985							<xsl:value-of select="substring-before(substring-after($conditiontext,'cell-content-is-not-between('),',')"/>
10986						</xsl:when>
10987						<xsl:when test="starts-with($conditiontext,'cell-content()')">
10988							<xsl:variable name="operatortext" select="substring-after($conditiontext,'cell-content()')"/>
10989							<xsl:choose>
10990								<xsl:when test="starts-with($operatortext,'&lt;=')">
10991									<xsl:value-of select="substring-after($conditiontext,'&lt;=')"/>
10992								</xsl:when>
10993								<xsl:when test="starts-with($operatortext,'&gt;=')">
10994									<xsl:value-of select="substring-after($conditiontext,'&gt;=')"/>
10995								</xsl:when>
10996								<xsl:when test="starts-with($operatortext,'&lt;')">
10997									<xsl:value-of select="substring-after($conditiontext,'&lt;')"/>
10998								</xsl:when>
10999								<xsl:when test="starts-with($operatortext,'&gt;')">
11000									<xsl:value-of select="substring-after($conditiontext,'&gt;')"/>
11001								</xsl:when>
11002								<xsl:when test="starts-with($operatortext,'!=')">
11003									<xsl:value-of select="substring-after($conditiontext,'!=')"/>
11004								</xsl:when>
11005								<xsl:when test="starts-with($operatortext,'=')">
11006									<xsl:value-of select="substring-after($conditiontext,'=')"/>
11007								</xsl:when>
11008							</xsl:choose>
11009						</xsl:when>
11010					</xsl:choose>
11011				</xsl:element>
11012				<xsl:if test="starts-with($conditiontext,'cell-content-is-between') or starts-with($conditiontext,'cell-content-is-not-between')">
11013					<xsl:element name="规则:第二操作数_B61F">
11014						<xsl:value-of select="substring(substring-after($conditiontext,','),1,string-length(substring-after($conditiontext,','))-1)"/>
11015					</xsl:element>
11016				</xsl:if>
11017				<xsl:element name="规则:格式_B62D">
11018					<xsl:variable name="apply-style-name" select="@style:apply-style-name"/>
11019					<xsl:attribute name="式样引用_B62E"><xsl:value-of select="$apply-style-name"/></xsl:attribute>
11020				</xsl:element>
11021			</xsl:element>
11022		</xsl:for-each>
11023	</xsl:template>
11024	<xsl:template name="search-left-top-condition-format">
11025		<xsl:param name="validation-name"/>
11026		<xsl:param name="tableslist"/>
11027		<xsl:param name="return"/>
11028		<xsl:param name="tableNumber"/>
11029		<xsl:variable name="firsttablerows" select="$tableslist[position() = $tableNumber]/table:table-row"/>
11030		<xsl:variable name="first-left-top">
11031			<xsl:if test="$tableNumber &lt; count($tableslist)">
11032				<xsl:choose>
11033					<xsl:when test="$tableslist[position() = $tableNumber]/table:table-row/table:table-cell[@table:style-name = $validation-name] or $tableslist[position() = $tableNumber]/table:table-column[@table:default-cell-style-name = $validation-name]">
11034						<!--<xsl:call-template name="search-left-top-condition-format-inatable">
11035							<xsl:with-param name="row-num" select="number('1')"/>
11036							<xsl:with-param name="firsttablerows" select="$firsttablerows"/>
11037							<xsl:with-param name="validation-name" select="$validation-name"/>
11038							<xsl:with-param name="return" select="''"/>
11039							<xsl:with-param name="currentRowCount" select="number('1')"/>
11040						</xsl:call-template>-->
11041						<xsl:variable name="ColumnNum">
11042							<xsl:for-each select="$tableslist[position() = $tableNumber]/table:table-row/table:table-cell[@table:style-name = $validation-name]">
11043								<xsl:variable name="nCount1" select="count(preceding-sibling::table:table-cell)"/>
11044								<xsl:variable name="nRepeatSum1" select="sum(preceding-sibling::table:table-cell[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
11045								<xsl:variable name="nRepeatCount1" select="count(preceding-sibling::table:table-cell[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
11046								<xsl:variable name="nCount2" select="count(preceding-sibling::table:covered-table-cell)"/>
11047								<xsl:variable name="nRepeatSum2" select="sum(preceding-sibling::table:covered-table-cell[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
11048								<xsl:variable name="nRepeatCount2" select="count(preceding-sibling::table:covered-table-cell[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
11049								<xsl:variable name="columnPos">
11050									<xsl:value-of select="number($nCount1 + $nRepeatSum1 - $nRepeatCount1 + $nCount2 + $nRepeatSum2 - $nRepeatCount2 + 1)"/>
11051								</xsl:variable>
11052								<xsl:value-of select="$columnPos"/>
11053							</xsl:for-each>
11054						</xsl:variable>
11055						<xsl:variable name="RowNum">
11056							<xsl:for-each select="$tableslist[position() = $tableNumber]/table:table-row[./table:table-cell/@table:style-name = $validation-name]">
11057								<xsl:variable name="nCount1" select="count(preceding-sibling::table:table-row)"/>
11058								<xsl:variable name="nRepeatSum1" select="sum(preceding-sibling::table:table-row[@table:number-rows-repeated]/@table:number-rows-repeated)"/>
11059								<xsl:variable name="nRepeatCount1" select="count(preceding-sibling::table:table-row[@table:number-rows-repeated]/@table:number-rows-repeated)"/>
11060								<xsl:variable name="nCount2" select="count(preceding-sibling::*//table:table-row[not(ancestor::office:chart)])"/>
11061								<xsl:variable name="nRepeatSum2" select="sum(preceding-sibling::*//table:table-row[@table:number-rows-repeated and not(ancestor::office:chart)]/@table:number-rows-repeated)"/>
11062								<xsl:variable name="nRepeatCount2" select="count(preceding-sibling::*//table:table-row[@table:number-rows-repeated and not(ancestor::office:chart)]/@table:number-rows-repeated)"/>
11063								<xsl:variable name="nCurPos">
11064									<xsl:value-of select="number($nCount1 + $nRepeatSum1 - $nRepeatCount1 + $nCount2 + $nRepeatSum2 - $nRepeatCount2)"/>
11065								</xsl:variable>
11066								<xsl:call-template name="RowNumber">
11067									<xsl:with-param name="result" select="$nCurPos"/>
11068								</xsl:call-template>
11069							</xsl:for-each>
11070						</xsl:variable>
11071						<xsl:variable name="TableName" select="$tableslist[position() = $tableNumber]/@table:name"/>
11072						<xsl:value-of select="concat($TableName,'.',$ColumnNum,' ',$RowNum)"/>
11073					</xsl:when>
11074					<xsl:otherwise>
11075						<xsl:call-template name="search-left-top-condition-format">
11076							<xsl:with-param name="validation-name" select="$validation-name"/>
11077							<xsl:with-param name="tableslist" select="$tableslist"/>
11078							<xsl:with-param name="return" select="''"/>
11079							<xsl:with-param name="tableNumber" select="$tableNumber + 1"/>
11080						</xsl:call-template>
11081					</xsl:otherwise>
11082				</xsl:choose>
11083			</xsl:if>
11084		</xsl:variable>
11085		<xsl:choose>
11086			<xsl:when test="$first-left-top != ''">
11087				<xsl:value-of select="$first-left-top"/>
11088			</xsl:when>
11089			<xsl:otherwise>
11090				<xsl:value-of select="$return"/>
11091			</xsl:otherwise>
11092		</xsl:choose>
11093	</xsl:template>
11094	<xsl:template name="search-left-top-condition-format-inatable">
11095		<xsl:param name="row-num"/>
11096		<xsl:param name="firsttablerows"/>
11097		<xsl:param name="validation-name"/>
11098		<xsl:param name="return"/>
11099		<xsl:param name="currentRowCount"/>
11100		<xsl:variable name="firstcells" select="$firsttablerows[position() = $currentRowCount]/table:table-cell"/>
11101		<xsl:variable name="first-left-top">
11102			<xsl:if test="not($currentRowCount &gt; count($firsttablerows))">
11103				<xsl:choose>
11104					<xsl:when test="$firsttablerows[position() = $currentRowCount]/table:table-cell[@table:style-name = $validation-name]">
11105						<xsl:call-template name="search-left-top-condition-format-inarow">
11106							<xsl:with-param name="row-num" select="$row-num"/>
11107							<xsl:with-param name="column-num" select="number('1')"/>
11108							<xsl:with-param name="firstcells" select="$firstcells"/>
11109							<xsl:with-param name="validation-name" select="$validation-name"/>
11110							<xsl:with-param name="return" select="''"/>
11111							<xsl:with-param name="currentColumnCount" select="number('1')"/>
11112						</xsl:call-template>
11113					</xsl:when>
11114					<xsl:otherwise>
11115						<xsl:call-template name="search-left-top-condition-format-inatable">
11116							<xsl:with-param name="row-num">
11117								<xsl:choose>
11118									<xsl:when test="$firsttablerows[position() = $currentRowCount]/@table:number-rows-repeated">
11119										<xsl:value-of select="$row-num+ $firsttablerows[position() = $currentRowCount]/@table:number-rows-repeated"/>
11120									</xsl:when>
11121									<xsl:otherwise>
11122										<xsl:value-of select="number($row-num) + 1"/>
11123									</xsl:otherwise>
11124								</xsl:choose>
11125							</xsl:with-param>
11126							<xsl:with-param name="firsttablerows" select="$firsttablerows"/>
11127							<xsl:with-param name="validation-name" select="$validation-name"/>
11128							<xsl:with-param name="return" select="$return"/>
11129							<xsl:with-param name="currentRowCount" select="$currentRowCount + 1"/>
11130						</xsl:call-template>
11131					</xsl:otherwise>
11132				</xsl:choose>
11133			</xsl:if>
11134		</xsl:variable>
11135		<xsl:choose>
11136			<xsl:when test="$first-left-top!=''">
11137				<xsl:value-of select="$first-left-top"/>
11138			</xsl:when>
11139			<xsl:otherwise>
11140				<xsl:value-of select="''"/>
11141			</xsl:otherwise>
11142		</xsl:choose>
11143	</xsl:template>
11144	<xsl:template name="search-left-top-condition-format-inarow">
11145		<xsl:param name="row-num"/>
11146		<xsl:param name="column-num"/>
11147		<xsl:param name="firstcells"/>
11148		<xsl:param name="validation-name"/>
11149		<xsl:param name="return"/>
11150		<xsl:param name="currentColumnCount"/>
11151		<xsl:variable name="cellsCount" select="count($firstcells[not(@table:number-columns-repeated)]) + sum($firstcells/@table:number-columns-repeated)"/>
11152		<xsl:variable name="first-left-top">
11153			<xsl:if test="not($column-num &gt; $cellsCount)">
11154				<xsl:choose>
11155					<xsl:when test="$firstcells[position() = $currentColumnCount][@table:style-name = $validation-name]">
11156						<xsl:value-of select="concat($firstcells[position() = $currentColumnCount]/ancestor::table:table/@table:name,'.',$column-num,' ',$row-num)"/>
11157					</xsl:when>
11158					<xsl:otherwise>
11159						<xsl:call-template name="search-left-top-condition-format-inarow">
11160							<xsl:with-param name="row-num" select="$row-num"/>
11161							<xsl:with-param name="column-num">
11162								<xsl:choose>
11163									<xsl:when test="$firstcells[position() = $currentColumnCount]/@table:number-columns-repeated">
11164										<xsl:value-of select="number($column-num) + $firstcells[position() = $currentColumnCount]/@table:number-columns-repeated"/>
11165									</xsl:when>
11166									<xsl:otherwise>
11167										<xsl:value-of select="number($column-num) + 1"/>
11168									</xsl:otherwise>
11169								</xsl:choose>
11170							</xsl:with-param>
11171							<xsl:with-param name="firstcells" select="$firstcells"/>
11172							<xsl:with-param name="validation-name" select="$validation-name"/>
11173							<xsl:with-param name="return" select="$return"/>
11174							<xsl:with-param name="currentColumnCount" select="$currentColumnCount + 1"/>
11175						</xsl:call-template>
11176					</xsl:otherwise>
11177				</xsl:choose>
11178			</xsl:if>
11179		</xsl:variable>
11180		<xsl:choose>
11181			<xsl:when test="$first-left-top!=''">
11182				<xsl:value-of select="$first-left-top"/>
11183			</xsl:when>
11184			<xsl:otherwise>
11185				<xsl:value-of select="$return"/>
11186			</xsl:otherwise>
11187		</xsl:choose>
11188	</xsl:template>
11189	<xsl:template name="search-right-bottom-condition-format">
11190		<xsl:param name="validation-name"/>
11191		<xsl:param name="tablelist"/>
11192		<xsl:param name="tableNumber"/>
11193		<xsl:variable name="tableCount" select="count($tablelist)"/>
11194		<xsl:variable name="rowCount" select="count($tablelist[position() = $tableNumber]/table:table-row)"/>
11195		<xsl:if test="not($tableNumber &gt; $tableCount)">
11196			<xsl:choose>
11197				<!--<xsl:when test="$tablelist[position() = $tableNumber]/table:table-row/table:table-cell[@table:style-name = $validation-name]">
11198					<xsl:call-template name="search-right-bottom-condition-format-inRow">
11199						<xsl:with-param name="rowList" select="$tablelist[position() = $tableNumber]/table:table-row"/>
11200						<xsl:with-param name="rowCount" select="$rowCount"/>
11201						<xsl:with-param name="rowNumber" select="number('1')"/>
11202						<xsl:with-param name="currentRowPosition" select="number('1')"/>
11203						<xsl:with-param name="tableName" select="$tablelist[position() = $tableNumber]/@table:name"/>
11204						<xsl:with-param name="validation-name" select="$validation-name"/>
11205					</xsl:call-template>-->
11206				<xsl:when test="$tablelist[position() = $tableNumber]/table:table-row/table:table-cell[@table:style-name = $validation-name]">
11207					<xsl:variable name="count" select="count($tablelist[position() = $tableNumber]/table:table-row[./table:table-cell/@table:style-name = $validation-name])"/>
11208					<xsl:variable name="ColumnNum">
11209						<xsl:for-each select="$tablelist[position() = $tableNumber]/table:table-row/table:table-cell[@table:style-name = $validation-name][position() = $count]">
11210							<xsl:variable name="nCount1" select="count(preceding-sibling::table:table-cell)"/>
11211							<xsl:variable name="nRepeatSum1" select="sum(preceding-sibling::table:table-cell[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
11212							<xsl:variable name="nRepeatCount1" select="count(preceding-sibling::table:table-cell[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
11213							<xsl:variable name="nCount2" select="count(preceding-sibling::table:covered-table-cell)"/>
11214							<xsl:variable name="nRepeatSum2" select="sum(preceding-sibling::table:covered-table-cell[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
11215							<xsl:variable name="nRepeatCount2" select="count(preceding-sibling::table:covered-table-cell[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
11216							<xsl:variable name="columnPos">
11217								<xsl:value-of select="number($nCount1 + $nRepeatSum1 - $nRepeatCount1 + $nCount2 + $nRepeatSum2 - $nRepeatCount2 + 1)"/>
11218							</xsl:variable>
11219							<xsl:value-of select="$columnPos"/>
11220						</xsl:for-each>
11221					</xsl:variable>
11222					<xsl:variable name="RowNum">
11223						<xsl:for-each select="$tablelist[position() = $tableNumber]/table:table-row[./table:table-cell/@table:style-name = $validation-name][position() = $count]">
11224							<xsl:variable name="nCount1" select="count(preceding-sibling::table:table-row)"/>
11225							<xsl:variable name="nRepeatSum1" select="sum(preceding-sibling::table:table-row[@table:number-rows-repeated]/@table:number-rows-repeated)"/>
11226							<xsl:variable name="nRepeatCount1" select="count(preceding-sibling::table:table-row[@table:number-rows-repeated]/@table:number-rows-repeated)"/>
11227							<xsl:variable name="nCount2" select="count(preceding-sibling::*//table:table-row[not(ancestor::office:chart)])"/>
11228							<xsl:variable name="nRepeatSum2" select="sum(preceding-sibling::*//table:table-row[@table:number-rows-repeated and not(ancestor::office:chart)]/@table:number-rows-repeated)"/>
11229							<xsl:variable name="nRepeatCount2" select="count(preceding-sibling::*//table:table-row[@table:number-rows-repeated and not(ancestor::office:chart)]/@table:number-rows-repeated)"/>
11230							<xsl:variable name="nCurPos">
11231								<xsl:value-of select="number($nCount1 + $nRepeatSum1 - $nRepeatCount1 + $nCount2 + $nRepeatSum2 - $nRepeatCount2)"/>
11232							</xsl:variable>
11233							<xsl:call-template name="RowNumber">
11234								<xsl:with-param name="result" select="$nCurPos"/>
11235							</xsl:call-template>
11236						</xsl:for-each>
11237					</xsl:variable>
11238					<xsl:variable name="TableName" select="$tablelist[position() = $tableNumber]/@table:name"/>
11239					<xsl:value-of select="concat($TableName,'.',$ColumnNum,' ',$RowNum)"/>
11240
11241				</xsl:when>
11242				<xsl:otherwise>
11243					<xsl:call-template name="search-right-bottom-condition-format">
11244						<xsl:with-param name="validation-name" select="$validation-name"/>
11245						<xsl:with-param name="tablelist" select="$tablelist"/>
11246						<xsl:with-param name="tableNumber" select="$tableNumber + 1"/>
11247					</xsl:call-template>
11248				</xsl:otherwise>
11249			</xsl:choose>
11250		</xsl:if>
11251	</xsl:template>
11252	<xsl:template name="search-right-bottom-condition-format-inRow">
11253		<xsl:param name="rowList"/>
11254		<xsl:param name="rowCount"/>
11255		<xsl:param name="rowNumber"/>
11256		<xsl:param name="currentRowPosition"/>
11257		<xsl:param name="tableName"/>
11258		<xsl:param name="validation-name"/>
11259		<xsl:variable name="cellCount" select="count($rowList[position() = $currentRowPosition]/table:table-cell)"/>
11260		<xsl:if test="not($currentRowPosition &gt; $rowCount)">
11261			<xsl:choose>
11262				<xsl:when test="$rowList[position() = $currentRowPosition]/table:table-cell[@table:style-name = $validation-name]  and not($rowList[position() &gt; $currentRowPosition]/table:table-cell[@table:style-name = $validation-name])">
11263					<xsl:call-template name="search-right-bottom-condition-format-inCell">
11264						<xsl:with-param name="cellList" select="$rowList[position() = $currentRowPosition]/table:table-cell"/>
11265						<xsl:with-param name="cellCount" select="$cellCount"/>
11266						<xsl:with-param name="cellNumber" select="number('1')"/>
11267						<xsl:with-param name="rowNumber">
11268							<xsl:choose>
11269								<xsl:when test="$rowList[position() = $currentRowPosition]/@table:number-rows-repeated">
11270									<xsl:value-of select="$rowNumber + $rowList[position() = $currentRowPosition]/@table:number-rows-repeated - 1"/>
11271								</xsl:when>
11272								<xsl:otherwise>
11273									<xsl:value-of select="$rowNumber"/>
11274								</xsl:otherwise>
11275							</xsl:choose>
11276						</xsl:with-param>
11277						<xsl:with-param name="currentCellPosition" select="number('1')"/>
11278						<xsl:with-param name="tableName" select="$tableName"/>
11279						<xsl:with-param name="validation-name" select="$validation-name"/>
11280					</xsl:call-template>
11281				</xsl:when>
11282				<xsl:otherwise>
11283					<xsl:call-template name="search-right-bottom-condition-format-inRow">
11284						<xsl:with-param name="rowList" select="$rowList"/>
11285						<xsl:with-param name="rowCount" select="$rowCount"/>
11286						<xsl:with-param name="rowNumber">
11287							<xsl:choose>
11288								<xsl:when test="$rowList[position() = $currentRowPosition]/@table:number-rows-repeated">
11289									<xsl:value-of select="$rowNumber + $rowList[position() = $currentRowPosition]/@table:number-rows-repeated"/>
11290								</xsl:when>
11291								<xsl:otherwise>
11292									<xsl:value-of select="$rowNumber + 1"/>
11293								</xsl:otherwise>
11294							</xsl:choose>
11295						</xsl:with-param>
11296						<xsl:with-param name="currentRowPosition" select="$currentRowPosition + 1"/>
11297						<xsl:with-param name="tableName" select="$tableName"/>
11298						<xsl:with-param name="validation-name" select="$validation-name"/>
11299					</xsl:call-template>
11300				</xsl:otherwise>
11301			</xsl:choose>
11302		</xsl:if>
11303	</xsl:template>
11304	<xsl:template name="search-right-bottom-condition-format-inCell">
11305		<xsl:param name="cellList"/>
11306		<xsl:param name="cellCount"/>
11307		<xsl:param name="cellNumber"/>
11308		<xsl:param name="rowNumber"/>
11309		<xsl:param name="currentCellPosition"/>
11310		<xsl:param name="tableName"/>
11311		<xsl:param name="validation-name"/>
11312		<xsl:if test="not($currentCellPosition &gt; $cellCount)">
11313			<xsl:choose>
11314				<xsl:when test="$cellList[position() = $currentCellPosition][@table:style-name = $validation-name] and not($cellList[position() &gt; $currentCellPosition][@table:style-name = $validation-name])">
11315					<xsl:variable name="columnResult">
11316						<xsl:choose>
11317							<xsl:when test="$cellList[position() = $currentCellPosition]/@table:number-columns-repeated">
11318								<xsl:value-of select="$cellNumber + $cellList[position() = $currentCellPosition]/@table:number-columns-repeated - 1"/>
11319							</xsl:when>
11320							<xsl:otherwise>
11321								<xsl:value-of select="$cellNumber"/>
11322							</xsl:otherwise>
11323						</xsl:choose>
11324					</xsl:variable>
11325					<xsl:value-of select="concat($tableName,'.',$columnResult,' ',$rowNumber)"/>
11326				</xsl:when>
11327				<xsl:otherwise>
11328					<xsl:call-template name="search-right-bottom-condition-format-inCell">
11329						<xsl:with-param name="cellList" select="$cellList"/>
11330						<xsl:with-param name="cellCount" select="$cellCount"/>
11331						<xsl:with-param name="cellNumber">
11332							<xsl:choose>
11333								<xsl:when test="$cellList[position() = $currentCellPosition]/@table:number-columns-repeated">
11334									<xsl:value-of select="$cellNumber + $cellList[position() = $currentCellPosition]/@table:number-columns-repeated"/>
11335								</xsl:when>
11336								<xsl:otherwise>
11337									<xsl:value-of select="$cellNumber + 1"/>
11338								</xsl:otherwise>
11339							</xsl:choose>
11340						</xsl:with-param>
11341						<xsl:with-param name="rowNumber" select="$rowNumber"/>
11342						<xsl:with-param name="currentCellPosition" select="$currentCellPosition + 1"/>
11343						<xsl:with-param name="tableName" select="$tableName"/>
11344						<xsl:with-param name="validation-name" select="$validation-name"/>
11345					</xsl:call-template>
11346				</xsl:otherwise>
11347			</xsl:choose>
11348		</xsl:if>
11349	</xsl:template>
11350	<xsl:template name="BorderLineAttr">
11351		<xsl:variable name="linetype" select="@draw:stroke-dash"/>
11352		<xsl:variable name="uoflinetype">
11353			<xsl:choose>
11354				<xsl:when test="@fo:border='none'">none</xsl:when>
11355				<xsl:when test="contains(@fo:border, 'double')">double</xsl:when>
11356				<xsl:when test="contains(@fo:border, 'solid')">single</xsl:when>
11357				<xsl:when test="not(@draw:stroke)">
11358					<xsl:choose>
11359						<xsl:when test="not(@svg:stroke-width)">single</xsl:when>
11360						<xsl:otherwise>single</xsl:otherwise>
11361					</xsl:choose>
11362				</xsl:when>
11363				<xsl:otherwise>
11364					<xsl:choose>
11365						<xsl:when test="@draw:stroke = 'none'">none</xsl:when>
11366						<xsl:when test="@draw:stroke = 'solid' ">single</xsl:when>
11367						<xsl:when test="not($linetype or @fo:border)">
11368							<xsl:variable name="mark" select="../@style:parent-style-name"/>
11369							<xsl:for-each select="ancestor::office:document[1]/office:styles/style:style[@style:name=$mark]">
11370								<xsl:choose>
11371									<xsl:when test="not(@fo:border)">none</xsl:when>
11372									<xsl:otherwise>single</xsl:otherwise>
11373								</xsl:choose>
11374							</xsl:for-each>
11375						</xsl:when>
11376						<xsl:otherwise>single</xsl:otherwise>
11377					</xsl:choose>
11378				</xsl:otherwise>
11379			</xsl:choose>
11380		</xsl:variable>
11381		<xsl:attribute name="线型_C60D" select="$uoflinetype"/>
11382		<xsl:if test="not(@fo:border='none') and not(@draw:stroke = 'none')">
11383			<xsl:variable name="linedash">
11384				<xsl:choose>
11385					<xsl:when test="not(@draw:stroke-dash) or @draw:stroke='solid'">solid</xsl:when>
11386					<xsl:when test="$linetype='round-dot'">round-dot</xsl:when>
11387					<xsl:when test="$linetype='square-dot'">square-dot</xsl:when>
11388					<xsl:when test="$linetype='dash'">dash</xsl:when>
11389					<xsl:when test="$linetype='dash-dot'">dash-dot</xsl:when>
11390					<xsl:when test="$linetype='long-dash'">long-dash</xsl:when>
11391					<xsl:when test="$linetype='long-dash-dot'">long-dash-dot</xsl:when>
11392					<xsl:when test="$linetype='dash-dot-dot'">dash-dot-dot</xsl:when>
11393					<xsl:otherwise>dash</xsl:otherwise>
11394				</xsl:choose>
11395			</xsl:variable>
11396			<xsl:attribute name="虚实_C60E" select="$linedash"/>
11397		</xsl:if>
11398		<xsl:if test="@svg:stroke-width">
11399			<xsl:attribute name="宽度_C60F"><xsl:value-of select="fun:Convert2uofUnit(@svg:stroke-width)"/></xsl:attribute>
11400		</xsl:if>
11401		<!--遗留 边距_C610-->
11402		<xsl:if test="@svg:stroke-color">
11403			<xsl:attribute name="颜色_C611"><xsl:value-of select="@svg:stroke-color"/></xsl:attribute>
11404		</xsl:if>
11405		<!--xsl:attribute name="是否加阴影_C611">false</xsl:attribute-->
11406	</xsl:template>
11407	<xsl:template name="Font_E70B">
11408		<xsl:if test="style:text-properties">
11409			<图表:字体_E70B>
11410				<xsl:call-template name="UOFTextStyle"/>
11411			</图表:字体_E70B>
11412		</xsl:if>
11413	</xsl:template>
11414	<xsl:template name="BorderLine_4226">
11415		<xsl:for-each select="style:graphic-properties[@draw:stroke-dash or @fo:border or @draw:stroke]">
11416			<图表:边框线_4226>
11417				<xsl:call-template name="BorderLineAttr"/>
11418			</图表:边框线_4226>
11419		</xsl:for-each>
11420	</xsl:template>
11421	<xsl:template name="Fill_E746">
11422		<xsl:for-each select="style:graphic-properties">
11423			<xsl:if test="@draw:fill or @draw:fill-color">
11424				<图表:填充_E746>
11425					<xsl:call-template name="图:填充-graph">
11426						<xsl:with-param name="graphproperty" select="."/>
11427					</xsl:call-template>
11428				</图表:填充_E746>
11429			</xsl:if>
11430		</xsl:for-each>
11431	</xsl:template>
11432	<xsl:template name="Align_E726">
11433		<图表:对齐_E726>
11434			<xsl:for-each select="style:chart-properties">
11435				<xsl:choose>
11436					<xsl:when test="@fo:text-align">
11437						<xsl:element name="图表:水平对齐方式_E700">
11438							<xsl:choose>
11439								<xsl:when test="@fo:text-align = 'center'">center</xsl:when>
11440								<xsl:when test="@fo:text-align = 'end'">right</xsl:when>
11441								<xsl:when test="@fo:text-align = 'justify'">justify</xsl:when>
11442								<xsl:when test="@fo:text-align = 'start' and ../../style:table-cell-properties[@style:repeat-content='true']">fill</xsl:when>
11443								<xsl:when test="@fo:text-align = 'start'">left</xsl:when>
11444								<xsl:otherwise>general</xsl:otherwise>
11445							</xsl:choose>
11446						</xsl:element>
11447					</xsl:when>
11448				</xsl:choose>
11449				<xsl:if test="@style:vertical-align or @fo:vertical-align">
11450					<xsl:element name="图表:垂直对齐方式_E701">
11451						<xsl:choose>
11452							<xsl:when test="@fo:vertical-align = 'top'">top</xsl:when>
11453							<xsl:when test="@fo:vertical-align = 'middle'">center</xsl:when>
11454							<xsl:when test="@fo:vertical-align = 'bottom'">bottom</xsl:when>
11455							<xsl:when test="@fo:vertical-align = 'justify'">justify</xsl:when>
11456							<xsl:when test="@fo:vertical-align = 'top'">top</xsl:when>
11457							<xsl:otherwise>distributed</xsl:otherwise>
11458						</xsl:choose>
11459					</xsl:element>
11460				</xsl:if>
11461				<xsl:element name="图表:文字排列方向_E703">
11462					<xsl:choose>
11463						<xsl:when test="@style:direction = 'ttb'">r2l-t2b-0e-90w</xsl:when>
11464						<xsl:otherwise>t2b-l2r-0e-0w</xsl:otherwise>
11465					</xsl:choose>
11466				</xsl:element>
11467				<xsl:if test="@style:rotation-angle">
11468					<图表:文字旋转角度_E704>
11469						<xsl:value-of select="@style:rotation-angle"/>
11470					</图表:文字旋转角度_E704>
11471				</xsl:if>
11472			</xsl:for-each>
11473			<xsl:if test="style:paragraph-properties/@fo:margin-left">
11474				<图表:缩进_E702>
11475					<xsl:value-of select="round(number(substring-before(style:paragraph-properties/@fo:margin-left,$uofUnit)))"/>
11476				</图表:缩进_E702>
11477			</xsl:if>
11478			<图表:是否自动换行_E705>true</图表:是否自动换行_E705>
11479			<图表:是否缩小字体填充_E706>true</图表:是否缩小字体填充_E706>
11480		</图表:对齐_E726>
11481	</xsl:template>
11482	<xsl:template name="Align_E730">
11483		<xsl:for-each select="style:chart-properties[@style:direction or @style:rotation-angle]">
11484			<图表:对齐_E730>
11485				<xsl:if test="@style:direction">
11486					<图表:文字排列方向_E703>
11487						<xsl:choose>
11488							<xsl:when test="@style:direction = 'ttb'">r2l-t2b-0e-90w</xsl:when>
11489							<xsl:otherwise>t2b-l2r-0e-0w</xsl:otherwise>
11490						</xsl:choose>
11491					</图表:文字排列方向_E703>
11492				</xsl:if>
11493				<xsl:if test="@style:rotation-angle">
11494					<图表:文字旋转角度_E704>
11495						<xsl:value-of select="@style:rotation-angle"/>
11496					</图表:文字旋转角度_E704>
11497				</xsl:if>
11498				<!--待转偏移量-->
11499			</图表:对齐_E730>
11500		</xsl:for-each>
11501	</xsl:template>
11502	<xsl:template name="number-to-character">
11503		<xsl:param name="number"/>
11504		<xsl:choose>
11505			<xsl:when test="$number =  0"/>
11506			<xsl:when test="$number =  1">A</xsl:when>
11507			<xsl:when test="$number =  2">B</xsl:when>
11508			<xsl:when test="$number =  3">C</xsl:when>
11509			<xsl:when test="$number =  4">D</xsl:when>
11510			<xsl:when test="$number =  5">E</xsl:when>
11511			<xsl:when test="$number =  6">F</xsl:when>
11512			<xsl:when test="$number =  7">G</xsl:when>
11513			<xsl:when test="$number =  8">H</xsl:when>
11514			<xsl:when test="$number =  9">I</xsl:when>
11515			<xsl:when test="$number = 10">J</xsl:when>
11516			<xsl:when test="$number = 11">K</xsl:when>
11517			<xsl:when test="$number = 12">L</xsl:when>
11518			<xsl:when test="$number = 13">M</xsl:when>
11519			<xsl:when test="$number = 14">N</xsl:when>
11520			<xsl:when test="$number = 15">O</xsl:when>
11521			<xsl:when test="$number = 16">P</xsl:when>
11522			<xsl:when test="$number = 17">Q</xsl:when>
11523			<xsl:when test="$number = 18">R</xsl:when>
11524			<xsl:when test="$number = 19">S</xsl:when>
11525			<xsl:when test="$number = 20">T</xsl:when>
11526			<xsl:when test="$number = 21">U</xsl:when>
11527			<xsl:when test="$number = 22">V</xsl:when>
11528			<xsl:when test="$number = 23">W</xsl:when>
11529			<xsl:when test="$number = 24">X</xsl:when>
11530			<xsl:when test="$number = 25">Y</xsl:when>
11531			<xsl:when test="$number = 26">Z</xsl:when>
11532			<xsl:otherwise/>
11533		</xsl:choose>
11534	</xsl:template>
11535	<xsl:template name="transform-data-area">
11536		<xsl:param name="data-area"/>
11537		<xsl:variable name="apos">'</xsl:variable>
11538		<!--xsl:variable name="apos1">
11539			<xsl:value-of select="concat(',', $apos)"/>
11540		</xsl:variable>
11541		<xsl:variable name="MidData1" select="translate($data-area, ' ', $apos1)"/>
11542		<xsl:variable name="apos">&apos;</xsl:variable>
11543		<xsl:variable name="apos2">
11544			<xsl:value-of select="concat($apos, '!')"/>
11545		</xsl:variable>
11546		<xsl:variable name="MidData2" select="translate($MidData1, '.', $apos2)"/>
11547		<xsl:variable name="MidData3" select="concat('=', $apos, $MidData2)"/>
11548		<xsl:value-of select="$MidData3"/-->
11549		<xsl:value-of select="'='"/>
11550		<xsl:analyze-string regex="{' '}" select="$data-area">
11551			<xsl:non-matching-substring>
11552				<xsl:analyze-string regex="{':'}" select=".">
11553					<xsl:non-matching-substring>
11554						<xsl:variable name="table-name">
11555							<xsl:if test="substring-before(.,'.')!=''">
11556								<xsl:value-of select="concat($apos,substring-before(.,'.'),$apos,'!')"/>
11557							</xsl:if>
11558						</xsl:variable>
11559						<xsl:value-of select="concat($table-name,substring-after(.,'.'))"/>
11560					</xsl:non-matching-substring>
11561					<xsl:matching-substring>
11562						<xsl:value-of select="."/>
11563					</xsl:matching-substring>
11564				</xsl:analyze-string>
11565			</xsl:non-matching-substring>
11566			<xsl:matching-substring>
11567				<xsl:value-of select="','"/>
11568			</xsl:matching-substring>
11569		</xsl:analyze-string>
11570	</xsl:template>
11571	<xsl:template name="图表:图表区_E743">
11572		<xsl:variable name="chart-style-name" select="@chart:style-name"/>
11573		<xsl:for-each select="ancestor::office:document[1]/office:automatic-styles/style:style[@style:name=$chart-style-name]">
11574			<xsl:call-template name="Font_E70B"/>
11575			<xsl:call-template name="BorderLine_4226"/>
11576			<xsl:call-template name="Fill_E746"/>
11577		</xsl:for-each>
11578	</xsl:template>
11579	<xsl:template match="chart:title">
11580		<图表:标题_E736>
11581			<!--统一图表及坐标轴下的标题编号E7A0为E736-->
11582			<!--转 xsl:attribute name="名称_E742"></xsl:attribute-->
11583			<xsl:attribute name="名称_E742" select="text:p"/>
11584			<xsl:if test="@svg:x or @svg:y">
11585				<图表:位置_E70A>
11586					<xsl:if test="@svg:x">
11587						<xsl:attribute name="x_C606"><xsl:value-of select="fun:Convert2uofUnit(@svg:x)"/></xsl:attribute>
11588					</xsl:if>
11589					<xsl:if test="@svg:y">
11590						<xsl:attribute name="y_C607"><xsl:value-of select="fun:Convert2uofUnit(@svg:y)"/></xsl:attribute>
11591					</xsl:if>
11592				</图表:位置_E70A>
11593			</xsl:if>
11594			<xsl:variable name="title-style-name" select="@chart:style-name"/>
11595			<xsl:for-each select="ancestor::office:document[1]/office:automatic-styles/style:style[@style:name=$title-style-name]">
11596				<xsl:call-template name="Font_E70B"/>
11597				<xsl:call-template name="BorderLine_4226"/>
11598				<xsl:call-template name="Fill_E746"/>
11599				<xsl:call-template name="Align_E726"/>
11600			</xsl:for-each>
11601		</图表:标题_E736>
11602	</xsl:template>
11603	<xsl:template name="图表:数据点类型">
11604		<xsl:param name="StyleName"/>
11605		<xsl:param name="SeriesName"/>
11606		<xsl:for-each select="ancestor::office:document[1]/office:automatic-styles/style:style[@style:name=$StyleName]">
11607			<xsl:call-template name="BorderLine_4226"/>
11608			<xsl:call-template name="Fill_E746"/>
11609			<xsl:for-each select="style:chart-properties">
11610				<xsl:call-template name="DataLabel_E752"/>
11611				<xsl:call-template name="DataSymbol_E70E"/>
11612			</xsl:for-each>
11613			<!-- ODF功能缺失 是否补色代表负值 分离度-->
11614		</xsl:for-each>
11615	</xsl:template>
11616	<xsl:template name="重复数据点">
11617		<xsl:param name="SeriesName"/>
11618		<xsl:param name="chart_repeated"/>
11619		<xsl:param name="data-series-position"/>
11620		<xsl:param name="data-point-position"/>
11621		<xsl:param name="repeat_number"/>
11622		<xsl:if test="$chart_repeated &gt;1">
11623			<图表:数据点_E756>
11624				<xsl:attribute name="点_E757"><xsl:value-of select="$data-point-position + $repeat_number"/></xsl:attribute>
11625				<xsl:call-template name="图表:数据点类型">
11626					<xsl:with-param name="StyleName" select="@chart:style-name"/>
11627					<xsl:with-param name="SeriesName" select="$SeriesName"/>
11628				</xsl:call-template>
11629			</图表:数据点_E756>
11630			<xsl:call-template name="重复数据点">
11631				<xsl:with-param name="SeriesName" select="$SeriesName"/>
11632				<xsl:with-param name="chart_repeated" select="$chart_repeated - 1"/>
11633				<xsl:with-param name="data-series-position" select="$data-series-position"/>
11634				<xsl:with-param name="data-point-position" select="$data-point-position"/>
11635				<xsl:with-param name="repeat_number" select="$repeat_number + 1"/>
11636			</xsl:call-template>
11637		</xsl:if>
11638	</xsl:template>
11639	<xsl:template match="chart:data-point">
11640		<xsl:param name="SeriesName"/>
11641		<xsl:param name="data-series-position"/>
11642		<xsl:variable name="data-point-position">
11643			<xsl:variable name="nCount" select="count(preceding-sibling::chart:data-point)"/>
11644			<xsl:variable name="nRepeatSum" select="sum(preceding-sibling::chart:data-point[@chart:repeated]/@chart:repeated)"/>
11645			<xsl:variable name="nRepeatCount" select="count(preceding-sibling::chart:data-point[@chart:repeated]/@chart:repeated)"/>
11646			<xsl:value-of select="number($nCount + $nRepeatSum - $nRepeatCount)"/>
11647		</xsl:variable>
11648		<图表:数据点_E756>
11649			<xsl:attribute name="点_E757"><xsl:value-of select="$data-point-position + 1"/></xsl:attribute>
11650			<xsl:call-template name="图表:数据点类型">
11651				<xsl:with-param name="StyleName" select="@chart:style-name"/>
11652				<xsl:with-param name="SeriesName" select="$SeriesName"/>
11653			</xsl:call-template>
11654		</图表:数据点_E756>
11655		<xsl:if test="@chart:repeated &gt;1">
11656			<xsl:call-template name="重复数据点">
11657				<xsl:with-param name="SeriesName" select="$SeriesName"/>
11658				<xsl:with-param name="chart_repeated" select="@chart:repeated"/>
11659				<xsl:with-param name="data-series-position" select="$data-series-position"/>
11660				<xsl:with-param name="data-point-position" select="$data-point-position"/>
11661				<xsl:with-param name="repeat_number" select="1"/>
11662			</xsl:call-template>
11663		</xsl:if>
11664	</xsl:template>
11665	<xsl:template name="图表:数据系列_E74F_Attrs">
11666		<xsl:if test="@chart:label-cell-address">
11667			<xsl:variable name="cell-area">
11668				<xsl:variable name="data-area">
11669					<xsl:value-of select="@chart:label-cell-address"/>
11670				</xsl:variable>
11671				<xsl:call-template name="transform-data-area">
11672					<xsl:with-param name="data-area" select="$data-area"/>
11673				</xsl:call-template>
11674			</xsl:variable>
11675			<xsl:attribute name="名称_E774"><xsl:value-of select="$cell-area"/></xsl:attribute>
11676		</xsl:if>
11677		<xsl:if test="@chart:values-cell-range-address">
11678			<xsl:variable name="cell-area">
11679				<xsl:variable name="data-area">
11680					<xsl:value-of select="@chart:values-cell-range-address"/>
11681				</xsl:variable>
11682				<xsl:call-template name="transform-data-area">
11683					<xsl:with-param name="data-area" select="$data-area"/>
11684				</xsl:call-template>
11685			</xsl:variable>
11686			<xsl:attribute name="值_E775"><xsl:value-of select="$cell-area"/></xsl:attribute>
11687		</xsl:if>
11688		<xsl:for-each select="../chart:axis[@chart:name='primary-x']/chart:categories">
11689			<xsl:variable name="cell-area">
11690				<xsl:variable name="data-area">
11691					<xsl:value-of select="@table:cell-range-address"/>
11692				</xsl:variable>
11693				<xsl:call-template name="transform-data-area">
11694					<xsl:with-param name="data-area" select="$data-area"/>
11695				</xsl:call-template>
11696			</xsl:variable>
11697			<xsl:attribute name="分类名_E776"><xsl:value-of select="$cell-area"/></xsl:attribute>
11698		</xsl:for-each>
11699		<xsl:variable name="chart-class" select="../../../chart:chart/@chart:class"/>
11700		<xsl:variable name="plot-area" select="../../chart:plot-area/@chart:style-name"/>
11701		<xsl:variable name="series-style-name" select="@chart:style-name"/>
11702		<xsl:variable name="plot-style" select="ancestor::office:document[1]/office:automatic-styles/style:style[@style:name=$plot-area]/style:chart-properties"/>
11703		<xsl:variable name="chart-sub-class">
11704			<xsl:choose>
11705				<xsl:when test="$plot-style/@chart:vertical">
11706					<xsl:value-of select="$plot-style/@chart:vertical"/>
11707				</xsl:when>
11708				<xsl:otherwise>false</xsl:otherwise>
11709			</xsl:choose>
11710		</xsl:variable>
11711		<xsl:variable name="uofclass">
11712			<xsl:choose>
11713				<xsl:when test="$chart-class='chart:bar' and $chart-sub-class='true'">bar</xsl:when>
11714				<xsl:when test="$chart-class='chart:bar' and $chart-sub-class='false'">column</xsl:when>
11715				<xsl:when test="$chart-class='chart:line'">line</xsl:when>
11716				<xsl:when test="$chart-class='chart:circle' or $chart-class='chart:ring'">pie</xsl:when>
11717				<xsl:otherwise>column</xsl:otherwise>
11718			</xsl:choose>
11719		</xsl:variable>
11720		<xsl:attribute name="类型_E75D"><xsl:value-of select="$uofclass"/></xsl:attribute>
11721		<xsl:variable name="uofsubclass">
11722			<xsl:choose>
11723				<xsl:when test="$chart-class='chart:bar'">
11724					<xsl:choose>
11725						<xsl:when test="$plot-style/@chart:symbol-type='automatic'">clustered</xsl:when>
11726						<xsl:when test="$plot-style/@chart:percentage='true'">percent-stacked</xsl:when>
11727						<xsl:when test="$plot-style/@chart:stacked='true'">stacked</xsl:when>
11728						<xsl:when test="$plot-style/@chart:three-dimensional='true'">clustered-3d</xsl:when>
11729						<xsl:otherwise>clustered</xsl:otherwise>
11730					</xsl:choose>
11731				</xsl:when>
11732				<xsl:when test="$chart-class='chart:circle'">
11733					<xsl:choose>
11734						<xsl:when test="$plot-style/@chart:three-dimensional='true'">
11735							<xsl:choose>
11736								<xsl:when test="ancestor::office:document[1]/office:automatic-styles/style:style[@style:name=$series-style-name]/style:chart-properties/@chart:pie-offset">exploded-3d</xsl:when>
11737								<xsl:otherwise>standard-3d</xsl:otherwise>
11738							</xsl:choose>
11739						</xsl:when>
11740						<xsl:when test="not($plot-style/@chart:three-dimensional='true')">
11741							<xsl:choose>
11742								<xsl:when test="ancestor::office:document[1]/office:automatic-styles/style:style[@style:name=$series-style-name]/style:chart-properties/@chart:pie-offset">exploded</xsl:when>
11743								<xsl:otherwise>standard</xsl:otherwise>
11744							</xsl:choose>
11745						</xsl:when>
11746					</xsl:choose>
11747				</xsl:when>
11748				<xsl:when test="$chart-class='chart:line'">
11749					<xsl:choose>
11750						<xsl:when test="$plot-style/@chart:percentage='true'">percent-stacked</xsl:when>
11751						<xsl:when test="$plot-style/@chart:stacked='true'">stacked</xsl:when>
11752						<!--UOF2.0 101215版本无此枚举值,暂用stacked-marker代替
11753							<xsl:when test="$plot-style/@chart:symbol-type='automatic'">clustered-marker</xsl:when-->
11754						<xsl:when test="$plot-style/@chart:symbol-type='automatic'">stacked-marker</xsl:when>
11755						<xsl:otherwise>clustered</xsl:otherwise>
11756					</xsl:choose>
11757				</xsl:when>
11758			</xsl:choose>
11759		</xsl:variable>
11760		<xsl:if test="$uofsubclass!=''">
11761			<xsl:attribute name="子类型_E777" select="$uofsubclass"/>
11762		</xsl:if>
11763		<xsl:attribute name="标识符_E778" select="generate-id(.)"/>
11764		<xsl:variable name="attached-axis-type">
11765			<xsl:variable name="attached-axis" select="@chart:attached-axis"/>
11766			<xsl:for-each select="../chart:axis[@chart:name=$attached-axis]">
11767				<xsl:choose>
11768					<xsl:when test="preceding-sibling::chart:axis[@chart:dimension=current()/@chart:dimension]">secondary</xsl:when>
11769					<xsl:otherwise>primary</xsl:otherwise>
11770				</xsl:choose>
11771			</xsl:for-each>
11772		</xsl:variable>
11773		<xsl:if test="$attached-axis-type !=''">
11774			<xsl:attribute name="系列坐标系_E779" select="$attached-axis-type"/>
11775		</xsl:if>
11776	</xsl:template>
11777	<xsl:template name="DataLabel_E752">
11778		<xsl:if test="@chart:data-label-text|@chart:data-label-number|@chart:data-label-symbol">
11779			<图表:数据标签_E752>
11780				<xsl:attribute name="是否显示系列名_E715">true</xsl:attribute>
11781				<xsl:if test="@chart:data-label-text">
11782					<xsl:attribute name="是否显示类别名_E716"><xsl:value-of select="@chart:data-label-text"/></xsl:attribute>
11783				</xsl:if>
11784				<xsl:if test="@chart:data-label-number">
11785					<xsl:choose>
11786						<xsl:when test="@chart:data-label-number='value'">
11787							<xsl:attribute name="是否显示数值_E717">true</xsl:attribute>
11788						</xsl:when>
11789						<xsl:when test="@chart:data-label-number='percentage'">
11790							<xsl:attribute name="是否百分数图表_E718">true</xsl:attribute>
11791						</xsl:when>
11792					</xsl:choose>
11793				</xsl:if>
11794				<xsl:if test="@chart:data-label-symbol">
11795					<xsl:attribute name="是否显示图例标志_E719"><xsl:value-of select="@chart:data-label-symbol"/></xsl:attribute>
11796					<xsl:if test="chart:label-separator">
11797						<xsl:attribute name="分隔符_E71A"><xsl:choose><xsl:when test="string(chart:label-separator/text:p) = ', '">1</xsl:when><xsl:when test="string(chart:label-separator/text:p) = '; '">2</xsl:when><xsl:when test="string(chart:label-separator/text:p) = '. '">3</xsl:when><xsl:otherwise>4</xsl:otherwise></xsl:choose></xsl:attribute>
11798					</xsl:if>
11799					<!--ODF功能缺失 @气泡尺寸 以及数据标签的位置 填充 边框 等子元素信息-->
11800				</xsl:if>
11801			</图表:数据标签_E752>
11802		</xsl:if>
11803	</xsl:template>
11804	<xsl:template name="DataSymbol_E70E">
11805		<xsl:if test="@chart:symbol-type|@chart:symbol-name|@chart:symbol-width|@chart:symbol-height">
11806			<图表:数据标记_E70E>
11807				<xsl:if test="@chart:symbol-type!='none'">
11808					<xsl:variable name="symbol-type">
11809						<xsl:choose>
11810							<xsl:when test="@chart:symbol-name='arrow-up'">triangle</xsl:when>
11811							<xsl:when test="@chart:symbol-name='x'">square-cross</xsl:when>
11812							<xsl:when test="@chart:symbol-name='asterisk'">square-star</xsl:when>
11813							<xsl:when test="@chart:symbol-name='horizontal-bar'">line</xsl:when>
11814							<xsl:when test="@chart:symbol-name='plus'">line</xsl:when>
11815							<xsl:when test="@chart:symbol-name='square'or @chart:symbol-name='diamond' or @chart:symbol-name='circle'">
11816								<xsl:value-of select="@chart:symbol-name"/>
11817							</xsl:when>
11818							<xsl:otherwise>square</xsl:otherwise>
11819						</xsl:choose>
11820					</xsl:variable>
11821					<xsl:attribute name="类型_E70F" select="$symbol-type"/>
11822				</xsl:if>
11823				<xsl:choose>
11824					<!--大小表示方法不一致-->
11825					<xsl:when test="@chart:symbol-width='0.25cm'">
11826						<xsl:attribute name="大小_E712">7</xsl:attribute>
11827					</xsl:when>
11828				</xsl:choose>
11829			</图表:数据标记_E70E>
11830		</xsl:if>
11831	</xsl:template>
11832	<xsl:template name="FindSeriesName">
11833		<xsl:param name="Pos"/>
11834		<xsl:param name="series-generate"/>
11835		<xsl:for-each select="ancestor::chart:chart[1]/table:table">
11836			<xsl:choose>
11837				<xsl:when test="$series-generate = 'row'">
11838					<xsl:for-each select="table:table-rows/table:table-row[$Pos]/table:table-cell[1]">
11839						<xsl:value-of select="text:p"/>
11840					</xsl:for-each>
11841				</xsl:when>
11842				<xsl:otherwise>
11843					<xsl:for-each select="table:table-header-rows/table:table-row/table:table-cell[$Pos + 1]">
11844						<xsl:value-of select="text:p"/>
11845					</xsl:for-each>
11846				</xsl:otherwise>
11847			</xsl:choose>
11848		</xsl:for-each>
11849	</xsl:template>
11850	<xsl:template match="chart:error-indicator">
11851		<xsl:param name="series-style-name"/>
11852		<xsl:variable name="indicator-style" select="@chart:style-name"/>
11853		<图表:误差线_E75A>
11854			<xsl:attribute name="方向_E75F" select="'Y'"/>
11855			<xsl:for-each select="ancestor::office:document[1]/office:automatic-styles">
11856				<xsl:for-each select="style:style[@style:name=$series-style-name]">
11857					<xsl:for-each select="style:chart-properties">
11858						<xsl:choose>
11859							<xsl:when test="@chart:error-category='constant'">
11860								<xsl:attribute name="类型_E75D" select="'custom'"/>
11861								<!--UOF 2.0 中 @上 下 定义有误-->
11862								<xsl:attribute name="值_E75E" select="@chart:error-upper-limit"/>
11863							</xsl:when>
11864							<xsl:when test="@chart:error-category='percentage'">
11865								<xsl:attribute name="类型_E75D" select="'percentage'"/>
11866								<xsl:attribute name="值_E75E" select="@chart:error-percentage"/>
11867							</xsl:when>
11868							<xsl:when test="@chart:error-category='standard-deviation'">
11869								<xsl:attribute name="类型_E75D" select="'std-dev'"/>
11870							</xsl:when>
11871							<xsl:when test="@chart:error-category='standard-error'">
11872								<xsl:attribute name="类型_E75D" select="'srd-err'"/>
11873							</xsl:when>
11874						</xsl:choose>
11875						<xsl:variable name="display">
11876							<xsl:choose>
11877								<!--@chart:error-upper- @chart:error-lower- 缺省值为false-->
11878								<xsl:when test="@chart:error-upper-indicator='true' and @chart:error-lower-indicator='true'">both</xsl:when>
11879								<xsl:when test="@chart:error-upper-indicator='true'">positive</xsl:when>
11880								<xsl:when test="@chart:error-lower-indicator='true'">negtive</xsl:when>
11881								<xsl:otherwise>none</xsl:otherwise>
11882							</xsl:choose>
11883						</xsl:variable>
11884						<xsl:attribute name="显示方式_E75C" select="$display"/>
11885					</xsl:for-each>
11886				</xsl:for-each>
11887				<xsl:for-each select="style:style[@style:name=$indicator-style]">
11888					<!-- 100520版UOF2.0错误 边框->边框线 -->
11889					<xsl:call-template name="BorderLine_4226"/>
11890				</xsl:for-each>
11891			</xsl:for-each>
11892		</图表:误差线_E75A>
11893	</xsl:template>
11894	<xsl:template match="chart:regression-curve">
11895		<xsl:param name="series-style-name"/>
11896		<xsl:variable name="curve-style" select="@chart:style-name"/>
11897		<图表:趋势线_E763>
11898			<xsl:for-each select="chart:equation">
11899				<xsl:if test="@chart:display-r-square='false'">
11900					<xsl:attribute name="是否显示R平方值_E771" select="'false'"/>
11901				</xsl:if>
11902				<xsl:if test="@chart:display-equation='false'">
11903					<xsl:attribute name="是否显示公式_E770" select="'false'"/>
11904				</xsl:if>
11905			</xsl:for-each>
11906			<xsl:for-each select="ancestor::office:document[1]/office:automatic-styles">
11907				<xsl:for-each select="style:style[@style:name=$series-style-name]">
11908					<xsl:for-each select="style:chart-properties">
11909						<xsl:if test="@chart:regression-type">
11910							<xsl:variable name="regression-type">
11911								<xsl:choose>
11912									<xsl:when test="@chart:regression-type='none'">moving-average</xsl:when>
11913									<xsl:otherwise>
11914										<xsl:value-of select="@chart:regression-type"/>
11915									</xsl:otherwise>
11916								</xsl:choose>
11917							</xsl:variable>
11918							<xsl:attribute name="类型_E76C" select="$regression-type"/>
11919						</xsl:if>
11920					</xsl:for-each>
11921				</xsl:for-each>
11922				<xsl:for-each select="style:style[@style:name=$curve-style]">
11923					<!-- 100520版UOF2.0错误 边框->边框线 -->
11924					<xsl:call-template name="BorderLine_4226"/>
11925				</xsl:for-each>
11926			</xsl:for-each>
11927			<!--ODF功能缺失:@ 值 名称 截距 前推预测周期 倒退预测周期;图例项-->
11928		</图表:趋势线_E763>
11929	</xsl:template>
11930	<xsl:template match="chart:series">
11931		<xsl:param name="series-generate"/>
11932		<图表:数据系列_E74F>
11933			<xsl:call-template name="图表:数据系列_E74F_Attrs"/>
11934			<xsl:variable name="series-style-name" select="@chart:style-name"/>
11935			<xsl:for-each select="ancestor::office:document[1]/office:automatic-styles/style:style[@style:name=$series-style-name]">
11936				<xsl:call-template name="BorderLine_4226"/>
11937				<!--UOF 2.0 填充编号不一致 751 统一为746-->
11938				<xsl:call-template name="Fill_E746"/>
11939				<xsl:for-each select="style:chart-properties">
11940					<xsl:call-template name="DataLabel_E752"/>
11941					<xsl:call-template name="DataSymbol_E70E"/>
11942				</xsl:for-each>
11943			</xsl:for-each>
11944			<xsl:if test="chart:data-point">
11945				<图表:数据点集_E755>
11946					<xsl:variable name="data-series-position">
11947						<xsl:value-of select="position()"/>
11948					</xsl:variable>
11949					<xsl:variable name="SeriesName">
11950						<xsl:call-template name="FindSeriesName">
11951							<xsl:with-param name="Pos" select="$data-series-position"/>
11952							<xsl:with-param name="series-generate" select="$series-generate"/>
11953						</xsl:call-template>
11954					</xsl:variable>
11955					<xsl:apply-templates select="chart:data-point">
11956						<xsl:with-param name="SeriesName" select="$SeriesName"/>
11957						<xsl:with-param name="data-series-position" select="$data-series-position"/>
11958					</xsl:apply-templates>
11959				</图表:数据点集_E755>
11960			</xsl:if>
11961			<xsl:if test="chart:error-indicator">
11962				<图表:误差线集_E759>
11963					<xsl:apply-templates select="chart:error-indicator">
11964						<xsl:with-param name="series-style-name" select="$series-style-name"/>
11965					</xsl:apply-templates>
11966				</图表:误差线集_E759>
11967			</xsl:if>
11968			<xsl:if test="chart:regression-curve">
11969				<图表:趋势线集_E762>
11970					<xsl:apply-templates select="chart:regression-curve">
11971						<xsl:with-param name="series-style-name" select="$series-style-name"/>
11972					</xsl:apply-templates>
11973				</图表:趋势线集_E762>
11974			</xsl:if>
11975			<!--ODF功能缺失 引导线-->
11976		</图表:数据系列_E74F>
11977	</xsl:template>
11978	<!--xsl:template name="图表:图例_E479">
11979		<图表:图例_E479>
11980			<!- comment changed from anhongyun 20081222->
11981			<xsl:if test="office:body/office:chart/chart:chart/chart:legend/@chart:legend-position">
11982				<xsl:variable name="position">
11983					<xsl:variable name="legend-position" select="office:body/office:chart/chart:chart/chart:legend/@chart:legend-position"/>
11984					<xsl:choose>
11985						<xsl:when test="$legend-position='start'">left</xsl:when>
11986						<xsl:when test="$legend-position='end'">
11987							<xsl:choose>
11988								<xsl:when test="number(substring-before(office:body/office:chart/chart:chart/chart:plot-area/@svg:y,'cm')) - number(substring-before(office:body/office:chart/chart:chart/chart:legend/@svg:y,'cm')) &gt;1.7">corner</xsl:when>
11989								<xsl:otherwise>right</xsl:otherwise>
11990							</xsl:choose>
11991						</xsl:when>
11992						<xsl:when test="$legend-position='top'">top</xsl:when>
11993						<xsl:when test="$legend-position='bottom'">bottom</xsl:when>
11994						<xsl:when test="$legend-position='top-end'">corner</xsl:when>
11995						<xsl:otherwise>right</xsl:otherwise>
11996					</xsl:choose>
11997				</xsl:variable>
11998				<xsl:attribute name="图表:位置"><xsl:value-of select="$position"/></xsl:attribute>
11999			</xsl:if>
12000			<!- comment end anhongyun 20081222->
12001			<xsl:attribute name="图表:x坐标"><xsl:value-of select="fun:Convert2uofUnit(office:body/office:chart/chart:chart/chart:legend/@svg:x)"/></xsl:attribute>
12002			<xsl:attribute name="图表:y坐标"><xsl:value-of select="fun:Convert2uofUnit(office:body/office:chart/chart:chart/chart:legend/@svg:y)"/></xsl:attribute>
12003			<xsl:variable name="legend">
12004				<xsl:value-of select="office:body/office:chart/chart:chart/chart:legend/@chart:style-name"/>
12005			</xsl:variable>
12006			<xsl:for-each select="office:automatic-styles/style:style[@style:name=$legend]">
12007				<xsl:call-template name="Font_E70B"/>
12008				<xsl:call-template name="BorderLine_4226"/>
12009				<xsl:call-template name="Fill_E746"/>
12010				<xsl:call-template name="Align_E726"/>
12011			</xsl:for-each>
12012		</图表:图例_E479>
12013	</xsl:template-->
12014	<xsl:template name="图表:数值_E70D">
12015		<图表:数值_E70D>
12016			<xsl:attribute name="是否链接到源_E73E"><xsl:choose><xsl:when test="@chart:link-data-style-to-source!=''"><xsl:value-of select="@chart:link-data-style-to-source"/></xsl:when><xsl:otherwise>true</xsl:otherwise></xsl:choose></xsl:attribute>
12017			<xsl:if test="@style:data-style-name">
12018				<xsl:call-template name="NumberFormat"/>
12019			</xsl:if>
12020		</图表:数值_E70D>
12021	</xsl:template>
12022	<xsl:template name="图表:刻度_E71D">
12023		<xsl:param name="v-axis-style-name"/>
12024		<图表:刻度_E71D>
12025			<图表:最小值_E71E>
12026				<xsl:choose>
12027					<xsl:when test="@chart:minimum">
12028						<xsl:attribute name="是否自动_E71F" select="'false'"/>
12029						<xsl:value-of select="@chart:minimum"/>
12030					</xsl:when>
12031					<xsl:otherwise>
12032						<xsl:attribute name="是否自动_E71F" select="'true'"/>
12033					</xsl:otherwise>
12034				</xsl:choose>
12035			</图表:最小值_E71E>
12036			<图表:最大值_E720>
12037				<xsl:choose>
12038					<xsl:when test="@chart:maximum">
12039						<xsl:attribute name="是否自动_E71F" select="'false'"/>
12040						<xsl:value-of select="@chart:maximum"/>
12041					</xsl:when>
12042					<xsl:otherwise>
12043						<xsl:attribute name="是否自动_E71F" select="'true'"/>
12044					</xsl:otherwise>
12045				</xsl:choose>
12046			</图表:最大值_E720>
12047			<xsl:choose>
12048				<xsl:when test="@chart:interval-major">
12049					<图表:主单位_E721>
12050						<xsl:attribute name="是否自动_E71F" select="'false'"/>
12051						<xsl:value-of select="@chart:interval-major"/>
12052					</图表:主单位_E721>
12053					<图表:次单位_E722>
12054						<xsl:choose>
12055							<xsl:when test="@chart:interval-minor-divisor and not(@chart:interval-minor-divisor='0')">
12056								<xsl:attribute name="是否自动_E71F" select="'false'"/>
12057								<xsl:value-of select="number(@chart:interval-major) div number(@chart:interval-minor-divisor)"/>
12058							</xsl:when>
12059							<xsl:otherwise>
12060								<xsl:attribute name="是否自动_E71F" select="'true'"/>
12061							</xsl:otherwise>
12062						</xsl:choose>
12063					</图表:次单位_E722>
12064				</xsl:when>
12065				<xsl:otherwise>
12066					<图表:主单位_E721>
12067						<xsl:attribute name="是否自动_E71F" select="'true'"/>
12068					</图表:主单位_E721>
12069				</xsl:otherwise>
12070			</xsl:choose>
12071			<xsl:variable name="axisPositon" select="../../style:style[@style:name=$v-axis-style-name]/style:chart-properties/@chart:axis-position"/>
12072			<!--20110107未反转 图表:交叉点_E723>
12073				<xsl:choose>
12074					<xsl:when test="$axisPositon">
12075						<xsl:attribute name="是否自动_E71F" select="'false'"/>
12076						<xsl:value-of select="$axisPositon"/>
12077					</xsl:when>
12078					<xsl:otherwise>
12079						<xsl:attribute name="是否自动_E71F" select="'true'"/>
12080					</xsl:otherwise>
12081				</xsl:choose>
12082			</表:交叉点_E723-->
12083			<图表:交叉点_E723>
12084				<xsl:choose>
12085					<xsl:when test="@chart:axis-position !=''">
12086						<xsl:attribute name="是否自动_E71F" select="'false'"/>
12087						<xsl:value-of select="@chart:axis-position"/>
12088					</xsl:when>
12089					<xsl:otherwise>
12090						<xsl:attribute name="是否自动_E71F" select="'true'"/>
12091					</xsl:otherwise>
12092				</xsl:choose>
12093			</图表:交叉点_E723>
12094			<!--待转 表:显示单位_E724 ODF功能缺失-->
12095			<xsl:if test="@chart:logarithmic='true' or @chart:logarithmic='1'">
12096				<图表:是否显示为对数刻度_E729>true</图表:是否显示为对数刻度_E729>
12097			</xsl:if>
12098			<xsl:if test="@chart:reverse-direction='true' or @chart:reverse-direction='1'">
12099				<图表:是否次序反转_E72B>true</图表:是否次序反转_E72B>
12100			</xsl:if>
12101			<!--待转 UOF1.1中原有项,但转换器之前版本未转换 分类标签数 分类刻度数 显示单位 ~-->
12102			<!--待转 UOF2.0新增项 是否交叉于最大值 数值轴是否介于分类轴之间-->
12103		</图表:刻度_E71D>
12104	</xsl:template>
12105	<xsl:template match="chart:grid">
12106		<图表:网格线_E734>
12107			<xsl:attribute name="位置_E735" select="@chart:class"/>
12108			<xsl:variable name="grid-style-name" select="@chart:style-name"/>
12109			<xsl:for-each select="ancestor::office:document/office:automatic-styles/style:style[@style:name=$grid-style-name]/style:graphic-properties">
12110				<xsl:call-template name="BorderLineAttr"/>
12111			</xsl:for-each>
12112		</图表:网格线_E734>
12113	</xsl:template>
12114	<xsl:template match="chart:axis">
12115		<xsl:param name="v-axis-style-name"/>
12116		<图表:坐标轴_E791>
12117			<xsl:variable name="dimension" select="@chart:dimension"/>
12118			<xsl:variable name="axisPrimaryType">
12119				<xsl:choose>
12120					<xsl:when test="preceding-sibling::chart:axis[@chart:dimension=$dimension]">secondary</xsl:when>
12121					<xsl:otherwise>primary</xsl:otherwise>
12122				</xsl:choose>
12123			</xsl:variable>
12124			<xsl:variable name="axisSecondaryType">
12125				<xsl:choose>
12126					<!--uof2.0中还定义了series(系列轴),date(时间轴)此处暂未作对应-->
12127					<xsl:when test="@chart:dimension='x'">category</xsl:when>
12128					<xsl:when test="@chart:dimension='y'">value</xsl:when>
12129				</xsl:choose>
12130			</xsl:variable>
12131			<xsl:variable name="axis-style-name" select="@chart:style-name"/>
12132			<xsl:attribute name="主类型_E792"><xsl:value-of select="$axisPrimaryType"/></xsl:attribute>
12133			<xsl:attribute name="子类型_E793"><xsl:value-of select="$axisSecondaryType"/></xsl:attribute>
12134			<xsl:for-each select="ancestor::office:document[1]/office:automatic-styles/style:style[@style:name=$axis-style-name]">
12135				<xsl:for-each select="style:chart-properties">
12136					<xsl:attribute name="主刻度类型_E737"><xsl:choose><xsl:when test="@chart:tick-marks-major-inner='true' and @chart:tick-marks-major-outer='true'">cross</xsl:when><xsl:when test="@chart:tick-marks-major-inner='true'">inside</xsl:when><xsl:when test="@chart:tick-marks-major-outer='true'">outside</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
12137					<xsl:attribute name="次刻度类型_E738"><xsl:choose><xsl:when test="@chart:tick-marks-minor-inner='true' and @chart:tick-marks-minor-outer='true'">cross</xsl:when><xsl:when test="@chart:tick-marks-minor-inner='true'">inside</xsl:when><xsl:when test="@chart:tick-marks-minor-outer='true'">outside</xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
12138					<xsl:attribute name="刻度线标志_E739"><xsl:choose><xsl:when test="not(@chart:display-label='true')">none</xsl:when><xsl:otherwise><xsl:choose><xsl:when test="@chart:axis-label-position='outside-maximum'">inside</xsl:when><xsl:when test="@chart:axis-label-position='outside-minimum'">outside</xsl:when><xsl:otherwise>next-to-axis</xsl:otherwise></xsl:choose></xsl:otherwise></xsl:choose></xsl:attribute>
12139					<xsl:call-template name="图表:数值_E70D"/>
12140					<xsl:call-template name="图表:刻度_E71D">
12141						<xsl:with-param name="v-axis-style-name" select="$v-axis-style-name"/>
12142					</xsl:call-template>
12143				</xsl:for-each>
12144				<xsl:call-template name="Font_E70B"/>
12145				<xsl:call-template name="BorderLine_4226"/>
12146				<xsl:call-template name="Align_E730"/>
12147			</xsl:for-each>
12148			<xsl:if test="chart:grid">
12149				<图表:网格线集_E733>
12150					<xsl:apply-templates select="chart:grid"/>
12151				</图表:网格线集_E733>
12152			</xsl:if>
12153			<xsl:apply-templates select="chart:title"/>
12154		</图表:坐标轴_E791>
12155	</xsl:template>
12156	<xsl:template name="FindTableName">
12157		<xsl:for-each select="..">
12158			<xsl:choose>
12159				<xsl:when test="name(.) = 'table:table'">
12160					<xsl:value-of select="@table:name"/>
12161				</xsl:when>
12162				<xsl:otherwise>
12163					<xsl:call-template name="FindTableName"/>
12164				</xsl:otherwise>
12165			</xsl:choose>
12166		</xsl:for-each>
12167	</xsl:template>
12168	<xsl:template match="chart:plot-area">
12169		<图表:绘图区_E747>
12170			<图表:位置_E70A>
12171				<xsl:attribute name="x_C606"><xsl:value-of select="fun:Convert2uofUnit(@svg:x)"/></xsl:attribute>
12172				<xsl:attribute name="y_C607"><xsl:value-of select="fun:Convert2uofUnit(@svg:y)"/></xsl:attribute>
12173			</图表:位置_E70A>
12174			<图表:大小_E748>
12175				<xsl:attribute name="宽_C605"><xsl:value-of select="fun:Convert2uofUnit(@svg:width)"/></xsl:attribute>
12176				<xsl:attribute name="长_C604"><xsl:value-of select="fun:Convert2uofUnit(@svg:height)"/></xsl:attribute>
12177			</图表:大小_E748>
12178			<图表:数据区域_E74B>
12179				<xsl:variable name="data-area">
12180					<xsl:value-of select="@table:cell-range-address"/>
12181				</xsl:variable>
12182				<xsl:call-template name="transform-data-area">
12183					<xsl:with-param name="data-area" select="$data-area"/>
12184				</xsl:call-template>
12185			</图表:数据区域_E74B>
12186			<xsl:variable name="plotAreaChartWall" select="chart:wall/@chart:style-name"/>
12187			<xsl:for-each select="ancestor::office:document[1]/office:automatic-styles/style:style[@style:name=$plotAreaChartWall]">
12188				<xsl:call-template name="BorderLine_4226"/>
12189				<xsl:call-template name="Fill_E746"/>
12190			</xsl:for-each>
12191			<xsl:variable name="plot-area">
12192				<xsl:value-of select="@chart:style-name"/>
12193			</xsl:variable>
12194			<xsl:variable name="series-generate">
12195				<xsl:for-each select="ancestor::office:document[1]/office:automatic-styles/style:style[@style:name=$plot-area]">
12196					<xsl:choose>
12197						<xsl:when test="style:chart-properties/@chart:series-source='columns'">col</xsl:when>
12198						<xsl:when test="style:chart-properties/@chart:series-source='rows'">row</xsl:when>
12199						<xsl:otherwise>col</xsl:otherwise>
12200					</xsl:choose>
12201				</xsl:for-each>
12202			</xsl:variable>
12203			<图表:按行按列_E74A>
12204				<xsl:value-of select="$series-generate"/>
12205			</图表:按行按列_E74A>
12206			<图表:图表类型组集_E74C>
12207				<图表:组_E74D>
12208					<xsl:if test="chart:series">
12209						<图表:数据系列集_E74E>
12210							<xsl:apply-templates select="chart:series">
12211								<xsl:with-param name="series-generate" select="$series-generate"/>
12212							</xsl:apply-templates>
12213						</图表:数据系列集_E74E>
12214					</xsl:if>
12215					<!--待转 一堆子元素-->
12216					<xsl:for-each select="chart:stock-loss-marker">
12217						<图表:跌柱线_E77E>
12218							<xsl:variable name="loss-style" select="@chart:style-name"/>
12219							<xsl:for-each select="ancestor::office:document[1]/office:automatic-styles/style:style[@style:name=$loss-style]">
12220								<xsl:call-template name="BorderLine_4226"/>
12221								<xsl:call-template name="Fill_E746"/>
12222							</xsl:for-each>
12223						</图表:跌柱线_E77E>
12224					</xsl:for-each>
12225					<xsl:for-each select="chart:stock-gain-marker">
12226						<图表:涨柱线_E780>
12227							<xsl:variable name="gain-style" select="@chart:style-name"/>
12228							<xsl:for-each select="ancestor::office:document[1]/office:automatic-styles/style:style[@style:name=$gain-style]">
12229								<xsl:call-template name="BorderLine_4226"/>
12230								<xsl:call-template name="Fill_E746"/>
12231							</xsl:for-each>
12232						</图表:涨柱线_E780>
12233					</xsl:for-each>
12234				</图表:组_E74D>
12235			</图表:图表类型组集_E74C>
12236			<xsl:if test="chart:axis">
12237				<图表:坐标轴集_E790>
12238					<xsl:variable name="axises">
12239						<x>
12240							<xsl:for-each select="chart:axis[@chart:dimension='x']">
12241								<chart:axis>
12242									<xsl:attribute name="g-id" select="generate-id(.)"/>
12243									<xsl:copy-of select="@*"/>
12244								</chart:axis>
12245							</xsl:for-each>
12246						</x>
12247						<y>
12248							<xsl:for-each select="chart:axis[@chart:dimension='y']">
12249								<xsl:copy-of select="."/>
12250							</xsl:for-each>
12251						</y>
12252						<z>
12253							<xsl:for-each select="chart:axis[@chart:dimension='z']">
12254								<xsl:copy-of select="."/>
12255							</xsl:for-each>
12256						</z>
12257					</xsl:variable>
12258					<xsl:variable name="axises-style">
12259						<xsl:for-each select="$axises/*/*">
12260							<xsl:variable name="v-axis-style-name">
12261								<xsl:choose>
12262									<xsl:when test="name(..)='x'">
12263										<xsl:choose>
12264											<xsl:when test=" $axises/y/*[position()=current()/position]">
12265												<xsl:value-of select="$axises/y/*[position()=current()/position]/@chart:style-name"/>
12266											</xsl:when>
12267											<xsl:otherwise>
12268												<xsl:value-of select="$axises/y/*[1]/@chart:style-name"/>
12269											</xsl:otherwise>
12270										</xsl:choose>
12271									</xsl:when>
12272									<xsl:when test="name(..)='y'">
12273										<xsl:choose>
12274											<xsl:when test="$axises/x/*[position()=current()/position]">
12275												<xsl:value-of select="$axises/y/*[position()=current()/position]/@chart:style-name"/>
12276											</xsl:when>
12277											<xsl:otherwise>
12278												<xsl:value-of select="$axises/x/*[1]/@chart:style-name"/>
12279											</xsl:otherwise>
12280										</xsl:choose>
12281									</xsl:when>
12282								</xsl:choose>
12283							</xsl:variable>
12284							<chart:axis>
12285								<xsl:attribute name="g-id" select="@g-id"/>
12286								<xsl:attribute name="v-axis-style-name" select="$v-axis-style-name"/>
12287							</chart:axis>
12288						</xsl:for-each>
12289					</xsl:variable>
12290					<xsl:for-each select="chart:axis">
12291						<xsl:apply-templates select=".">
12292							<xsl:with-param name="v-axis-style-name" select="$axises-style/chart:axis[@g-id=generate-id(current())]/@v-axis-style-name"/>
12293						</xsl:apply-templates>
12294					</xsl:for-each>
12295					<!--<xsl:for-each-group select="chart:axis" group-by="@chart:dimension">
12296						<xsl:for-each select="current-group()">
12297							<xsl:variable name="v-axis-style-name">
12298								<xsl:choose>
12299									<xsl:when test="../..[position()!=current()/../position()]/*[position()=current()/position()]">
12300										<xsl:value-of select="../..[position()!=current()/../position()]/*[position()=current()/position()]/@chart:style-name"/>
12301									</xsl:when>
12302									<xsl:otherwise>
12303										<xsl:value-of select="../..[position()!=current()/../position()]/*[1]/@chart:style-name"/>
12304									</xsl:otherwise>
12305								</xsl:choose>
12306							</xsl:variable>
12307							<xsl:apply-templates select=".">
12308								<xsl:with-param name="v-axis-style-name" select="$v-axis-style-name"/>
12309							</xsl:apply-templates>
12310						</xsl:for-each>
12311					</xsl:for-each-group>-->
12312				</图表:坐标轴集_E790>
12313			</xsl:if>
12314		</图表:绘图区_E747>
12315		<图表:背景墙_E7A1>
12316			<xsl:for-each select="chart:wall">
12317				<xsl:variable name="wall-style-name" select="@chart:style-name"/>
12318				<xsl:for-each select="ancestor::office:document[1]/office:automatic-styles/style:style[@style:name=$wall-style-name]">
12319					<xsl:call-template name="BorderLine_4226"/>
12320					<!--UOF2.0填充编号不一致 E7A3 统一为E746-->
12321					<xsl:call-template name="Fill_E746"/>
12322				</xsl:for-each>
12323			</xsl:for-each>
12324		</图表:背景墙_E7A1>
12325		<图表:基底_E7A4>
12326			<xsl:for-each select="chart:floor">
12327				<xsl:variable name="floor-style-name" select="@chart:style-name"/>
12328				<xsl:for-each select="ancestor::office:document[1]/office:automatic-styles/style:style[@style:name=$floor-style-name]">
12329					<xsl:call-template name="BorderLine_4226"/>
12330					<!--UOF2.0填充编号不一致 E7A3 统一为E746-->
12331					<xsl:call-template name="Fill_E746"/>
12332				</xsl:for-each>
12333			</xsl:for-each>
12334			<xsl:apply-templates select="chart:floor"/>
12335		</图表:基底_E7A4>
12336	</xsl:template>
12337	<xsl:template match="chart:legend">
12338		<图表:图例_E794>
12339			<图表:位置_E70A>
12340				<xsl:if test="@svg:x and @svg:x!=''">
12341					<xsl:attribute name="x_C606"><xsl:value-of select="fun:Convert2uofUnit(@svg:x)"/></xsl:attribute>
12342				</xsl:if>
12343				<xsl:if test="@svg:y and @svg:y!=''">
12344					<xsl:attribute name="y_C607"><xsl:value-of select="fun:Convert2uofUnit(@svg:y)"/></xsl:attribute>
12345				</xsl:if>
12346			</图表:位置_E70A>
12347			<xsl:if test="@chart:legend-position">
12348				<xsl:variable name="position">
12349					<xsl:variable name="legend-position" select="@chart:legend-position"/>
12350					<xsl:choose>
12351						<xsl:when test="$legend-position='start'">left</xsl:when>
12352						<xsl:when test="$legend-position='end'">
12353							<xsl:choose>
12354								<xsl:when test="number(substring-before(../chart:plot-area/@svg:y,'cm')) - number(substring-before(@svg:y,'cm')) &gt;1.7">corner</xsl:when>
12355								<xsl:otherwise>right</xsl:otherwise>
12356							</xsl:choose>
12357						</xsl:when>
12358						<xsl:when test="$legend-position='top'">top</xsl:when>
12359						<xsl:when test="$legend-position='bottom'">bottom</xsl:when>
12360						<xsl:when test="$legend-position='top-end'">corner</xsl:when>
12361						<xsl:otherwise>right</xsl:otherwise>
12362					</xsl:choose>
12363				</xsl:variable>
12364				<图表:图例位置_E795>
12365					<xsl:value-of select="$position"/>
12366				</图表:图例位置_E795>
12367			</xsl:if>
12368			<!--大小 ODF功能缺失-->
12369			<xsl:variable name="legend" select="@chart:style-name"/>
12370			<xsl:for-each select="ancestor::office:document[1]/office:automatic-styles/style:style[@style:name=$legend]">
12371				<xsl:call-template name="Font_E70B"/>
12372				<xsl:call-template name="BorderLine_4226"/>
12373				<xsl:call-template name="Fill_E746"/>
12374			</xsl:for-each>
12375			<!--图例项 ODF功能缺失-->
12376		</图表:图例_E794>
12377	</xsl:template>
12378	<xsl:template name="DrawFrameChart">
12379		<xsl:for-each select="/office:document/office:body//draw:object/office:document">
12380			<图表:图表_E837>
12381				<xsl:attribute name="标识符_E828"><!--遗留--><xsl:value-of select="generate-id(..)"/></xsl:attribute>
12382				<xsl:for-each select="office:body/office:chart/chart:chart">
12383					<图表:图表区_E743>
12384						<xsl:call-template name="图表:图表区_E743"/>
12385					</图表:图表区_E743>
12386					<xsl:apply-templates select="chart:plot-area"/>
12387					<xsl:apply-templates select="chart:legend"/>
12388					<xsl:apply-templates select="chart:title"/>
12389					<!--ODF 数据表功能缺失 不能设置数据表式样,若强行在数据表中设置样式,会导致RO解析图表出错-->
12390					<!--待转 空白单元格绘制方式-->
12391					<!--待转 是否显示隐藏单元格-->
12392				</xsl:for-each>
12393			</图表:图表_E837>
12394		</xsl:for-each>
12395	</xsl:template>
12396	<xsl:template name="transform-decimal-to-hexadecimal">
12397		<xsl:param name="color-decimal"/>
12398		<xsl:variable name="first-number" select="floor($color-decimal div 16)"/>
12399		<xsl:variable name="first-char">
12400			<xsl:call-template name="decimal-to-hex">
12401				<xsl:with-param name="number" select="round($first-number)"/>
12402			</xsl:call-template>
12403		</xsl:variable>
12404		<xsl:variable name="second-number" select="$color-decimal - ($first-number * 16)"/>
12405		<xsl:variable name="second-char">
12406			<xsl:call-template name="decimal-to-hex">
12407				<xsl:with-param name="number" select="round($second-number)"/>
12408			</xsl:call-template>
12409		</xsl:variable>
12410		<xsl:value-of select="concat($first-char,$second-char)"/>
12411	</xsl:template>
12412	<xsl:template name="TableView">
12413		<xsl:variable name="currentTableName" select="@table:name"/>
12414		<xsl:variable name="view-id" select="count(preceding-sibling::table:table)"/>
12415		<xsl:variable name="path" select="/office:document/office:settings/config:config-item-set/config:config-item-map-indexed/config:config-item-map-entry"/>
12416		<xsl:element name="表:视图_E7D5">
12417			<xsl:attribute name="窗口标识符_E7E5"><xsl:value-of select="$view-id"/></xsl:attribute>
12418			<xsl:if test="/office:document/office:settings/config:config-item-set[@config:name = 'ooo:view-settings']/config:config-item-map-indexed[@config:name = 'Views']/config:config-item-map-entry/config:config-item[@config:name = 'ActiveTable'] = $currentTableName">
12419				<xsl:element name="表:是否选中_E7D6">true</xsl:element>
12420			</xsl:if>
12421			<xsl:choose>
12422				<xsl:when test="$path/config:config-item-map-named/config:config-item-map-entry[@config:name=$currentTableName]/config:config-item[@config:name='HorizontalSplitMode']/text()='2'  or $path/config:config-item-map-named/config:config-item-map-entry[@config:name=currentTableName]/config:config-item[@config:name='VerticalSplitMode']/text()='2' ">
12423					<xsl:element name="表:冻结_E7D8">
12424						<xsl:attribute name="行号_E7D9"><xsl:value-of select="$path/config:config-item-map-named/config:config-item-map-entry[@config:name=$currentTableName]/config:config-item[@config:name='VerticalSplitPosition']/text()"/></xsl:attribute>
12425						<xsl:attribute name="列号_E7DA"><xsl:value-of select="$path/config:config-item-map-named/config:config-item-map-entry[@config:name=$currentTableName]/config:config-item[@config:name='HorizontalSplitPosition']/text()"/></xsl:attribute>
12426					</xsl:element>
12427				</xsl:when>
12428				<xsl:otherwise>
12429					<xsl:element name="表:拆分_E7D7">
12430						<xsl:attribute name="宽_C605"><xsl:choose><xsl:when test="$path/config:config-item-map-named/config:config-item-map-entry[@config:name=$currentTableName]/config:config-item[@config:name='HorizontalSplitMode']/text()='1'"><xsl:value-of select="$path/config:config-item-map-named/config:config-item-map-entry[@config:name=$currentTableName]/config:config-item[@config:name='HorizontalSplitPosition']/text()"/></xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:attribute>
12431						<xsl:attribute name="长_C604"><xsl:choose><xsl:when test="$path/config:config-item-map-named/config:config-item-map-entry[@config:name=$currentTableName]/config:config-item[@config:name='VerticalSplitMode']/text()='1'"><xsl:value-of select="$path/config:config-item-map-named/config:config-item-map-entry[@config:name=$currentTableName]/config:config-item[@config:name='VerticalSplitPosition']/text()"/></xsl:when><xsl:otherwise>0</xsl:otherwise></xsl:choose></xsl:attribute>
12432					</xsl:element>
12433				</xsl:otherwise>
12434			</xsl:choose>
12435			<xsl:for-each select="/office:document/office:settings/config:config-item-set[@config:name = 'ooo:view-settings']/config:config-item-map-indexed[@config:name = 'Views']/config:config-item-map-entry/config:config-item-map-named[@config:name = 'Tables']/config:config-item-map-entry[@config:name = $currentTableName]">
12436				<xsl:element name="表:最上行_E7DB">
12437					<xsl:choose>
12438						<xsl:when test="config:config-item[@config:name = 'PositionBottom']/text()">
12439							<xsl:value-of select="number(config:config-item[@config:name = 'PositionBottom']/text()) + 1"/>
12440						</xsl:when>
12441						<xsl:otherwise>1</xsl:otherwise>
12442					</xsl:choose>
12443				</xsl:element>
12444			</xsl:for-each>
12445			<xsl:for-each select="/office:document/office:settings/config:config-item-set[@config:name = 'ooo:view-settings']/config:config-item-map-indexed[@config:name = 'Views']/config:config-item-map-entry/config:config-item-map-named[@config:name = 'Tables']/config:config-item-map-entry[@config:name = $currentTableName]">
12446				<xsl:element name="表:最左列_E7DC">
12447					<xsl:choose>
12448						<xsl:when test="config:config-item[@config:name = 'PositionLeft']/text()">
12449							<xsl:value-of select="number(config:config-item[@config:name = 'PositionLeft']/text()) + 1"/>
12450						</xsl:when>
12451						<xsl:otherwise>1</xsl:otherwise>
12452					</xsl:choose>
12453				</xsl:element>
12454			</xsl:for-each>
12455			<xsl:element name="表:当前视图类型_E7DD">
12456				<xsl:choose>
12457					<xsl:when test="$path/config:config-item[@config:name='ShowPageBreakPreview']/text()='true'">page</xsl:when>
12458					<xsl:otherwise>normal</xsl:otherwise>
12459				</xsl:choose>
12460			</xsl:element>
12461			<!--xsl:element name="表:是否显示网格_E7DF">
12462				<xsl:choose>
12463					<xsl:when test="/office:document/office:settings/config:config-item-set[@config:name='ooo:view-settings']//config:config-item[@config:name='ShowGrid']/text()='true'">true</xsl:when>
12464					<xsl:otherwise>false</xsl:otherwise>
12465				</xsl:choose>
12466			</xsl:element-->
12467			<xsl:choose>
12468				<xsl:when test="/office:document/office:settings/config:config-item-set[@config:name='ooo:view-settings']//config:config-item[@config:name='ShowGrid']/text()='false'">
12469					<xsl:element name="表:是否显示网格_E7DF">false</xsl:element>
12470				</xsl:when>
12471				<xsl:otherwise>
12472					<xsl:element name="表:是否显示网格_E7DF">true</xsl:element>
12473				</xsl:otherwise>
12474			</xsl:choose>
12475			<xsl:if test="//config:config-item-set[@config:name='ooo:view-settings']//config:config-item[@config:name='GridColor']">
12476				<xsl:element name="表:网格颜色_E7E0">
12477					<xsl:variable name="GridColor-text">
12478						<xsl:value-of select="//config:config-item-set[@config:name='ooo:view-settings']//config:config-item[@config:name='GridColor'][1]/text()"/>
12479					</xsl:variable>
12480					<xsl:variable name="R-color" select="floor(number($GridColor-text) div 65536)"/>
12481					<xsl:variable name="G-color" select="floor((number($GridColor-text) - (number($R-color) * 65536)) div 256)"/>
12482					<xsl:variable name="B-color" select="number($GridColor-text) - (number($R-color) * 65536)- (number($G-color) * 256)"/>
12483					<xsl:variable name="R-color-in-16">
12484						<xsl:call-template name="transform-decimal-to-hexadecimal">
12485							<xsl:with-param name="color-decimal" select="$R-color"/>
12486						</xsl:call-template>
12487					</xsl:variable>
12488					<xsl:variable name="G-color-in-16">
12489						<xsl:call-template name="transform-decimal-to-hexadecimal">
12490							<xsl:with-param name="color-decimal" select="$G-color"/>
12491						</xsl:call-template>
12492					</xsl:variable>
12493					<xsl:variable name="B-color-in-16">
12494						<xsl:call-template name="transform-decimal-to-hexadecimal">
12495							<xsl:with-param name="color-decimal" select="$B-color"/>
12496						</xsl:call-template>
12497					</xsl:variable>
12498					<xsl:value-of select="concat('#',$R-color-in-16,$G-color-in-16,$B-color-in-16)"/>
12499				</xsl:element>
12500			</xsl:if>
12501			<xsl:element name="表:缩放_E7C4">
12502				<xsl:choose>
12503					<xsl:when test="$path/config:config-item-map-named/config:config-item-map-entry[@config:name=$currentTableName]/config:config-item/@config:name='ZoomValue'">
12504						<xsl:value-of select="$path/config:config-item-map-named/config:config-item-map-entry[@config:name=$currentTableName]/config:config-item[@config:name='ZoomValue']/text()"/>
12505					</xsl:when>
12506					<xsl:otherwise>100</xsl:otherwise>
12507				</xsl:choose>
12508			</xsl:element>
12509			<xsl:if test="$path/config:config-item-map-named/config:config-item-map-entry[@config:name=$currentTableName]/config:config-item/@config:name='PageViewZoomValue'">
12510				<xsl:element name="表:分页缩放_E7E1">
12511					<xsl:value-of select="$path/config:config-item-map-named/config:config-item-map-entry[@config:name=$currentTableName]/config:config-item[@config:name='PageViewZoomValue']/text()"/>
12512				</xsl:element>
12513			</xsl:if>
12514			<表:选中区域_E7E2>
12515				<xsl:variable name="positionPre" select="$path/config:config-item-map-named/config:config-item-map-entry[@config:name=$currentTableName]/config:config-item[@config:name = 'CursorPositionX']"/>
12516				<xsl:variable name="cursorX">
12517					<xsl:call-template name="number-to-character">
12518						<xsl:with-param name="number" select="number($positionPre) + 1"/>
12519					</xsl:call-template>
12520				</xsl:variable>
12521				<xsl:variable name="positionPretwo" select="$path/config:config-item-map-named/config:config-item-map-entry[@config:name=$currentTableName]/config:config-item[@config:name = 'CursorPositionY']"/>
12522				<xsl:variable name="cursorY" select="$positionPretwo + 1"/>
12523				<xsl:variable name="dollar">$</xsl:variable>
12524				<xsl:value-of select="concat($dollar,$cursorX,$dollar,$cursorY)"/>
12525			</表:选中区域_E7E2>
12526		</xsl:element>
12527	</xsl:template>
12528	<xsl:template name="setDefaultPageWidth">
12529		<xsl:choose>
12530			<xsl:when test="$uofUnit='in'">
12531				<xsl:value-of select="'7.9'"/>
12532			</xsl:when>
12533			<xsl:when test="$uofUnit='cm'">
12534				<xsl:value-of select="'20.999'"/>
12535			</xsl:when>
12536			<xsl:when test="$uofUnit='mm'">
12537				<xsl:value-of select="'200.99'"/>
12538			</xsl:when>
12539			<xsl:when test="$uofUnit='pt'">
12540				<xsl:value-of select="'787'"/>
12541			</xsl:when>
12542			<xsl:otherwise>
12543				<xsl:value-of select="'20.990'"/>
12544			</xsl:otherwise>
12545		</xsl:choose>
12546	</xsl:template>
12547	<xsl:template name="setDefaultPageHeight">
12548		<xsl:choose>
12549			<xsl:when test="$uofUnit='inch'">
12550				<xsl:value-of select="'10.14'"/>
12551			</xsl:when>
12552			<xsl:when test="$uofUnit='cm'">
12553				<xsl:value-of select="'29.699'"/>
12554			</xsl:when>
12555			<xsl:when test="$uofUnit='mm'">
12556				<xsl:value-of select="'269.99'"/>
12557			</xsl:when>
12558			<xsl:when test="$uofUnit='pt'">
12559				<xsl:value-of select="'1023'"/>
12560			</xsl:when>
12561			<xsl:otherwise>
12562				<xsl:value-of select="'26.990'"/>
12563			</xsl:otherwise>
12564		</xsl:choose>
12565	</xsl:template>
12566	<xsl:template name="TablePagePaper">
12567		<xsl:element name="表:纸张_E7C2">
12568			<xsl:variable name="height">
12569				<xsl:call-template name="convert2cm">
12570					<xsl:with-param name="value" select="fun:Convert2uofUnit(style:page-layout-properties/@fo:page-height)"/>
12571				</xsl:call-template>
12572			</xsl:variable>
12573			<xsl:variable name="width">
12574				<xsl:call-template name="convert2cm">
12575					<xsl:with-param name="value" select="fun:Convert2uofUnit(style:page-layout-properties/@fo:page-width)"/>
12576				</xsl:call-template>
12577			</xsl:variable>
12578			<xsl:variable name="paperType">
12579				<xsl:choose>
12580					<xsl:when test="number($width) &lt; 30.01 and number($width) &gt; 29 and number($height) &lt; 42.1 and number($height) &gt; 41.5">A3</xsl:when>
12581					<xsl:when test="number($width) &lt; 15.11 and number($width) &gt; 14.5 and number($height) &lt; 22 and number($height) &gt; 19.5">A5</xsl:when>
12582					<xsl:when test="number($width) &lt; 25.11 and number($width) &gt; 24.5 and number($height) &lt; 36 and number($height) &gt; 34.5">B4</xsl:when>
12583					<xsl:when test="number($width) &lt; 18.5 and number($width) &gt; 16.5 and number($height) &lt; 26 and number($height) &gt; 24">B5</xsl:when>
12584					<xsl:when test="number($width) &lt; 13.5 and number($width) &gt; 11.5 and number($height) &lt; 18 and number($height) &gt; 17">B6</xsl:when>
12585					<xsl:when test="number($width) &lt; 13 and number($width) &gt; 12 and number($height) &lt; 18 and number($height) &gt; 17">B6</xsl:when>
12586					<xsl:when test="number($width) &lt; 15 and number($width) &gt; 13 and number($height) &lt; 21.3 and number($height) &gt; 19.3">PRC-32K(Big)</xsl:when>
12587					<xsl:when test="number($width) &lt; 22.6 and number($width) &gt; 20.6 and number($height) &lt; 28.95 and number($height) &gt; 26.95">letter</xsl:when>
12588					<xsl:when test="number($width) &lt; 19.4 and number($width) &gt; 17.4 and number($height) &lt; 27 and number($height) &gt; 25">PRC-16K</xsl:when>
12589					<xsl:when test="number($width) &lt; 15 and number($width) &gt; 13 and number($height) &lt; 21.3 and number($height) &gt; 19.3">PRC-32K(Big)</xsl:when>
12590					<xsl:when test="number($width) &lt; 14 and number($width) &gt; 12 and number($height) &lt; 19.4 and number($height) &gt; 17.4">PRC-32K</xsl:when>
12591					<xsl:otherwise>A4</xsl:otherwise>
12592				</xsl:choose>
12593			</xsl:variable>
12594			<!--去掉纸型-->
12595			<!--xsl:attribute name="纸型_C60C"><xsl:value-of select="$paperType"/></xsl:attribute-->
12596			<xsl:variable name="uofwidth">
12597				<xsl:choose>
12598					<xsl:when test="$width != ''">
12599						<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:page-width)"/>
12600					</xsl:when>
12601					<xsl:otherwise>
12602						<xsl:call-template name="setDefaultPageWidth"/>
12603					</xsl:otherwise>
12604				</xsl:choose>
12605			</xsl:variable>
12606			<xsl:attribute name="宽_C605"><xsl:value-of select="$uofwidth"/></xsl:attribute>
12607			<xsl:variable name="uofheight">
12608				<xsl:choose>
12609					<xsl:when test="$height != ''">
12610						<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:page-height)"/>
12611					</xsl:when>
12612					<xsl:otherwise>
12613						<xsl:call-template name="setDefaultPageHeight"/>
12614					</xsl:otherwise>
12615				</xsl:choose>
12616			</xsl:variable>
12617			<xsl:attribute name="长_C604"><xsl:value-of select="$uofheight"/></xsl:attribute>
12618		</xsl:element>
12619	</xsl:template>
12620	<xsl:template name="TablePageMargin">
12621		<xsl:element name="表:页边距_E7C5">
12622			<xsl:if test="style:page-layout-properties/@fo:margin-left">
12623				<xsl:variable name="margin_left" select="fun:Convert2uofUnit(style:page-layout-properties/@fo:margin-left)"/>
12624				<xsl:attribute name="左_C608"><xsl:value-of select="$margin_left"/></xsl:attribute>
12625			</xsl:if>
12626			<xsl:if test="style:page-layout-properties/@fo:margin-top">
12627				<xsl:variable name="margin_top">
12628					<xsl:choose>
12629						<xsl:when test="style:header-style/style:header-footer-properties/@fo:min-height">
12630							<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:margin-top) + fun:Convert2uofUnit(style:header-style/style:header-footer-properties/@fo:min-height)"/>
12631						</xsl:when>
12632						<xsl:when test="style:footer-style/style:header-footer-properties/@fo:min-height">
12633							<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:margin-top) + fun:Convert2uofUnit(style:footer-style/style:header-footer-properties/@fo:min-height)"/>
12634						</xsl:when>
12635						<xsl:otherwise>
12636							<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:margin-top)"/>
12637						</xsl:otherwise>
12638					</xsl:choose>
12639				</xsl:variable>
12640				<xsl:attribute name="上_C609"><xsl:value-of select="$margin_top"/></xsl:attribute>
12641			</xsl:if>
12642			<xsl:if test="style:page-layout-properties/@fo:margin-right">
12643				<xsl:variable name="margin_right" select="fun:Convert2uofUnit(style:page-layout-properties/@fo:margin-right)"/>
12644				<xsl:attribute name="右_C60A"><xsl:value-of select="$margin_right"/></xsl:attribute>
12645			</xsl:if>
12646			<xsl:if test="style:page-layout-properties/@fo:margin-bottom">
12647				<xsl:variable name="margin_bottom">
12648					<xsl:choose>
12649						<xsl:when test="style:header-style/style:header-footer-properties/@fo:min-height">
12650							<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:margin-bottom) + fun:Convert2uofUnit(style:header-style/style:header-footer-properties/@fo:min-height)"/>
12651						</xsl:when>
12652						<xsl:when test="style:footer-style/style:header-footer-properties/@fo:min-height">
12653							<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:margin-bottom) + fun:Convert2uofUnit(style:footer-style/style:header-footer-properties/@fo:min-height)"/>
12654						</xsl:when>
12655						<xsl:otherwise>
12656							<xsl:value-of select="fun:Convert2uofUnit(style:page-layout-properties/@fo:margin-bottom)"/>
12657						</xsl:otherwise>
12658					</xsl:choose>
12659				</xsl:variable>
12660				<xsl:attribute name="下_C60B"><xsl:value-of select="$margin_bottom"/></xsl:attribute>
12661			</xsl:if>
12662		</xsl:element>
12663	</xsl:template>
12664	<xsl:template name="TablePageSetting">
12665		<xsl:param name="master-page"/>
12666		<xsl:variable name="page-layout-name" select="$master-page/@style:page-layout-name"/>
12667		<xsl:element name="表:页面设置_E7C1">
12668			<xsl:attribute name="名称_E7D4"><xsl:value-of select="$master-page/@style:name"/></xsl:attribute>
12669			<xsl:for-each select="/office:document/office:automatic-styles/style:page-layout[@style:name = $page-layout-name]">
12670				<xsl:call-template name="TablePagePaper"/>
12671				<xsl:element name="表:纸张方向_E7C3">
12672					<xsl:choose>
12673						<xsl:when test="style:page-layout-properties/@style:print-orientation">
12674							<xsl:value-of select="style:page-layout-properties/@style:print-orientation"/>
12675						</xsl:when>
12676						<xsl:otherwise>portrait</xsl:otherwise>
12677					</xsl:choose>
12678				</xsl:element>
12679				<xsl:element name="表:缩放_E7C4">
12680					<xsl:choose>
12681						<xsl:when test="style:page-layout-properties/@style:scale-to">
12682							<xsl:value-of select="substring-before(style:page-layout-properties/@style:scale-to,'%')"/>
12683						</xsl:when>
12684						<xsl:otherwise>100</xsl:otherwise>
12685					</xsl:choose>
12686				</xsl:element>
12687				<xsl:call-template name="TablePageMargin"/>
12688				<xsl:for-each select="$master-page/style:header/child::*">
12689					<表:页眉页脚_E7C6>
12690						<xsl:choose>
12691							<xsl:when test="name(..)='style:region-left' or name(.)='style:region-left'">
12692								<xsl:attribute name="位置_E7C9">header-left</xsl:attribute>
12693								<xsl:for-each select="*">
12694									<xsl:apply-templates select="."/>
12695								</xsl:for-each>
12696							</xsl:when>
12697							<xsl:when test="name(..)='style:region-right' or name(.)='style:region-right'">
12698								<xsl:attribute name="位置_E7C9">header-right</xsl:attribute>
12699								<xsl:for-each select="*">
12700									<xsl:apply-templates select="."/>
12701								</xsl:for-each>
12702							</xsl:when>
12703							<xsl:otherwise>
12704								<xsl:attribute name="位置_E7C9">header-center</xsl:attribute>
12705								<字:段落_416B>
12706									<xsl:for-each select="*">
12707										<字:句_419D>
12708											<字:文本串_415B>
12709												<xsl:value-of select="."/>
12710											</字:文本串_415B>
12711										</字:句_419D>
12712									</xsl:for-each>
12713								</字:段落_416B>
12714							</xsl:otherwise>
12715						</xsl:choose>
12716					</表:页眉页脚_E7C6>
12717				</xsl:for-each>
12718				<xsl:for-each select="$master-page/style:footer/child::*">
12719					<表:页眉页脚_E7C6>
12720						<xsl:choose>
12721							<xsl:when test="name(..)='style:region-left' or name(.)='style:region-left'">
12722								<xsl:attribute name="位置_E7C9">footer-left</xsl:attribute>
12723								<xsl:for-each select="*">
12724									<xsl:apply-templates select="."/>
12725								</xsl:for-each>
12726							</xsl:when>
12727							<xsl:when test="name(..)='style:region-right' or name(.)='style:region-right'">
12728								<xsl:attribute name="位置_E7C9">footer-right</xsl:attribute>
12729								<xsl:for-each select="*">
12730									<xsl:apply-templates select="."/>
12731								</xsl:for-each>
12732							</xsl:when>
12733							<xsl:otherwise>
12734								<xsl:attribute name="位置_E7C9">footer-center</xsl:attribute>
12735								<!--字:段落_416B-->
12736								<xsl:for-each select="*">
12737									<xsl:choose>
12738										<xsl:when test="name(.)!=''">
12739											<xsl:apply-templates select="."/>
12740										</xsl:when>
12741										<xsl:otherwise>
12742											<字:段落_416B>
12743												<字:句_419D>
12744													<字:文本串_415B>
12745														<xsl:value-of select="."/>
12746													</字:文本串_415B>
12747												</字:句_419D>
12748											</字:段落_416B>
12749										</xsl:otherwise>
12750									</xsl:choose>
12751								</xsl:for-each>
12752								<!--/字:段落_416B-->
12753							</xsl:otherwise>
12754						</xsl:choose>
12755					</表:页眉页脚_E7C6>
12756				</xsl:for-each>
12757				<xsl:if test="style:page-layout-properties/@style:print-page-order or style:page-layout-properties/@style:print">
12758					<表:打印_E7CA>
12759						<xsl:if test="style:page-layout-properties/@style:print-page-order='ltr'">
12760							<xsl:attribute name="是否先列后行_E7CE">false</xsl:attribute>
12761						</xsl:if>
12762						<xsl:if test="contains(style:page-layout-properties/@style:print,'headers')">
12763							<xsl:attribute name="是否带行号列标_E7CC">true</xsl:attribute>
12764						</xsl:if>
12765						<xsl:if test="contains(style:page-layout-properties/@style:print,'grid')">
12766							<xsl:attribute name="是否带网格线_E7CB">true</xsl:attribute>
12767						</xsl:if>
12768					</表:打印_E7CA>
12769				</xsl:if>
12770				<xsl:if test="contains(style:page-layout-properties/@style:print,'annotations')">
12771					<表:批注打印方式_E7CF>sheet-end</表:批注打印方式_E7CF>
12772				</xsl:if>
12773				<表:垂直对齐方式_E701>
12774					<xsl:choose>
12775						<xsl:when test="style:page-layout-properties/@style:table-centering='vertical' or style:page-layout-properties/@style:table-centering='both'">center</xsl:when>
12776						<xsl:otherwise>top</xsl:otherwise>
12777					</xsl:choose>
12778				</表:垂直对齐方式_E701>
12779				<表:水平对齐方式_E700>
12780					<xsl:choose>
12781						<xsl:when test="style:page-layout-properties/@style:table-centering='horizontal' or style:page-layout-properties/@style:table-centering='both'">center</xsl:when>
12782						<xsl:otherwise>left</xsl:otherwise>
12783					</xsl:choose>
12784				</表:水平对齐方式_E700>
12785				<xsl:if test="style:page-layout-properties/@style:scale-to-X or style:page-layout-properties/@style:scale-to-Y">
12786					<表:调整_E7D1>
12787						<xsl:if test="style:page-layout-properties/@style:scale-to-X">
12788							<xsl:attribute name="页高倍数_E7D2"><xsl:value-of select="style:page-layout-properties/@style:scale-to-X"/></xsl:attribute>
12789						</xsl:if>
12790						<xsl:if test="style:page-layout-properties/@style:scale-to-Y">
12791							<xsl:attribute name="页宽倍数_E7D3"><xsl:value-of select="style:page-layout-properties/@style:scale-to-Y"/></xsl:attribute>
12792						</xsl:if>
12793					</表:调整_E7D1>
12794				</xsl:if>
12795			</xsl:for-each>
12796		</xsl:element>
12797	</xsl:template>
12798	<xsl:template name="TableSheetProperties">
12799		<xsl:param name="tablestyle"/>
12800		<xsl:element name="表:工作表属性_E80D">
12801			<xsl:if test="$tablestyle/style:table-properties/@table:tab-font-color">
12802				<表:标签前景色_E7BF>
12803					<xsl:value-of select="$tablestyle/style:table-properties/@table:tab-font-color"/>
12804				</表:标签前景色_E7BF>
12805			</xsl:if>
12806			<xsl:if test="$tablestyle/style:table-properties/@table:tab-color">
12807				<表:标签背景色_E7C0>
12808					<xsl:value-of select="$tablestyle/style:table-properties/@table:tab-color"/>
12809				</表:标签背景色_E7C0>
12810			</xsl:if>
12811			<xsl:variable name="PageName" select="$tablestyle/@style:master-page-name"/>
12812			<xsl:call-template name="TablePageSetting">
12813				<xsl:with-param name="master-page" select="/office:document/office:master-styles/style:master-page[@style:name=$PageName]"/>
12814			</xsl:call-template>
12815			<xsl:call-template name="TableView"/>
12816			<!--uof2.0暂时无背景填充项,待确认
12817			<xsl:if test="table:table-column/@table:number-columns-repeated &gt; 200">
12818				<xsl:variable name="temp" select="table:table-column/@table:default-cell-style-name"/>
12819				<xsl:variable name="bkcolor" select="key('TableStyle',@temp)/style:table-cell-properties/@fo:background-color"/>
12820				<xsl:if test="$bkcolor != ''">
12821					<xsl:element name="表:背景填充_E830">
12822						<xsl:element name="图:颜色_8004">
12823							<xsl:value-of select="$bkcolor"/>
12824						</xsl:element>
12825					</xsl:element>
12826				</xsl:if>
12827			</xsl:if>-->
12828			<xsl:if test="$tablestyle/style:table-properties/@fo:background-color">
12829				<xsl:element name="表:背景填充_E830">
12830					<xsl:element name="图:颜色_8004">
12831						<xsl:value-of select="$tablestyle/style:table-properties/@fo:background-color"/>
12832					</xsl:element>
12833				</xsl:element>
12834			</xsl:if>
12835		</xsl:element>
12836	</xsl:template>
12837	<xsl:template match="table:table-cell" mode="table">
12838		<xsl:param name="rowPos"/>
12839		<xsl:call-template name="CellContent">
12840			<xsl:with-param name="rowPos" select="$rowPos"/>
12841		</xsl:call-template>
12842	</xsl:template>
12843	<xsl:template match="table:covered-table-cell" mode="table">
12844		<xsl:param name="rowPos"/>
12845		<xsl:call-template name="CellContent">
12846			<xsl:with-param name="rowPos" select="$rowPos"/>
12847		</xsl:call-template>
12848	</xsl:template>
12849	<xsl:template name="RowNumber">
12850		<xsl:param name="result"/>
12851		<!--xsl:variable name="nCount1" select="count(preceding-sibling::table:table-row)"/>
12852		<xsl:variable name="nRepeatSum1" select="sum(preceding-sibling::table:table-row[@table:number-rows-repeated]/@table:number-rows-repeated)"/>
12853		<xsl:variable name="nRepeatCount1" select="count(preceding-sibling::table:table-row[@table:number-rows-repeated]/@table:number-rows-repeated)"/>
12854		<xsl:variable name="nCount2" select="count(preceding-sibling::*[name() != 'table:shapes']//table:table-row)"/>
12855		<xsl:variable name="nRepeatSum2" select="sum(preceding-sibling::*[name() != 'table:shapes']//table:table-row[@table:number-rows-repeated]/@table:number-rows-repeated)"/>
12856		<xsl:variable name="nRepeatCount2" select="count(preceding-sibling::*[name() != 'table:shapes']//table:table-row[@table:number-rows-repeated]/@table:number-rows-repeated)"/>
12857		<xsl:variable name="nCurPos">
12858			<xsl:value-of select="number($nCount1 + $nRepeatSum1 - $nRepeatCount1 + $nCount2 + $nRepeatSum2 - $nRepeatCount2)"/>
12859		</xsl:variable-->
12860		<xsl:variable name="nCount1" select="count(preceding-sibling::table:table-row)"/>
12861		<xsl:variable name="nRepeatSum1" select="sum(preceding-sibling::table:table-row[@table:number-rows-repeated]/@table:number-rows-repeated)"/>
12862		<xsl:variable name="nRepeatCount1" select="count(preceding-sibling::table:table-row[@table:number-rows-repeated]/@table:number-rows-repeated)"/>
12863		<xsl:variable name="nCount2" select="count(preceding-sibling::*//table:table-row[not(ancestor::office:chart)])"/>
12864		<xsl:variable name="nRepeatSum2" select="sum(preceding-sibling::*//table:table-row[@table:number-rows-repeated and not(ancestor::office:chart)]/@table:number-rows-repeated)"/>
12865		<xsl:variable name="nRepeatCount2" select="count(preceding-sibling::*//table:table-row[@table:number-rows-repeated and not(ancestor::office:chart)]/@table:number-rows-repeated)"/>
12866		<xsl:variable name="nCurPos">
12867			<xsl:value-of select="number($nCount1 + $nRepeatSum1 - $nRepeatCount1 + $nCount2 + $nRepeatSum2 - $nRepeatCount2)"/>
12868		</xsl:variable>
12869		<xsl:for-each select="..">
12870			<xsl:choose>
12871				<xsl:when test="name(.) != 'table:table'">
12872					<xsl:call-template name="RowNumber">
12873						<xsl:with-param name="result" select="number($result) + number($nCurPos)"/>
12874					</xsl:call-template>
12875				</xsl:when>
12876				<xsl:otherwise>
12877					<xsl:value-of select="number($result) + number($nCurPos)"/>
12878				</xsl:otherwise>
12879			</xsl:choose>
12880		</xsl:for-each>
12881	</xsl:template>
12882	<xsl:template match="table:table-row" mode="table">
12883		<xsl:element name="表:行_E7F1">
12884			<xsl:variable name="nNumber">
12885				<xsl:call-template name="RowNumber">
12886					<xsl:with-param name="result" select="0"/>
12887				</xsl:call-template>
12888			</xsl:variable>
12889			<xsl:attribute name="行号_E7F3"><xsl:value-of select="$nNumber + 1"/></xsl:attribute>
12890			<xsl:if test="@table:visibility = 'collapse' or @table:visibility = 'filter'">
12891				<xsl:attribute name="是否隐藏_E73C">true</xsl:attribute>
12892			</xsl:if>
12893			<xsl:variable name="rowHeight" select="key('RowStyle',@table:style-name)/style:table-row-properties/@style:row-height"/>
12894			<xsl:if test="$rowHeight != ''">
12895				<xsl:variable name="uofHeight" select="fun:Convert2uofUnit($rowHeight)"/>
12896				<xsl:attribute name="行高_E7F4"><xsl:value-of select="$uofHeight"/></xsl:attribute>
12897			</xsl:if>
12898			<xsl:if test="@table:default-cell-style-name">
12899				<xsl:attribute name="式样引用_E7BD"><xsl:value-of select="@table:default-cell-style-name"/></xsl:attribute>
12900			</xsl:if>
12901			<xsl:if test="@table:number-rows-repeated">
12902				<!--xsl:attribute name="跨度_E7EF"><xsl:value-of select="@table:number-rows-repeated - 1"/></xsl:attribute-->
12903				<xsl:attribute name="跨度_E7EF" select="number(@table:number-rows-repeated)- 1"/>
12904			</xsl:if>
12905			<xsl:for-each select="*">
12906				<xsl:choose>
12907					<xsl:when test="self::node()[name(.)='table:table-cell']">
12908						<xsl:apply-templates mode="table" select=".">
12909							<xsl:with-param name="rowPos" select="$nNumber + 1"/>
12910						</xsl:apply-templates>
12911					</xsl:when>
12912					<xsl:when test="self::node()[name(.)='table:covered-table-cell']">
12913						<xsl:apply-templates mode="table" select=".">
12914							<xsl:with-param name="rowPos" select="$nNumber + 1"/>
12915						</xsl:apply-templates>
12916					</xsl:when>
12917				</xsl:choose>
12918			</xsl:for-each>
12919		</xsl:element>
12920	</xsl:template>
12921	<xsl:template match="table:table-rows" mode="table">
12922		<xsl:for-each select="*">
12923			<xsl:choose>
12924				<xsl:when test="self::node()[name(.)='table:table-row']">
12925					<xsl:apply-templates mode="table" select="."/>
12926				</xsl:when>
12927			</xsl:choose>
12928		</xsl:for-each>
12929	</xsl:template>
12930	<xsl:template match="table:table-header-rows" mode="table">
12931		<xsl:for-each select="*">
12932			<xsl:choose>
12933				<xsl:when test="self::node()[name(.)='table:table-row']">
12934					<xsl:apply-templates mode="table" select="."/>
12935				</xsl:when>
12936			</xsl:choose>
12937		</xsl:for-each>
12938	</xsl:template>
12939	<xsl:template match="table:table-row-group" mode="table">
12940		<xsl:for-each select="*">
12941			<xsl:choose>
12942				<xsl:when test="self::node()[name(.)='table:table-row-group']">
12943					<xsl:apply-templates mode="table" select="."/>
12944				</xsl:when>
12945				<xsl:when test="self::node()[name(.)='table:table-header-rows']">
12946					<xsl:apply-templates mode="table" select="."/>
12947				</xsl:when>
12948				<xsl:when test="self::node()[name(.)='table:table-rows']">
12949					<xsl:apply-templates mode="table" select="."/>
12950				</xsl:when>
12951				<xsl:when test="self::node()[name(.)='table:table-row']">
12952					<xsl:apply-templates mode="table" select="."/>
12953				</xsl:when>
12954			</xsl:choose>
12955		</xsl:for-each>
12956	</xsl:template>
12957	<xsl:template name="ColumnNumber">
12958		<xsl:param name="result"/>
12959		<!--xsl:variable name="nCurPos">
12960			<xsl:variable name="nCount1" select="count(preceding-sibling::table:table-column)"/>
12961			<xsl:variable name="nRepeatSum1" select="sum(preceding-sibling::table:table-column[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
12962			<xsl:variable name="nRepeatCount1" select="count(preceding-sibling::table:table-column[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
12963			<xsl:variable name="nCount2" select="count(preceding-sibling::*[name() != 'table:shapes']//table:table-column)"/>
12964			<xsl:variable name="nRepeatSum2" select="sum(preceding-sibling::*[name() != 'table:shapes']//table:table-column[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
12965			<xsl:variable name="nRepeatCount2" select="count(preceding-sibling::*[name() != 'table:shapes']//table:table-column[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
12966			<xsl:value-of select="number($nCount1 + $nRepeatSum1 - $nRepeatCount1 + $nCount2 + $nRepeatSum2 - $nRepeatCount2)"/>
12967		</xsl:variable-->
12968		<xsl:variable name="nCurPos">
12969			<xsl:variable name="nCount1" select="count(preceding-sibling::table:table-column)"/>
12970			<xsl:variable name="nRepeatSum1" select="sum(preceding-sibling::table:table-column[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
12971			<xsl:variable name="nRepeatCount1" select="count(preceding-sibling::table:table-column[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
12972			<xsl:variable name="nCount2" select="count(preceding-sibling::*//table:table-column[not(ancestor::office:chart)])"/>
12973			<xsl:variable name="nRepeatSum2" select="sum(preceding-sibling::*//table:table-column[@table:number-columns-repeated and not(ancestor::office:chart)]/@table:number-columns-repeated)"/>
12974			<xsl:variable name="nRepeatCount2" select="count(preceding-sibling::*//table:table-column[@table:number-columns-repeated and not(ancestor::office:chart)]/@table:number-columns-repeated)"/>
12975			<xsl:value-of select="number($nCount1 + $nRepeatSum1 - $nRepeatCount1 + $nCount2 + $nRepeatSum2 - $nRepeatCount2)"/>
12976		</xsl:variable>
12977		<xsl:for-each select="..">
12978			<xsl:choose>
12979				<xsl:when test="name(.) != 'table:table'">
12980					<xsl:call-template name="ColumnNumber">
12981						<xsl:with-param name="result" select="number($result) + number($nCurPos)"/>
12982					</xsl:call-template>
12983				</xsl:when>
12984				<xsl:otherwise>
12985					<xsl:value-of select="number($result) + number($nCurPos)"/>
12986				</xsl:otherwise>
12987			</xsl:choose>
12988		</xsl:for-each>
12989	</xsl:template>
12990	<xsl:template match="table:table-column" mode="table">
12991		<表:列_E7EC>
12992			<xsl:variable name="nNumber">
12993				<xsl:call-template name="ColumnNumber">
12994					<xsl:with-param name="result" select="0"/>
12995				</xsl:call-template>
12996			</xsl:variable>
12997			<xsl:attribute name="列号_E7ED"><xsl:value-of select="$nNumber + 1"/></xsl:attribute>
12998			<xsl:if test="@table:visibility">
12999				<xsl:attribute name="是否隐藏_E73C"><xsl:choose><xsl:when test="@table:visibility='collapse'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
13000			</xsl:if>
13001			<xsl:variable name="colWidth" select="key('ColStyle',@table:style-name)/style:table-column-properties/@style:column-width"/>
13002			<xsl:if test="$colWidth != ''">
13003				<xsl:variable name="uofWidth" select="fun:Convert2uofUnit($colWidth)"/>
13004				<xsl:attribute name="列宽_E7EE"><xsl:value-of select="$uofWidth"/></xsl:attribute>
13005			</xsl:if>
13006			<xsl:if test="@table:default-cell-style-name">
13007				<xsl:attribute name="式样引用_E7BD"><xsl:value-of select="@table:default-cell-style-name"/></xsl:attribute>
13008			</xsl:if>
13009			<xsl:if test="number(@table:number-columns-repeated) &gt; 1">
13010				<!--xsl:attribute name="跨度_E7EF"><xsl:value-of select="@table:number-columns-repeated - 1"/></xsl:attribute-->
13011				<xsl:attribute name="跨度_E7EF" select="number(@table:number-columns-repeated) - 1"/>
13012			</xsl:if>
13013		</表:列_E7EC>
13014	</xsl:template>
13015	<xsl:template match="table:table-columns" mode="table">
13016		<xsl:for-each select="*">
13017			<xsl:choose>
13018				<xsl:when test="self::node()[name(.)='table:table-column']">
13019					<xsl:apply-templates mode="table" select="."/>
13020				</xsl:when>
13021			</xsl:choose>
13022		</xsl:for-each>
13023	</xsl:template>
13024	<xsl:template match="table:table-header-columns" mode="table">
13025		<xsl:for-each select="*">
13026			<xsl:choose>
13027				<xsl:when test="self::node()[name(.)='table:table-column']">
13028					<xsl:apply-templates mode="table" select="."/>
13029				</xsl:when>
13030				<xsl:when test="self::node()[name(.)='text:soft-page-break']">
13031				</xsl:when>
13032			</xsl:choose>
13033		</xsl:for-each>
13034	</xsl:template>
13035	<xsl:template match="table:table-column-group" mode="table">
13036		<xsl:for-each select="*">
13037			<xsl:choose>
13038				<xsl:when test="self::node()[name(.)='table:table-column-group']">
13039					<xsl:apply-templates mode="table" select="."/>
13040				</xsl:when>
13041				<xsl:when test="self::node()[name(.)='table:table-header-columns']">
13042					<xsl:apply-templates mode="table" select="."/>
13043				</xsl:when>
13044				<xsl:when test="self::node()[name(.)='table:table-columns']">
13045					<xsl:apply-templates mode="table" select="."/>
13046				</xsl:when>
13047				<xsl:when test="self::node()[name(.)='table:table-column']">
13048					<xsl:apply-templates mode="table" select="."/>
13049				</xsl:when>
13050			</xsl:choose>
13051		</xsl:for-each>
13052	</xsl:template>
13053	<xsl:template name="TableGroups">
13054		<xsl:if test=".//table:table-column-group or .//table:table-row-group">
13055			<xsl:element name="表:分组集_E7F6">
13056				<xsl:for-each select=".//table:table-column-group">
13057					<表:列_E841>
13058						<xsl:variable name="nStartNumber">
13059							<xsl:for-each select="descendant::table:table-column[1]">
13060								<xsl:call-template name="ColumnNumber">
13061									<xsl:with-param name="result" select="0"/>
13062								</xsl:call-template>
13063							</xsl:for-each>
13064						</xsl:variable>
13065						<xsl:attribute name="起始_E73A"><xsl:value-of select="$nStartNumber + 1"/></xsl:attribute>
13066						<xsl:variable name="nCount" select="count(.//table:table-column)"/>
13067						<xsl:variable name="nRepeatSum" select="sum(.//table:table-column[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
13068						<xsl:variable name="nRepeatCount" select="count(.//table:table-column[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
13069						<xsl:attribute name="终止_E73B"><xsl:value-of select="$nStartNumber + $nCount + $nRepeatSum - $nRepeatCount"/></xsl:attribute>
13070						<xsl:if test="@table:display">
13071							<xsl:choose>
13072								<xsl:when test="@table:display = 'true'">
13073									<xsl:attribute name="是否隐藏_E73C">false</xsl:attribute>
13074								</xsl:when>
13075								<xsl:otherwise>
13076									<xsl:attribute name="是否隐藏_E73C">true</xsl:attribute>
13077								</xsl:otherwise>
13078							</xsl:choose>
13079						</xsl:if>
13080					</表:列_E841>
13081				</xsl:for-each>
13082				<xsl:for-each select=".//table:table-row-group">
13083					<表:行_E842>
13084						<xsl:variable name="nStartNumber">
13085							<xsl:for-each select="descendant::table:table-row[1]">
13086								<xsl:call-template name="RowNumber">
13087									<xsl:with-param name="result" select="0"/>
13088								</xsl:call-template>
13089							</xsl:for-each>
13090						</xsl:variable>
13091						<xsl:attribute name="起始_E73A"><xsl:value-of select="$nStartNumber + 1"/></xsl:attribute>
13092						<xsl:variable name="nCount" select="count(.//table:table-row)"/>
13093						<xsl:variable name="nRepeatSum" select="sum(.//table:table-row[@table:number-rows-repeated]/@table:number-rows-repeated)"/>
13094						<xsl:variable name="nRepeatCount" select="count(.//table:table-row[@table:number-rows-repeated]/@table:number-rows-repeated)"/>
13095						<xsl:attribute name="终止_E73B"><xsl:value-of select="$nStartNumber + $nCount + $nRepeatSum - $nRepeatCount"/></xsl:attribute>
13096						<xsl:if test="@table:display">
13097							<xsl:choose>
13098								<xsl:when test="@table:display = 'true'">
13099									<xsl:attribute name="是否隐藏_E73C">false</xsl:attribute>
13100								</xsl:when>
13101								<xsl:otherwise>
13102									<xsl:attribute name="是否隐藏_E73C">true</xsl:attribute>
13103								</xsl:otherwise>
13104							</xsl:choose>
13105						</xsl:if>
13106					</表:行_E842>
13107				</xsl:for-each>
13108			</xsl:element>
13109		</xsl:if>
13110	</xsl:template>
13111	<xsl:template name="TableGroupAndOutline">
13112		<xsl:variable name="OutlineDetailValue">
13113			<xsl:value-of select="/office:document/office:settings/config:config-item-set[@config:name='ooo:view-settings']/config:config-item-map-indexed[@config:name='Views']/config:config-item-map-entry/config:config-item[@config:name='OutlineDetailValue']"/>
13114		</xsl:variable>
13115		<!--xsl:if test="(.//table:table-column-group or .//table:table-row-group) and ($OutlineDetailValue != '')"-->
13116		<xsl:if test="(.//table:table-column-group or .//table:table-row-group) and (($OutlineDetailValue = '0') or ($OutlineDetailValue = '1') or ($OutlineDetailValue = '2'))">
13117			<表:组及分级显示方向_E7F7>
13118				<xsl:choose>
13119					<xsl:when test="$OutlineDetailValue = '0'">below</xsl:when>
13120					<xsl:when test="$OutlineDetailValue = '1'">below</xsl:when>
13121					<xsl:when test="$OutlineDetailValue = '2'">right</xsl:when>
13122					<!--xsl:otherwise>none</xsl:otherwise-->
13123				</xsl:choose>
13124			</表:组及分级显示方向_E7F7>
13125		</xsl:if>
13126	</xsl:template>
13127	<xsl:template name="TableSheetContent">
13128		<xsl:element name="表:工作表内容_E80E">
13129			<表:最大行列_E7E6>
13130				<xsl:variable name="maxRow">
13131					<xsl:variable name="nRow" select="count(.//table:table-row)"/>
13132					<xsl:variable name="nRepeatSum" select="sum(.//table:table-row[@table:number-rows-repeated]/@table:number-rows-repeated)"/>
13133					<xsl:variable name="nRepeatCount" select="count(.//table:table-row[@table:number-rows-repeated]/@table:number-rows-repeated)"/>
13134					<xsl:value-of select="$nRow + $nRepeatSum - $nRepeatCount"/>
13135				</xsl:variable>
13136				<xsl:attribute name="最大行_E7E7"><xsl:value-of select="$maxRow"/></xsl:attribute>
13137				<xsl:variable name="maxColumn">
13138					<xsl:variable name="nColumn" select="count(.//table:table-column)"/>
13139					<xsl:variable name="nRepeatSum" select="sum(.//table:table-column[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
13140					<xsl:variable name="nRepeatCount" select="count(.//table:table-column[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
13141					<xsl:value-of select="$nColumn + $nRepeatSum - $nRepeatCount"/>
13142				</xsl:variable>
13143				<xsl:attribute name="最大列_E7E8"><xsl:value-of select="$maxColumn"/></xsl:attribute>
13144			</表:最大行列_E7E6>
13145			<表:缺省行高列宽_E7E9>
13146				<xsl:attribute name="缺省行高_E7EA"><xsl:choose><xsl:when test="$uofUnit= 'cm'">0.53</xsl:when><xsl:when test="$uofUnit= 'mm'">5.3</xsl:when><xsl:when test="$uofUnit= 'inch'">0.20867</xsl:when><xsl:otherwise>15.024</xsl:otherwise></xsl:choose></xsl:attribute>
13147				<xsl:attribute name="缺省列宽_E7EB"><xsl:choose><xsl:when test="$uofUnit= 'cm'">2.27</xsl:when><xsl:when test="$uofUnit= 'mm'">22.7</xsl:when><xsl:when test="$uofUnit= 'inch'">0.8937</xsl:when><xsl:otherwise>64.346</xsl:otherwise></xsl:choose></xsl:attribute>
13148			</表:缺省行高列宽_E7E9>
13149			<xsl:for-each select="*">
13150				<xsl:choose>
13151					<xsl:when test="self::node()[name(.)='table:table-column-group']">
13152						<xsl:apply-templates mode="table" select="."/>
13153					</xsl:when>
13154					<xsl:when test="self::node()[name(.)='table:table-header-columns']">
13155						<xsl:apply-templates mode="table" select="."/>
13156					</xsl:when>
13157					<xsl:when test="self::node()[name(.)='table:table-columns']">
13158						<xsl:apply-templates mode="table" select="."/>
13159					</xsl:when>
13160					<xsl:when test="self::node()[name(.)='table:table-column']">
13161						<xsl:apply-templates mode="table" select="."/>
13162					</xsl:when>
13163					<xsl:when test="self::node()[name(.)='table:table-row-group']">
13164						<xsl:apply-templates mode="table" select="."/>
13165					</xsl:when>
13166					<xsl:when test="self::node()[name(.)='table:table-header-rows']">
13167						<xsl:apply-templates mode="table" select="."/>
13168					</xsl:when>
13169					<xsl:when test="self::node()[name(.)='table:table-rows']">
13170						<xsl:apply-templates mode="table" select="."/>
13171					</xsl:when>
13172					<xsl:when test="self::node()[name(.)='table:table-row']">
13173						<xsl:apply-templates mode="table" select="."/>
13174					</xsl:when>
13175					<xsl:when test="self::node()[name(.)='table:named-expressions']">
13176
13177					</xsl:when>
13178					<xsl:when test="self::node()[name(.)='table:title']">
13179
13180					</xsl:when>
13181					<xsl:when test="self::node()[name(.)='table:desc']">
13182
13183					</xsl:when>
13184					<xsl:when test="self::node()[name(.)='table:table-source']">
13185
13186					</xsl:when>
13187					<xsl:when test="self::node()[name(.)='office:dde-source']">
13188
13189					</xsl:when>
13190					<xsl:when test="self::node()[name(.)='table:scenario']">
13191
13192					</xsl:when>
13193					<xsl:when test="self::node()[name(.)='office:forms']">
13194
13195					</xsl:when>
13196				</xsl:choose>
13197			</xsl:for-each>
13198			<xsl:for-each select="table:shapes">
13199				<xsl:apply-templates mode="table" select="."/>
13200			</xsl:for-each>
13201			<xsl:call-template name="TableGroups"/>
13202			<xsl:call-template name="TableGroupAndOutline"/>
13203		</xsl:element>
13204	</xsl:template>
13205	<xsl:template name="translate-expression">
13206		<xsl:param name="expression"/>
13207		<xsl:variable name="expression1">
13208			<xsl:value-of select="substring-before($expression,':')"/>
13209		</xsl:variable>
13210		<xsl:variable name="expression2">
13211			<xsl:value-of select="substring-after($expression,':')"/>
13212		</xsl:variable>
13213		<xsl:variable name="expression3">
13214			<xsl:value-of select="substring-before($expression1,'.')"/>
13215			<!--Table Name-->
13216		</xsl:variable>
13217		<xsl:variable name="expression4">
13218			<xsl:value-of select="substring-before($expression2,'.')"/>
13219			<!--Table Name-->
13220		</xsl:variable>
13221		<xsl:variable name="expression5">
13222			<xsl:value-of select="substring-after($expression1,'.')"/>
13223			<!--Start point-->
13224		</xsl:variable>
13225		<xsl:variable name="expression6">
13226			<xsl:value-of select="substring-after($expression2,'.')"/>
13227			<!--end point-->
13228		</xsl:variable>
13229		<xsl:variable name="startHorizonal">
13230			<xsl:choose>
13231				<xsl:when test="string-length($expression5) = 2">
13232					<xsl:value-of select="substring($expression5,1,1)"/>
13233				</xsl:when>
13234				<xsl:when test="string-length($expression5) = 3">
13235					<xsl:variable name="secondCharacter" select="substring($expression5,2,1)"/>
13236					<xsl:choose>
13237						<xsl:when test="number($secondCharacter) &gt; 9">
13238							<xsl:value-of select="substring($expression5,1,2)"/>
13239						</xsl:when>
13240						<xsl:otherwise>
13241							<xsl:value-of select="substring($expression5,1,1)"/>
13242						</xsl:otherwise>
13243					</xsl:choose>
13244				</xsl:when>
13245			</xsl:choose>
13246		</xsl:variable>
13247		<xsl:variable name="startVertical">
13248			<xsl:choose>
13249				<xsl:when test="string-length($expression5) = 2">
13250					<xsl:value-of select="substring($expression5,2,1)"/>
13251				</xsl:when>
13252				<xsl:when test="string-length($expression5) = 3">
13253					<xsl:variable name="secondCharacter" select="substring($expression5,2,1)"/>
13254					<xsl:choose>
13255						<xsl:when test="number($secondCharacter) &gt; 9">
13256							<xsl:value-of select="substring($expression5,3)"/>
13257						</xsl:when>
13258						<xsl:otherwise>
13259							<xsl:value-of select="substring($expression5,2)"/>
13260						</xsl:otherwise>
13261					</xsl:choose>
13262				</xsl:when>
13263			</xsl:choose>
13264		</xsl:variable>
13265		<xsl:variable name="endHorizonal">
13266			<xsl:choose>
13267				<xsl:when test="string-length($expression6) = 2">
13268					<xsl:value-of select="substring($expression6,1,1)"/>
13269				</xsl:when>
13270				<xsl:when test="string-length($expression6) = 3">
13271					<xsl:variable name="secondCharacter" select="substring($expression6,2,1)"/>
13272					<xsl:choose>
13273						<xsl:when test="number($secondCharacter) &gt; 9">
13274							<xsl:value-of select="substring($expression6,1,2)"/>
13275						</xsl:when>
13276						<xsl:otherwise>
13277							<xsl:value-of select="substring($expression6,1,1)"/>
13278						</xsl:otherwise>
13279					</xsl:choose>
13280				</xsl:when>
13281			</xsl:choose>
13282		</xsl:variable>
13283		<xsl:variable name="endVertical">
13284			<xsl:choose>
13285				<xsl:when test="string-length($expression6) = 2">
13286					<xsl:value-of select="substring($expression6,2,1)"/>
13287				</xsl:when>
13288				<xsl:when test="string-length($expression6) = 3">
13289					<xsl:variable name="secondCharacter" select="substring($expression6,2,1)"/>
13290					<xsl:choose>
13291						<xsl:when test="number($secondCharacter) &gt; 9">
13292							<xsl:value-of select="substring($expression6,3)"/>
13293						</xsl:when>
13294						<xsl:otherwise>
13295							<xsl:value-of select="substring($expression6,2)"/>
13296						</xsl:otherwise>
13297					</xsl:choose>
13298				</xsl:when>
13299			</xsl:choose>
13300		</xsl:variable>
13301		<xsl:variable name="start">
13302			<xsl:value-of select="concat('$',$startHorizonal,'$',$startVertical)"/>
13303		</xsl:variable>
13304		<xsl:variable name="end">
13305			<xsl:value-of select="concat('$',$endHorizonal,'$',$endVertical)"/>
13306		</xsl:variable>
13307		<xsl:variable name="yinhao">'</xsl:variable>
13308		<xsl:choose>
13309			<xsl:when test="$expression3 != $expression4">
13310				<xsl:value-of select="concat($yinhao,$expression3,$yinhao,'!',$start,':',$yinhao,$expression4,$yinhao,'!',$end)"/>
13311			</xsl:when>
13312			<xsl:otherwise>
13313				<xsl:value-of select="concat($yinhao,$expression3,$yinhao,'!',$start,':',$end)"/>
13314			</xsl:otherwise>
13315		</xsl:choose>
13316	</xsl:template>
13317	<xsl:template name="TableOperator">
13318		<xsl:element name="表:操作条件_E815">
13319			<xsl:element name="表:操作码_E816">
13320				<xsl:choose>
13321					<xsl:when test="@table:operator = '='">equal to</xsl:when>
13322					<xsl:when test="@table:operator = '!='">not equal to</xsl:when>
13323					<xsl:when test="@table:operator = '&gt;'">greater than</xsl:when>
13324					<xsl:when test="@table:operator = '&gt;='">greater than or equal to</xsl:when>
13325					<xsl:when test="@table:operator = '&lt;'">less than</xsl:when>
13326					<xsl:when test="@table:operator = '&lt;='">less than or equal to</xsl:when>
13327					<xsl:when test="@table:operator = 'begins-with'">start with</xsl:when>
13328					<xsl:when test="@table:operator = 'does-not-begin-with'">not start with</xsl:when>
13329					<xsl:when test="@table:operator = 'ends-with'">end with</xsl:when>
13330					<xsl:when test="@table:operator = 'does-not-end-with'">not end with</xsl:when>
13331					<xsl:when test="@table:operator = 'contains'">contain</xsl:when>
13332					<xsl:when test="@table:operator = 'does-not-contain'">not contain</xsl:when>
13333					<xsl:otherwise>equal to</xsl:otherwise>
13334				</xsl:choose>
13335			</xsl:element>
13336			<xsl:element name="表:值_E817">
13337				<xsl:if test="@table:value">
13338					<xsl:value-of select="@table:value"/>
13339				</xsl:if>
13340			</xsl:element>
13341		</xsl:element>
13342	</xsl:template>
13343	<xsl:template name="TableDataFilter">
13344		<xsl:param name="tablename"/>
13345		<xsl:if test="/*/office:body/office:spreadsheet/table:database-ranges/table:database-range[not(@table:name) and contains(@table:target-range-address,$tablename)]">
13346			<表:筛选集_E83A>
13347				<xsl:for-each select="/*/office:body/office:spreadsheet/table:database-ranges/table:database-range[not(@table:name) and contains(@table:target-range-address,$tablename)]">
13348					<xsl:variable name="target-range-address" select="//table:database-range[table:filter]/@table:target-range-address"/>
13349					<xsl:element name="表:筛选_E80F">
13350						<xsl:attribute name="类型_E83B"><xsl:choose><xsl:when test="@table:display-filter-buttons">auto</xsl:when><xsl:otherwise>advance</xsl:otherwise></xsl:choose></xsl:attribute>
13351						<xsl:element name="表:范围_E810">
13352							<xsl:call-template name="translate-expression">
13353								<xsl:with-param name="expression" select="./@table:target-range-address"/>
13354							</xsl:call-template>
13355						</xsl:element>
13356						<xsl:variable name="column-and-row" select="substring-before(substring-after($target-range-address,'.'),':')"/>
13357						<xsl:if test="table:filter">
13358							<xsl:element name="表:条件_E811">
13359								<xsl:variable name="columnNumber">
13360									<xsl:choose>
13361										<xsl:when test="table:filter/table:filter-condition/@table:field-number">
13362											<xsl:value-of select="number(table:filter/table:filter-condition/@table:field-number) + 1"/>
13363										</xsl:when>
13364										<xsl:when test="table:filter/table:filter-or/table:filter-condition/@table:field-number">
13365											<xsl:value-of select="number(table:filter/table:filter-or/table:filter-condition[1]/@table:field-number) + 1"/>
13366										</xsl:when>
13367										<xsl:when test="table:filter/table:filter-and/table:filter-condition/@table:field-number">
13368											<xsl:value-of select="number(table:filter/table:filter-and/table:filter-condition[1]/@table:field-number) + 1"/>
13369										</xsl:when>
13370										<xsl:otherwise/>
13371									</xsl:choose>
13372								</xsl:variable>
13373								<xsl:attribute name="列号_E819"><xsl:value-of select="$columnNumber[1]"/></xsl:attribute>
13374								<xsl:variable name="filter1" select="table:filter/table:filter-condition/@table:operator"/>
13375								<xsl:choose>
13376									<xsl:when test="$filter1 = 'bottom values' or $filter1 = 'bottom percent' or $filter1 = 'top values' or $filter1 = 'top percent' or $filter1 = '='">
13377										<xsl:element name="表:普通_E812">
13378											<xsl:attribute name="类型_E7B6"><xsl:choose><xsl:when test="$filter1 = 'bottom values'">bottomitem</xsl:when><xsl:when test="$filter1 = 'bottom percent'">bottompercent</xsl:when><xsl:when test="$filter1 = 'top values'">topitem</xsl:when><xsl:when test="$filter1 = 'top percent'">toppercent</xsl:when><xsl:when test="$filter1 = '='">value</xsl:when></xsl:choose></xsl:attribute>
13379											<xsl:attribute name="值_E813"><xsl:value-of select="table:filter/table:filter-condition/@table:value"/></xsl:attribute>
13380										</xsl:element>
13381									</xsl:when>
13382									<xsl:otherwise>
13383										<xsl:element name="表:自定义_E814">
13384											<xsl:variable name="tableFilter">
13385												<xsl:choose>
13386													<xsl:when test="table:filter/table:filter-or">or</xsl:when>
13387													<xsl:when test="/table:filter/table:filter-and">and</xsl:when>
13388												</xsl:choose>
13389											</xsl:variable>
13390											<xsl:if test="$tableFilter != ''">
13391												<xsl:attribute name="类型_E75D"><xsl:value-of select="$tableFilter"/></xsl:attribute>
13392											</xsl:if>
13393											<xsl:for-each select="table:filter/table:filter-or/table:filter-condition | table:filter/table:filter-and/table:filter-condition | table:filter/table:filter-condition">
13394												<xsl:call-template name="TableOperator"/>
13395											</xsl:for-each>
13396										</xsl:element>
13397									</xsl:otherwise>
13398								</xsl:choose>
13399							</xsl:element>
13400						</xsl:if>
13401						<xsl:if test="@table:condition-source-range-address">
13402							<xsl:element name="表:条件区域_E81A">
13403								<xsl:value-of select="@table:condition-source-range-address"/>
13404							</xsl:element>
13405						</xsl:if>
13406						<xsl:if test="@table:display-duplicates">
13407							<xsl:element name="表:结果区域_E81B">
13408								<xsl:value-of select="@table:display-duplicates"/>
13409							</xsl:element>
13410						</xsl:if>
13411					</xsl:element>
13412				</xsl:for-each>
13413			</表:筛选集_E83A>
13414		</xsl:if>
13415	</xsl:template>
13416	<xsl:template name="TablePageBreak">
13417		<xsl:if test="key('ColStyle', .//table:table-column/@table:style-name)/style:table-column-properties/@fo:break-before = 'page' or key('ColStyle', .//table:table-row/@table:style-name)/style:table-row-properties/@fo:break-before = 'page'">
13418			<表:分页符集_E81E>
13419				<xsl:for-each select=".//table:table-column">
13420					<xsl:if test="key('ColStyle', @table:style-name)/style:table-column-properties/@fo:break-before = 'page'">
13421						<xsl:variable name="nNumber">
13422							<xsl:call-template name="ColumnNumber">
13423								<xsl:with-param name="result" select="0"/>
13424							</xsl:call-template>
13425						</xsl:variable>
13426						<xsl:element name="表:分页符_E81F">
13427							<xsl:attribute name="列号_E821"><xsl:value-of select="$nNumber"/></xsl:attribute>
13428						</xsl:element>
13429					</xsl:if>
13430				</xsl:for-each>
13431				<xsl:for-each select=".//table:table-row">
13432					<xsl:if test="key('RowStyle', @table:style-name)/style:table-row-properties/@fo:break-before = 'page'">
13433						<xsl:variable name="nNumber">
13434							<xsl:call-template name="RowNumber">
13435								<xsl:with-param name="result" select="0"/>
13436							</xsl:call-template>
13437						</xsl:variable>
13438						<xsl:element name="表:分页符_E81F">
13439							<xsl:attribute name="行号_E820"><xsl:value-of select="$nNumber"/></xsl:attribute>
13440						</xsl:element>
13441					</xsl:if>
13442				</xsl:for-each>
13443			</表:分页符集_E81E>
13444		</xsl:if>
13445	</xsl:template>
13446	<xsl:template match="table:table" mode="table">
13447		<xsl:element name="表:工作表_E825">
13448			<xsl:attribute name="标识符_E7AC"><xsl:value-of select="concat('Table', generate-id())"/></xsl:attribute>
13449			<xsl:attribute name="名称_E822"><xsl:value-of select="@table:name"/></xsl:attribute>
13450			<xsl:variable name="tablestyle" select="key('TableStyle',@table:style-name)"/>
13451			<xsl:variable name="status" select="$tablestyle/style:table-properties/@table:display"/>
13452			<xsl:attribute name="是否隐藏_E73C"><xsl:choose><xsl:when test="$status = 'false'"><xsl:value-of select="'true'"/></xsl:when><xsl:otherwise><xsl:value-of select="'false'"/></xsl:otherwise></xsl:choose></xsl:attribute>
13453			<!--xsl:attribute name="背景_E823"><xsl:choose><xsl:when test="$tablestyle/style:table-properties/@fo:background-color"><xsl:value-of select="$tablestyle/style:table-properties/@fo:background-color"/></xsl:when><xsl:otherwise>#ffffff</xsl:otherwise></xsl:choose></xsl:attribute-->
13454			<!--xsl:attribute name="表:式样引用_E824"><xsl:value-of select="@table:style-name"/></xsl:attribute-->
13455			<xsl:call-template name="TableSheetProperties">
13456				<xsl:with-param name="tablestyle" select="$tablestyle"/>
13457			</xsl:call-template>
13458			<xsl:call-template name="TableSheetContent"/>
13459			<xsl:call-template name="TableDataFilter">
13460				<xsl:with-param name="tablename" select="@table:name"/>
13461			</xsl:call-template>
13462			<xsl:if test="/office:document/office:automatic-styles/style:style/style:table-column-properties[@fo:break-before]">
13463				<xsl:call-template name="TablePageBreak"/>
13464			</xsl:if>
13465		</xsl:element>
13466	</xsl:template>
13467	<xsl:template match="table:shapes" mode="table">
13468		<xsl:for-each select="*">
13469			<xsl:call-template name="UOFAnchor">
13470				<!--xsl:with-param name="anchor_name1" select="'uof:锚点_C644'"/-->
13471			</xsl:call-template>
13472		</xsl:for-each>
13473	</xsl:template>
13474	<xsl:template match="text:p" mode="tablecell">
13475		<xsl:call-template name="paragraph_content"/>
13476	</xsl:template>
13477	<xsl:template match="office:annotation" mode="tablecell">
13478		<xsl:element name="表:批注_E7B7">
13479			<xsl:attribute name="是否显示_E7B9"><xsl:choose><xsl:when test="@office:display = 'true'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
13480			<xsl:call-template name="UOFAnchor">
13481				<!--xsl:with-param name="anchor_name1" select="'uof:锚点_C644'"/-->
13482			</xsl:call-template>
13483		</xsl:element>
13484	</xsl:template>
13485	<xsl:template name="CellContent">
13486		<xsl:param name="rowPos"/>
13487		<表:单元格_E7F2>
13488			<xsl:variable name="nCount1" select="count(preceding-sibling::table:table-cell)"/>
13489			<xsl:variable name="nRepeatSum1" select="sum(preceding-sibling::table:table-cell[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
13490			<xsl:variable name="nRepeatCount1" select="count(preceding-sibling::table:table-cell[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
13491			<xsl:variable name="nCount2" select="count(preceding-sibling::table:covered-table-cell)"/>
13492			<xsl:variable name="nRepeatSum2" select="sum(preceding-sibling::table:covered-table-cell[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
13493			<xsl:variable name="nRepeatCount2" select="count(preceding-sibling::table:covered-table-cell[@table:number-columns-repeated]/@table:number-columns-repeated)"/>
13494			<xsl:variable name="columnPos">
13495				<xsl:value-of select="number($nCount1 + $nRepeatSum1 - $nRepeatCount1 + $nCount2 + $nRepeatSum2 - $nRepeatCount2 + 1)"/>
13496			</xsl:variable>
13497			<xsl:attribute name="列号_E7BC" select="$columnPos"/>
13498			<xsl:if test="@table:style-name">
13499				<xsl:attribute name="式样引用_E7BD"><xsl:value-of select="@table:style-name"/></xsl:attribute>
13500			</xsl:if>
13501			<!--插件中对条件格式化预处理-->
13502			<xsl:if test="@table:content-validation-name">
13503				<xsl:attribute name="表:content-validation-name"><xsl:value-of select="@table:content-validation-name"/></xsl:attribute>
13504			</xsl:if>
13505			<!--
13506			<xsl:variable name="defaultCellStyle">
13507				<xsl:for-each select="../preceding-sibling::*[name(.) = 'table:table-column']">
13508					<xsl:variable name="nNumber">
13509						<xsl:call-template name="ColumnNumber">
13510							<xsl:with-param name="result" select="0"/>
13511						</xsl:call-template>
13512					</xsl:variable>
13513					<uof:tempTree>
13514						<uof:columnNumber><xsl:value-of select="number($nNumber) + 1"/></uof:columnNumber>
13515						<uof:repeated><xsl:value-of select="@table:number-columns-repeated"/></uof:repeated>
13516						<uof:defaultCellStyleName><xsl:value-of select="@table:default-cell-style-name"/></uof:defaultCellStyleName>
13517					</uof:tempTree>
13518				</xsl:for-each>
13519			</xsl:variable>
13520			<xsl:choose>
13521				<xsl:when test="@table:style-name">
13522					<xsl:attribute name="表:式样引用"><xsl:value-of select="@table:style-name"/></xsl:attribute>
13523				</xsl:when>
13524				<xsl:when test="$defaultCellStyle/uof:tempTree[uof:columnNumber = $columnPos]/uof:defaultCellStyleName != ''">
13525					<xsl:attribute name="表:式样引用"><xsl:value-of select="$defaultCellStyle/uof:tempTree[uof:columnNumber = $columnPos]/uof:defaultCellStyleName"/></xsl:attribute>
13526				</xsl:when>
13527				<xsl:when test="$defaultCellStyle/uof:tempTree[((number(uof:columnNumber) + number(uof:repeated)) = $columnPos) or ((number(uof:columnNumber) + number(uof:repeated)) &gt; $columnPos)]/uof:defaultCellStyleName != ''">
13528					<xsl:attribute name="表:式样引用"><xsl:value-of select="$defaultCellStyle/uof:tempTree[((number(uof:columnNumber) + number(uof:repeated)) = $columnPos) or ((number(uof:columnNumber) + number(uof:repeated)) &gt; $columnPos)]/uof:defaultCellStyleName"/></xsl:attribute>
13529				</xsl:when>
13530			</xsl:choose>
13531
13532			<表:合并_E7AF>
13533				<xsl:if test="@table:number-columns-spanned &gt; 1">
13534					<表:列数_E7B0>
13535						<xsl:value-of select="@table:number-columns-spanned - 1"/>
13536					</表:列数_E7B0>
13537				</xsl:if>
13538				<xsl:if test="@table:number-rows-spanned &gt; 1">
13539					<表:行数_E7B1>
13540						<xsl:value-of select="@table:number-rows-spanned - 1"/>
13541					</表:行数_E7B1>
13542				</xsl:if>
13543			</表:合并_E7AF>	-->
13544			<xsl:if test="number(@table:number-columns-spanned) &gt; 1 or number(@table:number-rows-spanned) &gt; 1">
13545				<表:合并_E7AF>
13546					<xsl:if test="number(@table:number-columns-spanned) &gt; 1">
13547						<!--xsl:attribute name="列数_E7B0"><xsl:value-of select="@table:number-columns-spanned - 1"/></xsl:attribute-->
13548						<xsl:attribute name="列数_E7B0" select="number(@table:number-columns-spanned)-1"/>
13549					</xsl:if>
13550					<xsl:if test="number(@table:number-rows-spanned) &gt; 1">
13551						<!--xsl:attribute name="行数_E7B1"><xsl:value-of select="@table:number-rows-spanned - 1"/></xsl:attribute-->
13552						<xsl:attribute name="行数_E7B1" select="number(@table:number-rows-spanned)-1"/>
13553					</xsl:if>
13554				</表:合并_E7AF>
13555			</xsl:if>
13556			<xsl:if test="number(@table:number-columns-repeated) &gt; 1">
13557				<!--表:跨度_E7B2>
13558					<xsl:value-of select="@table:number-columns-repeated - 1"/>
13559				</表:跨度_E7B2-->
13560				<xsl:attribute name="跨度_E7EF" select="number(@table:number-columns-repeated) - 1"/>
13561			</xsl:if>
13562			<xsl:if test="*">
13563				<表:数据_E7B3>
13564					<xsl:variable name="datatype">
13565						<xsl:choose>
13566							<xsl:when test="@office:value-type = 'string'">text</xsl:when>
13567							<xsl:when test="@office:value-type = 'boolean'">boolean</xsl:when>
13568							<xsl:when test="@office:value-type = 'date'">date</xsl:when>
13569							<xsl:when test="@office:value-type = 'time'">error</xsl:when>
13570							<xsl:when test="@office:value-type = 'float' or @office:value-type = 'percentage' or @office:value-type = 'currency'">number</xsl:when>
13571							<!--<xsl:otherwise>number</xsl:otherwise>-->
13572						</xsl:choose>
13573					</xsl:variable>
13574					<xsl:if test="$datatype != ''">
13575						<xsl:attribute name="类型_E7B6" select="$datatype"/>
13576					</xsl:if>
13577					<xsl:choose>
13578						<!-- 在 字:文本串 中存放其原始值office:value,其text:p中的显示值不写,由单元格引用的式样决定 -->
13579						<xsl:when test="@office:value or @office:date-value or @office:time-value or @office:boolean-value or @office:string-value  or @table:formula">
13580							<xsl:if test="@office:value">
13581								<字:句_419D>
13582									<字:文本串_415B>
13583										<xsl:value-of select="@office:value"/>
13584									</字:文本串_415B>
13585								</字:句_419D>
13586							</xsl:if>
13587							<xsl:if test="@office:date-value">
13588								<字:句_419D>
13589									<字:文本串_415B>
13590										<xsl:value-of select="@office:date-value"/>
13591									</字:文本串_415B>
13592								</字:句_419D>
13593							</xsl:if>
13594							<xsl:if test="@office:time-value">
13595								<字:句_419D>
13596									<字:文本串_415B>
13597										<xsl:value-of select="@office:time-value"/>
13598									</字:文本串_415B>
13599								</字:句_419D>
13600							</xsl:if>
13601							<xsl:if test="@office:boolean-value">
13602								<字:句_419D>
13603									<字:文本串_415B>
13604										<xsl:value-of select="@office:boolean-value"/>
13605									</字:文本串_415B>
13606								</字:句_419D>
13607							</xsl:if>
13608							<xsl:if test="@office:string-value">
13609								<字:句_419D>
13610									<字:文本串_415B>
13611										<xsl:value-of select="@office:string-value"/>
13612									</字:文本串_415B>
13613								</字:句_419D>
13614							</xsl:if>
13615							<xsl:if test="@table:formula">
13616								<表:公式_E7B5>
13617									<xsl:call-template name="translate-formular-expression">
13618										<xsl:with-param name="rowPos" select="$rowPos"/>
13619										<xsl:with-param name="columnPos" select="$columnPos"/>
13620										<xsl:with-param name="expression" select="@table:formula"/>
13621									</xsl:call-template>
13622								</表:公式_E7B5>
13623							</xsl:if>
13624						</xsl:when>
13625						<xsl:otherwise>
13626							<xsl:apply-templates mode="tablecell" select="text:p"/>
13627						</xsl:otherwise>
13628					</xsl:choose>
13629				</表:数据_E7B3>
13630			</xsl:if>
13631			<xsl:for-each select="node()[not(name()='text:p')]">
13632				<xsl:choose>
13633					<xsl:when test="self::node()[name(.)='office:annotation']">
13634						<xsl:apply-templates mode="tablecell" select="."/>
13635					</xsl:when>
13636					<xsl:when test="self::node()[substring-before(name(.),':')='draw']">
13637						<xsl:call-template name="UOFAnchor">
13638							<!--hsr 锚点命名已统一 xsl:with-param name="anchor_name1" select="'uof:锚点_C644'"/-->
13639						</xsl:call-template>
13640					</xsl:when>
13641				</xsl:choose>
13642			</xsl:for-each>
13643		</表:单元格_E7F2>
13644	</xsl:template>
13645	<!-- Translate OpenFormula expressions of table cells to spreadsheetml expression
13646
13647		For example:
13648			"of:=ROUNDDOWN(123.321;2)"
13649				to "=ROUNDDOWN(123.321,2)"
13650			"of:=([.B2]-[.C2])"
13651				to  "=(RC[-2]-RC[-1])"
13652			"of:=DCOUNTA([.E14:.F21];[.F14];[.H14:.I15])"
13653				to  "=DCOUNTA(R[-17]C[3]:R[-10]C[4],R[-17]C[4],R[-17]C[6]:R[-16]C[7])"   -->
13654	<xsl:template name="translate-formular-expression">
13655		<!--  return position or range for formula or other -->
13656		<xsl:param name="rowPos"/>
13657		<!-- the position in row (vertical) of cell -->
13658		<xsl:param name="columnPos"/>
13659		<!-- the position in column (horizontal of cell) -->
13660		<xsl:param name="expression"/>
13661		<!-- the expression string to be converted  -->
13662		<xsl:choose>
13663			<xsl:when test="$expression != ''">
13664				<xsl:choose>
13665					<!-- OASIS Open Document XML formular expressions  -->
13666					<xsl:when test="starts-with($expression,'of:')">
13667						<!-- giving out the '=', which will be removed with 'of:=' to enable recursive string parsing  -->
13668						<xsl:text>=</xsl:text>
13669						<xsl:call-template name="function-parameter-mapping">
13670							<xsl:with-param name="rowPos" select="$rowPos"/>
13671							<xsl:with-param name="columnPos" select="$columnPos"/>
13672							<!-- 1) remove 'of:=' prefix and exchange ';' with ',' -->
13673							<xsl:with-param name="expression" select="translate(substring($expression,5),';',',')"/>
13674						</xsl:call-template>
13675					</xsl:when>
13676					<xsl:otherwise>
13677						<xsl:value-of select="$expression"/>
13678					</xsl:otherwise>
13679				</xsl:choose>
13680			</xsl:when>
13681			<xsl:otherwise>
13682				<xsl:value-of select="$expression"/>
13683			</xsl:otherwise>
13684		</xsl:choose>
13685	</xsl:template>
13686	<!-- As the function API of our Office and MS Office show differences in the argumentlists,
13687			-	sometimes the last parameter have to be neglected
13688			-	sometimes a default have to be added
13689		these exchanges have to be done as well -->
13690	<xsl:template name="function-parameter-mapping">
13691		<xsl:param name="rowPos"/>
13692		<!-- the position in row (vertical of cell) -->
13693		<xsl:param name="columnPos"/>
13694		<!-- the position in column (horizontal of cell) -->
13695		<xsl:param name="expression"/>
13696		<!-- expression to be exchanged -->
13697		<!-- Choose if the expression contains one of the function, which might need changes -->
13698		<xsl:choose>
13699			<!-- if not contain one of the functions, which need parameter mapping -->
13700			<xsl:when test="not(contains($expression, 'ADDRESS(') or         contains($expression, 'CEILING(') or         contains($expression, 'FLOOR(') or         contains($expression, 'IF(') or         contains($expression, 'ROUND('))">
13701				<!-- simply translate possily exisiting column & row references -->
13702				<xsl:call-template name="translate-of-expression">
13703					<xsl:with-param name="rowPos" select="$rowPos"/>
13704					<xsl:with-param name="columnPos" select="$columnPos"/>
13705					<xsl:with-param name="expression" select="$expression"/>
13706				</xsl:call-template>
13707			</xsl:when>
13708			<!-- functions to be mapped -->
13709			<xsl:otherwise>
13710				<xsl:variable name="functionPrefix" select="substring-before($expression, '(')"/>
13711				<xsl:variable name="expressionSuffix" select="substring-after($expression, '(')"/>
13712				<!-- translate in case the expression contains row/cell references aside of the function name -->
13713				<xsl:call-template name="translate-of-expression">
13714					<xsl:with-param name="rowPos" select="$rowPos"/>
13715					<xsl:with-param name="columnPos" select="$columnPos"/>
13716					<xsl:with-param name="expression" select="$functionPrefix"/>
13717				</xsl:call-template>
13718				<!-- Prefix do not include the bracket -->
13719				<xsl:text>(</xsl:text>
13720				<xsl:choose>
13721					<xsl:when test="not(contains($functionPrefix, 'ADDRESS') or           contains($functionPrefix, 'CEILING') or           contains($functionPrefix, 'FLOOR') or           (contains($functionPrefix, 'IF') and not(            contains($functionPrefix, 'COUNTIF') or            contains($functionPrefix, 'SUMIF'))) or           contains($functionPrefix, 'ROUND'))">
13722						<xsl:call-template name="function-parameter-mapping">
13723							<xsl:with-param name="rowPos" select="$rowPos"/>
13724							<xsl:with-param name="columnPos" select="$columnPos"/>
13725							<xsl:with-param name="expression" select="$expressionSuffix"/>
13726						</xsl:call-template>
13727					</xsl:when>
13728					<xsl:otherwise>
13729						<xsl:choose>
13730							<xsl:when test="contains($functionPrefix, 'ADDRESS')">
13731								<xsl:call-template name="find-parameters">
13732									<xsl:with-param name="rowPos" select="$rowPos"/>
13733									<xsl:with-param name="columnPos" select="$columnPos"/>
13734									<xsl:with-param name="expressionSuffix" select="$expressionSuffix"/>
13735									<xsl:with-param name="parameterRemoval" select="4"/>
13736								</xsl:call-template>
13737							</xsl:when>
13738							<xsl:when test="contains($functionPrefix, 'CEILING') or            contains($functionPrefix, 'FLOOR')">
13739								<xsl:call-template name="find-parameters">
13740									<xsl:with-param name="rowPos" select="$rowPos"/>
13741									<xsl:with-param name="columnPos" select="$columnPos"/>
13742									<xsl:with-param name="expressionSuffix" select="$expressionSuffix"/>
13743									<xsl:with-param name="parameterRemoval" select="3"/>
13744								</xsl:call-template>
13745							</xsl:when>
13746							<xsl:when test="contains($functionPrefix, 'IF')">
13747								<xsl:if test="not(contains($functionPrefix, 'COUNTIF') or               contains($functionPrefix, 'SUMIF'))">
13748									<xsl:call-template name="find-parameters">
13749										<xsl:with-param name="rowPos" select="$rowPos"/>
13750										<xsl:with-param name="columnPos" select="$columnPos"/>
13751										<xsl:with-param name="expressionSuffix" select="$expressionSuffix"/>
13752										<xsl:with-param name="parameterAddition" select="'true'"/>
13753										<xsl:with-param name="additonAfterLastParameter" select="2"/>
13754									</xsl:call-template>
13755								</xsl:if>
13756							</xsl:when>
13757							<xsl:when test="contains($functionPrefix, 'ROUND')">
13758								<xsl:call-template name="find-parameters">
13759									<xsl:with-param name="rowPos" select="$rowPos"/>
13760									<xsl:with-param name="columnPos" select="$columnPos"/>
13761									<xsl:with-param name="expressionSuffix" select="$expressionSuffix"/>
13762									<xsl:with-param name="parameterAddition" select="'null'"/>
13763									<xsl:with-param name="additonAfterLastParameter" select="1"/>
13764								</xsl:call-template>
13765							</xsl:when>
13766						</xsl:choose>
13767					</xsl:otherwise>
13768				</xsl:choose>
13769			</xsl:otherwise>
13770		</xsl:choose>
13771	</xsl:template>
13772	<!-- Each parameter of the argumentlist have to be determined.
13773	Due to the low level string functionlity in XSLT it becomes a clumsy task -->
13774	<xsl:template name="find-parameters">
13775		<!-- used for mapping of row/column reference  -->
13776		<xsl:param name="rowPos"/>
13777		<!-- the position in row (vertical of cell) -->
13778		<xsl:param name="columnPos"/>
13779		<!-- the position in column (horizontal of cell) -->
13780		<!-- used for mapping of parameter  -->
13781		<xsl:param name="parameterRemoval"/>
13782		<xsl:param name="parameterAddition"/>
13783		<xsl:param name="additonAfterLastParameter"/>
13784		<!-- used as helper to find a parameter  -->
13785		<xsl:param name="expressionSuffix"/>
13786		<xsl:param name="parameterNumber" select="1"/>
13787		<xsl:variable name="parameter">
13788			<xsl:call-template name="getParameter">
13789				<xsl:with-param name="expressionSuffix" select="$expressionSuffix"/>
13790			</xsl:call-template>
13791		</xsl:variable>
13792		<xsl:choose>
13793			<!-- if it is not the last parameter -->
13794			<xsl:when test="starts-with(substring-after($expressionSuffix, $parameter), ',')">
13795				<!-- searches the argument for functions to be mapped -->
13796				<xsl:if test="not(number($parameterRemoval) = number($parameterNumber))">
13797					<xsl:call-template name="function-parameter-mapping">
13798						<xsl:with-param name="rowPos" select="$rowPos"/>
13799						<xsl:with-param name="columnPos" select="$columnPos"/>
13800						<xsl:with-param name="expression">
13801							<xsl:choose>
13802								<!-- in case a character will be removed the preceding won't make a comma -->
13803								<xsl:when test="number($parameterRemoval) = (number($parameterNumber) + 1)">
13804									<xsl:value-of select="$parameter"/>
13805								</xsl:when>
13806								<xsl:otherwise>
13807									<xsl:value-of select="concat($parameter, ',')"/>
13808								</xsl:otherwise>
13809							</xsl:choose>
13810						</xsl:with-param>
13811					</xsl:call-template>
13812				</xsl:if>
13813				<!-- searches for the next parameter -->
13814				<xsl:call-template name="find-parameters">
13815					<xsl:with-param name="rowPos" select="$rowPos"/>
13816					<xsl:with-param name="columnPos" select="$columnPos"/>
13817					<xsl:with-param name="parameterRemoval" select="$parameterRemoval"/>
13818					<xsl:with-param name="parameterAddition" select="$parameterAddition"/>
13819					<xsl:with-param name="additonAfterLastParameter" select="$additonAfterLastParameter"/>
13820					<xsl:with-param name="expressionSuffix" select="substring-after(substring-after($expressionSuffix, $parameter),',')"/>
13821					<xsl:with-param name="parameterNumber" select="$parameterNumber + 1"/>
13822				</xsl:call-template>
13823			</xsl:when>
13824			<xsl:otherwise>
13825				<!-- the last parameter -->
13826				<xsl:choose>
13827					<xsl:when test="$parameterRemoval = $parameterNumber">
13828						<!-- searches the rest of the expression for functions to be mapped -->
13829						<xsl:call-template name="function-parameter-mapping">
13830							<xsl:with-param name="rowPos" select="$rowPos"/>
13831							<xsl:with-param name="columnPos" select="$columnPos"/>
13832							<xsl:with-param name="expression" select="substring-after($expressionSuffix, $parameter)"/>
13833						</xsl:call-template>
13834					</xsl:when>
13835					<xsl:when test="$parameterAddition and ($parameterNumber  = $additonAfterLastParameter)">
13836						<!-- searches the rest of the expression for functions to be mapped -->
13837						<xsl:call-template name="function-parameter-mapping">
13838							<xsl:with-param name="rowPos" select="$rowPos"/>
13839							<xsl:with-param name="columnPos" select="$columnPos"/>
13840							<xsl:with-param name="expression" select="$parameter"/>
13841						</xsl:call-template>
13842						<!-- searches last parameter and additional parameters for functions to be mapped -->
13843						<xsl:call-template name="function-parameter-mapping">
13844							<xsl:with-param name="rowPos" select="$rowPos"/>
13845							<xsl:with-param name="columnPos" select="$columnPos"/>
13846							<!-- for the final parameter the latter substring is the ')' -->
13847							<xsl:with-param name="expression" select="concat(',', $parameterAddition, substring-after($expressionSuffix, $parameter))"/>
13848						</xsl:call-template>
13849					</xsl:when>
13850					<xsl:otherwise>
13851						<!-- searches the argument for functions to be mapped -->
13852						<xsl:call-template name="function-parameter-mapping">
13853							<xsl:with-param name="rowPos" select="$rowPos"/>
13854							<xsl:with-param name="columnPos" select="$columnPos"/>
13855							<xsl:with-param name="expression" select="$parameter"/>
13856						</xsl:call-template>
13857						<!-- searches the rest of the expression for functions to be mapped -->
13858						<xsl:call-template name="function-parameter-mapping">
13859							<xsl:with-param name="rowPos" select="$rowPos"/>
13860							<xsl:with-param name="columnPos" select="$columnPos"/>
13861							<xsl:with-param name="expression" select="substring-after($expressionSuffix, $parameter)"/>
13862						</xsl:call-template>
13863					</xsl:otherwise>
13864				</xsl:choose>
13865			</xsl:otherwise>
13866		</xsl:choose>
13867	</xsl:template>
13868	<xsl:template name="getParameter">
13869		<xsl:param name="closingBracketCount" select="0"/>
13870		<xsl:param name="openingBracketCount" select="0"/>
13871		<xsl:param name="expressionSuffix"/>
13872		<xsl:param name="parameterCandidate">
13873			<xsl:choose>
13874				<!-- if there are multiple parameter -->
13875				<xsl:when test="contains(substring-before($expressionSuffix, ')'), ',')">
13876					<xsl:value-of select="substring-before($expressionSuffix, ',')"/>
13877				</xsl:when>
13878				<xsl:otherwise>
13879					<xsl:value-of select="substring-before($expressionSuffix, ')')"/>
13880				</xsl:otherwise>
13881			</xsl:choose>
13882		</xsl:param>
13883		<xsl:param name="earlierCandidate" select="$parameterCandidate"/>
13884		<xsl:choose>
13885			<xsl:when test="contains($parameterCandidate, '(') or contains($parameterCandidate, ')')">
13886				<xsl:choose>
13887					<!-- contains only closing bracket(s) -->
13888					<xsl:when test="contains($parameterCandidate, '(') and not(contains($parameterCandidate, ')'))">
13889						<xsl:call-template name="getParameter">
13890							<xsl:with-param name="openingBracketCount" select="$openingBracketCount + 1"/>
13891							<xsl:with-param name="closingBracketCount" select="$closingBracketCount"/>
13892							<xsl:with-param name="parameterCandidate" select="substring-after($parameterCandidate, '(')"/>
13893							<xsl:with-param name="earlierCandidate" select="$earlierCandidate"/>
13894							<xsl:with-param name="expressionSuffix" select="$expressionSuffix"/>
13895						</xsl:call-template>
13896					</xsl:when>
13897					<!-- contains only opening bracket(s) -->
13898					<xsl:when test="not(contains($parameterCandidate, '(')) and contains($parameterCandidate, ')')">
13899						<xsl:call-template name="getParameter">
13900							<xsl:with-param name="openingBracketCount" select="$openingBracketCount"/>
13901							<xsl:with-param name="closingBracketCount" select="$closingBracketCount + 1"/>
13902							<xsl:with-param name="parameterCandidate" select="substring-after($parameterCandidate, ')')"/>
13903							<xsl:with-param name="earlierCandidate" select="$earlierCandidate"/>
13904							<xsl:with-param name="expressionSuffix" select="$expressionSuffix"/>
13905						</xsl:call-template>
13906					</xsl:when>
13907					<xsl:otherwise>
13908						<xsl:choose>
13909							<xsl:when test="string-length(substring-before($parameterCandidate, '(')) &lt;            string-length(substring-before($parameterCandidate, ')'))">
13910								<xsl:call-template name="getParameter">
13911									<xsl:with-param name="openingBracketCount" select="$openingBracketCount + 1"/>
13912									<xsl:with-param name="closingBracketCount" select="$closingBracketCount"/>
13913									<xsl:with-param name="parameterCandidate" select="substring-after($parameterCandidate, '(')"/>
13914									<xsl:with-param name="earlierCandidate" select="$earlierCandidate"/>
13915									<xsl:with-param name="expressionSuffix" select="$expressionSuffix"/>
13916								</xsl:call-template>
13917							</xsl:when>
13918							<xsl:otherwise>
13919								<xsl:call-template name="getParameter">
13920									<xsl:with-param name="openingBracketCount" select="$openingBracketCount"/>
13921									<xsl:with-param name="closingBracketCount" select="$closingBracketCount + 1"/>
13922									<xsl:with-param name="parameterCandidate" select="substring-after($parameterCandidate, ')')"/>
13923									<xsl:with-param name="earlierCandidate" select="$earlierCandidate"/>
13924									<xsl:with-param name="expressionSuffix" select="$expressionSuffix"/>
13925								</xsl:call-template>
13926							</xsl:otherwise>
13927						</xsl:choose>
13928					</xsl:otherwise>
13929				</xsl:choose>
13930			</xsl:when>
13931			<xsl:otherwise>
13932				<xsl:choose>
13933					<xsl:when test="$openingBracketCount = $closingBracketCount">
13934						<xsl:value-of select="$earlierCandidate"/>
13935					</xsl:when>
13936					<xsl:otherwise>
13937						<xsl:value-of select="$earlierCandidate"/>
13938						<xsl:variable name="parameterCandidate">
13939							<xsl:variable name="formularAfterCandidate" select="substring-after($expressionSuffix, $earlierCandidate)"/>
13940							<xsl:variable name="parameterTillBracket" select="concat(substring-before($formularAfterCandidate,')'),')')"/>
13941							<xsl:variable name="parameterTillComma" select="substring-before(substring-after($expressionSuffix, $parameterTillBracket),',')"/>
13942							<xsl:choose>
13943								<xsl:when test="string-length($parameterTillComma) &gt; 0 and             not(contains($parameterTillComma, '('))">
13944									<xsl:choose>
13945										<xsl:when test="starts-with($formularAfterCandidate, ',')">
13946											<xsl:value-of select="concat(',',substring-before(substring-after($formularAfterCandidate,','),','))"/>
13947										</xsl:when>
13948										<xsl:otherwise>
13949											<xsl:value-of select="substring-before($formularAfterCandidate,',')"/>
13950										</xsl:otherwise>
13951									</xsl:choose>
13952								</xsl:when>
13953								<xsl:otherwise>
13954									<xsl:value-of select="$parameterTillBracket"/>
13955								</xsl:otherwise>
13956							</xsl:choose>
13957						</xsl:variable>
13958						<xsl:call-template name="getParameter">
13959							<xsl:with-param name="closingBracketCount" select="$closingBracketCount"/>
13960							<xsl:with-param name="openingBracketCount" select="$openingBracketCount"/>
13961							<xsl:with-param name="parameterCandidate" select="$parameterCandidate"/>
13962							<xsl:with-param name="earlierCandidate" select="$parameterCandidate"/>
13963							<xsl:with-param name="expressionSuffix" select="$expressionSuffix"/>
13964						</xsl:call-template>
13965					</xsl:otherwise>
13966				</xsl:choose>
13967			</xsl:otherwise>
13968		</xsl:choose>
13969	</xsl:template>
13970	<!-- Mapping table-cell definitions by exchangomg all table cell definitions:
13971		a) a pair of cells e.g. "[.E14:.F21]" to "R[-17]C[3]:R[-10]C[4]"
13972		b) a single cell e.g. "[.F14]" to "R[-17]"-->
13973	<xsl:template name="translate-of-expression">
13974		<xsl:param name="rowPos"/>
13975		<!-- the position in row (vertical of cell) -->
13976		<xsl:param name="columnPos"/>
13977		<!-- the position in column (horizontal of cell) -->
13978		<xsl:param name="expression"/>
13979		<!-- expression to be exchanged -->
13980		<xsl:choose>
13981			<xsl:when test="contains($expression, '[')">
13982				<!-- Giving out the part before '[.' -->
13983				<xsl:value-of select="substring-before($expression, '[')"/>
13984				<!-- Mapping cell definitions
13985				1) a pair of cells e.g. "[.E14:.F21]" to "R[-17]C[3]:R[-10]C[4]"
13986				2) a single cell e.g. "[.F14]" to "R[-17]"-->
13987				<xsl:variable name="localExpression" select="substring-after($expression, '[')"/>
13988				<xsl:variable name="fileName" select="substring-before($localExpression, '#$')"/>
13989				<xsl:variable name="afterFileName">
13990					<xsl:choose>
13991						<xsl:when test="$fileName = ''">
13992							<xsl:value-of select="$localExpression"/>
13993						</xsl:when>
13994						<xsl:otherwise>
13995							<xsl:value-of select="substring-after($localExpression, '#$')"/>
13996						</xsl:otherwise>
13997					</xsl:choose>
13998				</xsl:variable>
13999				<xsl:variable name="sheetName">
14000					<xsl:choose>
14001						<xsl:when test="starts-with($afterFileName, &quot;'&quot;)">
14002							<xsl:variable name="str-in" select="substring-before(substring-after($afterFileName, &quot;'&quot;), &quot;'&quot;)"/>
14003							<xsl:value-of select="concat(&quot;'&quot;, $str-in, &quot;'&quot;)"/>
14004						</xsl:when>
14005						<xsl:otherwise>
14006							<xsl:value-of select="substring-before($afterFileName, '.')"/>
14007						</xsl:otherwise>
14008					</xsl:choose>
14009				</xsl:variable>
14010				<xsl:variable name="outFileName">
14011					<xsl:choose>
14012						<xsl:when test="starts-with($fileName, &quot;'&quot;)">
14013							<xsl:variable name="str-in" select="substring-before(substring-after($fileName, &quot;'&quot;), &quot;'&quot;)"/>
14014							<xsl:variable name="newStr-in" select="replace($str-in, 'file:///', '')"/>
14015							<xsl:variable name="pathName">
14016								<xsl:call-template name="GetPath">
14017									<xsl:with-param name="fullFilename" select="$newStr-in"/>
14018								</xsl:call-template>
14019							</xsl:variable>
14020							<xsl:variable name="onlyFileName">
14021								<xsl:choose>
14022									<xsl:when test="$pathName = ''">
14023										<xsl:value-of select="$newStr-in"/>
14024									</xsl:when>
14025									<xsl:otherwise>
14026										<xsl:value-of select="substring-after($newStr-in, $pathName)"/>
14027									</xsl:otherwise>
14028								</xsl:choose>
14029							</xsl:variable>
14030							<xsl:value-of select="concat(&quot;'&quot;, replace($pathName, '/', '\\'), '[', $onlyFileName, ']')"/>
14031						</xsl:when>
14032						<xsl:otherwise>
14033							<xsl:value-of select="$fileName"/>
14034						</xsl:otherwise>
14035					</xsl:choose>
14036				</xsl:variable>
14037				<!-- Giving out the filename -->
14038				<xsl:choose>
14039					<xsl:when test="$outFileName = ''">
14040						<xsl:if test="$sheetName != ''">
14041							<xsl:value-of select="$sheetName"/>
14042							<xsl:text>!</xsl:text>
14043						</xsl:if>
14044					</xsl:when>
14045					<xsl:otherwise>
14046						<xsl:choose>
14047							<xsl:when test="starts-with($sheetName, &quot;'&quot;)">
14048								<xsl:variable name="str-in" select="substring-before(substring-after($sheetName, &quot;'&quot;), &quot;'&quot;)"/>
14049								<xsl:value-of select="concat($outFileName, $str-in, &quot;'&quot;)"/>
14050								<xsl:text>!</xsl:text>
14051							</xsl:when>
14052							<xsl:otherwise>
14053								<xsl:value-of select="concat($outFileName, $sheetName, &quot;'&quot;)"/>
14054								<xsl:text>!</xsl:text>
14055							</xsl:otherwise>
14056						</xsl:choose>
14057					</xsl:otherwise>
14058				</xsl:choose>
14059				<xsl:variable name="remainingExpression">
14060					<xsl:choose>
14061						<xsl:when test="$sheetName = ''">
14062							<xsl:value-of select="$afterFileName"/>
14063						</xsl:when>
14064						<xsl:otherwise>
14065							<xsl:value-of select="substring-after($afterFileName, $sheetName)"/>
14066						</xsl:otherwise>
14067					</xsl:choose>
14068				</xsl:variable>
14069				<xsl:choose>
14070					<xsl:when test="$isRCCellAddress = 'true'">
14071						<xsl:choose>
14072							<xsl:when test="contains(substring-before($remainingExpression, ']'), ':')">
14073								<xsl:call-template name="translate-cell-expression">
14074									<xsl:with-param name="rowPos" select="$rowPos"/>
14075									<xsl:with-param name="columnPos" select="$columnPos"/>
14076									<xsl:with-param name="expression" select="substring-before($remainingExpression, ':')"/>
14077								</xsl:call-template>
14078								<xsl:value-of select="':'"/>
14079								<xsl:call-template name="translate-cell-expression">
14080									<xsl:with-param name="rowPos" select="$rowPos"/>
14081									<xsl:with-param name="columnPos" select="$columnPos"/>
14082									<xsl:with-param name="expression" select="substring-after(substring-before($remainingExpression, ']'), ':')"/>
14083								</xsl:call-template>
14084							</xsl:when>
14085							<xsl:otherwise>
14086								<xsl:call-template name="translate-cell-expression">
14087									<xsl:with-param name="rowPos" select="$rowPos"/>
14088									<xsl:with-param name="columnPos" select="$columnPos"/>
14089									<xsl:with-param name="expression" select="substring-before($remainingExpression, ']')"/>
14090								</xsl:call-template>
14091							</xsl:otherwise>
14092						</xsl:choose>
14093					</xsl:when>
14094					<xsl:otherwise>
14095						<xsl:value-of select="translate(substring-before($remainingExpression, ']'), '.', '')"/>
14096					</xsl:otherwise>
14097				</xsl:choose>
14098				<xsl:call-template name="translate-of-expression">
14099					<xsl:with-param name="rowPos" select="$rowPos"/>
14100					<xsl:with-param name="columnPos" select="$columnPos"/>
14101					<xsl:with-param name="expression" select="substring-after($remainingExpression,']')"/>
14102				</xsl:call-template>
14103			</xsl:when>
14104			<xsl:otherwise>
14105				<!-- Giving out the remaining part -->
14106				<xsl:value-of select="$expression"/>
14107			</xsl:otherwise>
14108		</xsl:choose>
14109	</xsl:template>
14110	<xsl:template name="GetPath">
14111		<xsl:param name="fullFilename"/>
14112		<xsl:choose>
14113			<xsl:when test="contains($fullFilename, '/')">
14114				<xsl:value-of select="concat(substring-before($fullFilename, '/'), '/')"/>
14115				<xsl:call-template name="GetPath">
14116					<xsl:with-param name="fullFilename" select="substring-after($fullFilename, '/')"/>
14117				</xsl:call-template>
14118			</xsl:when>
14119			<xsl:otherwise>
14120				<xsl:value-of select="''"/>
14121			</xsl:otherwise>
14122		</xsl:choose>
14123	</xsl:template>
14124	<!-- A cell expression has usually starts with a '.' otherwise it references to a sheet  -->
14125	<xsl:template name="translate-cell-expression">
14126		<xsl:param name="rowPos"/>
14127		<!-- the vertical position of the current cell -->
14128		<xsl:param name="columnPos"/>
14129		<!-- the horizontal position of the current cell -->
14130		<xsl:param name="targetRowPos" select="0"/>
14131		<!-- the vertical position of the target cell -->
14132		<xsl:param name="targetColumnPos" select="0"/>
14133		<!-- the horizontal position of the target cell -->
14134		<xsl:param name="charPos" select="0"/>
14135		<!-- current column position (needed for multiplying) -->
14136		<xsl:param name="digitPos" select="0"/>
14137		<!-- current row position (needed for multiplying) -->
14138		<xsl:param name="expression"/>
14139		<!-- expression to be parsed by character -->
14140		<xsl:param name="isRow" select="true()"/>
14141		<!-- the string (e.g. $D39 is parsed character per character from the back,
14142													   first the row, later the column is parsed -->
14143		<xsl:choose>
14144			<xsl:when test="starts-with($expression, '.')">
14145				<xsl:variable name="expLength" select="string-length($expression)"/>
14146				<xsl:choose>
14147					<!-- parsing from the end, till only the '.' remains -->
14148					<xsl:when test="$expLength != 1">
14149						<xsl:variable name="token" select="substring($expression, $expLength)"/>
14150						<xsl:choose>
14151							<xsl:when test="$token='0' or $token='1' or $token='2' or $token='3' or $token='4' or $token='5' or $token='6' or $token='7' or $token='8' or $token='9'">
14152								<xsl:variable name="multiplier">
14153									<xsl:call-template name="calculate-square-numbers">
14154										<xsl:with-param name="base" select="10"/>
14155										<xsl:with-param name="exponent" select="$digitPos"/>
14156									</xsl:call-template>
14157								</xsl:variable>
14158								<xsl:call-template name="translate-cell-expression">
14159									<xsl:with-param name="columnPos" select="$columnPos"/>
14160									<xsl:with-param name="rowPos" select="$rowPos"/>
14161									<xsl:with-param name="targetColumnPos" select="$targetColumnPos"/>
14162									<xsl:with-param name="targetRowPos" select="$targetRowPos + $multiplier * number($token)"/>
14163									<xsl:with-param name="digitPos" select="$digitPos + 1"/>
14164									<xsl:with-param name="charPos" select="$charPos"/>
14165									<!-- removing the last character-->
14166									<xsl:with-param name="expression" select="substring($expression, 1, $expLength - 1)"/>
14167									<xsl:with-param name="isRow" select="true()"/>
14168								</xsl:call-template>
14169							</xsl:when>
14170							<xsl:when test="$token = '$'">
14171								<xsl:choose>
14172									<!-- if this is the first '$' after '.' (column-->
14173									<xsl:when test="$expLength = 2">
14174										<xsl:text>C</xsl:text>
14175										<xsl:value-of select="$targetColumnPos"/>
14176									</xsl:when>
14177									<xsl:otherwise>
14178										<xsl:text>R</xsl:text>
14179										<xsl:value-of select="$targetRowPos"/>
14180										<xsl:call-template name="translate-cell-expression">
14181											<xsl:with-param name="columnPos" select="$columnPos"/>
14182											<xsl:with-param name="rowPos" select="$rowPos"/>
14183											<xsl:with-param name="targetColumnPos" select="$targetColumnPos"/>
14184											<xsl:with-param name="targetRowPos" select="$targetRowPos"/>
14185											<xsl:with-param name="charPos" select="$charPos"/>
14186											<!-- removing the last character-->
14187											<xsl:with-param name="expression" select="substring($expression, 1, $expLength - 1)"/>
14188											<xsl:with-param name="isRow" select="false()"/>
14189										</xsl:call-template>
14190									</xsl:otherwise>
14191								</xsl:choose>
14192							</xsl:when>
14193							<!-- in case of a letter -->
14194							<xsl:otherwise>
14195								<xsl:if test="$isRow">
14196									<xsl:text>R</xsl:text>
14197									<xsl:if test="$targetRowPos != $rowPos">
14198										<xsl:text>[</xsl:text>
14199										<xsl:value-of select="$targetRowPos - $rowPos"/>
14200										<xsl:text>]</xsl:text>
14201									</xsl:if>
14202								</xsl:if>
14203								<xsl:variable name="multiplier">
14204									<xsl:call-template name="calculate-square-numbers">
14205										<xsl:with-param name="base" select="26"/>
14206										<xsl:with-param name="exponent" select="$charPos"/>
14207									</xsl:call-template>
14208								</xsl:variable>
14209								<xsl:variable name="tokenNumber">
14210									<xsl:call-template name="character-to-number">
14211										<xsl:with-param name="character" select="$token"/>
14212									</xsl:call-template>
14213								</xsl:variable>
14214								<xsl:call-template name="translate-cell-expression">
14215									<xsl:with-param name="columnPos" select="$columnPos"/>
14216									<xsl:with-param name="rowPos" select="$rowPos"/>
14217									<xsl:with-param name="targetColumnPos" select="$targetColumnPos + $multiplier * number($tokenNumber)"/>
14218									<xsl:with-param name="targetRowPos" select="$targetRowPos"/>
14219									<xsl:with-param name="digitPos" select="$digitPos"/>
14220									<xsl:with-param name="charPos" select="$charPos + 1"/>
14221									<!-- removing the last character-->
14222									<xsl:with-param name="expression" select="substring($expression, 1, $expLength - 1)"/>
14223									<xsl:with-param name="isRow" select="false()"/>
14224								</xsl:call-template>
14225							</xsl:otherwise>
14226						</xsl:choose>
14227					</xsl:when>
14228					<xsl:otherwise>
14229						<xsl:text>C</xsl:text>
14230						<xsl:if test="$targetColumnPos != $columnPos">
14231							<xsl:text>[</xsl:text>
14232							<xsl:value-of select="$targetColumnPos - $columnPos"/>
14233							<xsl:text>]</xsl:text>
14234						</xsl:if>
14235					</xsl:otherwise>
14236				</xsl:choose>
14237			</xsl:when>
14238			<xsl:otherwise>
14239				<!-- the formular seems wrong, should give out the remaining part here -->
14240				<xsl:value-of select="$expression"/>
14241			</xsl:otherwise>
14242		</xsl:choose>
14243	</xsl:template>
14244	<xsl:template name="PresentationCommonRule">
14245		<!--<演:长度单位_B666>
14246				<xsl:value-of select="$uofUnit"/>
14247			</演:长度单位_B666>-->
14248		<!--
14249 alert 2011-01-24 begin
14250		<xsl:variable name="layout_name" select="office:master-styles/style:master-page/@style:page-layout-name"/>
14251		<xsl:apply-templates select="office:automatic-styles/style:page-layout[@style:name = $layout_name]" mode="sdstyle"/>-->
14252		<规则:页面设置集_B670>
14253			<xsl:for-each select="office:master-styles/style:master-page |office:master-styles/style:handout-master">
14254				<xsl:variable name="layout_name" select="@style:page-layout-name"/>
14255				<xsl:apply-templates mode="sdstyle" select="../../office:automatic-styles/style:page-layout[@style:name = $layout_name]"/>
14256			</xsl:for-each>
14257		</规则:页面设置集_B670>
14258		<xsl:if test="office:styles/style:presentation-page-layout">
14259			<规则:页面版式集_B651>
14260				<xsl:apply-templates mode="sdstyle" select="office:styles/style:presentation-page-layout"/>
14261			</规则:页面版式集_B651>
14262		</xsl:if>
14263		<xsl:for-each select="office:settings/config:config-item-set/config:config-item-map-indexed[@config:name='Views']/config:config-item-map-entry">
14264			<xsl:call-template name="View"/>
14265		</xsl:for-each>
14266		<规则:页眉页脚集_B640>
14267			<xsl:call-template name="headerandfooterset"/>
14268		</规则:页眉页脚集_B640>
14269		<规则:放映设置_B653>
14270			<xsl:apply-templates select="office:body/office:presentation/presentation:settings"/>
14271		</规则:放映设置_B653>
14272		<!--UOF2.0删了文本式样集-->
14273		<!--演:文本式样集 uof:locID="p0131">
14274				<xsl:for-each select="office:master-styles/style:master-page">
14275					<xsl:call-template name="TextStyleSet"/>
14276				</xsl:for-each>
14277			</演:文本式样集-->
14278	</xsl:template>
14279	<xsl:template match="style:page-layout" mode="sdstyle">
14280		<xsl:element name="规则:页面设置_B638">
14281			<xsl:attribute name="标识符_B671"><xsl:value-of select="@style:name"/></xsl:attribute>
14282			<xsl:attribute name="名称_B672"><xsl:value-of select="@style:name"/></xsl:attribute>
14283			<xsl:for-each select="style:page-layout-properties">
14284				<xsl:element name="演:纸张_6BDD">
14285					<xsl:variable name="height">
14286						<xsl:value-of select="@fo:page-height"/>
14287					</xsl:variable>
14288					<xsl:variable name="width">
14289						<xsl:value-of select="@fo:page-width"/>
14290					</xsl:variable>
14291					<xsl:attribute name="长_C604"><xsl:value-of select="fun:Convert2uofUnit($height)"/></xsl:attribute>
14292					<xsl:attribute name="宽_C605"><xsl:value-of select="fun:Convert2uofUnit($width)"/></xsl:attribute>
14293					<!--去掉纸型-->
14294					<!--xsl:choose>
14295						<xsl:when test="$height='29.7cm' and $width='42cm'">
14296							<xsl:attribute name="纸型_C60C">A3</xsl:attribute>
14297						</xsl:when>
14298						<xsl:when test="$height='21cm' and $width='29.7cm'">
14299							<xsl:attribute name="纸型_C60C">A4</xsl:attribute>
14300						</xsl:when>
14301						<xsl:when test="$height='14.8cm' and $width='21cm'">
14302							<xsl:attribute name="纸型_C60C">A5</xsl:attribute>
14303						</xsl:when>
14304						<xsl:when test="$height='25cm' and $width='35.3cm'">
14305							<xsl:attribute name="纸型_C60C">B4</xsl:attribute>
14306						</xsl:when>
14307						<xsl:when test="$height='17.6cm' and $width='25cm'">
14308							<xsl:attribute name="纸型_C60C">B5</xsl:attribute>
14309						</xsl:when>
14310						<xsl:when test="$height='12.5cm' and $width='17.6cm'">
14311							<xsl:attribute name="纸型_C60C">B6</xsl:attribute>
14312						</xsl:when>
14313					</xsl:choose-->
14314				</xsl:element>
14315				<xsl:element name="演:页边距_6BDE">
14316					<xsl:attribute name="左_C608"><xsl:value-of select="fun:Convert2uofUnit(@fo:margin-left)"/></xsl:attribute>
14317					<xsl:attribute name="上_C609"><xsl:value-of select="fun:Convert2uofUnit(@fo:margin-top)"/></xsl:attribute>
14318					<xsl:attribute name="右_C60A"><xsl:value-of select="fun:Convert2uofUnit(@fo:margin-right)"/></xsl:attribute>
14319					<xsl:attribute name="下_C60B"><xsl:value-of select="fun:Convert2uofUnit(@fo:margin-bottom)"/></xsl:attribute>
14320				</xsl:element>
14321				<xsl:variable name="PageNumberFormat">
14322					<xsl:value-of select="/office:document/office:settings/config:config-item-set/config:config-item[@config:name='PageNumberFormat']"/>
14323				</xsl:variable>
14324				<xsl:if test="not($PageNumberFormat='5')">
14325					<xsl:element name="演:页码格式_6BDF">
14326						<xsl:choose>
14327							<xsl:when test="$PageNumberFormat='0'">upper-letter</xsl:when>
14328							<xsl:when test="$PageNumberFormat='1'">lower-letter</xsl:when>
14329							<xsl:when test="$PageNumberFormat='2'">upper-roman</xsl:when>
14330							<xsl:when test="$PageNumberFormat='3'">lower-roman</xsl:when>
14331							<xsl:when test="$PageNumberFormat='4'">decimal</xsl:when>
14332						</xsl:choose>
14333					</xsl:element>
14334				</xsl:if>
14335				<xsl:element name="演:纸张方向_6BE1">
14336					<xsl:choose>
14337						<xsl:when test="@style:print-orientation">
14338							<xsl:value-of select="@style:print-orientation"/>
14339						</xsl:when>
14340						<xsl:otherwise>portrait</xsl:otherwise>
14341					</xsl:choose>
14342				</xsl:element>
14343			</xsl:for-each>
14344		</xsl:element>
14345	</xsl:template>
14346	<xsl:template match="style:presentation-page-layout" mode="sdstyle">
14347		<规则:页面版式_B652>
14348			<xsl:attribute name="标识符_6B0D"><xsl:value-of select="@style:name"/></xsl:attribute>
14349			<xsl:attribute name="名称_6BE3"><xsl:value-of select="@style:name"/></xsl:attribute>
14350			<演:布局类型_6BE2>
14351				<xsl:variable name="layout" select="substring-after(@style:name,'T')"/>
14352				<xsl:variable name="uoflayout">
14353					<xsl:choose>
14354						<xsl:when test="$layout='0'">title-subtitle</xsl:when>
14355						<xsl:when test="$layout='1'">title-body</xsl:when>
14356						<xsl:when test="$layout='19'">only-title</xsl:when>
14357						<xsl:when test="$layout='12'">column-2-rows</xsl:when>
14358						<xsl:when test="$layout='15'">2-rows-column</xsl:when>
14359						<xsl:when test="$layout='16'">2-columns-row</xsl:when>
14360						<xsl:when test="$layout='17'">2-rows</xsl:when>
14361						<xsl:when test="$layout='18'">4-objects</xsl:when>
14362						<xsl:when test="$layout='27'">v-2-rows</xsl:when>
14363						<xsl:when test="$layout='28'">v-title-body</xsl:when>
14364						<xsl:when test="$layout='29'">big-object</xsl:when>
14365						<xsl:when test="$layout='30'">2-columns</xsl:when>
14366						<xsl:when test="$layout='26'">handout</xsl:when>
14367						<!--'21'对应note-page,uof无-->
14368						<xsl:otherwise>title-body</xsl:otherwise>
14369					</xsl:choose>
14370				</xsl:variable>
14371			</演:布局类型_6BE2>
14372			<xsl:for-each select="presentation:placeholder">
14373				<xsl:call-template name="UOFAnchor">
14374					<!--xsl:with-param name="anchor_name1" select="'uof:锚点_C644'"/-->
14375				</xsl:call-template>
14376			</xsl:for-each>
14377		</规则:页面版式_B652>
14378	</xsl:template>
14379	<xsl:template name="View">
14380		<xsl:variable name="PageKind">
14381			<xsl:value-of select="config:config-item[@config:name='PageKind']"/>
14382		</xsl:variable>
14383		<xsl:variable name="ViewId">
14384			<xsl:value-of select="config:config-item[@config:name='ViewId']"/>
14385		</xsl:variable>
14386		<xsl:variable name="modeStandard">
14387			<xsl:value-of select="config:config-item[@config:name='EditModeStandard']"/>
14388		</xsl:variable>
14389		<xsl:variable name="modeNotes">
14390			<xsl:value-of select="config:config-item[@config:name='EditModeNotes']"/>
14391		</xsl:variable>
14392		<xsl:variable name="viewtype">
14393			<xsl:choose>
14394				<xsl:when test="$PageKind='0' and $ViewId='view2'">sort</xsl:when>
14395				<xsl:when test="$PageKind='2' and $ViewId='view1'">handout-master</xsl:when>
14396				<xsl:when test="$PageKind='1' and $ViewId='view1' and $modeNotes='0'">note-page</xsl:when>
14397				<xsl:when test="$PageKind='1' and $ViewId='view1' and $modeNotes='1'">note-master</xsl:when>
14398				<xsl:when test="$PageKind='0' and $ViewId='view1' and $modeStandard='1'">slide-master</xsl:when>
14399				<xsl:when test="$PageKind='0' and $ViewId='view1'">normal</xsl:when>
14400			</xsl:choose>
14401		</xsl:variable>
14402		<规则:最后视图_B639>
14403			<xsl:if test="$viewtype != ''">
14404				<xsl:element name="规则:类型_B63A">
14405					<xsl:value-of select="$viewtype"/>
14406				</xsl:element>
14407			</xsl:if>
14408			<xsl:element name="规则:是否为缩略图_B63B">0</xsl:element>
14409			<xsl:element name="规则:分隔栏位置_B63C">
14410				<xsl:attribute name="垂直_B63D">100</xsl:attribute>
14411				<xsl:attribute name="水平_B63E">100</xsl:attribute>
14412			</xsl:element>
14413		</规则:最后视图_B639>
14414		<xsl:variable name="VisibleAreaWidth">
14415			<xsl:value-of select="config:config-item[@config:name='VisibleAreaWidth']"/>
14416		</xsl:variable>
14417		<xsl:variable name="VisibleArea" select="floor((13997 div number($VisibleAreaWidth))*100)"/>
14418		<xsl:if test="$VisibleArea">
14419			<规则:显示比例_B63F>
14420				<xsl:value-of select="$VisibleArea"/>
14421			</规则:显示比例_B63F>
14422		</xsl:if>
14423	</xsl:template>
14424	<xsl:template name="TextStyleSet">
14425		<式样:文本式样_9914>
14426			<xsl:variable name="mastername" select="@style:name"/>
14427			<xsl:variable name="autonum">
14428				<xsl:value-of select="key('Style',concat($mastername,'-outline1'))/style:graphic-properties/text:list-style/@style:name"/>
14429			</xsl:variable>
14430			<xsl:attribute name="标识符_9909"><xsl:value-of select="concat($mastername,'_styles')"/></xsl:attribute>
14431			<xsl:attribute name="名称_990A">文本式样</xsl:attribute>
14432			<xsl:for-each select="key('Style',concat($mastername,'-title'))[1]|key('Style',concat($mastername,'-outline1'))[1]|key('Style',concat($mastername,'-outline2'))[1]|key('Style',concat($mastername,'-outline3'))[1]|key('Style',concat($mastername,'-outline4'))[1]|key('Style',concat($mastername,'-outline5'))[1]|key('Style',concat($mastername,'-outline6'))[1]|key('Style',concat($mastername,'-outline7'))[1]|key('Style',concat($mastername,'-outline8'))[1]|key('Style',concat($mastername,'-outline9'))[1]">
14433				<xsl:element name="式样:段落式样_9912">
14434					<xsl:attribute name="标识符_4100"><xsl:value-of select="@style:name"/></xsl:attribute>
14435					<xsl:attribute name="名称_4101"><xsl:value-of select="@style:name"/></xsl:attribute>
14436					<xsl:attribute name="类型_4102">auto</xsl:attribute>
14437					<xsl:if test="@style:class">
14438						<xsl:attribute name="别名_4103"><xsl:value-of select="@style:class"/></xsl:attribute>
14439					</xsl:if>
14440					<xsl:if test="@style:parent-style-name">
14441						<xsl:attribute name="基式样引用_4104"><xsl:value-of select="@style:parent-style-name"/></xsl:attribute>
14442					</xsl:if>
14443					<xsl:if test="style:paragraph-properties">
14444						<xsl:call-template name="UofParagraphStyle">
14445							<!--文本式样集中的自动编号 取-outline1下的编号-->
14446							<xsl:with-param name="autonum">
14447								<xsl:if test="contains(@style:name,'-outline')">
14448									<xsl:value-of select="$autonum"/>
14449								</xsl:if>
14450							</xsl:with-param>
14451							<xsl:with-param name="level">
14452								<xsl:choose>
14453									<xsl:when test="substring-after(@style:name,'-outline')">
14454										<xsl:value-of select="substring-after(@style:name,'-outline')"/>
14455									</xsl:when>
14456									<xsl:otherwise>0</xsl:otherwise>
14457								</xsl:choose>
14458							</xsl:with-param>
14459						</xsl:call-template>
14460					</xsl:if>
14461					<xsl:if test="style:text-properties">
14462						<字:句属性_4158>
14463							<xsl:call-template name="UOFTextStyle"/>
14464						</字:句属性_4158>
14465					</xsl:if>
14466				</xsl:element>
14467			</xsl:for-each>
14468		</式样:文本式样_9914>
14469	</xsl:template>
14470	<xsl:template match="presentation:settings">
14471		<xsl:choose>
14472			<!--end-node变量赋节点值有问题,无法传进函数,暂时取消-->
14473			<!--序列取值为每个draw:page生成的id,中间用空格作为分隔符,同‘幻灯片/@演:标识符’一致-->
14474			<xsl:when test="@presentation:start-page and @presentation:end-page">
14475				<规则:幻灯片序列_B654>
14476					<xsl:attribute name="标识符_B655">customList</xsl:attribute>
14477					<xsl:attribute name="是否自定义_B657">false</xsl:attribute>
14478					<xsl:variable name="start" select="@presentation:start-page"/>
14479					<xsl:variable name="end" select="@presentation:end-page"/>
14480					<xsl:value-of select="concat($start,' ',$end)"/>
14481				</规则:幻灯片序列_B654>
14482			</xsl:when>
14483			<xsl:when test="presentation:show">
14484				<xsl:for-each select="presentation:show">
14485					<规则:幻灯片序列_B654>
14486						<xsl:attribute name="名称_B656">幻灯片序列</xsl:attribute>
14487						<xsl:attribute name="标识符_B655"><xsl:value-of select="@presentation:name"/></xsl:attribute>
14488						<xsl:attribute name="是否自定义_B657">true</xsl:attribute>
14489						<xsl:value-of select="normalize-space(translate(@presentation:pages,',',' '))"/>
14490					</规则:幻灯片序列_B654>
14491				</xsl:for-each>
14492			</xsl:when>
14493		</xsl:choose>
14494		<xsl:variable name="showlist">
14495			<xsl:choose>
14496				<xsl:when test="@presentation:show">
14497					<xsl:value-of select="@presentation:show"/>
14498				</xsl:when>
14499				<xsl:when test="@presentation:start-page and @presentation:end-page">
14500					<xsl:value-of select="'customList'"/>
14501				</xsl:when>
14502			</xsl:choose>
14503		</xsl:variable>
14504		<xsl:if test="$showlist != ''">
14505			<规则:放映顺序_B658>
14506				<xsl:value-of select="$showlist"/>
14507				<!--xsl:if test="not($showlist='')">
14508					<xsl:attribute name="演:序列引用" select="$showlist"/>
14509				</xsl:if-->
14510			</规则:放映顺序_B658>
14511		</xsl:if>
14512		<规则:是否全屏放映_B659>
14513			<xsl:choose>
14514				<xsl:when test="@presentation:full-screen='false'">false</xsl:when>
14515				<xsl:otherwise>true</xsl:otherwise>
14516			</xsl:choose>
14517		</规则:是否全屏放映_B659>
14518		<规则:是否循环放映_B65A>
14519			<xsl:choose>
14520				<xsl:when test="@presentation:endless='true'">true</xsl:when>
14521				<xsl:otherwise>false</xsl:otherwise>
14522			</xsl:choose>
14523		</规则:是否循环放映_B65A>
14524		<xsl:if test="@presentation:pause">
14525			<xsl:variable name="hms" select="substring-after(@presentation:pause,'PT')"/>
14526			<规则:放映间隔_B65B>
14527				<xsl:value-of select="concat('P0Y0M0DT',$hms)"/>
14528			</规则:放映间隔_B65B>
14529		</xsl:if>
14530		<规则:是否手动方式_B65C>
14531			<xsl:choose>
14532				<xsl:when test="@presentation:force-manual='true'">true</xsl:when>
14533				<xsl:otherwise>false</xsl:otherwise>
14534			</xsl:choose>
14535		</规则:是否手动方式_B65C>
14536		<规则:是否使用导航帮助_B65D>
14537			<xsl:choose>
14538				<xsl:when test="@presentation:start-with-navigator='true'">true</xsl:when>
14539				<xsl:otherwise>false</xsl:otherwise>
14540			</xsl:choose>
14541		</规则:是否使用导航帮助_B65D>
14542		<规则:是否放映动画_B65E>
14543			<xsl:choose>
14544				<xsl:when test="@presentation:animations='disabled'">false</xsl:when>
14545				<xsl:otherwise>true</xsl:otherwise>
14546			</xsl:choose>
14547		</规则:是否放映动画_B65E>
14548		<规则:是否前端显示_B65F>
14549			<xsl:choose>
14550				<xsl:when test="@presentation:stay-on-top='true'">true</xsl:when>
14551				<xsl:otherwise>false</xsl:otherwise>
14552			</xsl:choose>
14553		</规则:是否前端显示_B65F>
14554		<!--切换声音模拟背景音乐-->
14555		<xsl:if test="/office:document/office:meta/dc:description = 'backgroudvoice'">
14556			<xsl:for-each select="/office:document/office:body/office:presentation/draw:page[1]/anim:par/anim:par/anim:audio[1]">
14557				<xsl:call-template name="AudioSound"/>
14558			</xsl:for-each>
14559		</xsl:if>
14560	</xsl:template>
14561	<xsl:template name="headerandfooterset">
14562		<xsl:variable name="drawpage1" select="/office:document/office:body/office:presentation/draw:page[1]"/>
14563		<xsl:variable name="drawpage2" select="/office:document/office:body/office:presentation/draw:page[2]"/>
14564		<xsl:variable name="footerandheaderProp" select="key('Style',$drawpage1/@draw:style-name)/style:drawing-page-properties"/>
14565		<xsl:variable name="footerandheaderProp2" select="key('Style',$drawpage2/@draw:style-name)/style:drawing-page-properties"/>
14566		<xsl:variable name="notefooterandheaderProp" select="key('Style',$drawpage1/presentation:notes/@draw:style-name)/style:drawing-page-properties"/>
14567		<xsl:variable name="ftname" select="$drawpage1/@presentation:use-footer-name"/>
14568		<xsl:variable name="dtname" select="$drawpage1/@presentation:use-date-time-name"/>
14569		<xsl:variable name="ft2name" select="$drawpage2/@presentation:use-footer-name"/>
14570		<xsl:variable name="dt2name" select="$drawpage2/@presentation:use-date-time-name"/>
14571		<xsl:variable name="noteftname" select="$drawpage1/presentation:notes/@presentation:use-footer-name"/>
14572		<xsl:variable name="notedtname" select="$drawpage1/presentation:notes/@presentation:use-date-time-name"/>
14573		<xsl:variable name="notehdname" select="$drawpage1/presentation:notes/@presentation:use-header-name"/>
14574		<xsl:if test="$ftname and $footerandheaderProp/@presentation:display-footer='true' or $dtname and  $footerandheaderProp/@presentation:display-date-time='true'or $footerandheaderProp/@presentation:display-page-number='true' or $footerandheaderProp2/@presentation:display-footer='true' and $ft2name or  $drawpage2/@presentation:use-date-time-name and $footerandheaderProp2/@presentation:display-date-time='true' or $footerandheaderProp2/@presentation:display-page-number='true'">
14575			<规则:幻灯片_B641>
14576				<xsl:attribute name="类型_B645">slide</xsl:attribute>
14577				<xsl:attribute name="标识符_B646">LOGO</xsl:attribute>
14578				<xsl:choose>
14579					<xsl:when test="$footerandheaderProp/@presentation:display-footer='false' and $footerandheaderProp/@presentation:display-page-number='false' and $footerandheaderProp/@presentation:display-date-time='false'">
14580						<xsl:attribute name="标题幻灯片中是否显示_B64B">true</xsl:attribute>
14581					</xsl:when>
14582					<xsl:otherwise>
14583						<xsl:attribute name="标题幻灯片中是否显示_B64B">false</xsl:attribute>
14584					</xsl:otherwise>
14585				</xsl:choose>
14586				<xsl:attribute name="是否显示页脚_B647"><xsl:choose><xsl:when test="$footerandheaderProp/@presentation:display-footer='true' or $footerandheaderProp2/@presentation:display-footer='true'"><xsl:value-of select="'true'"/></xsl:when><xsl:otherwise><xsl:value-of select="'false'"/></xsl:otherwise></xsl:choose></xsl:attribute>
14587				<xsl:attribute name="是否显示幻灯片编号_B64A"><xsl:choose><xsl:when test="$footerandheaderProp/@presentation:display-page-number='true' or $footerandheaderProp2/@presentation:display-page-number='true'"><xsl:value-of select="'true'"/></xsl:when><xsl:otherwise><xsl:value-of select="'false'"/></xsl:otherwise></xsl:choose></xsl:attribute>
14588				<xsl:for-each select="office:body/office:presentation">
14589					<xsl:choose>
14590						<xsl:when test="presentation:date-time-decl[@presentation:source='current-date'][@presentation:name=$dtname]">
14591							<xsl:attribute name="是否自动更新日期和时间_B649">true</xsl:attribute>
14592						</xsl:when>
14593						<xsl:otherwise>
14594							<xsl:attribute name="是否自动更新日期和时间_B649">false</xsl:attribute>
14595						</xsl:otherwise>
14596					</xsl:choose>
14597					<xsl:choose>
14598						<xsl:when test="not(presentation:date-time-decl) or ($footerandheaderProp/@presentation:display-date-time='false' and $footerandheaderProp2/@presentation:display-date-time='false')">
14599							<xsl:attribute name="是否显示日期和时间_B647">false</xsl:attribute>
14600						</xsl:when>
14601						<xsl:when test="(presentation:date-time-decl[@presentation:source='fixed']) and ($footerandheaderProp/@presentation:display-date-time='true') or (presentation:date-time-decl[@presentation:source='fixed']) and ($footerandheaderProp2/@presentation:display-date-time='true')">
14602							<xsl:attribute name="是否显示日期和时间_B647">true</xsl:attribute>
14603							<xsl:element name="规则:日期和时间字符串_B643">
14604								<xsl:value-of select="presentation:date-time-decl"/>
14605							</xsl:element>
14606						</xsl:when>
14607						<xsl:when test="($footerandheaderProp/@presentation:display-date-time='true') or ($footerandheaderProp2/@presentation:display-date-time='true')">
14608							<xsl:attribute name="是否显示日期和时间_B647">true</xsl:attribute>
14609							<xsl:element name="规则:日期和时间字符串_B643">
14610							</xsl:element>
14611						</xsl:when>
14612					</xsl:choose>
14613					<xsl:choose>
14614						<xsl:when test="presentation:footer-decl">
14615							<xsl:element name="规则:页脚_B644">
14616								<xsl:value-of select="presentation:footer-decl[@presentation:name=$ftname]"/>
14617							</xsl:element>
14618						</xsl:when>
14619						<xsl:otherwise/>
14620					</xsl:choose>
14621				</xsl:for-each>
14622			</规则:幻灯片_B641>
14623		</xsl:if>
14624		<xsl:if test="$noteftname and $notefooterandheaderProp/@presentation:display-footer='true' or $notehdname and $notefooterandheaderProp/@presentation:display-header='true' or $notedtname and $notefooterandheaderProp/@presentation:display-date-time='true'or $notefooterandheaderProp/@presentation:display-page-number='true'">
14625			<规则:讲义和备注_B64C>
14626				<xsl:attribute name="标识符_B66F">notefooterheader</xsl:attribute>
14627				<xsl:attribute name="是否显示页脚_B648"><xsl:choose><xsl:when test="$notefooterandheaderProp/@presentation:display-footer='true'"><xsl:value-of select="'true'"/></xsl:when><xsl:otherwise><xsl:value-of select="'false'"/></xsl:otherwise></xsl:choose></xsl:attribute>
14628				<xsl:attribute name="是否显示页眉_B64F"><xsl:choose><xsl:when test="$notefooterandheaderProp/@presentation:display-header='true'"><xsl:value-of select="'true'"/></xsl:when><xsl:otherwise><xsl:value-of select="'false'"/></xsl:otherwise></xsl:choose></xsl:attribute>
14629				<xsl:attribute name="是否显示页码_B650"><xsl:choose><xsl:when test="$notefooterandheaderProp/@presentation:display-page-number='true'"><xsl:value-of select="'true'"/></xsl:when><xsl:otherwise><xsl:value-of select="'false'"/></xsl:otherwise></xsl:choose></xsl:attribute>
14630				<xsl:for-each select="office:body/office:presentation">
14631					<xsl:choose>
14632						<xsl:when test="presentation:date-time-decl[@presentation:source='current-date'] and $notefooterandheaderProp/@presentation:display-date-time='true'">
14633							<xsl:attribute name="是否自动更新日期和时间_B649">true</xsl:attribute>
14634						</xsl:when>
14635						<xsl:otherwise>
14636							<xsl:attribute name="是否自动更新日期和时间_B649">false</xsl:attribute>
14637						</xsl:otherwise>
14638					</xsl:choose>
14639					<xsl:choose>
14640						<xsl:when test="not(presentation:date-time-decl) or ($notefooterandheaderProp/@presentation:display-date-time='false')">
14641							<xsl:attribute name="是否显示日期和时间_B647">false</xsl:attribute>
14642						</xsl:when>
14643						<xsl:when test="(presentation:date-time-decl[@presentation:name=$notedtname]) and ($notefooterandheaderProp/@presentation:display-date-time='true')">
14644							<xsl:attribute name="是否显示日期和时间_B647">true</xsl:attribute>
14645						</xsl:when>
14646					</xsl:choose>
14647					<xsl:choose>
14648						<xsl:when test="presentation:header-decl">
14649							<xsl:element name="演:页眉_B64D">
14650								<xsl:value-of select="presentation:header-decl[@presentation:name=$notehdname]"/>
14651							</xsl:element>
14652						</xsl:when>
14653						<xsl:otherwise/>
14654					</xsl:choose>
14655					<xsl:choose>
14656						<xsl:when test="presentation:footer-decl">
14657							<xsl:element name="演:页脚_B644">
14658								<xsl:value-of select="presentation:footer-decl[@presentation:name=$noteftname]"/>
14659							</xsl:element>
14660						</xsl:when>
14661						<xsl:otherwise/>
14662					</xsl:choose>
14663				</xsl:for-each>
14664			</规则:讲义和备注_B64C>
14665		</xsl:if>
14666	</xsl:template>
14667	<xsl:template name="PresentationBody">
14668		<演:母版集_6C0C>
14669			<xsl:for-each select="office:master-styles">
14670				<xsl:apply-templates select="style:handout-master"/>
14671				<xsl:apply-templates select="style:master-page"/>
14672				<xsl:apply-templates select="style:master-page/presentation:notes"/>
14673			</xsl:for-each>
14674		</演:母版集_6C0C>
14675		<演:幻灯片集_6C0E>
14676			<xsl:apply-templates select="office:body/office:presentation/draw:page"/>
14677		</演:幻灯片集_6C0E>
14678	</xsl:template>
14679	<xsl:template match="style:handout-master">
14680		<演:母版_6C0D 名称_6BE9="handout母版" 类型_6BEA="handout">
14681			<xsl:attribute name="标识符_6BE8"><xsl:value-of select="concat('handout-',parent::style:master-page/@style:name)"/></xsl:attribute>
14682			<!--xsl:attribute name="页面设置引用"><xsl:value-of select="@style:page-layout-name"/></xsl:attribute-->
14683			<xsl:attribute name="页面设置引用_6C18"><xsl:value-of select="@style:page-layout-name"/></xsl:attribute>
14684			<xsl:if test="@presentation:presentation-page-layout-name">
14685				<xsl:attribute name="页面版式引用_6BEC"><xsl:value-of select="@presentation:presentation-page-layout-name"/></xsl:attribute>
14686			</xsl:if>
14687			<xsl:for-each select="child::node()">
14688				<xsl:if test="substring-before(name(),':')='draw'">
14689					<xsl:call-template name="UOFAnchor">
14690						<!--xsl:with-param name="anchor_name1" select="'uof:锚点_C644'"/-->
14691					</xsl:call-template>
14692				</xsl:if>
14693			</xsl:for-each>
14694		</演:母版_6C0D>
14695	</xsl:template>
14696	<xsl:template name="SurpassOutline">
14697		<xsl:param name="MasterOutlineName"/>
14698		<xsl:choose>
14699			<xsl:when test="@presentation:class = 'outline'">
14700				<xsl:choose>
14701					<xsl:when test="@presentation:style-name = $MasterOutlineName">
14702						<xsl:value-of select="'false'"/>
14703					</xsl:when>
14704					<xsl:when test="preceding-sibling::*[@presentation:class = 'outline']">
14705						<xsl:value-of select="'true'"/>
14706					</xsl:when>
14707					<xsl:otherwise>
14708						<xsl:choose>
14709							<xsl:when test="following-sibling::*[@presentation:class = 'outline'][@presentation:style-name = $MasterOutlineName]">
14710								<xsl:value-of select="'true'"/>
14711							</xsl:when>
14712							<xsl:otherwise>
14713								<xsl:value-of select="'false'"/>
14714							</xsl:otherwise>
14715						</xsl:choose>
14716						<xsl:value-of select="'false'"/>
14717					</xsl:otherwise>
14718				</xsl:choose>
14719			</xsl:when>
14720			<xsl:otherwise>
14721				<xsl:value-of select="'false'"/>
14722			</xsl:otherwise>
14723		</xsl:choose>
14724	</xsl:template>
14725	<xsl:template match="style:master-page">
14726		<演:母版_6C0D 名称_6BE9="slide母版" 类型_6BEA="slide">
14727			<xsl:attribute name="标识符_6BE8"><xsl:value-of select="@style:name"/></xsl:attribute>
14728			<!--xsl:attribute name="页面设置引用"><xsl:value-of select="@style:page-layout-name"/></xsl:attribute-->
14729			<xsl:attribute name="页面设置引用_6C18"><xsl:value-of select="@style:page-layout-name"/></xsl:attribute>
14730			<xsl:if test="@presentation:presentation-page-layout-name">
14731				<xsl:attribute name="页面版式引用_6BEC"><xsl:value-of select="@presentation:presentation-page-layout-name"/></xsl:attribute>
14732			</xsl:if>
14733			<xsl:attribute name="文本式样引用_6BED"><xsl:value-of select="concat(@style:name,'_styles')"/></xsl:attribute>
14734			<xsl:variable name="MasterOutlineName" select="concat(@style:name, '-outline1')"/>
14735			<xsl:for-each select="child::node()">
14736				<xsl:choose>
14737					<xsl:when test="substring-before(name(),':')='draw'">
14738						<xsl:variable name="IsSurpassOutline">
14739							<xsl:call-template name="SurpassOutline">
14740								<xsl:with-param name="MasterOutlineName" select="$MasterOutlineName"/>
14741							</xsl:call-template>
14742						</xsl:variable>
14743						<xsl:if test="$IsSurpassOutline != 'true'">
14744							<xsl:call-template name="UOFAnchor">
14745								<!--xsl:with-param name="anchor_name1" select="'uof:锚点_C644'"/-->
14746							</xsl:call-template>
14747						</xsl:if>
14748					</xsl:when>
14749					<xsl:when test="name()= 'anim:par' and child::anim:seq">
14750						<演:动画_6B1A>
14751							<xsl:apply-templates select="anim:seq"/>
14752						</演:动画_6B1A>
14753					</xsl:when>
14754				</xsl:choose>
14755			</xsl:for-each>
14756			<xsl:variable name="stylename">
14757				<xsl:value-of select="@draw:style-name"/>
14758			</xsl:variable>
14759			<!--@draw:fill='solid'时加限定条件 避免无颜色填充-->
14760			<xsl:for-each select="key('Style',$stylename)/style:drawing-page-properties">
14761				<xsl:if test="@draw:fill='color' or @draw:fill='bitmap' or @draw:fill='hatch'or @draw:fill='gradient' or (@draw:fill='solid' and (@fo:background-color or @draw:fill-color))or @draw:fill-hatch-name">
14762					<演:背景_6B2C>
14763						<xsl:call-template name="图:填充-graph">
14764							<xsl:with-param name="graphproperty" select="."/>
14765						</xsl:call-template>
14766					</演:背景_6B2C>
14767				</xsl:if>
14768			</xsl:for-each>
14769		</演:母版_6C0D>
14770	</xsl:template>
14771	<xsl:template match="presentation:notes">
14772		<演:母版_6C0D 名称_6BE9="notes母版" 类型_6BEA="notes">
14773			<xsl:attribute name="标识符_6BE8"><xsl:value-of select="concat('note-',parent::style:master-page/@style:name)"/></xsl:attribute>
14774			<!--xsl:attribute name="页面设置引用"><xsl:value-of select="@style:page-layout-name"/></xsl:attribute-->
14775			<xsl:attribute name="页面设置引用_6C18"><xsl:value-of select="@style:page-layout-name"/></xsl:attribute>
14776			<xsl:if test="@presentation:presentation-page-layout-name">
14777				<xsl:attribute name="页面版式引用_6BEC"><xsl:value-of select="@presentation:presentation-page-layout-name"/></xsl:attribute>
14778			</xsl:if>
14779			<xsl:for-each select="child::node()">
14780				<xsl:if test="substring-before(name(),':')='draw'">
14781					<xsl:call-template name="UOFAnchor">
14782						<!--xsl:with-param name="anchor_name1" select="'uof:锚点_C644'"/-->
14783					</xsl:call-template>
14784				</xsl:if>
14785			</xsl:for-each>
14786		</演:母版_6C0D>
14787	</xsl:template>
14788	<xsl:template match="draw:page">
14789		<演:幻灯片_6C0F>
14790			<xsl:variable name="stylename">
14791				<xsl:value-of select="@draw:style-name"/>
14792			</xsl:variable>
14793			<xsl:if test="@draw:display-name">
14794				<xsl:attribute name="名称_6B0B"><xsl:value-of select="@draw:display-name"/></xsl:attribute>
14795			</xsl:if>
14796			<xsl:attribute name="标识符_6B0A"><xsl:value-of select="@draw:name"/></xsl:attribute>
14797			<xsl:attribute name="母版引用_6B26"><xsl:value-of select="@draw:master-page-name"/></xsl:attribute>
14798			<xsl:if test="@presentation:presentation-page-layout-name">
14799				<xsl:attribute name="页面版式引用_6B27"><xsl:value-of select="@presentation:presentation-page-layout-name"/></xsl:attribute>
14800			</xsl:if>
14801			<xsl:for-each select="key('Style',$stylename)/style:drawing-page-properties">
14802				<xsl:choose>
14803					<xsl:when test="@presentation:visibility = 'hidden'">
14804						<xsl:attribute name="是否显示_6B28">false</xsl:attribute>
14805					</xsl:when>
14806					<xsl:otherwise>
14807						<xsl:attribute name="是否显示_6B28">true</xsl:attribute>
14808					</xsl:otherwise>
14809				</xsl:choose>
14810				<xsl:if test="@presentation:background-visible">
14811					<xsl:attribute name="是否显示背景_6B29"><xsl:value-of select="@presentation:background-visible"/></xsl:attribute>
14812				</xsl:if>
14813				<xsl:if test="@presentation:background-objects-visible">
14814					<xsl:attribute name="是否显示背景对象_6B2A"><xsl:value-of select="@presentation:background-objects-visible"/></xsl:attribute>
14815				</xsl:if>
14816			</xsl:for-each>
14817			<xsl:for-each select="child::node()">
14818				<xsl:choose>
14819					<xsl:when test="substring-before(name(),':')='draw'">
14820						<xsl:call-template name="UOFAnchor">
14821							<!--xsl:with-param name="anchor_name1" select="'uof:锚点_C644'"/-->
14822						</xsl:call-template>
14823					</xsl:when>
14824					<xsl:when test="name()= 'anim:par' and child::anim:seq">
14825						<演:动画_6B1A>
14826							<xsl:apply-templates select="anim:seq"/>
14827						</演:动画_6B1A>
14828					</xsl:when>
14829					<xsl:when test="name()='presentation:notes'">
14830						<xsl:apply-templates mode="page" select="."/>
14831					</xsl:when>
14832				</xsl:choose>
14833			</xsl:for-each>
14834			<xsl:for-each select="key('Style',$stylename)/style:drawing-page-properties">
14835				<xsl:if test="@draw:fill='color' or @draw:fill='bitmap' or @draw:fill='hatch'or @draw:fill='gradient' or (@draw:fill='solid' and (@fo:background-color or @draw:fill-color))or @draw:fill-hatch-name">
14836					<演:背景_6B2C>
14837						<xsl:call-template name="图:填充-graph">
14838							<xsl:with-param name="graphproperty" select="."/>
14839						</xsl:call-template>
14840					</演:背景_6B2C>
14841				</xsl:if>
14842			</xsl:for-each>
14843			<xsl:call-template name="slideswitch">
14844				<xsl:with-param name="stylename" select="$stylename"/>
14845			</xsl:call-template>
14846		</演:幻灯片_6C0F>
14847	</xsl:template>
14848	<xsl:template name="Fonts_presentation">
14849		<式样:字体集_990C>
14850			<式样:字体声明_990D 名称_9903="Times New Roman" 标识符_9902="Times_New_Roman">
14851				<式样:字体族_9900>roman</式样:字体族_9900>
14852				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14853			</式样:字体声明_990D>
14854			<式样:字体声明_990D 名称_9903="宋体" 标识符_9902="宋体">
14855				<式样:字体族_9900>roman</式样:字体族_9900>
14856				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14857			</式样:字体声明_990D>
14858			<式样:字体声明_990D 名称_9903="永中宋体" 标识符_9902="永中宋体">
14859				<式样:字体族_9900>roman</式样:字体族_9900>
14860				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14861			</式样:字体声明_990D>
14862			<式样:字体声明_990D 名称_9903="StarSymbol" 标识符_9902="StarSymbol">
14863				<式样:字体族_9900>auto</式样:字体族_9900>
14864				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14865			</式样:字体声明_990D>
14866			<式样:字体声明_990D 名称_9903="OpenSymbol" 标识符_9902="OpenSymbol">
14867				<式样:字体族_9900>auto</式样:字体族_9900>
14868				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14869			</式样:字体声明_990D>
14870			<式样:字体声明_990D 名称_9903="WingDings" 标识符_9902="WingDings">
14871				<式样:字体族_9900>decorative</式样:字体族_9900>
14872				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14873			</式样:字体声明_990D>
14874			<式样:字体声明_990D 名称_9903="StarBats" 标识符_9902="StarBats">
14875				<式样:字体族_9900>auto</式样:字体族_9900>
14876				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14877			</式样:字体声明_990D>
14878			<式样:字体声明_990D 名称_9903="楷体_GB2312" 标识符_9902="楷体_GB2312">
14879				<式样:字体族_9900>swiss</式样:字体族_9900>
14880				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14881			</式样:字体声明_990D>
14882			<式样:字体声明_990D 名称_9903="仿宋_GB2312" 标识符_9902="仿宋_GB2312">
14883				<式样:字体族_9900>roman</式样:字体族_9900>
14884				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14885			</式样:字体声明_990D>
14886			<式样:字体声明_990D 名称_9903="黑体" 标识符_9902="黑体">
14887				<式样:字体族_9900>roman</式样:字体族_9900>
14888				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14889			</式样:字体声明_990D>
14890			<式样:字体声明_990D 名称_9903="华文彩云" 标识符_9902="华文彩云">
14891				<式样:字体族_9900>script</式样:字体族_9900>
14892				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14893			</式样:字体声明_990D>
14894			<式样:字体声明_990D 名称_9903="Arial" 标识符_9902="Arial">
14895				<式样:字体族_9900>swiss</式样:字体族_9900>
14896				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14897			</式样:字体声明_990D>
14898			<式样:字体声明_990D 名称_9903="Wingdings" 标识符_9902="Wingdings">
14899				<式样:字体族_9900>auto</式样:字体族_9900>
14900				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14901			</式样:字体声明_990D>
14902			<式样:字体声明_990D 名称_9903="Verdana" 标识符_9902="Verdana">
14903				<式样:字体族_9900>auto</式样:字体族_9900>
14904				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14905			</式样:字体声明_990D>
14906			<式样:字体声明_990D 名称_9903="华文行楷" 标识符_9902="华文行楷">
14907				<式样:字体族_9900>script</式样:字体族_9900>
14908				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14909			</式样:字体声明_990D>
14910			<式样:字体声明_990D 名称_9903="华文楷体" 标识符_9902="华文楷体">
14911				<式样:字体族_9900>script</式样:字体族_9900>
14912				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14913			</式样:字体声明_990D>
14914			<式样:字体声明_990D 名称_9903="华文新魏" 标识符_9902="华文新魏">
14915				<式样:字体族_9900>script</式样:字体族_9900>
14916				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14917			</式样:字体声明_990D>
14918			<式样:字体声明_990D 名称_9903="方正宋体" 标识符_9902="方正宋体">
14919				<式样:字体族_9900>roman</式样:字体族_9900>
14920				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14921			</式样:字体声明_990D>
14922			<式样:字体声明_990D 名称_9903="方正姚体" 标识符_9902="方正姚体">
14923				<式样:字体族_9900>roman</式样:字体族_9900>
14924				<式样:替换字体族_9901>auto</式样:替换字体族_9901>
14925			</式样:字体声明_990D>
14926		</式样:字体集_990C>
14927	</xsl:template>
14928	<xsl:template name="slideswitch">
14929		<xsl:param name="stylename"/>
14930		<演:切换_6B1F>
14931			<xsl:choose>
14932				<xsl:when test="anim:par/anim:par/anim:transitionFilter">
14933					<xsl:for-each select="anim:par/anim:par/anim:transitionFilter">
14934						<xsl:variable name="duration">
14935							<xsl:value-of select="@smil:dur"/>
14936						</xsl:variable>
14937						<xsl:element name="演:速度_6B21">
14938							<xsl:choose>
14939								<xsl:when test="$duration = '3s'">slow</xsl:when>
14940								<xsl:when test="$duration = '2s'">middle</xsl:when>
14941								<xsl:when test="$duration = '1s'">fast</xsl:when>
14942								<xsl:otherwise>middle</xsl:otherwise>
14943							</xsl:choose>
14944						</xsl:element>
14945						<xsl:call-template name="Switchtype"/>
14946					</xsl:for-each>
14947				</xsl:when>
14948				<xsl:otherwise>
14949					<xsl:for-each select="key('Style',$stylename)/style:drawing-page-properties">
14950						<xsl:element name="演:速度_6B21">
14951							<xsl:choose>
14952								<xsl:when test="@presentation:transition-speed='slow'">slow</xsl:when>
14953								<xsl:when test="@presentation:transition-speed='fast'">fast</xsl:when>
14954								<xsl:otherwise>middle</xsl:otherwise>
14955							</xsl:choose>
14956						</xsl:element>
14957						<xsl:call-template name="Switchtype"/>
14958					</xsl:for-each>
14959				</xsl:otherwise>
14960			</xsl:choose>
14961			<xsl:choose>
14962				<xsl:when test="anim:par/anim:par/anim:command/@anim:command = 'stop-audio'">
14963					<演:声音_6B22 预定义声音_C631="stop previous sound"/>
14964				</xsl:when>
14965				<xsl:when test="anim:par/anim:par/anim:audio">
14966					<xsl:for-each select="anim:par/anim:par/anim:audio[1]">
14967						<xsl:call-template name="AudioSound"/>
14968					</xsl:for-each>
14969				</xsl:when>
14970				<xsl:otherwise>
14971					<xsl:for-each select="key('Style',$stylename)/style:drawing-page-properties/presentation:sound">
14972						<xsl:call-template name="AudioSound"/>
14973					</xsl:for-each>
14974				</xsl:otherwise>
14975			</xsl:choose>
14976			<xsl:for-each select="key('Style',$stylename)/style:drawing-page-properties">
14977				<演:方式_6B23>
14978					<演:单击鼠标_6B24>
14979						<xsl:choose>
14980							<xsl:when test="@presentation:transition-type='automatic'">false</xsl:when>
14981							<xsl:otherwise>true</xsl:otherwise>
14982						</xsl:choose>
14983					</演:单击鼠标_6B24>
14984					<xsl:if test="@presentation:duration">
14985						<演:时间间隔_6B25>
14986							<xsl:call-template name="aDuration">
14987								<xsl:with-param name="duration" select="@presentation:duration"/>
14988							</xsl:call-template>
14989						</演:时间间隔_6B25>
14990					</xsl:if>
14991				</演:方式_6B23>
14992			</xsl:for-each>
14993		</演:切换_6B1F>
14994	</xsl:template>
14995	<xsl:template name="Switchtype">
14996		<xsl:variable name="type">
14997			<xsl:value-of select="@smil:type"/>
14998		</xsl:variable>
14999		<xsl:variable name="subtype">
15000			<xsl:value-of select="@smil:subtype"/>
15001		</xsl:variable>
15002		<xsl:variable name="animtype">
15003			<xsl:choose>
15004				<xsl:when test="$type='irisWipe' and $subtype='rectangle' and @smil:direction='reverse'">box in</xsl:when>
15005				<xsl:when test="$type='irisWipe' and $subtype='rectangle'">box out</xsl:when>
15006				<xsl:when test="$type='checkerBoardWipe' and $subtype='across'">checkerboard across</xsl:when>
15007				<xsl:when test="$type='checkerBoardWipe' and $subtype='down'">checkerboard down</xsl:when>
15008				<xsl:when test="$type='pushWipe' and $subtype='combHorizontal'">comb horizontal</xsl:when>
15009				<xsl:when test="$type='pushWipe' and $subtype='combVertical'">comb vertical</xsl:when>
15010				<xsl:when test="$type='slideWipe' and $subtype='fromTop' and @smil:direction='reverse'">uncover down</xsl:when>
15011				<xsl:when test="$type='slideWipe' and $subtype='fromRight' and @smil:direction='reverse'">uncover left</xsl:when>
15012				<xsl:when test="$type='slideWipe' and $subtype='fromLeft' and @smil:direction='reverse'">uncover right</xsl:when>
15013				<xsl:when test="$type='slideWipe' and $subtype='fromBottom' and @smil:direction='reverse'">uncover up</xsl:when>
15014				<xsl:when test="$type='slideWipe' and $subtype='fromTopRight' and @smil:direction='reverse'">uncover left-down</xsl:when>
15015				<xsl:when test="$type='slideWipe' and $subtype='fromBottomRight' and @smil:direction='reverse'">uncover left-up</xsl:when>
15016				<xsl:when test="$type='slideWipe' and $subtype='fromTopLeft' and @smil:direction='reverse'">uncover right-down</xsl:when>
15017				<xsl:when test="$type='slideWipe' and $subtype='fromBottomLeft' and @smil:direction='reverse'">uncover right-up</xsl:when>
15018				<xsl:when test="$type='slideWipe' and $subtype='fromTop'">cover down</xsl:when>
15019				<xsl:when test="$type='slideWipe' and $subtype='fromRight'">cover left</xsl:when>
15020				<xsl:when test="$type='slideWipe' and $subtype='fromLeft'">cover right</xsl:when>
15021				<xsl:when test="$type='slideWipe' and $subtype='fromBottom'">cover up</xsl:when>
15022				<xsl:when test="$type='slideWipe' and $subtype='fromTopRight'">cover left-down</xsl:when>
15023				<xsl:when test="$type='slideWipe' and $subtype='fromBottomRight'">cover left-up</xsl:when>
15024				<xsl:when test="$type='slideWipe' and $subtype='fromTopLeft'">cover right-down</xsl:when>
15025				<xsl:when test="$type='slideWipe' and $subtype='fromBottomLeft'">cover right-up</xsl:when>
15026				<xsl:when test="$type='fade' and $subtype='fadeOverColor'">fade through black</xsl:when>
15027				<xsl:when test="$type='pushWipe' and $subtype='fromTop'">push down</xsl:when>
15028				<xsl:when test="$type='pushWipe' and $subtype='fromRight'">push left</xsl:when>
15029				<xsl:when test="$type='pushWipe' and $subtype='fromLeft'">push right</xsl:when>
15030				<xsl:when test="$type='pushWipe' and $subtype='fromBottom'">push up</xsl:when>
15031				<xsl:when test="$type='randomBarWipe' and $subtype='horizontal'">random bars horizontal</xsl:when>
15032				<xsl:when test="$type='randomBarWipe' and $subtype='vertical'">random bars vertical</xsl:when>
15033				<xsl:when test="$type='ellipseWipe' and $subtype='circle'">shape circle</xsl:when>
15034				<xsl:when test="$type='irisWipe' and $subtype='diamond'">shape diamond</xsl:when>
15035				<xsl:when test="$type='fourBoxWipe' and $subtype='cornersOut'">shape plus</xsl:when>
15036				<xsl:when test="$type='barnDoorWipe' and $subtype='horizontal' and @smil:direction='reverse'">split horizontal in</xsl:when>
15037				<xsl:when test="$type='barnDoorWipe' and $subtype='horizontal'">split horizontal out</xsl:when>
15038				<xsl:when test="$type='barnDoorWipe' and $subtype='vertical' and @smil:direction='reverse'">split vertical in</xsl:when>
15039				<xsl:when test="$type='barnDoorWipe' and $subtype='vertical'">split vertical out</xsl:when>
15040				<xsl:when test="$type='fanWipe' and $subtype='centerTop'">wedge</xsl:when>
15041				<xsl:when test="$type='pinWheelWipe' and $subtype='oneBlade'">wheel clockwise – 1 spoke</xsl:when>
15042				<xsl:when test="$type='pinWheelWipe' and $subtype='twoBladeVertical'">wheel clockwise – 2 spoke</xsl:when>
15043				<xsl:when test="$type='pinWheelWipe' and $subtype='threeBlade'">wheel clockwise – 3 spoke</xsl:when>
15044				<xsl:when test="$type='pinWheelWipe' and $subtype='fourBlade'">wheel clockwise – 4 spoke</xsl:when>
15045				<xsl:when test="$type='pinWheelWipe' and $subtype='eightBlade'">wheel clockwise – 8 spoke</xsl:when>
15046				<xsl:when test="$type='barWipe' and $subtype='leftToRight' and @smil:direction='reverse'">wipe left</xsl:when>
15047				<xsl:when test="$type='barWipe' and $subtype='leftToRight'">wipe right</xsl:when>
15048				<xsl:when test="$type='barWipe' and $subtype='topToBottom' and @smil:direction='reverse'">wipe up</xsl:when>
15049				<xsl:when test="$type='barWipe' and $subtype='topToBottom'">wipe down</xsl:when>
15050				<xsl:when test="$type='blindsWipe' and $subtype='vertical'">blinds vertical</xsl:when>
15051				<xsl:when test="$type='blindsWipe' and $subtype='horizontal'">blinds horizontal</xsl:when>
15052				<xsl:when test="$type='dissolve'">dissolve</xsl:when>
15053				<xsl:when test="$type='random'">random transition</xsl:when>
15054				<xsl:when test="$type='fade' and $subtype='crossfade'">fade smoothly</xsl:when>
15055				<xsl:when test="$type='waterfallWipe' and $subtype='horizontalLeft' and @smil:direction='reverse'">strips left-up</xsl:when>
15056				<xsl:when test="$type='waterfallWipe' and $subtype='horizontalLeft'">strips right-down</xsl:when>
15057				<xsl:when test="$type='waterfallWipe' and $subtype='horizontalRight' and @smil:direction='reverse'">strips right-up</xsl:when>
15058				<xsl:when test="$type='waterfallWipe' and $subtype='horizontalRight'">strips left-down</xsl:when>
15059				<xsl:otherwise>none</xsl:otherwise>
15060			</xsl:choose>
15061		</xsl:variable>
15062		<xsl:element name="演:效果_6B20">
15063			<xsl:value-of select="$animtype"/>
15064		</xsl:element>
15065	</xsl:template>
15066	<xsl:template name="AudioSound">
15067		<演:声音_6B22>
15068			<xsl:variable name="voicetype">
15069				<xsl:choose>
15070					<xsl:when test="contains(@xlink:href,'applause.wav')">applause</xsl:when>
15071					<xsl:when test="contains(@xlink:href,'arrow.wav')">arrow</xsl:when>
15072					<xsl:when test="contains(@xlink:href,'bomb.wav')">bomb</xsl:when>
15073					<xsl:when test="contains(@xlink:href,'breeze.wav')">breeze</xsl:when>
15074					<xsl:when test="contains(@xlink:href,'camera.wav')">camera</xsl:when>
15075					<xsl:when test="contains(@xlink:href,'cashregister.wav')">cash register</xsl:when>
15076					<xsl:when test="contains(@xlink:href,'chime.wav')">chime</xsl:when>
15077					<xsl:when test="contains(@xlink:href,'click.wav')">click</xsl:when>
15078					<xsl:when test="contains(@xlink:href,'coin.wav')">coin</xsl:when>
15079					<xsl:when test="contains(@xlink:href,'drumroll.wav')">drum roll</xsl:when>
15080					<xsl:when test="contains(@xlink:href,'explosion.wav')">explosion</xsl:when>
15081					<xsl:when test="contains(@xlink:href,'hammer.wav')">hammer</xsl:when>
15082					<xsl:when test="contains(@xlink:href,'laser.wav')">laser</xsl:when>
15083					<xsl:when test="contains(@xlink:href,'push.wav')">push</xsl:when>
15084					<xsl:when test="contains(@xlink:href,'suction.wav')">suction</xsl:when>
15085					<xsl:when test="contains(@xlink:href,'typewriter.wav')">typewriter</xsl:when>
15086					<xsl:when test="contains(@xlink:href,'voltage.wav')">voltage</xsl:when>
15087					<xsl:when test="contains(@xlink:href,'whoosh.wav')">whoosh</xsl:when>
15088					<xsl:when test="contains(@xlink:href,'wind.wav')">wind</xsl:when>
15089				</xsl:choose>
15090			</xsl:variable>
15091			<xsl:choose>
15092				<xsl:when test="$voicetype != ''">
15093					<xsl:attribute name="预定义声音_C631"><xsl:value-of select="$voicetype"/></xsl:attribute>
15094				</xsl:when>
15095				<xsl:otherwise>
15096					<xsl:attribute name="自定义声音_C632"><xsl:value-of select="@xlink:href"/></xsl:attribute>
15097				</xsl:otherwise>
15098			</xsl:choose>
15099			<xsl:if test="@smil:repeatCount = 'indefinite'">
15100				<xsl:attribute name="是否循环播放_C633">true</xsl:attribute>
15101			</xsl:if>
15102		</演:声音_6B22>
15103	</xsl:template>
15104	<xsl:template name="aDuration">
15105		<xsl:param name="duration"/>
15106		<xsl:value-of select="concat('PT',number(substring-before(substring-after($duration,'PT'),'H'))*3660+number(substring-before(substring-after($duration,'H'),'M'))*60+number(substring-before(substring-after($duration,'M'),'S')),'S')"/>
15107	</xsl:template>
15108	<xsl:template match="presentation:notes" mode="page">
15109		<演:幻灯片备注_6B1D>
15110			<xsl:variable name="masterpagename">
15111				<xsl:value-of select="parent::*/@draw:master-page-name"/>
15112			</xsl:variable>
15113			<xsl:attribute name="备注母版引用_6B2D"><xsl:value-of select="concat('note-',$masterpagename)"/></xsl:attribute>
15114			<xsl:for-each select="child::*">
15115				<xsl:if test="substring-before(name(),':')='draw'">
15116					<xsl:call-template name="UOFAnchor">
15117						<!--xsl:with-param name="anchor_name1" select="'uof:锚点_C644'"/-->
15118					</xsl:call-template>
15119				</xsl:if>
15120			</xsl:for-each>
15121			<xsl:call-template name="notePageAnchor">
15122				<xsl:with-param name="masterpagename" select="$masterpagename"/>
15123			</xsl:call-template>
15124			<xsl:for-each select="key('Style',@draw:style-name)/style:drawing-page-properties">
15125				<xsl:if test="@draw:fill='solid' and (@fo:background-color or @draw:fill-color) or @draw:fill = 'gradient' or @draw:fill = 'hatch' or @draw:fill = 'bitmap'">
15126					<演:背景_6B2C>
15127						<xsl:call-template name="图:填充-graph">
15128							<xsl:with-param name="graphproperty" select="."/>
15129						</xsl:call-template>
15130					</演:背景_6B2C>
15131				</xsl:if>
15132			</xsl:for-each>
15133		</演:幻灯片备注_6B1D>
15134	</xsl:template>
15135	<xsl:template name="notePageAnchor">
15136		<xsl:param name="masterpagename"/>
15137		<xsl:if test="@presentation:use-footer-name and key('Style',@draw:style-name)/style:drawing-page-properties/@presentation:display-footer='true'">
15138			<xsl:call-template name="anchorAttr">
15139				<xsl:with-param name="anchorType" select="'footer'"/>
15140				<xsl:with-param name="placeChar" select="'footer'"/>
15141				<xsl:with-param name="masterpagename" select="$masterpagename"/>
15142			</xsl:call-template>
15143		</xsl:if>
15144		<xsl:if test="@presentation:use-date-time-name and key('Style',@draw:style-name)/style:drawing-page-properties/@presentation:display-date-time='true'">
15145			<xsl:call-template name="anchorAttr">
15146				<xsl:with-param name="anchorType" select="'date-time'"/>
15147				<xsl:with-param name="placeChar" select="'date'"/>
15148				<xsl:with-param name="masterpagename" select="$masterpagename"/>
15149			</xsl:call-template>
15150		</xsl:if>
15151		<xsl:if test="@presentation:use-header-name and key('Style',@draw:style-name)/style:drawing-page-properties/@presentation:display-header='true'">
15152			<xsl:call-template name="anchorAttr">
15153				<xsl:with-param name="anchorType" select="'header'"/>
15154				<xsl:with-param name="placeChar" select="'header'"/>
15155				<xsl:with-param name="masterpagename" select="$masterpagename"/>
15156			</xsl:call-template>
15157		</xsl:if>
15158		<xsl:if test="key('Style',@draw:style-name)/style:drawing-page-properties/@presentation:display-page-number='true'">
15159			<xsl:call-template name="anchorAttr">
15160				<xsl:with-param name="anchorType" select="'page-number'"/>
15161				<xsl:with-param name="placeChar" select="'number'"/>
15162				<xsl:with-param name="masterpagename" select="$masterpagename"/>
15163			</xsl:call-template>
15164		</xsl:if>
15165	</xsl:template>
15166	<xsl:template name="anchorAttr">
15167		<xsl:param name="anchorType"/>
15168		<xsl:param name="placeChar"/>
15169		<xsl:param name="masterpagename"/>
15170		<xsl:for-each select="key('MasterPage',$masterpagename)/presentation:notes/draw:frame[@presentation:class = $anchorType]">
15171			<uof:锚点_C644>
15172				<xsl:attribute name="x坐标"><xsl:value-of select="substring-before(./@svg:x,'cm')"/></xsl:attribute>
15173				<xsl:attribute name="y坐标"><xsl:value-of select="substring-before(./@svg:y,'cm')"/></xsl:attribute>
15174				<xsl:attribute name="高度"><xsl:value-of select="substring-before(./@svg:height,'cm')"/></xsl:attribute>
15175				<xsl:attribute name="宽度"><xsl:value-of select="substring-before(./@svg:width,'cm')"/></xsl:attribute>
15176				<xsl:attribute name="图形引用"><xsl:value-of select="generate-id()"/></xsl:attribute>
15177				<xsl:attribute name="缩略图">false</xsl:attribute>
15178				<xsl:attribute name="占位符"><xsl:value-of select="$placeChar"/></xsl:attribute>
15179			</uof:锚点_C644>
15180		</xsl:for-each>
15181	</xsl:template>
15182	<xsl:template match="anim:seq">
15183		<xsl:for-each select="anim:par">
15184			<xsl:for-each select="./anim:par">
15185				<xsl:apply-templates select="child::*"/>
15186			</xsl:for-each>
15187		</xsl:for-each>
15188	</xsl:template>
15189	<xsl:template match="anim:par | anim:iterate">
15190		<演:序列_6B1B>
15191			<xsl:variable name="targetName">
15192				<xsl:variable name="targetName2">
15193					<xsl:value-of select="anim:set/@smil:targetElement | @smil:targetElement | anim:animateMotion/@smil:targetElement | anim:animate/@smil:targetElement | anim:animateColor/@smil:targetElement | anim:animateTransform/@smil:targetElement | ../@smil:targetElement"/>
15194				</xsl:variable>
15195				<xsl:choose>
15196					<xsl:when test="contains(string($targetName2),' ')">
15197						<xsl:value-of select="substring-before(string($targetName2),' ')"/>
15198					</xsl:when>
15199					<xsl:otherwise>
15200						<xsl:value-of select="$targetName2"/>
15201					</xsl:otherwise>
15202				</xsl:choose>
15203			</xsl:variable>
15204			<xsl:attribute name="对象引用_6C28"><xsl:value-of select="$targetName"/></xsl:attribute>
15205			<!--适应最新序列号-->
15206			<演:定时_6B2E>
15207				<xsl:variable name="animationSpeed">
15208					<!--very slow 5s	slow 3s medium 2s	fast 1s		very fast 0.5s-->
15209					<xsl:choose>
15210						<xsl:when test="anim:animate/@smil:dur='0.5s' or anim:transitionFilter/@smil:dur='0.5s' or anim:animateColor/@smil:dur='0.5s'">very-fast</xsl:when>
15211						<xsl:when test="anim:animate/@smil:dur='1s' or anim:transitionFilter/@smil:dur='1s' or anim:animateColor/@smil:dur='1s'">fast</xsl:when>
15212						<xsl:when test="anim:animate/@smil:dur='2s' or anim:transitionFilter/@smil:dur='2s' or anim:animateColor/@smil:dur='2s'">medium</xsl:when>
15213						<xsl:when test="anim:animate/@smil:dur='3s' or anim:transitionFilter/@smil:dur='3s' or anim:animateColor/@smil:dur='3s'">slow</xsl:when>
15214						<xsl:when test="anim:animate/@smil:dur='5s' or anim:transitionFilter/@smil:dur='5s' or anim:animateColor/@smil:dur='5s'">very-slow</xsl:when>
15215						<xsl:otherwise>medium</xsl:otherwise>
15216					</xsl:choose>
15217				</xsl:variable>
15218				<xsl:attribute name="事件_6B2F"><!--enmu:	 on click	 with previous	 after previous--><xsl:choose><xsl:when test="@presentation:node-type='on-click'">on-click</xsl:when><xsl:when test="@presentation:node-type='after-previous'">after-previous</xsl:when><xsl:when test="@presentation:node-type='with-previous'">with-previous</xsl:when><xsl:otherwise><xsl:attribute name="事件">on-click</xsl:attribute></xsl:otherwise></xsl:choose></xsl:attribute>
15219				<xsl:attribute name="延时_6B30"><xsl:value-of select="concat('PT',substring-before(@smil:begin,'s'),'S')"/></xsl:attribute>
15220				<xsl:attribute name="速度_6B31"><xsl:value-of select="$animationSpeed"/></xsl:attribute>
15221				<xsl:attribute name="重复_6B32"><!--none 2	3	4	5	10	until next click 	until end of slide--><xsl:choose><xsl:when test="@smil:repeatCount = 'indefinite' "><xsl:choose><xsl:when test="@smil:end='next'">until-next-click</xsl:when><xsl:otherwise>until-end-of-slide</xsl:otherwise></xsl:choose></xsl:when><xsl:when test="@smil:repeatCount ='2' or @smil:repeatCount ='3' or @smil:repeatCount ='4' or @smil:repeatCount ='5' or @smil:repeatCount ='10' "><xsl:value-of select="@smil:repeatCount"/></xsl:when><xsl:otherwise>none</xsl:otherwise></xsl:choose></xsl:attribute>
15222				<xsl:attribute name="是否回卷_6B33"><xsl:choose><xsl:when test="@smil:fill='remove'">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
15223				<xsl:if test="ancestor::anim:seq/@presentation:node-type='interactive-sequence'">
15224					<xsl:attribute name="触发对象引用_6B34"><xsl:value-of select="substring-before(../../@smil:begin,'.')"/></xsl:attribute>
15225				</xsl:if>
15226			</演:定时_6B2E>
15227			<xsl:if test="../../following-sibling::*[1]/anim:par/anim:animateColor or (name(following-sibling::*[1]) = 'anim:set' and following-sibling::*[1]/@smil:to = 'hidden') or ../../following-sibling::*[1]/anim:par/anim:set/@smil:to = 'hidden' or name() = 'anim:iterate' or ./anim:audio or name(following-sibling::*[1]) = 'anim:animateColor' or name(following-sibling::*[1])='anim:set'">
15228				<演:增强_6B35>
15229					<xsl:choose>
15230						<xsl:when test="name(following-sibling::*[1]) = 'anim:animateColor' or name(following-sibling::*[1])='anim:set'">
15231							<演:动画播放后_6B36>
15232								<xsl:if test="name(following-sibling::*[1]) = 'anim:animateColor'">
15233									<演:颜色_6B37>
15234										<xsl:value-of select="following-sibling::*[1]/@smil:to"/>
15235									</演:颜色_6B37>
15236								</xsl:if>
15237								<xsl:if test="name(following-sibling::*[1])='anim:set'">
15238									<xsl:choose>
15239										<xsl:when test="following-sibling::*[1]/@smil:begin = 'next'">
15240											<演:是否单击后隐藏_6B39>true</演:是否单击后隐藏_6B39>
15241										</xsl:when>
15242										<xsl:otherwise>
15243											<演:是否播放后隐藏_6B38>true</演:是否播放后隐藏_6B38>
15244										</xsl:otherwise>
15245									</xsl:choose>
15246								</xsl:if>
15247							</演:动画播放后_6B36>
15248						</xsl:when>
15249						<xsl:when test="../../following-sibling::*[1]/anim:par/anim:animateColor or (name(following-sibling::*[1]) = 'anim:set' and following-sibling::*[1]/@smil:to = 'hidden') or ../../following-sibling::*[1]/anim:par/anim:set/@smil:to = 'hidden'">
15250							<演:动画播放后_6B36>
15251								<xsl:if test="../../following-sibling::*[1]/anim:par/anim:animateColor">
15252									<演:颜色_6B37>
15253										<xsl:value-of select="following-sibling::*[1]/@smil:to"/>
15254									</演:颜色_6B37>
15255								</xsl:if>
15256								<xsl:if test="name(following-sibling::*[1]) = 'anim:set' and following-sibling::*[1]/@smil:to = 'hidden' or ../../following-sibling::*[1]/anim:par/anim:set/@smil:to = 'hidden'">
15257									<xsl:choose>
15258										<xsl:when test="contains(following-sibling::*[1]/@smil:begin,'end')">
15259											<演:是否单击后隐藏_6B39>true</演:是否单击后隐藏_6B39>
15260										</xsl:when>
15261										<xsl:otherwise>
15262											<演:是否播放后隐藏_6B38>true</演:是否播放后隐藏_6B38>
15263										</xsl:otherwise>
15264									</xsl:choose>
15265								</xsl:if>
15266							</演:动画播放后_6B36>
15267						</xsl:when>
15268					</xsl:choose>
15269					<xsl:if test="name() = 'anim:iterate'">
15270						<演:动画文本_6B3A>
15271							<xsl:attribute name="间隔_6B3C"><xsl:value-of select="concat('PT',substring-before(@anim:iterate-interval,'s'),'S')"/></xsl:attribute>
15272							<xsl:choose>
15273								<xsl:when test="@anim:iterate-type = 'by-word'">
15274									<xsl:attribute name="发送_6B3B">by word</xsl:attribute>
15275								</xsl:when>
15276								<xsl:when test="@anim:iterate-type = 'by-letter'">
15277									<xsl:attribute name="发送_6B3B">by letter</xsl:attribute>
15278								</xsl:when>
15279								<xsl:otherwise>
15280									<xsl:attribute name="发送_6B3B">all at once</xsl:attribute>
15281								</xsl:otherwise>
15282							</xsl:choose>
15283						</演:动画文本_6B3A>
15284					</xsl:if>
15285					<xsl:choose>
15286						<xsl:when test="./anim:audio">
15287							<xsl:for-each select="anim:audio">
15288								<xsl:call-template name="AudioSound"/>
15289							</xsl:for-each>
15290						</xsl:when>
15291						<xsl:when test="./anim:command">
15292							<演:声音_6B22 演:预定义声音_C631="stop previous sound"/>
15293						</xsl:when>
15294					</xsl:choose>
15295				</演:增强_6B35>
15296			</xsl:if>
15297			<演:效果_6B40>
15298				<xsl:choose>
15299					<xsl:when test="./@presentation:preset-class = 'entrance'">
15300						<演:进入_6B41>
15301							<xsl:choose>
15302								<xsl:when test="@presentation:preset-id and @presentation:preset-id != ''">
15303									<xsl:apply-templates select="@presentation:preset-id"/>
15304								</xsl:when>
15305								<xsl:otherwise>
15306									<演:其他_6B65/>
15307								</xsl:otherwise>
15308							</xsl:choose>
15309						</演:进入_6B41>
15310					</xsl:when>
15311					<xsl:when test="./@presentation:preset-class = 'exit'">
15312						<演:退出_6BBE>
15313							<xsl:choose>
15314								<xsl:when test="@presentation:preset-id and @presentation:preset-id != ''">
15315									<xsl:apply-templates select="@presentation:preset-id"/>
15316								</xsl:when>
15317								<xsl:otherwise>
15318									<演:其他_6B65/>
15319								</xsl:otherwise>
15320							</xsl:choose>
15321						</演:退出_6BBE>
15322					</xsl:when>
15323					<xsl:when test="./@presentation:preset-class = 'emphasis' ">
15324						<演:强调_6B07>
15325							<xsl:choose>
15326								<xsl:when test="@presentation:preset-id and @presentation:preset-id != ''">
15327									<xsl:apply-templates select="@presentation:preset-id"/>
15328								</xsl:when>
15329								<xsl:otherwise>
15330									<演:其他_6B65/>
15331								</xsl:otherwise>
15332							</xsl:choose>
15333						</演:强调_6B07>
15334					</xsl:when>
15335					<xsl:when test="./@presentation:preset-class = 'motion-path'">
15336						<演:动作路径_6BD1>
15337							<xsl:attribute name="路径_6BD6"><xsl:value-of select="child::anim:animateMotion/@svg:path"/></xsl:attribute>
15338						</演:动作路径_6BD1>
15339					</xsl:when>
15340				</xsl:choose>
15341			</演:效果_6B40>
15342		</演:序列_6B1B>
15343	</xsl:template>
15344	<xsl:template name="anim_speed">
15345		<xsl:param name="speed"/>
15346		<xsl:choose>
15347			<xsl:when test="$speed='0.5s' or $speed='0.25s'">very-fast</xsl:when>
15348			<xsl:when test="$speed='1s'">fast</xsl:when>
15349			<xsl:when test="$speed='2s'">medium</xsl:when>
15350			<xsl:when test="$speed='3s'">slow</xsl:when>
15351			<xsl:when test="$speed='5s'">very-slow</xsl:when>
15352			<xsl:otherwise>medium</xsl:otherwise>
15353		</xsl:choose>
15354	</xsl:template>
15355	<!--进入 基本型 开始-->
15356	<!--ooo-entrance-venetian-blinds 	1 百叶窗p0080-->
15357	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-venetian-blinds']">
15358		<演:基本型_6B42>
15359			<演:百叶窗_6B43>
15360				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15361				<xsl:attribute name="方向_6B45"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
15362			</演:百叶窗_6B43>
15363		</演:基本型_6B42>
15364	</xsl:template>
15365	<!-- appear 出现-->
15366	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-appear']">
15367		<演:基本型_6B42>
15368			<演:出现_6B46/>
15369		</演:基本型_6B42>
15370	</xsl:template>
15371	<!-- box 盒状p0082-->
15372	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-box']">
15373		<演:基本型_6B42>
15374			<演:盒状_6B47>
15375				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15376				<xsl:attribute name="方向_6B48"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
15377			</演:盒状_6B47>
15378		</演:基本型_6B42>
15379	</xsl:template>
15380	<!--ooo-entrance-diagonal-squares 	1 阶梯状p0083-->
15381	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-diagonal-squares']">
15382		<演:基本型_6B42>
15383			<演:阶梯状_6B49>
15384				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15385				<xsl:attribute name="方向_6B4A"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'left-to-bottom' ">left down</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'left-to-top' ">left up</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'right-to-bottom' ">right down</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'right-to-top' ">right up</xsl:when></xsl:choose></xsl:attribute>
15386			</演:阶梯状_6B49>
15387		</演:基本型_6B42>
15388	</xsl:template>
15389	<!-- wheel 1 轮子p0084-->
15390	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-wheel']">
15391		<演:基本型_6B42>
15392			<演:轮子_6B4B>
15393				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15394				<xsl:attribute name="轮辐_6B4D"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
15395			</演:轮子_6B4B>
15396		</演:基本型_6B42>
15397	</xsl:template>
15398	<!-- checkerboard 棋盘p0085-->
15399	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-checkerboard']">
15400		<演:基本型_6B42>
15401			<演:棋盘_6B4E>
15402				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15403				<xsl:attribute name="方向_6B50"><xsl:value-of select="../anim:transitionFilter/@smil:subtype"/></xsl:attribute>
15404			</演:棋盘_6B4E>
15405		</演:基本型_6B42>
15406	</xsl:template>
15407	<!--ooo-entrance-flash-once 	1 闪烁一次p0086-->
15408	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-flash-once']">
15409		<演:基本型_6B42>
15410			<演:闪烁一次_6B51>
15411				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:set/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15412			</演:闪烁一次_6B51>
15413		</演:基本型_6B42>
15414	</xsl:template>
15415	<!-- plus 十字形扩展0087-->
15416	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-plus']">
15417		<演:基本型_6B42>
15418			<演:十字形扩展_6B53>
15419				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15420				<xsl:attribute name="方向_6B48"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
15421			</演:十字形扩展_6B53>
15422		</演:基本型_6B42>
15423	</xsl:template>
15424	<!--ooo-entrance-random 	1 随机效果p0088-->
15425	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-random']">
15426		<演:基本型_6B42>
15427			<演:随机效果_6B55>
15428				<!--xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:choose><xsl:when test="parent::anim:par/anim:transitionFilter/@smil:dur"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:when><xsl:otherwise><xsl:value-of select="../anim:animate/@smil:dur"/></xsl:otherwise></xsl:choose></xsl:with-param></xsl:call-template></xsl:attribute-->
15429			</演:随机效果_6B55>
15430		</演:基本型_6B42>
15431	</xsl:template>
15432	<!-- circle 1 圆形扩展p0089-->
15433	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-circle']">
15434		<演:基本型_6B42>
15435			<演:圆形扩展_6B56>
15436				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15437				<xsl:attribute name="方向_6B48"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
15438			</演:圆形扩展_6B56>
15439		</演:基本型_6B42>
15440	</xsl:template>
15441	<!--ooo-entrance-wipe 	1 擦除p0090-->
15442	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-wipe']">
15443		<演:基本型_6B42>
15444			<演:擦除_6B57>
15445				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15446				<xsl:attribute name="方向_6B58"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-right'">from right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">from left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">from top</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">from bottom</xsl:when></xsl:choose></xsl:attribute>
15447			</演:擦除_6B57>
15448		</演:基本型_6B42>
15449	</xsl:template>
15450	<!-- fly in 飞入p0091-->
15451	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-fly-in']">
15452		<演:基本型_6B42>
15453			<演:飞入_6B59>
15454				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animate[1]/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15455				<xsl:if test="../@presentation:preset-sub-type">
15456					<xsl:attribute name="方向_6B5A"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">from bottom</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top-right'">from top-right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top-left'">from top-left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom-left'">from bottom-left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom-right'">from bottom-right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-right'">from right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">from left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">from top</xsl:when></xsl:choose></xsl:attribute>
15457				</xsl:if>
15458			</演:飞入_6B59>
15459		</演:基本型_6B42>
15460	</xsl:template>
15461	<!--ooo-entrance-fly-in-slow 	1 缓慢进入p0092-->
15462	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-fly-in-slow']">
15463		<演:基本型_6B42>
15464			<演:缓慢进入_6B5B>
15465				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animate[1]/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15466				<xsl:attribute name="方向_6B58"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-right'">from right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">from left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">from top</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">from bottom</xsl:when></xsl:choose></xsl:attribute>
15467			</演:缓慢进入_6B5B>
15468		</演:基本型_6B42>
15469	</xsl:template>
15470	<!-- diamond 1 菱形p0093-->
15471	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-diamond']">
15472		<演:基本型_6B42>
15473			<演:菱形_6B5D>
15474				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15475				<xsl:attribute name="方向_6B48"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
15476			</演:菱形_6B5D>
15477		</演:基本型_6B42>
15478	</xsl:template>
15479	<!-- split 1 劈裂p0094-->
15480	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-split']">
15481		<演:基本型_6B42>
15482			<演:劈裂_6B5E>
15483				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15484				<xsl:attribute name="方向_6B5F"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'horizontal-out'">horizontal out</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'horizontal-in'">horizontal in</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'vertical-in'">vertical in</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'vertical-out'">vertical out</xsl:when></xsl:choose></xsl:attribute>
15485			</演:劈裂_6B5E>
15486		</演:基本型_6B42>
15487	</xsl:template>
15488	<!-- peek in 1 切入p0095-->
15489	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-peek-in']">
15490		<演:基本型_6B42>
15491			<演:切入_6B60>
15492				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15493				<xsl:attribute name="方向_6B58"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-right'">from right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">from left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">from top</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">from bottom</xsl:when></xsl:choose></xsl:attribute>
15494			</演:切入_6B60>
15495		</演:基本型_6B42>
15496	</xsl:template>
15497	<!--ooo-entrance-wedge 	1 扇形展开p0096-->
15498	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-wedge']">
15499		<演:基本型_6B42>
15500			<演:扇形展开_6B61>
15501				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15502			</演:扇形展开_6B61>
15503		</演:基本型_6B42>
15504	</xsl:template>
15505	<!-- random bars 1 随机线条p0097-->
15506	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-random-bars']">
15507		<演:基本型_6B42>
15508			<演:随机线条_6B62>
15509				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15510				<xsl:attribute name="方向_6B45"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
15511			</演:随机线条_6B62>
15512		</演:基本型_6B42>
15513	</xsl:template>
15514	<!--ooo-entrance-dissolve-in 	1 内向溶解p0098-->
15515	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-dissolve-in']">
15516		<演:基本型_6B42>
15517			<演:向内溶解_6B64>
15518				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15519			</演:向内溶解_6B64>
15520		</演:基本型_6B42>
15521	</xsl:template>
15522	<!--进入 基本型 结束-->
15523	<!--进入 细微型 开始-->
15524	<!--fade in	淡入(UOF_渐变)	   -->
15525	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-fade-in']">
15526		<演:基本型_6B42>
15527			<演:渐变_6B67>
15528				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15529			</演:渐变_6B67>
15530		</演:基本型_6B42>
15531	</xsl:template>
15532	<!--fade in and swivel	淡入和旋转(UOF_渐变式回旋)	<b1> -->
15533	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-fade-in-and-swivel']">
15534		<演:基本型_6B42>
15535			<演:渐变式回旋_6B69>
15536				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15537			</演:渐变式回旋_6B69>
15538		</演:基本型_6B42>
15539	</xsl:template>
15540	<!--fade in and zoom	淡入和缩放(UOF_渐变式缩放)	   -->
15541	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-fade-in-and-zoom']">
15542		<演:基本型_6B42>
15543			<演:渐变式缩放_6B6A>
15544				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15545			</演:渐变式缩放_6B6A>
15546		</演:基本型_6B42>
15547	</xsl:template>
15548	<!--expand	展开	   -->
15549	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-expand']">
15550		<演:基本型_6B42>
15551			<演:展开_6B6B>
15552				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15553			</演:展开_6B6B>
15554		</演:基本型_6B42>
15555	</xsl:template>
15556	<!--进入 细微型 结束-->
15557	<!--进入 温和型 开始-->
15558	<!--turn and grow 	翻转和增长(UOF_由远及近) 	<b1> -->
15559	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-turn-and-grow']">
15560		<演:基本型_6B42>
15561			<演:翻转时由远及近_6B6E>
15562				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15563			</演:翻转时由远及近_6B6E>
15564		</演:基本型_6B42>
15565	</xsl:template>
15566	<!--ease in	缓慢放大 (UOF_渐入)	   -->
15567	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-ease-in']">
15568		<演:基本型_6B42>
15569			<演:渐入_6B6F>
15570				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15571			</演:渐入_6B6F>
15572		</演:基本型_6B42>
15573	</xsl:template>
15574	<!--stretchy	RO伸缩(UOF_伸展) -->
15575	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-stretchy']">
15576		<演:基本型_6B42>
15577			<演:伸展_6B70>
15578				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15579				<!--缺-->
15580				<xsl:attribute name="方向_6B71"/>
15581			</演:伸展_6B70>
15582		</演:基本型_6B42>
15583	</xsl:template>
15584	<!--zoom缩放ooo-entrance-zoom  -->
15585	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-colored-lettering']">
15586		<演:基本型_6B42>
15587			<演:缩放_6B72>
15588				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15589				<!--缺-->
15590				<xsl:attribute name="方向_6B73"/>
15591			</演:缩放_6B72>
15592		</演:基本型_6B42>
15593	</xsl:template>
15594	<!--compress压缩-->
15595	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-compress']">
15596		<演:基本型_6B42>
15597			<演:压缩_6B74>
15598				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15599			</演:压缩_6B74>
15600		</演:基本型_6B42>
15601	</xsl:template>
15602	<!--unfold	展开	<b1> -->
15603	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-unfold']">
15604		<演:基本型_6B42>
15605			<演:展开_6B6B>
15606				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15607			</演:展开_6B6B>
15608		</演:基本型_6B42>
15609	</xsl:template>
15610	<!--pinwheel	风车(UOF_回旋)	   -->
15611	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-pinwheel']">
15612		<演:基本型_6B42>
15613			<演:回旋_6B75>
15614				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15615			</演:回旋_6B75>
15616		</演:基本型_6B42>
15617	</xsl:template>
15618	<!--ascend	上升	   -->
15619	<xsl:template match="@presentation:preset-id[. = 'oooo-entrance-ascend']">
15620		<演:基本型_6B42>
15621			<演:上升_6B76>
15622				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15623			</演:上升_6B76>
15624		</演:基本型_6B42>
15625	</xsl:template>
15626	<!--rise up	升起	   -->
15627	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-rise-up']">
15628		<演:基本型_6B42>
15629			<演:升起_6B77>
15630				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15631			</演:升起_6B77>
15632		</演:基本型_6B42>
15633	</xsl:template>
15634	<!-- falling in	下降	<b1-->
15635	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-falling-in']">
15636		<演:基本型_6B42>
15637			<演:下降_6B78>
15638				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15639			</演:下降_6B78>
15640		</演:基本型_6B42>
15641	</xsl:template>
15642	<!--descend	下降 2对1-->
15643	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-descend']">
15644		<演:基本型_6B42>
15645			<演:下降_6B78>
15646				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15647			</演:下降_6B78>
15648		</演:基本型_6B42>
15649	</xsl:template>
15650	<!--colored lettering	彩色文字 	<b1>ooo-entrance-colored-lettering -->
15651	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-colored-lettering']">
15652		<演:基本型_6B42>
15653			<演:颜色打字机_6B79>
15654				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15655			</演:颜色打字机_6B79>
15656		</演:基本型_6B42>
15657	</xsl:template>
15658	<!--center revolve	中心旋转	  -->
15659	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-center-revolve']">
15660		<演:基本型_6B42>
15661			<演:中心旋转_6B7B>
15662				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15663			</演:中心旋转_6B7B>
15664		</演:基本型_6B42>
15665	</xsl:template>
15666	<!--进入 温和型 结束-->
15667	<!--进入 华丽型 开始-->
15668	<!--bounce	弹跳	   -->
15669	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-bounce']">
15670		<演:华丽型_6B7C>
15671			<演:弹跳_6B7D>
15672				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15673			</演:弹跳_6B7D>
15674		</演:华丽型_6B7C>
15675	</xsl:template>
15676	<!--boomerang	回旋(UOF_飞旋)	   -->
15677	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-boomerang']">
15678		<演:华丽型_6B7C>
15679			<演:回旋_6B75>
15680				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15681			</演:回旋_6B75>
15682		</演:华丽型_6B7C>
15683	</xsl:template>
15684	<!--put on the breaks	暂停(UOF_光速)	   -->
15685	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-breaks']">
15686		<演:华丽型_6B7C>
15687			<演:光速_6B7F>
15688				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15689			</演:光速_6B7F>
15690		</演:华丽型_6B7C>
15691	</xsl:template>
15692	<!--挥鞭式(缺失)-->
15693	<!--flip	翻转(UOF_空翻)	<b1> -->
15694	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-flip']">
15695		<演:华丽型_6B7C>
15696			<演:空翻_6B81>
15697				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15698			</演:空翻_6B81>
15699		</演:华丽型_6B7C>
15700	</xsl:template>
15701	<!--curve up	左牛角型	(UOF_曲线向上)   -->
15702	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-curve-up']">
15703		<演:华丽型_6B7C>
15704			<演:曲线向上_6B82>
15705				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15706			</演:曲线向上_6B82>
15707		</演:华丽型_6B7C>
15708	</xsl:template>
15709	<!--spin in	旋转放大(UOF_玩具风车)	   -->
15710	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-spin-in']">
15711		<演:华丽型_6B7C>
15712			<演:玩具风车_6B83>
15713				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15714			</演:玩具风车_6B83>
15715		</演:华丽型_6B7C>
15716	</xsl:template>
15717	<!--swivel	旋转	  -->
15718	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-swivel']">
15719		<演:华丽型_6B7C>
15720			<演:旋转_6B84>
15721				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15722				<xsl:attribute name="方向_6B48"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
15723			</演:旋转_6B84>
15724		</演:华丽型_6B7C>
15725	</xsl:template>
15726	<!--movie credits	片尾致谢	 (UOF_字幕式)  -->
15727	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-movie-credits']">
15728		<演:华丽型_6B7C>
15729			<演:字幕式_6B87>
15730				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15731			</演:字幕式_6B87>
15732		</演:华丽型_6B7C>
15733	</xsl:template>
15734	<!--magnify	放大	   -->
15735	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-magnify']">
15736		<演:华丽型_6B7C>
15737			<演:放大_6B89>
15738				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15739			</演:放大_6B89>
15740		</演:华丽型_6B7C>
15741	</xsl:template>
15742	<!--float	浮动	   -->
15743	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-float']">
15744		<演:华丽型_6B7C>
15745			<演:浮动_6B8A>
15746				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15747			</演:浮动_6B8A>
15748		</演:华丽型_6B7C>
15749	</xsl:template>
15750	<!--glide	滑翔	   -->
15751	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-glide']">
15752		<演:华丽型_6B7C>
15753			<演:滑翔_6B8B>
15754				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15755			</演:滑翔_6B8B>
15756		</演:华丽型_6B7C>
15757	</xsl:template>
15758	<!--whip抖动(UOF_挥舞) <b1> -->
15759	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-whip']">
15760		<演:华丽型_6B7C>
15761			<演:挥舞_6B8C>
15762				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15763			</演:挥舞_6B8C>
15764		</演:华丽型_6B7C>
15765	</xsl:template>
15766	<!--spiral in	螺旋飞入	   -->
15767	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-spiral-in']">
15768		<演:华丽型_6B7C>
15769			<演:螺旋飞入_6B8D>
15770				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15771			</演:螺旋飞入_6B8D>
15772		</演:华丽型_6B7C>
15773	</xsl:template>
15774	<!--sling	投掷	   -->
15775	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-sling']">
15776		<演:华丽型_6B7C>
15777			<演:投掷_6B8E>
15778				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15779			</演:投掷_6B8E>
15780		</演:华丽型_6B7C>
15781	</xsl:template>
15782	<!-- thread	穿过(UOF_线形)	  -->
15783	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-thread']">
15784		<演:华丽型_6B7C>
15785			<演:线形_6B8F>
15786				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15787			</演:线形_6B8F>
15788		</演:华丽型_6B7C>
15789	</xsl:template>
15790	<!--fold	折叠	   -->
15791	<xsl:template match="@presentation:preset-id[. = 'ooo-entrance-fold']">
15792		<演:华丽型_6B7C>
15793			<演:折叠_6B90>
15794				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15795			</演:折叠_6B90>
15796		</演:华丽型_6B7C>
15797	</xsl:template>
15798	<!--进入 华丽型 结束-->
15799	<!-- emphasis 强调  基本型 开始-->
15800	<!-- zoom 缩放0120-->
15801	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-grow-and-shrink']">
15802		<演:基本型_6B42>
15803			<演:缩放_6B72>
15804				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animateTransform/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15805				<xsl:variable name="horizontalDirection" select="substring-after(../anim:animateTransform/@smil:to,',')"/>
15806				<xsl:variable name="verticalDirection" select="substring-before(../anim:animateTransform/@smil:to,',')"/>
15807				<xsl:attribute name="方向_6B91"><xsl:choose><xsl:when test="$horizontalDirection = '1'">horizontal</xsl:when><xsl:when test="$verticalDirection = '1'">vertical</xsl:when><xsl:otherwise>both</xsl:otherwise></xsl:choose></xsl:attribute>
15808				<xsl:choose>
15809					<xsl:when test="$horizontalDirection = '0.25' or $verticalDirection = '0.25'">
15810						<xsl:attribute name="预定义尺寸_6B92">tiny</xsl:attribute>
15811					</xsl:when>
15812					<xsl:when test="$horizontalDirection = '0.5' or $verticalDirection = '0.5'">
15813						<xsl:attribute name="预定义尺寸_6B92">smaller</xsl:attribute>
15814					</xsl:when>
15815					<xsl:when test="$horizontalDirection = '1.5' or $verticalDirection = '1.5'">
15816						<xsl:attribute name="预定义尺寸_6B92">larger</xsl:attribute>
15817					</xsl:when>
15818					<xsl:when test="$horizontalDirection = '4' or $verticalDirection = '4'">
15819						<xsl:attribute name="预定义尺寸_6B92">huge</xsl:attribute>
15820					</xsl:when>
15821					<xsl:otherwise>
15822						<xsl:attribute name="自定义尺寸_6B93"><xsl:choose><xsl:when test="$horizontalDirection = '1'"><xsl:value-of select="number($verticalDirection) * 100"/></xsl:when><xsl:when test="$verticalDirection = '1'"><xsl:value-of select="number($horizontalDirection) * 100"/></xsl:when><xsl:otherwise><xsl:value-of select="number($horizontalDirection) * 100"/></xsl:otherwise></xsl:choose></xsl:attribute>
15823					</xsl:otherwise>
15824				</xsl:choose>
15825			</演:缩放_6B72>
15826		</演:基本型_6B42>
15827	</xsl:template>
15828	<!-- change line color 1 更改线条颜色0121-->
15829	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-line-color']">
15830		<演:基本型_6B42>
15831			<演:更改线条颜色_6B94>
15832				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animateColor/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15833				<xsl:attribute name="颜色_6B95"><xsl:value-of select="../anim:animateColor/@smil:to"/></xsl:attribute>
15834			</演:更改线条颜色_6B94>
15835		</演:基本型_6B42>
15836	</xsl:template>
15837	<!-- change font style 1 更改字形0122-->
15838	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-font-style' or . = 'ooo-emphasis-font']">
15839		<演:基本型_6B42>
15840			<演:更改字形_6B96>
15841				<xsl:attribute name="字形_6B97"><xsl:value-of select="generate-id(..)"/></xsl:attribute>
15842				<xsl:attribute name="期间_6B98"><!--begin--><xsl:variable name="qijian" select="string(../anim:set[1]/@smil:dur)"/><xsl:choose><xsl:when test="$qijian='until next click'">until-next-click</xsl:when><xsl:when test="$qijian='indefinite'">until-end-of-slide</xsl:when><xsl:when test="$qijian='1.0s' or $qijian='1s'">1.0</xsl:when><xsl:when test="$qijian='2s' or $qijian='2.0s'">2.0</xsl:when><xsl:when test="$qijian='3s' or $qijian='3.0s'">3.0</xsl:when><xsl:when test="$qijian='4s' or $qijian='4.0s'">4.0</xsl:when><xsl:when test="$qijian='5s' or $qijian='5.0s'">5.0</xsl:when><xsl:when test="$qijian='0.5s'">0.5</xsl:when><xsl:otherwise>2.0</xsl:otherwise></xsl:choose></xsl:attribute>
15843			</演:更改字形_6B96>
15844		</演:基本型_6B42>
15845	</xsl:template>
15846	<!-- change font 更改字体与更改字形一起处理,故注释!-->
15847	<!-- spin 1 陀螺旋0123-->
15848	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-spin']">
15849		<演:基本型_6B42>
15850			<演:陀螺旋_6B9B>
15851				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:animateTransform/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15852				<xsl:attribute name="是否顺时针方向_6B9C"><xsl:choose><xsl:when test="number(parent::anim:par/anim:animateTransform/@smil:by) &gt;= 0">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute>
15853				<xsl:choose>
15854					<xsl:when test="parent::anim:par/anim:animateTransform/@smil:by='90' or parent::anim:par/anim:animateTransform/@smil:by='-90'">
15855						<xsl:attribute name="预定义角度_6B9D">quarter spin</xsl:attribute>
15856					</xsl:when>
15857					<xsl:when test="parent::anim:par/anim:animateTransform/@smil:by='180' or parent::anim:par/anim:animateTransform/@smil:by='-180'">
15858						<xsl:attribute name="预定义角度_6B9D">half spin</xsl:attribute>
15859					</xsl:when>
15860					<xsl:when test="parent::anim:par/anim:animateTransform/@smil:by='360' or parent::anim:par/anim:animateTransform/@smil:by='-360'">
15861						<xsl:attribute name="预定义角度_6B9D">full spin</xsl:attribute>
15862					</xsl:when>
15863					<xsl:when test="parent::anim:par/anim:animateTransform/@smil:by='720' or parent::anim:par/anim:animateTransform/@smil:by='-720'">
15864						<xsl:attribute name="预定义角度_6B9D">two spins</xsl:attribute>
15865					</xsl:when>
15866					<xsl:otherwise>
15867						<xsl:attribute name="自定义角度_6B9E"><xsl:value-of select="substring-after(parent::anim:par/anim:animateTransform/@smil:by,'-')"/></xsl:attribute>
15868					</xsl:otherwise>
15869				</xsl:choose>
15870			</演:陀螺旋_6B9B>
15871		</演:基本型_6B42>
15872	</xsl:template>
15873	<!-- change fill color 1 更改填充颜色0124-->
15874	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-fill-color']">
15875		<演:基本型_6B42>
15876			<演:更改填充颜色_6B9F>
15877				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animateColor/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15878				<xsl:attribute name="颜色_6B95"><xsl:value-of select="../anim:animateColor/@smil:to"/></xsl:attribute>
15879			</演:更改填充颜色_6B9F>
15880		</演:基本型_6B42>
15881	</xsl:template>
15882	<!-- change font size "1 更改字号0125/缩放0120(这两个对应一个)"-->
15883	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-font-size']">
15884		<演:基本型_6B42>
15885			<演:更改字号_6BA0>
15886				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animate/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15887				<!--tiny smaller larger huge-->
15888				<xsl:choose>
15889					<xsl:when test="parent::anim:par/anim:animate/@smil:to='0.25pt' ">
15890						<xsl:attribute name="预定义尺寸_6B92">tiny</xsl:attribute>
15891					</xsl:when>
15892					<xsl:when test="parent::anim:par/anim:animate/@smil:to='0.5pt' ">
15893						<xsl:attribute name="预定义尺寸_6B92">smaller</xsl:attribute>
15894					</xsl:when>
15895					<xsl:when test="parent::anim:par/anim:animate/@smil:to='1.5pt' ">
15896						<xsl:attribute name="预定义尺寸_6B92">larger</xsl:attribute>
15897					</xsl:when>
15898					<xsl:when test="parent::anim:par/anim:animate/@smil:to='4pt' ">
15899						<xsl:attribute name="预定义尺寸_6B92">huge</xsl:attribute>
15900					</xsl:when>
15901					<xsl:otherwise>
15902						<xsl:attribute name="自定义尺寸_6B93"><xsl:choose><xsl:when test="parent::anim:par/anim:animate/@smil:to"><xsl:value-of select="number(substring(substring-before(parent::anim:par/anim:animate/@smil:to,'pt'),1,3)) * 100"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:attribute>
15903					</xsl:otherwise>
15904				</xsl:choose>
15905			</演:更改字号_6BA0>
15906		</演:基本型_6B42>
15907	</xsl:template>
15908	<!-- change font color 1 更改字体颜色0126-->
15909	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-font-color']">
15910		<演:基本型_6B42>
15911			<演:更改字体颜色_6BA2>
15912				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animateColor/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15913				<xsl:attribute name="颜色_6B95"><xsl:value-of select="../anim:animateColor/@smil:to"/></xsl:attribute>
15914			</演:更改字体颜色_6BA2>
15915		</演:基本型_6B42>
15916	</xsl:template>
15917	<!-- Transparency 1 透明0127-->
15918	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-transparency']">
15919		<演:基本型_6B42>
15920			<演:透明_6BA3>
15921				<!--25	50	75	100枚举	0.5	1	2	3	4	5	until next click	until end of slide-->
15922				<xsl:choose>
15923					<xsl:when test="../anim:set/@smil:to='0.25' ">
15924						<xsl:attribute name="预定义透明度_6BA4">25</xsl:attribute>
15925					</xsl:when>
15926					<xsl:when test="../anim:set/@smil:to='0.5' ">
15927						<xsl:attribute name="预定义透明度_6BA4">50</xsl:attribute>
15928					</xsl:when>
15929					<xsl:when test="../anim:set/@smil:to='0.75' ">
15930						<xsl:attribute name="预定义透明度_6BA4">75</xsl:attribute>
15931					</xsl:when>
15932					<xsl:when test="../anim:set/@smil:to='1' ">
15933						<xsl:attribute name="预定义透明度_6BA4">100</xsl:attribute>
15934					</xsl:when>
15935					<xsl:otherwise>
15936						<xsl:attribute name="自定义透明度_6BA5"><xsl:value-of select="number(substring(../anim:set/@smil:to,1,4)) * 100"/></xsl:attribute>
15937					</xsl:otherwise>
15938				</xsl:choose>
15939				<xsl:attribute name="期间_6BA6"><xsl:variable name="qijian" select="string(../anim:set[1]/@smil:dur)"/><xsl:choose><xsl:when test="$qijian='until next click'">until-next-click</xsl:when><xsl:when test="$qijian='indefinite'">until-end-of-slide</xsl:when><xsl:when test="$qijian='1.0s' or $qijian='1s'">1.0</xsl:when><xsl:when test="$qijian='2s' or $qijian='2.0s'">2.0</xsl:when><xsl:when test="$qijian='3s' or $qijian='3.0s'">3.0</xsl:when><xsl:when test="$qijian='4s' or $qijian='4.0s'">4.0</xsl:when><xsl:when test="$qijian='5s' or $qijian='5.0s'">5.0</xsl:when><xsl:when test="$qijian='0.5s'">0.5</xsl:when><xsl:otherwise>2.0</xsl:otherwise></xsl:choose></xsl:attribute>
15940			</演:透明_6BA3>
15941		</演:基本型_6B42>
15942	</xsl:template>
15943	<!-- emphasis 强调  基本型 结束-->
15944	<!-- emphasis 强调  细微型-->
15945	<!--lighten	变淡	   -->
15946	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-lighten']">
15947		<演:细微型_6B66>
15948			<演:变淡_6BA7>
15949				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15950			</演:变淡_6BA7>
15951		</演:细微型_6B66>
15952	</xsl:template>
15953	<!--complementary by color 2	补色2	   -->
15954	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-complementary-color-2']">
15955		<演:细微型_6B66>
15956			<演:补色2_6BA8>
15957				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15958			</演:补色2_6BA8>
15959		</演:细微型_6B66>
15960	</xsl:template>
15961	<!--color over by letter	按字母涂色(UOF_彩色波纹)	<b1>  -->
15962	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-color-over-by-letter']">
15963		<演:细微型_6B66>
15964			<演:彩色波纹_6BA9>
15965				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15966				<xsl:attribute name="颜色_6B95"><xsl:value-of select="../anim:animateColor/@smil:to"/></xsl:attribute>
15967			</演:彩色波纹_6BA9>
15968		</演:细微型_6B66>
15969	</xsl:template>
15970	<!--contrasting color	对比色	 -->
15971	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-contrasting-color']">
15972		<演:细微型_6B66>
15973			<演:对比色_6BAA>
15974				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15975			</演:对比色_6BAA>
15976		</演:细微型_6B66>
15977	</xsl:template>
15978	<!--color blend	混色	   -->
15979	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-color-blend']">
15980		<演:细微型_6B66>
15981			<演:混色_6BAB>
15982				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15983				<xsl:attribute name="颜色_6B95"><xsl:value-of select="../anim:animateColor/@smil:to"/></xsl:attribute>
15984			</演:混色_6BAB>
15985		</演:细微型_6B66>
15986	</xsl:template>
15987	<!--darken	变暗(UOF_加深) 	   -->
15988	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-darken']">
15989		<演:细微型_6B66>
15990			<演:加深_6BAC>
15991				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
15992			</演:加深_6BAC>
15993		</演:细微型_6B66>
15994	</xsl:template>
15995	<!--color over by word	按文字涂色(UOF_着色)	<b1>  -->
15996	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-color-over-by-word']">
15997		<演:细微型_6B66>
15998			<演:着色_6BAD>
15999				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16000				<xsl:attribute name="颜色_6B95"><xsl:value-of select="../anim:animateColor/@smil:to"/></xsl:attribute>
16001			</演:着色_6BAD>
16002		</演:细微型_6B66>
16003	</xsl:template>
16004	<!--complementary by color	补色	   -->
16005	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-complementary-color']">
16006		<演:细微型_6B66>
16007			<演:补色_6BAE>
16008				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16009			</演:补色_6BAE>
16010		</演:细微型_6B66>
16011	</xsl:template>
16012	<!--desaturate	去色(UOF_不饱和)	   -->
16013	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-desaturate']">
16014		<演:细微型_6B66>
16015			<演:不饱和_6BAF>
16016				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16017			</演:不饱和_6BAF>
16018		</演:细微型_6B66>
16019	</xsl:template>
16020	<!--垂直突出显示-->
16021	<!--flash bulb	忽明忽暗	   -->
16022	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-flash-bulb']">
16023		<演:细微型_6B66>
16024			<演:忽明忽暗_6BB2>
16025				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16026			</演:忽明忽暗_6BB2>
16027		</演:细微型_6B66>
16028	</xsl:template>
16029	<!--bold flash	加粗闪烁	   -->
16030	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-bold-flash']">
16031		<演:细微型_6B66>
16032			<演:加粗闪烁_6BB3>
16033				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16034			</演:加粗闪烁_6BB3>
16035		</演:细微型_6B66>
16036	</xsl:template>
16037	<!--reveal underline	显示下划线(UOF_添加下划线)	<b1>  -->
16038	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-reveal-underline']">
16039		<演:细微型_6B66>
16040			<演:添加下划线_6BB4>
16041				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16042			</演:添加下划线_6BB4>
16043		</演:细微型_6B66>
16044	</xsl:template>
16045	<!-- emphasis 强调  细微型 结束-->
16046	<!-- emphasis 强调  温和型 开始-->
16047	<!--grow with color	颜色延伸(UOF_彩色延伸) 	<b1>  -->
16048	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-grow-with-color']">
16049		<演:温和型_6B6D>
16050			<演:彩色延伸_6BB5>
16051				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16052				<xsl:attribute name="颜色_6B95"><xsl:value-of select="../anim:animateColor/@smil:to"/></xsl:attribute>
16053			</演:彩色延伸_6BB5>
16054		</演:温和型_6B6D>
16055	</xsl:template>
16056	<!--flicker	闪动 	   -->
16057	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-flicker']">
16058		<演:温和型_6B6D>
16059			<演:闪动_6BB6>
16060				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16061				<xsl:attribute name="颜色_6B95"><xsl:value-of select="../anim:animateColor/@smil:to"/></xsl:attribute>
16062			</演:闪动_6BB6>
16063		</演:温和型_6B6D>
16064	</xsl:template>
16065	<!--teeter	跷跷板 	   -->
16066	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-teeter']">
16067		<演:温和型_6B6D>
16068			<演:跷跷板_6BB7>
16069				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16070				<xsl:attribute name="颜色_6B95"><xsl:value-of select="../anim:animateColor/@smil:to"/></xsl:attribute>
16071			</演:跷跷板_6BB7>
16072		</演:温和型_6B6D>
16073	</xsl:template>
16074	<!--shimmer	闪现 	<b1>  -->
16075	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-shimmer']">
16076		<演:温和型_6B6D>
16077			<演:闪现_6BB8>
16078				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16079			</演:闪现_6BB8>
16080		</演:温和型_6B6D>
16081	</xsl:template>
16082	<!-- emphasis 强调  温和型 结束-->
16083	<!-- emphasis 强调  华丽型 开始-->
16084	<!--blast	爆炸 	   -->
16085	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-blast']">
16086		<演:华丽型_6B7C>
16087			<演:爆炸_6BB9>
16088				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16089				<xsl:attribute name="颜色_6B95"><xsl:value-of select="../anim:animateColor/@smil:to"/></xsl:attribute>
16090			</演:爆炸_6BB9>
16091		</演:华丽型_6B7C>
16092	</xsl:template>
16093	<!--bold reveal	加粗显示(UOF_加粗展示) 	<b1>  -->
16094	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-bold-reveal']">
16095		<演:华丽型_6B7C>
16096			<演:加粗展示_6BBA>
16097				<xsl:attribute name="期间_6B98"/>
16098			</演:加粗展示_6BBA>
16099		</演:华丽型_6B7C>
16100	</xsl:template>
16101	<!--style emphasis	模板强调(UOF_样式强调)	   -->
16102	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-style-emphasis']">
16103		<演:华丽型_6B7C>
16104			<演:样式强调_6BBB>
16105				<xsl:attribute name="颜色_6B95"><xsl:value-of select="../anim:animateColor/@smil:to"/></xsl:attribute>
16106				<xsl:attribute name="期间_6B98"/>
16107			</演:样式强调_6BBB>
16108		</演:华丽型_6B7C>
16109	</xsl:template>
16110	<!-- wave wave	波形(UOF_波浪型) 	<b1>ooo-emphasis-wave -->
16111	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-wave']">
16112		<演:华丽型_6B7C>
16113			<演:波浪形_6BBC>
16114				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16115			</演:波浪形_6BBC>
16116		</演:华丽型_6B7C>
16117	</xsl:template>
16118	<!--blink	闪烁 	   -->
16119	<xsl:template match="@presentation:preset-id[. = 'ooo-emphasis-blink']">
16120		<演:华丽型_6B7C>
16121			<演:闪烁_6BBD>
16122				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16123			</演:闪烁_6BBD>
16124		</演:华丽型_6B7C>
16125	</xsl:template>
16126	<!-- emphasis 强调  华丽型 结束-->
16127	<!-- exit 退出-->
16128	<!--退出 基本型 开始-->
16129	<!--ooo-exit-venetian-blinds 	1 百叶窗0100-->
16130	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-venetian-blinds']">
16131		<演:基本型_6B42>
16132			<演:百叶窗_6B43>
16133				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16134				<xsl:attribute name="方向_6B45"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
16135			</演:百叶窗_6B43>
16136		</演:基本型_6B42>
16137	</xsl:template>
16138	<!-- fly out 1 飞出0101-->
16139	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-fly-out']">
16140		<演:基本型_6B42>
16141			<演:飞出_6BBF>
16142				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animate[1]/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16143				<xsl:attribute name="方向_6BC0"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">to bottom</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top-right'">to top-right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top-left'">to top-left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom-left'">to bottom-left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom-right'">to bottom-right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-right'">to right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">to left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">to top</xsl:when></xsl:choose></xsl:attribute>
16144			</演:飞出_6BBF>
16145		</演:基本型_6B42>
16146	</xsl:template>
16147	<!-- crawl out 1 缓慢移出0102-->
16148	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-crawl-out']">
16149		<演:基本型_6B42>
16150			<演:缓慢移出_6BC1>
16151				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animate[1]/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16152				<xsl:attribute name="方向_6BC2"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-right'">to right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">to left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">to top</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">to bottom</xsl:when></xsl:choose></xsl:attribute>
16153			</演:缓慢移出_6BC1>
16154		</演:基本型_6B42>
16155	</xsl:template>
16156	<!-- diamond 1 菱形0103-->
16157	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-diamond']">
16158		<演:基本型_6B42>
16159			<演:菱形_6B5D>
16160				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16161				<xsl:attribute name="方向_6B48"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
16162			</演:菱形_6B5D>
16163		</演:基本型_6B42>
16164	</xsl:template>
16165	<!-- split 1 劈裂0104-->
16166	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-split']">
16167		<演:基本型_6B42>
16168			<演:劈裂_6B5E>
16169				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16170				<xsl:attribute name="方向_6B5F"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'horizontal-out'">horizontal out</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'horizontal-in'">horizontal in</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'vertical-in'">vertical in</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'vertical-out'">vertical out</xsl:when><xsl:otherwise>horizontal out</xsl:otherwise></xsl:choose></xsl:attribute>
16171			</演:劈裂_6B5E>
16172		</演:基本型_6B42>
16173	</xsl:template>
16174	<!-- peek out 1 切出0105-->
16175	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-peek-out']">
16176		<演:基本型_6B42>
16177			<演:切出_6BC4>
16178				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16179				<xsl:attribute name="方向_6BC2"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-right'">to right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">to left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">to top</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">to bottom</xsl:when></xsl:choose></xsl:attribute>
16180			</演:切出_6BC4>
16181		</演:基本型_6B42>
16182	</xsl:template>
16183	<!--ooo-exit-wedge 	1 扇形展开0106-->
16184	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-wedge']">
16185		<演:基本型_6B42>
16186			<演:扇形展开_6B61>
16187				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16188			</演:扇形展开_6B61>
16189		</演:基本型_6B42>
16190	</xsl:template>
16191	<!-- random bars 1 随机线条0107-->
16192	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-random-bars']">
16193		<演:基本型_6B42>
16194			<演:随机线条_6B62>
16195				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16196				<xsl:attribute name="方向_6B45"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
16197			</演:随机线条_6B62>
16198		</演:基本型_6B42>
16199	</xsl:template>
16200	<!--ooo-exit-dissolve 	1 向外溶解0108-->
16201	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-dissolve']">
16202		<演:基本型_6B42>
16203			<演:向外溶解_6BC5>
16204				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16205			</演:向外溶解_6BC5>
16206		</演:基本型_6B42>
16207	</xsl:template>
16208	<!-- circle 1 圆形扩展0109-->
16209	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-circle']">
16210		<演:基本型_6B42>
16211			<演:圆形扩展_6B56>
16212				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16213				<xsl:attribute name="方向_6B48"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
16214			</演:圆形扩展_6B56>
16215		</演:基本型_6B42>
16216	</xsl:template>
16217	<!-- wipe 1 擦除0110-->
16218	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-wipe']">
16219		<演:基本型_6B42>
16220			<演:擦除_6B57>
16221				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16222				<xsl:attribute name="方向_6B58"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'from-right'">from right</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-left'">from left</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-top'">from top</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'from-bottom'">from bottom</xsl:when></xsl:choose></xsl:attribute>
16223			</演:擦除_6B57>
16224		</演:基本型_6B42>
16225	</xsl:template>
16226	<!-- box 1 盒状0111-->
16227	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-box']">
16228		<演:基本型_6B42>
16229			<演:盒状_6B47>
16230				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16231				<xsl:attribute name="方向_6B48"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
16232			</演:盒状_6B47>
16233		</演:基本型_6B42>
16234	</xsl:template>
16235	<!--ooo-exit-diagonal-squares 	1 阶梯状0112-->
16236	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-diagonal-squares']">
16237		<演:基本型_6B42>
16238			<演:阶梯状_6B49>
16239				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16240				<xsl:attribute name="方向_6B4A"><xsl:choose><xsl:when test="../@presentation:preset-sub-type = 'left-to-bottom' ">left down</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'left-to-top' ">left up</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'right-to-bottom' ">right down</xsl:when><xsl:when test="../@presentation:preset-sub-type = 'right-to-top' ">right up</xsl:when></xsl:choose></xsl:attribute>
16241			</演:阶梯状_6B49>
16242		</演:基本型_6B42>
16243	</xsl:template>
16244	<!-- wheel 1 轮子0113-->
16245	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-wheel']">
16246		<演:基本型_6B42>
16247			<演:轮子_6B4B>
16248				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16249				<xsl:attribute name="轮辐_6B4D"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
16250			</演:轮子_6B4B>
16251		</演:基本型_6B42>
16252	</xsl:template>
16253	<!-- checkerboard 1 棋盘0114-->
16254	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-checkerboard']">
16255		<演:基本型_6B42>
16256			<演:棋盘_6B4E>
16257				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16258				<xsl:attribute name="方向_6B50"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:subtype"/></xsl:attribute>
16259			</演:棋盘_6B4E>
16260		</演:基本型_6B42>
16261	</xsl:template>
16262	<!--ooo-exit-flash-once 	1 闪烁一次0115-->
16263	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-flash-once']">
16264		<演:基本型_6B42>
16265			<演:闪烁一次_6B51>
16266				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="../anim:animate/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16267			</演:闪烁一次_6B51>
16268		</演:基本型_6B42>
16269	</xsl:template>
16270	<!-- plus 1 十字形扩展0116-->
16271	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-plus']">
16272		<演:基本型_6B42>
16273			<演:十字形扩展_6B53>
16274				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16275				<xsl:attribute name="方向_6B48"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
16276			</演:十字形扩展_6B53>
16277		</演:基本型_6B42>
16278	</xsl:template>
16279	<!--ooo-exit-random 	1 随机效果0117-->
16280	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-random']">
16281		<演:基本型_6B42>
16282			<演:随机效果_6B55>
16283				<!--xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:choose><xsl:when test="parent::anim:par/anim:transitionFilter/@smil:dur"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:when><xsl:otherwise><xsl:value-of select="../anim:animate/@smil:dur"/></xsl:otherwise></xsl:choose></xsl:with-param></xsl:call-template></xsl:attribute-->
16284			</演:随机效果_6B55>
16285		</演:基本型_6B42>
16286	</xsl:template>
16287	<!--ooo-exit-disappear 	1 消失0118-->
16288	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-disappear']">
16289		<演:基本型_6B42>
16290			<演:消失_6BC7/>
16291		</演:基本型_6B42>
16292	</xsl:template>
16293	<!--退出 基本型 结束-->
16294	<!--退出 细微型 开始-->
16295	<!--SPECIAL		-->
16296	<!--fade out	淡出(UOF_渐变)	  -->
16297	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-fade-out']">
16298		<演:细微型_6B66>
16299			<演:渐变_6B67>
16300				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16301			</演:渐变_6B67>
16302		</演:细微型_6B66>
16303	</xsl:template>
16304	<!--fade out and swivel	淡出且旋转(UOF_渐变式回旋)	<b1>-->
16305	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-fade-out-and-swivel']">
16306		<演:细微型_6B66>
16307			<演:渐变式回旋_6B69>
16308				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16309			</演:渐变式回旋_6B69>
16310		</演:细微型_6B66>
16311	</xsl:template>
16312	<!--fade out and zoom	淡出且缩放(UOF_渐变式缩放)	  -->
16313	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-fade-out-and-zoom']">
16314		<演:细微型_6B66>
16315			<演:渐变式缩放_6B6A>
16316				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16317			</演:渐变式缩放_6B6A>
16318		</演:细微型_6B66>
16319	</xsl:template>
16320	<!--contract	收缩	 -->
16321	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-contract']">
16322		<演:细微型_6B66>
16323			<演:收缩_6BC8>
16324				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16325			</演:收缩_6BC8>
16326		</演:细微型_6B66>
16327	</xsl:template>
16328	<!--退出 细微型 结束-->
16329	<!--退出 温和型 开始-->
16330	<!--层叠_6BC9-->
16331	<!--pinwheel	风车(UOF_回旋) 	  -->
16332	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-pinwheel']">
16333		<演:温和型_6B6D>
16334			<演:回旋_6B75>
16335				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16336			</演:回旋_6B75>
16337		</演:温和型_6B6D>
16338	</xsl:template>
16339	<!--ascend	上升 	  -->
16340	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-ascend']">
16341		<演:温和型_6B6D>
16342			<演:上升_6B76>
16343				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16344			</演:上升_6B76>
16345		</演:温和型_6B6D>
16346	</xsl:template>
16347	<!--zoom	缩放	  -->
16348	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-zoom']">
16349		<演:温和型_6B6D>
16350			<演:缩放_6B72>
16351				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16352				<xsl:attribute name="方向_E829"/>
16353			</演:缩放_6B72>
16354		</演:温和型_6B6D>
16355	</xsl:template>
16356	<!--descend	下降	  -->
16357	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-descend']">
16358		<演:温和型_6B6D>
16359			<演:下降_6B78>
16360				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16361			</演:下降_6B78>
16362		</演:温和型_6B6D>
16363	</xsl:template>
16364	<!--unfold	展开	<b1> -->
16365	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-unfold']">
16366		<演:温和型_6B6D>
16367			<演:展开_6B6B>
16368				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16369			</演:展开_6B6B>
16370		</演:温和型_6B6D>
16371	</xsl:template>
16372	<!--turn and grow 	翻转和增长(UOF_翻转时由近及远) 	<b1>-->
16373	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-turn-and-grow ']">
16374		<演:温和型_6B6D>
16375			<演:翻转时由近及远_6BCB>
16376				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16377			</演:翻转时由近及远_6BCB>
16378		</演:温和型_6B6D>
16379	</xsl:template>
16380	<!--ease out	缓慢缩小(UOF_渐出) 	  -->
16381	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-ease-out']">
16382		<演:温和型_6B6D>
16383			<演:渐出_6BCC>
16384				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16385			</演:渐出_6BCC>
16386		</演:温和型_6B6D>
16387	</xsl:template>
16388	<!--stretchy 	伸缩	  -->
16389	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-stretchy']">
16390		<演:温和型_6B6D>
16391			<演:伸缩_6BCD>
16392				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16393			</演:伸缩_6BCD>
16394		</演:温和型_6B6D>
16395	</xsl:template>
16396	<!--sink down	下沉	  -->
16397	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-sink-down']">
16398		<演:温和型_6B6D>
16399			<演:下沉_6BCE>
16400				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16401			</演:下沉_6BCE>
16402		</演:温和型_6B6D>
16403	</xsl:template>
16404	<!--colored lettering	彩色文字(UOF_颜色打字机) 	<b1> -->
16405	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-colored-lettering']">
16406		<演:温和型_6B6D>
16407			<演:颜色打字机_6B79>
16408				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16409			</演:颜色打字机_6B79>
16410		</演:温和型_6B6D>
16411	</xsl:template>
16412	<!--center revolve	中心旋转	  -->
16413	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-center-revolve']">
16414		<演:温和型_6B6D>
16415			<演:中心旋转_6B7B>
16416				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16417			</演:中心旋转_6B7B>
16418		</演:温和型_6B6D>
16419	</xsl:template>
16420	<!--退出 温和型 结束-->
16421	<!--退出 华丽型 开始-->
16422	<!--bounce	弹跳 	 -->
16423	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-bounce']">
16424		<演:华丽型_6B7C>
16425			<演:弹跳_6B7D>
16426				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16427			</演:弹跳_6B7D>
16428		</演:华丽型_6B7C>
16429	</xsl:template>
16430	<!--boomerang	回旋(UOF_飞旋) 	 -->
16431	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-boomerang']">
16432		<演:华丽型_6B7C>
16433			<演:飞旋_6B7E>
16434				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16435			</演:飞旋_6B7E>
16436		</演:华丽型_6B7C>
16437	</xsl:template>
16438	<!--put on the breaks	暂停(UOF_光速)	  -->
16439	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-breaks']">
16440		<演:华丽型_6B7C>
16441			<演:光速_6B7F>
16442				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16443			</演:光速_6B7F>
16444		</演:华丽型_6B7C>
16445	</xsl:template>
16446	<!--挥鞭式	 -->
16447	<!--flip	翻转(UOF_空翻) 	<b1> -->
16448	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-flip']">
16449		<演:华丽型_6B7C>
16450			<演:空翻_6B81>
16451				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16452			</演:空翻_6B81>
16453		</演:华丽型_6B7C>
16454	</xsl:template>
16455	<!--sling	投掷 	  -->
16456	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-sling']">
16457		<演:华丽型_6B7C>
16458			<演:投掷_6B8E>
16459				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16460			</演:投掷_6B8E>
16461		</演:华丽型_6B7C>
16462	</xsl:template>
16463	<!--thread	穿过(UOF_线型) 	  -->
16464	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-thread']">
16465		<演:华丽型_6B7C>
16466			<演:线形_6B8F>
16467				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16468			</演:线形_6B8F>
16469		</演:华丽型_6B7C>
16470	</xsl:template>
16471	<!--swivel	旋转	 -->
16472	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-swivel']">
16473		<演:华丽型_6B7C>
16474			<演:旋转_6B84>
16475				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16476				<xsl:attribute name="方向_6B45"><xsl:value-of select="../@presentation:preset-sub-type"/></xsl:attribute>
16477			</演:旋转_6B84>
16478		</演:华丽型_6B7C>
16479	</xsl:template>
16480	<!--movie credits	片尾致谢(UOF_字幕式) 	  -->
16481	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-movie-credits']">
16482		<演:华丽型_6B7C>
16483			<演:字幕式_6B87>
16484				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16485			</演:字幕式_6B87>
16486		</演:华丽型_6B7C>
16487	</xsl:template>
16488	<!--magnify	放大 	  -->
16489	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-magnify']">
16490		<演:华丽型_6B7C>
16491			<演:放大_6B89>
16492				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16493			</演:放大_6B89>
16494		</演:华丽型_6B7C>
16495	</xsl:template>
16496	<!--float	浮动 	  -->
16497	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-float']">
16498		<演:华丽型_6B7C>
16499			<演:浮动_6B8A>
16500				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16501			</演:浮动_6B8A>
16502		</演:华丽型_6B7C>
16503	</xsl:template>
16504	<!--glide	滑翔 	  -->
16505	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-glide']">
16506		<演:华丽型_6B7C>
16507			<演:滑翔_6B8B>
16508				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16509			</演:滑翔_6B8B>
16510		</演:华丽型_6B7C>
16511	</xsl:template>
16512	<!--swish	挥舞 	<b1> -->
16513	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-swish']">
16514		<演:华丽型_6B7C>
16515			<演:挥舞_6B8C>
16516				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16517			</演:挥舞_6B8C>
16518		</演:华丽型_6B7C>
16519	</xsl:template>
16520	<!--螺旋飞出	 -->
16521	<!--spin out	旋转缩小(UOF_玩具风车)	  -->
16522	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-spin-out']">
16523		<演:华丽型_6B7C>
16524			<演:玩具风车_6B83>
16525				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16526			</演:玩具风车_6B83>
16527		</演:华丽型_6B7C>
16528	</xsl:template>
16529	<!--curve down	右牛角形(UOF_向下曲线)	  -->
16530	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-curve-down']">
16531		<演:华丽型_6B7C>
16532			<演:向下曲线_6BD0>
16533				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16534			</演:向下曲线_6BD0>
16535		</演:华丽型_6B7C>
16536	</xsl:template>
16537	<!--collapse	折叠	  -->
16538	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-collapse']">
16539		<演:华丽型_6B7C>
16540			<演:折叠_6B90>
16541				<xsl:attribute name="速度_6B44"><xsl:call-template name="anim_speed"><xsl:with-param name="speed"><xsl:value-of select="parent::anim:par/anim:transitionFilter/@smil:dur"/></xsl:with-param></xsl:call-template></xsl:attribute>
16542			</演:折叠_6B90>
16543		</演:华丽型_6B7C>
16544	</xsl:template>
16545	<!--退出 华丽型 结束-->
16546	<!--end	 -->
16547	<!--fold	折叠	  -->
16548	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-fold']">
16549		<演:华丽型_6B7C>
16550			<演:其他 uof:locID="p0119">
16551				<xsl:copy-of select="parent::node()"/>
16552			</演:其他>
16553		</演:华丽型_6B7C>
16554	</xsl:template>
16555	<!--whip	抖动 	<b1> -->
16556	<xsl:template match="@presentation:preset-id[. = 'ooo-exit-whip']">
16557		<演:华丽型_6B7C>
16558			<演:其他 uof:locID="p0119">
16559				<xsl:copy-of select="parent::node()"/>
16560			</演:其他>
16561		</演:华丽型_6B7C>
16562	</xsl:template>
16563	<xsl:template name="ColorschemesRO">
16564		<规则:配色方案_6BE4>
16565			<xsl:attribute name="标识符_6B0A">标识符</xsl:attribute>
16566			<xsl:attribute name="名称_6B0B">名称</xsl:attribute>
16567			<!--xsl:if test="">
16568					<xsl:element name="演:背景色_6B02"/>
16569				</xsl:if>
16570				<xsl:if test="">
16571					<xsl:element name="演:文本和线条_6B03"/>
16572				</xsl:if>
16573				<xsl:if test="">
16574					<xsl:element name="演:阴影_6B04"/>
16575				</xsl:if>
16576				<xsl:if test="">
16577					<xsl:element name="演:标题文本_6B05"/>
16578				</xsl:if>
16579				<xsl:if test="">
16580					<xsl:element name="演:填充_6B06"/>
16581				</xsl:if>
16582				<xsl:if test="">
16583					<xsl:element name="演:强调_6B07"/>
16584				</xsl:if>
16585				<xsl:if test="">
16586					<xsl:element name="演:强调和超级链接_6B08"/>
16587				</xsl:if>
16588				<xsl:if test="">
16589					<xsl:element name="演:强调和尾随超级链接_6B09"/>
16590				</xsl:if-->
16591		</规则:配色方案_6BE4>
16592	</xsl:template>
16593</xsl:stylesheet>
16594