1<?xml version="1.0" encoding="UTF-8"?> 2<!--*********************************************************** 3 * 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 10 * with the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 * KIND, either express or implied. See the License for the 18 * specific language governing permissions and limitations 19 * under the License. 20 * 21 ***********************************************************--> 22<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:uof="http://schemas.uof.org/cn/2003/uof" xmlns:表="http://schemas.uof.org/cn/2003/uof-spreadsheet" xmlns:演="http://schemas.uof.org/cn/2003/uof-slideshow" xmlns:字="http://schemas.uof.org/cn/2003/uof-wordproc" xmlns:图="http://schemas.uof.org/cn/2003/graph" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:smil="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0" xmlns:anim="urn:oasis:names:tc:opendocument:xmlns:animation:1.0" office:version="1.0"> 23 <xsl:output method="xml" indent="no" encoding="UTF-8" version="1.0"/> 24 <xsl:template match="uof:UOF"> 25 <office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:smil="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0" xmlns:anim="urn:oasis:names:tc:opendocument:xmlns:animation:1.0" office:version="1.0"> 26 <xsl:apply-templates select="uof:元数据"/> 27 <office:settings> 28 <xsl:variable name="PageNumberFormat" select="/uof:UOF/uof:演示文稿/演:公用处理规则/演:页面设置集/演:页面设置/演:页码格式[1]"/> 29 <xsl:variable name="proportion"> 30 <xsl:value-of select="substring-before(/uof:UOF/uof:演示文稿/演:公用处理规则/演:显示比例,'%')"/> 31 </xsl:variable> 32 <config:config-item-set config:name="ooo:view-settings"> 33 <config:config-item config:name="VisibleAreaTop" config:type="int">0</config:config-item> 34 <config:config-item config:name="VisibleAreaLeft" config:type="int">0</config:config-item> 35 <config:config-item config:name="VisibleAreaWidth" config:type="int">14098</config:config-item> 36 <config:config-item config:name="VisibleAreaHeight" config:type="int">9998</config:config-item> 37 <config:config-item-map-indexed config:name="Views"> 38 <config:config-item-map-entry> 39 <config:config-item config:name="ViewId" config:type="string">view1</config:config-item> 40 <config:config-item config:name="GridIsVisible" config:type="boolean">false</config:config-item> 41 <config:config-item config:name="GridIsFront" config:type="boolean">false</config:config-item> 42 <config:config-item config:name="IsSnapToGrid" config:type="boolean">true</config:config-item> 43 <config:config-item config:name="IsSnapToPageMargins" config:type="boolean">true</config:config-item> 44 <config:config-item config:name="IsSnapToSnapLines" config:type="boolean">false</config:config-item> 45 <config:config-item config:name="IsSnapToObjectFrame" config:type="boolean">false</config:config-item> 46 <config:config-item config:name="IsSnapToObjectPoints" config:type="boolean">false</config:config-item> 47 <config:config-item config:name="IsPlusHandlesAlwaysVisible" config:type="boolean">false</config:config-item> 48 <config:config-item config:name="IsFrameDragSingles" config:type="boolean">true</config:config-item> 49 <config:config-item config:name="EliminatePolyPointLimitAngle" config:type="int">1500</config:config-item> 50 <config:config-item config:name="IsEliminatePolyPoints" config:type="boolean">false</config:config-item> 51 <config:config-item config:name="VisibleLayers" config:type="base64Binary">//////////////////////////////////////////8=</config:config-item> 52 <config:config-item config:name="PrintableLayers" config:type="base64Binary">//////////////////////////////////////////8=</config:config-item> 53 <config:config-item config:name="LockedLayers" config:type="base64Binary"/> 54 <config:config-item config:name="NoAttribs" config:type="boolean">false</config:config-item> 55 <config:config-item config:name="NoColors" config:type="boolean">true</config:config-item> 56 <config:config-item config:name="RulerIsVisible" config:type="boolean">false</config:config-item> 57 <config:config-item config:name="PageKind" config:type="short">0</config:config-item> 58 <config:config-item config:name="SelectedPage" config:type="short">0</config:config-item> 59 <config:config-item config:name="IsLayerMode" config:type="boolean">false</config:config-item> 60 <config:config-item config:name="IsBigHandles" config:type="boolean">false</config:config-item> 61 <config:config-item config:name="IsDoubleClickTextEdit" config:type="boolean">true</config:config-item> 62 <config:config-item config:name="IsClickChangeRotation" config:type="boolean">false</config:config-item> 63 <config:config-item config:name="SlidesPerRow" config:type="short">4</config:config-item> 64 <config:config-item config:name="EditModeStandard" config:type="int">0</config:config-item> 65 <config:config-item config:name="EditModeNotes" config:type="int">0</config:config-item> 66 <config:config-item config:name="EditModeHandout" config:type="int">1</config:config-item> 67 <config:config-item config:name="VisibleAreaTop" config:type="int">-5402</config:config-item> 68 <config:config-item config:name="VisibleAreaLeft" config:type="int">-441</config:config-item> 69 <config:config-item config:name="VisibleAreaWidth" config:type="int"> 70 <xsl:value-of select="(100*13997) div $proportion"/> 71 </config:config-item> 72 <config:config-item config:name="VisibleAreaHeight" config:type="int"> 73 <xsl:value-of select="(100*15426) div $proportion"/> 74 </config:config-item> 75 <config:config-item config:name="GridCoarseWidth" config:type="int">1000</config:config-item> 76 <config:config-item config:name="GridCoarseHeight" config:type="int">1000</config:config-item> 77 <config:config-item config:name="GridFineWidth" config:type="int">500</config:config-item> 78 <config:config-item config:name="GridFineHeight" config:type="int">500</config:config-item> 79 <config:config-item config:name="GridSnapWidth" config:type="int">1000</config:config-item> 80 <config:config-item config:name="GridSnapHeight" config:type="int">1000</config:config-item> 81 <config:config-item config:name="GridSnapWidthXNumerator" config:type="int">500</config:config-item> 82 <config:config-item config:name="GridSnapWidthXDenominator" config:type="int">1</config:config-item> 83 <config:config-item config:name="GridSnapWidthYNumerator" config:type="int">500</config:config-item> 84 <config:config-item config:name="GridSnapWidthYDenominator" config:type="int">1</config:config-item> 85 <config:config-item config:name="IsAngleSnapEnabled" config:type="boolean">false</config:config-item> 86 <config:config-item config:name="SnapAngle" config:type="int">1500</config:config-item> 87 <config:config-item config:name="ZoomOnPage" config:type="boolean">true</config:config-item> 88 </config:config-item-map-entry> 89 </config:config-item-map-indexed> 90 </config:config-item-set> 91 <config:config-item-set config:name="ooo:configuration-settings"> 92 <config:config-item config:name="PageNumberFormat" config:type="int"> 93 <xsl:choose> 94 <xsl:when test="/uof:UOF/uof:演示文稿/演:公用处理规则/演:页面设置集/演:页面设置/演:页码格式"> 95 <xsl:choose> 96 <xsl:when test="$PageNumberFormat='upper-letter'">0</xsl:when> 97 <xsl:when test="$PageNumberFormat='lower-letter'">1</xsl:when> 98 <xsl:when test="$PageNumberFormat='upper-roman'">2</xsl:when> 99 <xsl:when test="$PageNumberFormat='lower-letter'">3</xsl:when> 100 <xsl:when test="$PageNumberFormat='decimal'">4</xsl:when> 101 </xsl:choose> 102 </xsl:when> 103 <xsl:otherwise>5</xsl:otherwise> 104 </xsl:choose> 105 </config:config-item> 106 </config:config-item-set> 107 </office:settings> 108 <office:scripts/> 109 <xsl:element name="office:font-face-decls"> 110 <style:font-face style:name="宋体" svg:font-family="宋体" style:font-family-generic="swiss" style:font-pitch="variable"/> 111 <xsl:apply-templates select="uof:式样集/uof:字体集"/> 112 </xsl:element> 113 <office:styles> 114 <xsl:apply-templates select="uof:演示文稿/演:公用处理规则/演:页面版式集/演:页面版式"/> 115 <xsl:call-template name="编号字体"/> 116 <xsl:for-each select="uof:式样集/uof:段落式样"> 117 <xsl:variable name="outline" select="@字:标识符"/> 118 <xsl:choose> 119 <xsl:when test="/uof:UOF/uof:式样集/uof:自动编号集/字:自动编号[@字:标识符=$outline]"> 120 <xsl:call-template name="段落式样"/> 121 </xsl:when> 122 <xsl:when test="contains($outline,'outline')"> 123 <xsl:call-template name="段落式样"/> 124 </xsl:when> 125 </xsl:choose> 126 </xsl:for-each> 127 </office:styles> 128 <office:automatic-styles> 129 <xsl:apply-templates select="uof:演示文稿/演:公用处理规则/演:配色方案集/演:配色方案"/> 130 <xsl:apply-templates select="uof:式样集/uof:句式样"/> 131 <xsl:for-each select="uof:式样集/uof:段落式样"> 132 <xsl:variable name="outline" select="@字:标识符"/> 133 <xsl:if test="not(/uof:UOF/uof:式样集/uof:自动编号集/字:自动编号[@字:标识符=$outline]) and not(contains($outline,'outline'))"> 134 <xsl:call-template name="段落式样"/> 135 </xsl:if> 136 </xsl:for-each> 137 <xsl:apply-templates select="uof:对象集"/> 138 <xsl:call-template name="create-page-master"> 139 <xsl:with-param name="impressoptions" select="uof:演示文稿/演:公用处理规则/演:页面设置集/演:页面设置"/> 140 </xsl:call-template> 141 <xsl:for-each select="/uof:UOF/uof:对象集/图:图形/图:文本内容/字:段落/字:段落属性/字:自动编号信息"> 142 <xsl:variable name="currlistid" select="@字:编号引用"/> 143 <xsl:variable name="currlist" select="."/> 144 <xsl:variable name="rootlist" select="/uof:UOF/uof:式样集/uof:自动编号集/字:自动编号[@字:标识符 =$currlistid]"/> 145 <xsl:if test="not(ancestor::字:段落/preceding-sibling::字:段落[1]/字:段落属性/字:自动编号信息/@字:编号引用= $currlistid)"> 146 <xsl:element name="text:list-style"> 147 <xsl:attribute name="style:name">List<xsl:value-of select="count(preceding::字:自动编号信息)"/></xsl:attribute> 148 <xsl:for-each select="$rootlist"> 149 <xsl:call-template name="自动编号"/> 150 </xsl:for-each> 151 </xsl:element> 152 </xsl:if> 153 </xsl:for-each> 154 </office:automatic-styles> 155 <office:master-styles> 156 <xsl:apply-templates select="uof:演示文稿/演:主体/演:母版集"/> 157 </office:master-styles> 158 <office:body> 159 <office:presentation> 160 <xsl:apply-templates select="uof:演示文稿/演:主体/演:幻灯片集"/> 161 <xsl:apply-templates select="uof:演示文稿/演:公用处理规则/演:放映设置"/> 162 </office:presentation> 163 </office:body> 164 </office:document> 165 </xsl:template> 166 <xsl:template match="演:放映设置"> 167 <presentation:settings> 168 <xsl:variable name="start-page"> 169 <xsl:choose> 170 <xsl:when test="contains(演:幻灯片序列,' ')"> 171 <xsl:value-of select="substring-before(演:幻灯片序列,' ')"/> 172 </xsl:when> 173 <xsl:otherwise> 174 <xsl:value-of select="演:幻灯片序列"/> 175 </xsl:otherwise> 176 </xsl:choose> 177 </xsl:variable> 178 <xsl:variable name="first-page"> 179 <xsl:value-of select="/uof:UOF/uof:演示文稿/演:主体/演:幻灯片集/演:幻灯片[1]/@演:名称"/> 180 </xsl:variable> 181 <xsl:if test="not($start-page = $first-page)"> 182 <xsl:attribute name="presentation:start-page"><xsl:value-of select="$start-page"/></xsl:attribute> 183 </xsl:if> 184 <xsl:if test="演:全屏放映='false'"> 185 <xsl:attribute name="presentation:full-screen">false</xsl:attribute> 186 </xsl:if> 187 <xsl:if test="演:循环放映='true'"> 188 <xsl:attribute name="presentation:endless">true</xsl:attribute> 189 </xsl:if> 190 <xsl:if test="演:放映间隔"> 191 <xsl:attribute name="presentation:pause"><xsl:variable name="OOtime"><xsl:value-of select="substring-after(演:放映间隔,'P0Y0M0DT')"/></xsl:variable><xsl:value-of select="concat('PT',$OOtime)"/></xsl:attribute> 192 </xsl:if> 193 <xsl:if test="演:手动方式='true'"> 194 <xsl:attribute name="presentation:force-manual">true</xsl:attribute> 195 </xsl:if> 196 <xsl:if test="演:导航帮助='true'"> 197 <xsl:attribute name="presentation:start-with-navigator">true</xsl:attribute> 198 </xsl:if> 199 <xsl:if test="演:放映动画='false'"> 200 <xsl:attribute name="presentation:animations">disabled</xsl:attribute> 201 </xsl:if> 202 <xsl:if test="演:前端显示='true'"> 203 <xsl:attribute name="presentation:stay-on-top">true</xsl:attribute> 204 </xsl:if> 205 </presentation:settings> 206 </xsl:template> 207 <xsl:template name="自动编号"> 208 <xsl:for-each select="字:级别"> 209 <xsl:choose> 210 <xsl:when test="字:项目符号"> 211 <xsl:call-template name="xiangmufuhao"> 212 <xsl:with-param name="biaoshifu" select="../@字:标识符"/> 213 </xsl:call-template> 214 </xsl:when> 215 <xsl:when test="字:图片符号引用"> 216 <xsl:call-template name="imagefuhao"> 217 <xsl:with-param name="biaoshifu" select="../@字:标识符"/> 218 </xsl:call-template> 219 </xsl:when> 220 <xsl:otherwise> 221 <xsl:call-template name="jibianhao"> 222 <xsl:with-param name="biaoshifu" select="../@字:标识符"/> 223 </xsl:call-template> 224 </xsl:otherwise> 225 </xsl:choose> 226 </xsl:for-each> 227 </xsl:template> 228 <xsl:template name="编号字体"> 229 <xsl:for-each select="/uof:UOF/uof:式样集/uof:自动编号集/字:自动编号"> 230 <xsl:if test="字:级别/字:符号字体"> 231 <xsl:element name="style:style"> 232 <xsl:attribute name="style:name"><xsl:value-of select="concat( @字:标识符,字:级别/@字:级别值)"/></xsl:attribute> 233 <xsl:attribute name="style:family">text</xsl:attribute> 234 <xsl:element name="style:text-properties"> 235 <xsl:attribute name="fo:color"><xsl:value-of select="字:级别/字:符号字体/字:字体/@字:颜色"/></xsl:attribute> 236 <xsl:if test="字:级别/字:符号字体/字:粗体 and 字:级别/字:符号字体/字:粗体/@字:值='true'"> 237 <xsl:attribute name="fo:font-weight">bold</xsl:attribute> 238 <xsl:attribute name="style:font-style-asian">bold</xsl:attribute> 239 </xsl:if> 240 <xsl:variable name="ziti"> 241 <xsl:value-of select="字:级别/字:符号字体/字:字体/@字:中文字体引用"/> 242 </xsl:variable> 243 <xsl:for-each select="/uof:UOF/uof:式样集/uof:字体集/uof:字体声明"> 244 <xsl:if test="@uof:标识符=$ziti"> 245 <xsl:attribute name="style:font-name"><xsl:value-of select="@uof:名称"/></xsl:attribute> 246 </xsl:if> 247 </xsl:for-each> 248 <xsl:attribute name="fo:font-style">normal</xsl:attribute> 249 <xsl:attribute name="style:font-weight-asian">normal</xsl:attribute> 250 </xsl:element> 251 </xsl:element> 252 </xsl:if> 253 </xsl:for-each> 254 </xsl:template> 255 <xsl:template match="uof:对象集"> 256 <xsl:apply-templates select="图:图形"/> 257 <xsl:apply-templates select="图:图形/图:文本内容/字:段落/字:句/字:句属性" mode="style"/> 258 </xsl:template> 259 <xsl:variable name="uofUnit"> 260 <xsl:variable name="uu"> 261 <xsl:value-of select="/uof:UOF/uof:演示文稿/演:公用处理规则/演:度量单位"/> 262 </xsl:variable> 263 <xsl:choose> 264 <xsl:when test="$uu='cm'">cm</xsl:when> 265 <xsl:when test="$uu='mm'">mm</xsl:when> 266 <xsl:when test="$uu='pt'">pt</xsl:when> 267 <xsl:when test="$uu='inch'">inch</xsl:when> 268 <xsl:otherwise>pt</xsl:otherwise> 269 </xsl:choose> 270 </xsl:variable> 271 <xsl:variable name="other-to-cm-conversion-factor"> 272 <xsl:choose> 273 <xsl:when test="$uofUnit='cm'">1</xsl:when> 274 <xsl:when test="$uofUnit='mm'">0.1</xsl:when> 275 <xsl:when test="$uofUnit='pt'">0.03527</xsl:when> 276 <xsl:when test="$uofUnit='inch'">2.54</xsl:when> 277 <xsl:when test="$uofUnit='pica'">0.4233</xsl:when> 278 <xsl:otherwise>1</xsl:otherwise> 279 </xsl:choose> 280 </xsl:variable> 281 <xsl:key match="/uof:UOF/uof:演示文稿/演:主体/演:母版集/演:母版/uof:锚点 | /uof:UOF/uof:演示文稿/演:主体/演:幻灯片集/演:幻灯片/uof:锚点 | /uof:UOF/uof:演示文稿/演:主体/演:幻灯片集/演:幻灯片/演:幻灯片备注/uof:锚点" name="rel_graphic_name" use="@uof:图形引用"/> 282 <xsl:template match="图:图形"> 283 <xsl:variable name="random-name"> 284 <xsl:value-of select="generate-id()"/> 285 </xsl:variable> 286 <xsl:variable name="draw-name"> 287 <xsl:value-of select="substring($random-name,string-length($random-name)-1)"/> 288 </xsl:variable> 289 <xsl:call-template name="graphic-fill"> 290 <xsl:with-param name="draw-name" select="$draw-name"/> 291 <xsl:with-param name="gradient-name" select="图:预定义图形/图:属性/图:填充/图:渐变"/> 292 </xsl:call-template> 293 <xsl:variable name="biaozhifu" select="@图:标识符"/> 294 <xsl:choose> 295 <xsl:when test="图:预定义图形/图:属性/图:填充/图:渐变"> 296 <xsl:element name="style:style"> 297 <xsl:attribute name="style:name"><xsl:value-of select="@图:标识符"/></xsl:attribute> 298 <xsl:attribute name="style:family"><xsl:choose><xsl:when test="图:预定义图形/图:类别='3' or 图:预定义图形/图:类别='67'">presentation</xsl:when><xsl:otherwise>graphic</xsl:otherwise></xsl:choose></xsl:attribute> 299 <xsl:if test="/uof:UOF/uof:演示文稿/演:主体/演:母版集/演:母版/uof:锚点[@uof:图形引用=$biaozhifu]"> 300 <xsl:variable name="duan" select="图:文本内容/字:段落/字:段落属性/@字:式样引用"/> 301 <xsl:attribute name="style:parent-style-name"><xsl:value-of select="/uof:UOF/uof:式样集/uof:段落式样[@字:标识符=$duan]/@字:基式样引用"/></xsl:attribute> 302 </xsl:if> 303 <xsl:element name="style:graphic-properties"> 304 <xsl:call-template name="process-graphics"> 305 <xsl:with-param name="draw-name" select="$draw-name"/> 306 </xsl:call-template> 307 </xsl:element> 308 </xsl:element> 309 </xsl:when> 310 <xsl:otherwise> 311 <xsl:element name="style:style"> 312 <xsl:attribute name="style:name"><xsl:value-of select="@图:标识符"/></xsl:attribute> 313 <xsl:attribute name="style:family"><xsl:choose><xsl:when test="图:预定义图形/图:类别='3' or 图:预定义图形/图:类别='67'">presentation</xsl:when><xsl:otherwise>graphic</xsl:otherwise></xsl:choose></xsl:attribute> 314 <xsl:if test="/uof:UOF/uof:演示文稿/演:主体/演:母版集/演:母版/uof:锚点[@uof:图形引用=$biaozhifu]"> 315 <xsl:variable name="duan" select="图:文本内容/字:段落/字:段落属性/@字:式样引用"/> 316 <xsl:attribute name="style:parent-style-name"><xsl:value-of select="/uof:UOF/uof:式样集/uof:段落式样[@字:标识符=$duan]/@字:基式样引用"/></xsl:attribute> 317 </xsl:if> 318 <xsl:element name="style:graphic-properties"> 319 <xsl:if test="@图:其他对象"> 320 <xsl:attribute name="fo:clip">rect(0cm 0cm 0cm 0cm)</xsl:attribute> 321 <xsl:attribute name="draw:color-mode">standard</xsl:attribute> 322 <xsl:attribute name="draw:luminance">0%</xsl:attribute> 323 <xsl:attribute name="draw:contrast">0%</xsl:attribute> 324 <xsl:attribute name="draw:gamma">100%</xsl:attribute> 325 <xsl:attribute name="draw:red">0%</xsl:attribute> 326 <xsl:attribute name="draw:green">0%</xsl:attribute> 327 <xsl:attribute name="draw:blue">0%</xsl:attribute> 328 <xsl:attribute name="draw:image-opacity">100%</xsl:attribute> 329 <xsl:attribute name="style:mirror">none</xsl:attribute> 330 </xsl:if> 331 <xsl:call-template name="process-graphics"/> 332 </xsl:element> 333 <xsl:if test="图:文本内容/@图:文字排列方向='vert-r2l' or 图:文本内容/@图:文字排列方向='vert-l2r'"> 334 <xsl:element name="style:paragraph-properties"> 335 <xsl:attribute name="style:writing-mode">tb-rl</xsl:attribute> 336 </xsl:element> 337 </xsl:if> 338 </xsl:element> 339 </xsl:otherwise> 340 </xsl:choose> 341 </xsl:template> 342 <xsl:template name="process-graphics"> 343 <xsl:param name="draw-name"/> 344 <xsl:if test="not(key('rel_graphic_name',@图:标识符)/@uof:随动方式='movesize')"> 345 <xsl:attribute name="style:protect"><xsl:choose><xsl:when test="key('rel_graphic_name',@图:标识符)/@uof:随动方式='move'">size</xsl:when><xsl:otherwise>position size</xsl:otherwise></xsl:choose></xsl:attribute> 346 </xsl:if> 347 <xsl:choose> 348 <xsl:when test="not(图:预定义图形/图:属性/图:填充)"> 349 <xsl:attribute name="draw:fill">none</xsl:attribute> 350 </xsl:when> 351 <xsl:when test="图:预定义图形/图:属性/图:填充/图:图片"> 352 <xsl:attribute name="draw:fill">bitmap</xsl:attribute> 353 <xsl:attribute name="draw:fill-image-name"><xsl:value-of select="图:预定义图形/图:属性/图:填充/图:图片/@图:名称"/></xsl:attribute> 354 <xsl:if test="not(图:预定义图形/图:属性/图:填充/图:图片/@图:位置='title')"> 355 <xsl:attribute name="style:repeat"><xsl:choose><xsl:when test="图:预定义图形/图:属性/图:填充/图:图片/@图:位置='center'">no-repeat</xsl:when><xsl:when test="图:预定义图形/图:属性/图:填充/图:图片/@图:位置='stretch'">stretch</xsl:when></xsl:choose></xsl:attribute> 356 </xsl:if> 357 </xsl:when> 358 <xsl:when test="图:预定义图形/图:属性/图:填充/图:图案"> 359 <xsl:attribute name="draw:fill">bitmap</xsl:attribute> 360 <xsl:attribute name="draw:fill-color"><xsl:value-of select="图:预定义图形/图:属性/图:填充/图:图案/@图:前景色"/></xsl:attribute> 361 </xsl:when> 362 <xsl:when test="图:预定义图形/图:属性/图:填充/图:颜色"> 363 <xsl:attribute name="draw:fill">solid</xsl:attribute> 364 <xsl:attribute name="draw:fill-color"><xsl:value-of select="图:预定义图形/图:属性/图:填充/图:颜色"/></xsl:attribute> 365 </xsl:when> 366 <xsl:when test="图:预定义图形/图:属性/图:填充/图:渐变"> 367 <xsl:attribute name="draw:fill">gradient</xsl:attribute> 368 <xsl:attribute name="draw:fill-color"><xsl:value-of select="图:预定义图形/图:属性/图:填充/图:渐变/@图:起始色"/></xsl:attribute> 369 <xsl:attribute name="draw:fill-gradient-name"><xsl:value-of select="concat('Gradient ',$draw-name)"/></xsl:attribute> 370 </xsl:when> 371 </xsl:choose> 372 <xsl:if test="图:预定义图形/图:属性/图:线颜色"> 373 <xsl:attribute name="svg:stroke-color"><xsl:value-of select="图:预定义图形/图:属性/图:线颜色"/></xsl:attribute> 374 </xsl:if> 375 <xsl:if test="图:预定义图形/图:属性/图:线型 and not(图:预定义图形/图:属性/图:线型 = 'single') and not(图:预定义图形/图:属性/图:线型 = 'thick')"> 376 <xsl:variable name="linetype" select="图:预定义图形/图:属性/图:线型"/> 377 <xsl:attribute name="draw:stroke"><xsl:choose><xsl:when test="$linetype='none'">none</xsl:when><xsl:otherwise>dash</xsl:otherwise></xsl:choose></xsl:attribute> 378 <xsl:attribute name="draw:stroke-dash"><xsl:choose><xsl:when test="$linetype='dot-dot-dash' or $linetype='dash-dot-dot-heavy'">_32__20_Dots_20_1_20_Dash</xsl:when><xsl:when test="$linetype='dash' or $linetype='dashed-heavy'">Ultrafine_20_Dashed</xsl:when><xsl:when test="$linetype='dotted' or $linetype='dotted-heavy'">Ultrafine_20_Dotted_20__28_var_29_</xsl:when><xsl:when test="$linetype='double'">Line_20_with_20_Fine_20_Dots</xsl:when><xsl:when test="$linetype='dot-dash' or $linetype='dash-dot-heavy'">_33__20_Dashes_20_3_20_Dots_20__28_var_29_</xsl:when><xsl:when test="$linetype='wave' or $linetype='wavy-heavy'">Ultrafine_20_2_20_Dots_20_3_20_Dashes</xsl:when><xsl:when test="$linetype='wavy-double'">Fine_20_Dashed_20__28_var_29_</xsl:when><xsl:otherwise>Fine Dashed</xsl:otherwise></xsl:choose></xsl:attribute> 379 </xsl:if> 380 <xsl:if test="图:预定义图形/图:属性/图:线粗细"> 381 <xsl:attribute name="svg:stroke-width"><xsl:value-of select="concat(图:预定义图形/图:属性/图:线粗细,$uofUnit)"/></xsl:attribute> 382 </xsl:if> 383 <xsl:if test="图:预定义图形/图:属性/图:前端箭头"> 384 <xsl:attribute name="draw:marker-start"><xsl:choose><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:式样='normal'">Arrow</xsl:when><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:式样='open'">Line_20_Arrow</xsl:when><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:式样='stealth'">Arrow_20_concave</xsl:when><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:式样='oval'">Circle</xsl:when><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:式样='diamond'">Square_20_45</xsl:when></xsl:choose></xsl:attribute> 385 <xsl:if test="图:预定义图形/图:属性/图:前端箭头/图:大小"> 386 <xsl:attribute name="draw:marker-start-width"><xsl:choose><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:大小 = '1'"><xsl:value-of select="concat('0.05',$uofUnit)"/></xsl:when><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:大小 = '2'"><xsl:value-of select="concat('0.10',$uofUnit)"/></xsl:when><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:大小 = '3'"><xsl:value-of select="concat('0.15',$uofUnit)"/></xsl:when><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:大小 = '4'"><xsl:value-of select="concat('0.20',$uofUnit)"/></xsl:when><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:大小 = '5'"><xsl:value-of select="concat('0.25',$uofUnit)"/></xsl:when><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:大小 = '6'"><xsl:value-of select="concat('0.30',$uofUnit)"/></xsl:when><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:大小 = '7'"><xsl:value-of select="concat('0.35',$uofUnit)"/></xsl:when><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:大小 = '8'"><xsl:value-of select="concat('0.40',$uofUnit)"/></xsl:when><xsl:otherwise><xsl:value-of select="concat('0.45',$uofUnit)"/></xsl:otherwise></xsl:choose></xsl:attribute> 387 </xsl:if> 388 </xsl:if> 389 <xsl:if test="图:预定义图形/图:属性/图:后端箭头"> 390 <xsl:attribute name="draw:marker-end"><xsl:choose><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:式样='normal'">Arrow</xsl:when><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:式样='open'">Line_20_Arrow</xsl:when><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:式样='stealth'">Arrow_20_concave</xsl:when><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:式样='oval'">Circle</xsl:when><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:式样='diamond'">Square_20_45</xsl:when></xsl:choose></xsl:attribute> 391 <xsl:if test="图:预定义图形/图:属性/图:后端箭头/图:大小"> 392 <xsl:attribute name="draw:marker-end-width"><xsl:choose><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:大小 = '1'"><xsl:value-of select="concat('0.05',$uofUnit)"/></xsl:when><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:大小 = '2'"><xsl:value-of select="concat('0.10',$uofUnit)"/></xsl:when><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:大小 = '3'"><xsl:value-of select="concat('0.15',$uofUnit)"/></xsl:when><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:大小 = '4'"><xsl:value-of select="concat('0.20',$uofUnit)"/></xsl:when><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:大小 = '5'"><xsl:value-of select="concat('0.25',$uofUnit)"/></xsl:when><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:大小 = '6'"><xsl:value-of select="concat('0.30',$uofUnit)"/></xsl:when><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:大小 = '7'"><xsl:value-of select="concat('0.35',$uofUnit)"/></xsl:when><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:大小 = '8'"><xsl:value-of select="concat('0.40',$uofUnit)"/></xsl:when><xsl:otherwise><xsl:value-of select="concat('0.45',$uofUnit)"/></xsl:otherwise></xsl:choose></xsl:attribute> 393 </xsl:if> 394 </xsl:if> 395 <xsl:if test="图:预定义图形/图:属性/图:透明度"> 396 <xsl:attribute name="draw:opacity"><xsl:variable name="opacity"><xsl:value-of select="./图:预定义图形/图:属性/图:透明度"/></xsl:variable><xsl:value-of select="concat((1 - $opacity)*100,'%')"/></xsl:attribute> 397 </xsl:if> 398 <xsl:if test="图:文本内容"> 399 <xsl:for-each select="图:文本内容"> 400 <xsl:if test="@图:上边距"> 401 <xsl:attribute name="fo:padding-top"><xsl:value-of select="concat(@图:上边距,$uofUnit)"/></xsl:attribute> 402 <xsl:attribute name="fo:padding-bottom"><xsl:value-of select="concat(@图:下边距,$uofUnit)"/></xsl:attribute> 403 <xsl:attribute name="fo:padding-left"><xsl:value-of select="concat(@图:左边距,$uofUnit)"/></xsl:attribute> 404 <xsl:attribute name="fo:padding-right"><xsl:value-of select="concat(@图:右边距,$uofUnit)"/></xsl:attribute> 405 </xsl:if> 406 <xsl:if test="not(@图:文字排列方向='middle')"> 407 <xsl:variable name="hori-or-vert" select="@图:文字排列方向"/> 408 <xsl:choose> 409 <xsl:when test="$hori-or-vert='vert-l2r'"> 410 <xsl:attribute name="draw:textarea-vertical-align">bottom</xsl:attribute> 411 </xsl:when> 412 <xsl:when test="$hori-or-vert='hori-l2r'"> 413 <xsl:attribute name="draw:textarea-horizontal-align">left</xsl:attribute> 414 </xsl:when> 415 <xsl:when test="$hori-or-vert='hori-r2l'"> 416 <xsl:attribute name="draw:textarea-horizontal-align">right</xsl:attribute> 417 </xsl:when> 418 <xsl:otherwise> 419 <xsl:value-of select="$hori-or-vert"/> 420 </xsl:otherwise> 421 </xsl:choose> 422 </xsl:if> 423 <xsl:if test="@图:自动换行"> 424 <xsl:attribute name="fo:wrap-option">no-wrap</xsl:attribute> 425 </xsl:if> 426 <xsl:attribute name="draw:auto-grow-width"><xsl:choose><xsl:when test="@图:大小适应文字">true</xsl:when><xsl:otherwise>false</xsl:otherwise></xsl:choose></xsl:attribute> 427 </xsl:for-each> 428 </xsl:if> 429 </xsl:template> 430 <xsl:template name="bina_graphic"> 431 <xsl:param name="refGraphic"/> 432 <xsl:element name="office:binary-data"> 433 <xsl:for-each select="/uof:UOF/uof:对象集/uof:其他对象[@uof:标识符 = $refGraphic]"> 434 <xsl:value-of select="uof:数据"/> 435 </xsl:for-each> 436 </xsl:element> 437 <text:p/> 438 </xsl:template> 439 <xsl:template name="graphic-fill"> 440 <xsl:param name="draw-name"/> 441 <xsl:param name="gradient-name"/> 442 <xsl:if test="图:预定义图形/图:属性/图:填充/图:渐变"> 443 <xsl:element name="draw:gradient"> 444 <xsl:attribute name="draw:name"><xsl:value-of select="concat('Gradient ',$draw-name)"/></xsl:attribute> 445 <xsl:attribute name="draw:style"><xsl:choose><xsl:when test="$gradient-name/@图:种子类型='linear'"><xsl:value-of select="'linear'"/></xsl:when><xsl:when test="$gradient-name/@图:种子类型='radar'"><xsl:value-of select="'radial'"/></xsl:when><xsl:when test="$gradient-name/@图:种子类型='oval'"><xsl:value-of select="'ellipsoid'"/></xsl:when><xsl:when test="$gradient-name/@图:种子类型='square'"><xsl:value-of select="'square'"/></xsl:when><xsl:when test="$gradient-name/@图:种子类型='rectangle'"><xsl:value-of select="'rectangular'"/></xsl:when></xsl:choose></xsl:attribute> 446 <xsl:attribute name="draw:start-color"><xsl:value-of select="$gradient-name/@图:起始色"/></xsl:attribute> 447 <xsl:attribute name="draw:end-color"><xsl:value-of select="$gradient-name/@图:终止色"/></xsl:attribute> 448 <xsl:attribute name="draw:start-intensity"><xsl:value-of select="concat($gradient-name/@图:起始浓度,'%')"/></xsl:attribute> 449 <xsl:attribute name="draw:end-intensity"><xsl:value-of select="concat($gradient-name/@图:终止浓度,'%')"/></xsl:attribute> 450 <xsl:attribute name="draw:angle"><xsl:value-of select="$gradient-name/@图:渐变方向 * 10"/></xsl:attribute> 451 <xsl:attribute name="draw:border"><xsl:value-of select="concat($gradient-name/@图:边界,'%')"/></xsl:attribute> 452 <xsl:if test="$gradient-name/@图:种子X位置"> 453 <xsl:attribute name="draw:cx"><xsl:value-of select="concat($gradient-name/@图:种子X位置,'%')"/></xsl:attribute> 454 </xsl:if> 455 <xsl:if test="$gradient-name/@图:种子Y位置"> 456 <xsl:attribute name="draw:cy"><xsl:value-of select="concat($gradient-name/@图:种子Y位置,'%')"/></xsl:attribute> 457 </xsl:if> 458 </xsl:element> 459 </xsl:if> 460 <xsl:if test="图:预定义图形/图:属性/图:前端箭头"> 461 <xsl:element name="draw:marker"> 462 <xsl:attribute name="draw:name"><xsl:choose><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:式样='normal'">Arrow</xsl:when><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:式样='open'">Line_20_Arrow</xsl:when><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:式样='stealth'">Arrow_20_concave</xsl:when><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:式样='oval'">Circle</xsl:when><xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:式样='diamond'">Square_20_45</xsl:when></xsl:choose></xsl:attribute> 463 <xsl:choose> 464 <xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:式样='normal'"> 465 <xsl:attribute name="svg:viewBox">0 0 20 30</xsl:attribute> 466 <xsl:attribute name="svg:d">m10 0-10 30h20z</xsl:attribute> 467 </xsl:when> 468 <xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:式样='open'"> 469 <xsl:attribute name="svg:viewBox">0 0 1122 2243</xsl:attribute> 470 <xsl:attribute name="svg:d">m0 2108v17 17l12 42 30 34 38 21 43 4 29-8 30-21 25-26 13-34 343-1532 339 1520 13 42 29 34 39 21 42 4 42-12 34-30 21-42v-39-12l-4 4-440-1998-9-42-25-39-38-25-43-8-42 8-38 25-26 39-8 42z</xsl:attribute> 471 </xsl:when> 472 <xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:式样='stealth'"> 473 <xsl:attribute name="svg:viewBox">0 0 1131 1580</xsl:attribute> 474 <xsl:attribute name="svg:d">m1013 1491 118 89-567-1580-564 1580 114-85 136-68 148-46 161-17 161 13 153 46z</xsl:attribute> 475 </xsl:when> 476 <xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:式样='oval'"> 477 <xsl:attribute name="svg:viewBox">0 0 1131 1131</xsl:attribute> 478 <xsl:attribute name="svg:d">m462 1118-102-29-102-51-93-72-72-93-51-102-29-102-13-105 13-102 29-106 51-102 72-89 93-72 102-50 102-34 106-9 101 9 106 34 98 50 93 72 72 89 51 102 29 106 13 102-13 105-29 102-51 102-72 93-93 72-98 51-106 29-101 13z</xsl:attribute> 479 </xsl:when> 480 <xsl:when test="图:预定义图形/图:属性/图:前端箭头/图:式样='diamond'"> 481 <xsl:attribute name="svg:viewBox">0 0 1131 1131</xsl:attribute> 482 <xsl:attribute name="svg:d">m0 564 564 567 567-567-567-564z</xsl:attribute> 483 </xsl:when> 484 </xsl:choose> 485 </xsl:element> 486 </xsl:if> 487 <xsl:if test="图:预定义图形/图:属性/图:后端箭头"> 488 <xsl:element name="draw:marker"> 489 <xsl:attribute name="draw:name"><xsl:choose><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:式样='normal'">Arrow</xsl:when><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:式样='open'">Line_20_Arrow</xsl:when><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:式样='stealth'">Arrow_20_concave</xsl:when><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:式样='oval'">Circle</xsl:when><xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:式样='diamond'">Square_20_45</xsl:when></xsl:choose></xsl:attribute> 490 <xsl:choose> 491 <xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:式样='normal'"> 492 <xsl:attribute name="svg:viewBox">0 0 20 30</xsl:attribute> 493 <xsl:attribute name="svg:d">m10 0-10 30h20z</xsl:attribute> 494 </xsl:when> 495 <xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:式样='open'"> 496 <xsl:attribute name="svg:viewBox">0 0 1122 2243</xsl:attribute> 497 <xsl:attribute name="svg:d">m0 2108v17 17l12 42 30 34 38 21 43 4 29-8 30-21 25-26 13-34 343-1532 339 1520 13 42 29 34 39 21 42 4 42-12 34-30 21-42v-39-12l-4 4-440-1998-9-42-25-39-38-25-43-8-42 8-38 25-26 39-8 42z</xsl:attribute> 498 </xsl:when> 499 <xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:式样='stealth'"> 500 <xsl:attribute name="svg:viewBox">0 0 1131 1580</xsl:attribute> 501 <xsl:attribute name="svg:d">m1013 1491 118 89-567-1580-564 1580 114-85 136-68 148-46 161-17 161 13 153 46z</xsl:attribute> 502 </xsl:when> 503 <xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:式样='oval'"> 504 <xsl:attribute name="svg:viewBox">0 0 1131 1131</xsl:attribute> 505 <xsl:attribute name="svg:d">m462 1118-102-29-102-51-93-72-72-93-51-102-29-102-13-105 13-102 29-106 51-102 72-89 93-72 102-50 102-34 106-9 101 9 106 34 98 50 93 72 72 89 51 102 29 106 13 102-13 105-29 102-51 102-72 93-93 72-98 51-106 29-101 13z</xsl:attribute> 506 </xsl:when> 507 <xsl:when test="图:预定义图形/图:属性/图:后端箭头/图:式样='diamond'"> 508 <xsl:attribute name="svg:viewBox">0 0 1131 1131</xsl:attribute> 509 <xsl:attribute name="svg:d">m0 564 564 567 567-567-567-564z</xsl:attribute> 510 </xsl:when> 511 </xsl:choose> 512 </xsl:element> 513 </xsl:if> 514 <xsl:if test="图:预定义图形/图:属性/图:填充/图:图片/@图:图形引用 or 图:预定义图形/图:属性/图:填充/图:图案/@图:图形引用"> 515 <xsl:element name="draw:fill-image"> 516 <xsl:attribute name="draw:name"><xsl:choose><xsl:when test="图:预定义图形/图:属性/图:填充/图:图案/@图:图形引用"><xsl:value-of select="图:预定义图形/图:属性/图:填充/图:图案/@图:类型"/></xsl:when><xsl:when test="图:预定义图形/图:属性/图:填充/图:图片/@图:图形引用"><xsl:value-of select="图:预定义图形/图:属性/图:填充/图:图片/@图:名称"/></xsl:when></xsl:choose></xsl:attribute> 517 <xsl:call-template name="bina_graphic"> 518 <xsl:with-param name="refGraphic"> 519 <xsl:choose> 520 <xsl:when test="图:预定义图形/图:属性/图:填充/图:图案/@图:图形引用"> 521 <xsl:value-of select="图:预定义图形/图:属性/图:填充/图:图案/@图:图形引用"/> 522 </xsl:when> 523 <xsl:when test="图:预定义图形/图:属性/图:填充/图:图片/@图:图形引用"> 524 <xsl:value-of select="图:预定义图形/图:属性/图:填充/图:图片/@图:图形引用"/> 525 </xsl:when> 526 </xsl:choose> 527 </xsl:with-param> 528 </xsl:call-template> 529 </xsl:element> 530 </xsl:if> 531 <xsl:if test="not(图:预定义图形/图:属性/图:线型='single') and not(图:预定义图形/图:属性/图:线型='thick') and 图:预定义图形/图:属性/图:线型"> 532 <xsl:variable name="line" select="图:预定义图形/图:属性/图:线型"/> 533 <xsl:element name="draw:stroke-dash"> 534 <xsl:choose> 535 <xsl:when test="$line='dash-long' or $line='dash-long-heavy'"> 536 <xsl:attribute name="draw:name">Fine_20_Dashed</xsl:attribute> 537 <xsl:attribute name="draw:display-name">Fine dashed</xsl:attribute> 538 <xsl:attribute name="draw:style">rect</xsl:attribute> 539 <xsl:attribute name="draw:dots1">1</xsl:attribute> 540 <xsl:attribute name="draw:dots1-length">0.508cm</xsl:attribute> 541 <xsl:attribute name="draw:dots2">1</xsl:attribute> 542 <xsl:attribute name="draw:dots2-length">0.508cm</xsl:attribute> 543 <xsl:attribute name="draw:distance">0.508cm</xsl:attribute> 544 </xsl:when> 545 <xsl:when test="$line='dot-dot-dash' or $line='dash-dot-dot-heavy'"> 546 <xsl:attribute name="draw:name">_32__20_Dots_20_1_20_Dash</xsl:attribute> 547 <xsl:attribute name="draw:display-name">2 Dots 1 Dash</xsl:attribute> 548 <xsl:attribute name="draw:style">rect</xsl:attribute> 549 <xsl:attribute name="draw:dots1">2</xsl:attribute> 550 <xsl:attribute name="draw:dots2">1</xsl:attribute> 551 <xsl:attribute name="draw:dots2-length">0.203cm</xsl:attribute> 552 <xsl:attribute name="draw:distance">0.203cm</xsl:attribute> 553 </xsl:when> 554 <xsl:when test="$line='dash' or $line='dashed-heavy'"> 555 <xsl:attribute name="draw:name">Ultrafine_20_Dashed</xsl:attribute> 556 <xsl:attribute name="draw:display-name">Ultrafine Dashed</xsl:attribute> 557 <xsl:attribute name="draw:style">rect</xsl:attribute> 558 <xsl:attribute name="draw:dots1">1</xsl:attribute> 559 <xsl:attribute name="draw:dots1-length">0.051cm</xsl:attribute> 560 <xsl:attribute name="draw:dots2">1</xsl:attribute> 561 <xsl:attribute name="draw:dots2-length">0.051cm</xsl:attribute> 562 <xsl:attribute name="draw:distance">0.051cm</xsl:attribute> 563 </xsl:when> 564 <xsl:when test="$line='dotted' or $line='dotted-heavy'"> 565 <xsl:attribute name="draw:name">Ultrafine_20_Dotted_20__28_var_29_</xsl:attribute> 566 <xsl:attribute name="draw:display-name">Ultrafine Dotted (var)</xsl:attribute> 567 <xsl:attribute name="draw:style">rect</xsl:attribute> 568 <xsl:attribute name="draw:dots1">1</xsl:attribute> 569 <xsl:attribute name="draw:distance">50%</xsl:attribute> 570 </xsl:when> 571 <xsl:when test="$line='wave' or $line='wavy-heavy'"> 572 <xsl:attribute name="draw:name">Ultrafine_20_2_20_Dots_20_3_20_Dashes</xsl:attribute> 573 <xsl:attribute name="draw:display-name">Ultrafine 2 Dots 3 Dashes</xsl:attribute> 574 <xsl:attribute name="draw:style">rect</xsl:attribute> 575 <xsl:attribute name="draw:dots1">2</xsl:attribute> 576 <xsl:attribute name="draw:dots1-length">0.051cm</xsl:attribute> 577 <xsl:attribute name="draw:dots2">3</xsl:attribute> 578 <xsl:attribute name="draw:dots2-length">0.254cm</xsl:attribute> 579 <xsl:attribute name="draw:distance">0.127cm</xsl:attribute> 580 </xsl:when> 581 <xsl:when test="$line='dot-dash' or $line='dash-dot-heavy'"> 582 <xsl:attribute name="draw:name">_33__20_Dashes_20_3_20_Dots_20__28_var_29_</xsl:attribute> 583 <xsl:attribute name="draw:display-name">3 Dashes 3 Dots (var)</xsl:attribute> 584 <xsl:attribute name="draw:style">rect</xsl:attribute> 585 <xsl:attribute name="draw:dots1">3</xsl:attribute> 586 <xsl:attribute name="draw:dots1-length">197%</xsl:attribute> 587 <xsl:attribute name="draw:dots2">3</xsl:attribute> 588 <xsl:attribute name="draw:distance">100%</xsl:attribute> 589 </xsl:when> 590 <xsl:when test="$line='double'"> 591 <xsl:attribute name="draw:name">Line_20_with_20_Fine_20_Dots</xsl:attribute> 592 <xsl:attribute name="draw:display-name">Line with Fine Dots</xsl:attribute> 593 <xsl:attribute name="draw:style">rect</xsl:attribute> 594 <xsl:attribute name="draw:dots1">1</xsl:attribute> 595 <xsl:attribute name="draw:dots1-length">2.007cm</xsl:attribute> 596 <xsl:attribute name="draw:dots2">10</xsl:attribute> 597 <xsl:attribute name="draw:distance">0.152cm</xsl:attribute> 598 </xsl:when> 599 <xsl:when test="$line='wavy-double'"> 600 <xsl:attribute name="draw:name">Fine_20_Dashed_20__28_var_29_</xsl:attribute> 601 <xsl:attribute name="draw:display-name">Fine Dashed (var)</xsl:attribute> 602 <xsl:attribute name="draw:style">rect</xsl:attribute> 603 <xsl:attribute name="draw:dots1">1</xsl:attribute> 604 <xsl:attribute name="draw:dots1-length">197%</xsl:attribute> 605 <xsl:attribute name="draw:distance">197%</xsl:attribute> 606 </xsl:when> 607 <xsl:otherwise> 608 <xsl:attribute name="draw:name">Fine Dashed</xsl:attribute> 609 <xsl:attribute name="draw:style">rect</xsl:attribute> 610 <xsl:attribute name="draw:dots1">1</xsl:attribute> 611 <xsl:attribute name="draw:dots1-length">0.508cm</xsl:attribute> 612 <xsl:attribute name="draw:dots2">1</xsl:attribute> 613 <xsl:attribute name="draw:dots2-length">0.508cm</xsl:attribute> 614 <xsl:attribute name="draw:distance">0.508cm</xsl:attribute> 615 </xsl:otherwise> 616 </xsl:choose> 617 </xsl:element> 618 </xsl:if> 619 </xsl:template> 620 <xsl:template name="create-page-master"> 621 <xsl:param name="impressoptions"/> 622 <xsl:for-each select="$impressoptions"> 623 <xsl:element name="style:page-layout"> 624 <xsl:attribute name="style:name"><xsl:call-template name="encode-as-nc-name"><xsl:with-param name="string" select="@演:标识符"/></xsl:call-template></xsl:attribute> 625 <xsl:element name="style:page-layout-properties"> 626 <xsl:if test="演:纸张/@uof:宽度"> 627 <xsl:attribute name="fo:page-width"><xsl:value-of select="concat(演:纸张/@uof:宽度,$uofUnit)"/></xsl:attribute> 628 </xsl:if> 629 <xsl:if test="演:纸张/@uof:高度"> 630 <xsl:attribute name="fo:page-height"><xsl:value-of select="concat((演:纸张/@uof:高度),$uofUnit)"/></xsl:attribute> 631 </xsl:if> 632 <xsl:if test="演:页边距"> 633 <xsl:attribute name="fo:margin-top"><xsl:value-of select="concat(演:页边距/@uof:上,$uofUnit)"/></xsl:attribute> 634 <xsl:attribute name="fo:margin-bottom"><xsl:value-of select="concat(演:页边距/@uof:下,$uofUnit)"/></xsl:attribute> 635 <xsl:attribute name="fo:margin-left"><xsl:value-of select="concat(演:页边距/@uof:左,$uofUnit)"/></xsl:attribute> 636 <xsl:attribute name="fo:margin-right"><xsl:value-of select="concat(演:页边距/@uof:右,$uofUnit)"/></xsl:attribute> 637 </xsl:if> 638 <xsl:choose> 639 <xsl:when test="演:纸张方向 = 'landscape'"> 640 <xsl:attribute name="style:print-orientation">landscape</xsl:attribute> 641 </xsl:when> 642 <xsl:otherwise> 643 <xsl:attribute name="style:print-orientation">portrait</xsl:attribute> 644 </xsl:otherwise> 645 </xsl:choose> 646 </xsl:element> 647 </xsl:element> 648 </xsl:for-each> 649 </xsl:template> 650 <xsl:template name="encode-as-nc-name"> 651 <xsl:param name="string"/> 652 <xsl:value-of select="translate($string, '. %()/\+', '')"/> 653 </xsl:template> 654 <xsl:key name="tianchongmu" match="/uof:UOF/uof:演示文稿/演:主体/演:母版集/演:母版" use="@演:配色方案引用"/> 655 <xsl:key name="tianchonghuan" match="/uof:UOF/uof:演示文稿/演:主体/演:幻灯片集/演:幻灯片" use="@演:标识符"/> 656 <xsl:template match="演:配色方案"> 657 <xsl:if test="key('tianchongmu',@演:标识符)/演:背景"> 658 <xsl:for-each select="key('tianchongmu',@演:标识符)/演:背景"> 659 <xsl:call-template name="officestyle"/> 660 </xsl:for-each> 661 </xsl:if> 662 <xsl:if test="key('tianchonghuan',@演:标识符)/演:背景"> 663 <xsl:for-each select="key('tianchonghuan',@演:标识符)/演:背景"> 664 <xsl:call-template name="officestyle"/> 665 </xsl:for-each> 666 </xsl:if> 667 <xsl:element name="style:style"> 668 <xsl:attribute name="style:family">drawing-page</xsl:attribute> 669 <xsl:attribute name="style:name"><xsl:value-of select="@演:标识符"/></xsl:attribute> 670 <xsl:element name="style:drawing-page-properties"> 671 <xsl:if test="演:填充"> 672 <xsl:attribute name="draw:fill">solid</xsl:attribute> 673 <xsl:attribute name="draw:fill-color"><xsl:value-of select="演:背景色"/></xsl:attribute> 674 </xsl:if> 675 <xsl:if test="演:背景色"> 676 <xsl:attribute name="draw:background-size">border</xsl:attribute> 677 </xsl:if> 678 <xsl:if test="演:阴影"> 679 <xsl:attribute name="draw:shadow">visible</xsl:attribute> 680 <xsl:attribute name="draw:shadow-color"><xsl:value-of select="演:阴影"/></xsl:attribute> 681 </xsl:if> 682 <xsl:if test="演:文本和线条"> 683 <xsl:attribute name="svg:stroke-color"><xsl:value-of select="演:文本和线条"/></xsl:attribute> 684 </xsl:if> 685 <xsl:if test="key('tianchongmu',@演:标识符)/演:背景"> 686 <xsl:for-each select="key('tianchongmu',@演:标识符)/演:背景"> 687 <xsl:call-template name="background"/> 688 </xsl:for-each> 689 </xsl:if> 690 <xsl:if test="key('tianchonghuan',@演:标识符)/演:背景"> 691 <xsl:for-each select="key('tianchonghuan',@演:标识符)/演:背景"> 692 <xsl:call-template name="background"/> 693 </xsl:for-each> 694 </xsl:if> 695 </xsl:element> 696 <xsl:variable name="style-name"> 697 <xsl:value-of select="@演:标识符"/> 698 </xsl:variable> 699 <xsl:for-each select="/uof:UOF/uof:演示文稿/演:主体/演:幻灯片集/演:幻灯片[@演:标识符=$style-name]/演:切换"> 700 <style:drawing-page-properties> 701 <xsl:if test="@演:速度='slow'"> 702 <xsl:attribute name="presentation:transition-speed">slow</xsl:attribute> 703 </xsl:if> 704 <xsl:if test="not(@演:效果 = 'none')"> 705 <xsl:variable name="effect"> 706 <xsl:value-of select="@演:效果"/> 707 </xsl:variable> 708 <xsl:choose> 709 <xsl:when test="$effect='box in'"> 710 <xsl:attribute name="smil:type">irisWipe</xsl:attribute> 711 <xsl:attribute name="smil:subtype">rectangle</xsl:attribute> 712 <xsl:attribute name="smil:direction">reverse</xsl:attribute> 713 </xsl:when> 714 <xsl:when test="$effect='box out'"> 715 <xsl:attribute name="smil:type">irisWipe</xsl:attribute> 716 <xsl:attribute name="smil:subtype">rectangle</xsl:attribute> 717 </xsl:when> 718 <xsl:when test="$effect='checkerboard across'"> 719 <xsl:attribute name="smil:type">checkerBoardWipe</xsl:attribute> 720 <xsl:attribute name="smil:subtype">across</xsl:attribute> 721 </xsl:when> 722 <xsl:when test="$effect='checkerboard down'"> 723 <xsl:attribute name="smil:type">checkerBoardWipe</xsl:attribute> 724 <xsl:attribute name="smil:subtype">down</xsl:attribute> 725 </xsl:when> 726 <xsl:when test="$effect='comb horizontal'"> 727 <xsl:attribute name="smil:type">pushWipe</xsl:attribute> 728 <xsl:attribute name="smil:subtype">combHorizontal</xsl:attribute> 729 </xsl:when> 730 <xsl:when test="$effect='comb vertical'"> 731 <xsl:attribute name="smil:type">pushWipe</xsl:attribute> 732 <xsl:attribute name="smil:subtype">combVertical</xsl:attribute> 733 </xsl:when> 734 <xsl:when test="$effect='uncover down'"> 735 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 736 <xsl:attribute name="smil:subtype">fromTop</xsl:attribute> 737 <xsl:attribute name="smil:direction">reverse</xsl:attribute> 738 </xsl:when> 739 <xsl:when test="$effect='uncover left'"> 740 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 741 <xsl:attribute name="smil:subtype">fromRight</xsl:attribute> 742 <xsl:attribute name="smil:direction">reverse</xsl:attribute> 743 </xsl:when> 744 <xsl:when test="$effect='uncover right'"> 745 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 746 <xsl:attribute name="smil:subtype">fromLeft</xsl:attribute> 747 <xsl:attribute name="smil:direction">reverse</xsl:attribute> 748 </xsl:when> 749 <xsl:when test="$effect='uncover up'"> 750 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 751 <xsl:attribute name="smil:subtype">fromBottom</xsl:attribute> 752 <xsl:attribute name="smil:direction">reverse</xsl:attribute> 753 </xsl:when> 754 <xsl:when test="$effect='uncover left-down'"> 755 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 756 <xsl:attribute name="smil:subtype">fromTopRight</xsl:attribute> 757 <xsl:attribute name="smil:direction">reverse</xsl:attribute> 758 </xsl:when> 759 <xsl:when test="$effect='uncover left-up'"> 760 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 761 <xsl:attribute name="smil:subtype">fromBottomRight</xsl:attribute> 762 <xsl:attribute name="smil:direction">reverse</xsl:attribute> 763 </xsl:when> 764 <xsl:when test="$effect='uncover right-down'"> 765 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 766 <xsl:attribute name="smil:subtype">fromTopLeft</xsl:attribute> 767 <xsl:attribute name="smil:direction">reverse</xsl:attribute> 768 </xsl:when> 769 <xsl:when test="$effect='uncover right-up'"> 770 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 771 <xsl:attribute name="smil:subtype">fromBottomLeft</xsl:attribute> 772 <xsl:attribute name="smil:direction">reverse</xsl:attribute> 773 </xsl:when> 774 <xsl:when test="$effect='cover down'"> 775 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 776 <xsl:attribute name="smil:subtype">fromTop</xsl:attribute> 777 </xsl:when> 778 <xsl:when test="$effect='cover left'"> 779 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 780 <xsl:attribute name="smil:subtype">fromRight</xsl:attribute> 781 </xsl:when> 782 <xsl:when test="$effect='cover right'"> 783 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 784 <xsl:attribute name="smil:subtype">fromLeft</xsl:attribute> 785 </xsl:when> 786 <xsl:when test="$effect='cover up'"> 787 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 788 <xsl:attribute name="smil:subtype">fromBottom</xsl:attribute> 789 </xsl:when> 790 <xsl:when test="$effect='cover left-down'"> 791 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 792 <xsl:attribute name="smil:subtype">fromTopRight</xsl:attribute> 793 </xsl:when> 794 <xsl:when test="$effect='cover left-up'"> 795 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 796 <xsl:attribute name="smil:subtype">fromBottomRight</xsl:attribute> 797 </xsl:when> 798 <xsl:when test="$effect='cover right-down'"> 799 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 800 <xsl:attribute name="smil:subtype">fromTopLeft</xsl:attribute> 801 </xsl:when> 802 <xsl:when test="$effect='cover right-up'"> 803 <xsl:attribute name="smil:type">slideWipe</xsl:attribute> 804 <xsl:attribute name="smil:subtype">fromBottomLeft</xsl:attribute> 805 </xsl:when> 806 <xsl:when test="$effect='fade through black'"> 807 <xsl:attribute name="smil:type">fade</xsl:attribute> 808 <xsl:attribute name="smil:subtype">fadeOverColor</xsl:attribute> 809 <xsl:attribute name="smil:fadeColor">#000000</xsl:attribute> 810 </xsl:when> 811 <xsl:when test="$effect='push down'"> 812 <xsl:attribute name="smil:type">pushWipe</xsl:attribute> 813 <xsl:attribute name="smil:subtype">fromTop</xsl:attribute> 814 </xsl:when> 815 <xsl:when test="$effect='push left'"> 816 <xsl:attribute name="smil:type">pushWipe</xsl:attribute> 817 <xsl:attribute name="smil:subtype">fromRight</xsl:attribute> 818 </xsl:when> 819 <xsl:when test="$effect='push right'"> 820 <xsl:attribute name="smil:type">pushWipe</xsl:attribute> 821 <xsl:attribute name="smil:subtype">fromLeft</xsl:attribute> 822 </xsl:when> 823 <xsl:when test="$effect='push up'"> 824 <xsl:attribute name="smil:type">pushWipe</xsl:attribute> 825 <xsl:attribute name="smil:subtype">fromBottom</xsl:attribute> 826 </xsl:when> 827 <xsl:when test="$effect='random bars horizontal'"> 828 <xsl:attribute name="smil:type">randomBarWipe</xsl:attribute> 829 <xsl:attribute name="smil:subtype">horizontal</xsl:attribute> 830 </xsl:when> 831 <xsl:when test="$effect='random bars vertical'"> 832 <xsl:attribute name="smil:type">randomBarWipe</xsl:attribute> 833 <xsl:attribute name="smil:subtype">vertical</xsl:attribute> 834 </xsl:when> 835 <xsl:when test="$effect='shape circle'"> 836 <xsl:attribute name="smil:type">ellipseWipe</xsl:attribute> 837 <xsl:attribute name="smil:subtype">circle</xsl:attribute> 838 </xsl:when> 839 <xsl:when test="$effect='shape diamond'"> 840 <xsl:attribute name="smil:type">irisWipe</xsl:attribute> 841 <xsl:attribute name="smil:subtype">diamond</xsl:attribute> 842 </xsl:when> 843 <xsl:when test="$effect='shape plus'"> 844 <xsl:attribute name="smil:type">fourBoxWipe</xsl:attribute> 845 <xsl:attribute name="smil:subtype">cornersOut</xsl:attribute> 846 </xsl:when> 847 <xsl:when test="$effect='split horizontal in'"> 848 <xsl:attribute name="smil:type">barnDoorWipe</xsl:attribute> 849 <xsl:attribute name="smil:subtype">horizontal</xsl:attribute> 850 <xsl:attribute name="smil:direction">reverse</xsl:attribute> 851 </xsl:when> 852 <xsl:when test="$effect='split horizontal out'"> 853 <xsl:attribute name="smil:type">barnDoorWipe</xsl:attribute> 854 <xsl:attribute name="smil:subtype">horizontal</xsl:attribute> 855 </xsl:when> 856 <xsl:when test="$effect='split vertical in'"> 857 <xsl:attribute name="smil:type">barnDoorWipe</xsl:attribute> 858 <xsl:attribute name="smil:subtype">vertical</xsl:attribute> 859 <xsl:attribute name="smil:direction">reverse</xsl:attribute> 860 </xsl:when> 861 <xsl:when test="$effect='split vertical out'"> 862 <xsl:attribute name="smil:type">barnDoorWipe</xsl:attribute> 863 <xsl:attribute name="smil:subtype">vertical</xsl:attribute> 864 </xsl:when> 865 <xsl:when test="$effect='wedge'"> 866 <xsl:attribute name="smil:type">fanWipe</xsl:attribute> 867 <xsl:attribute name="smil:subtype">centerTop</xsl:attribute> 868 </xsl:when> 869 <xsl:when test="$effect='wheel clockwise – 1 spoke'"> 870 <xsl:attribute name="smil:type">pinWheelWipe</xsl:attribute> 871 <xsl:attribute name="smil:subtype">oneBlade</xsl:attribute> 872 </xsl:when> 873 <xsl:when test="$effect='wheel clockwise – 2 spoke'"> 874 <xsl:attribute name="smil:type">pinWheelWipe</xsl:attribute> 875 <xsl:attribute name="smil:subtype">twoBladeVertical</xsl:attribute> 876 </xsl:when> 877 <xsl:when test="$effect='wheel clockwise – 3 spoke'"> 878 <xsl:attribute name="smil:type">pinWheelWipe</xsl:attribute> 879 <xsl:attribute name="smil:subtype">threeBlade</xsl:attribute> 880 </xsl:when> 881 <xsl:when test="$effect='wheel clockwise – 4 spoke'"> 882 <xsl:attribute name="smil:type">pinWheelWipe</xsl:attribute> 883 <xsl:attribute name="smil:subtype">fourBlade</xsl:attribute> 884 </xsl:when> 885 <xsl:when test="$effect='wheel clockwise – 8 spoke'"> 886 <xsl:attribute name="smil:type">pinWheelWipe</xsl:attribute> 887 <xsl:attribute name="smil:subtype">eightBlade</xsl:attribute> 888 </xsl:when> 889 <xsl:when test="$effect='wipe left'"> 890 <xsl:attribute name="smil:type">barWipe</xsl:attribute> 891 <xsl:attribute name="smil:subtype">leftToRight</xsl:attribute> 892 <xsl:attribute name="smil:direction">reverse</xsl:attribute> 893 </xsl:when> 894 <xsl:when test="$effect='wipe right'"> 895 <xsl:attribute name="smil:type">barWipe</xsl:attribute> 896 <xsl:attribute name="smil:subtype">leftToRight</xsl:attribute> 897 </xsl:when> 898 <xsl:when test="$effect='wipe up'"> 899 <xsl:attribute name="smil:type">barWipe</xsl:attribute> 900 <xsl:attribute name="smil:subtype">topToBottom</xsl:attribute> 901 <xsl:attribute name="smil:direction">reverse</xsl:attribute> 902 </xsl:when> 903 <xsl:when test="$effect='wipe down'"> 904 <xsl:attribute name="smil:type">barWipe</xsl:attribute> 905 <xsl:attribute name="smil:subtype">topToBottom</xsl:attribute> 906 </xsl:when> 907 <xsl:when test="$effect='blinds vertical'"> 908 <xsl:attribute name="smil:type">blindsWipe</xsl:attribute> 909 <xsl:attribute name="smil:subtype">vertical</xsl:attribute> 910 </xsl:when> 911 <xsl:when test="$effect='blinds horizontal'"> 912 <xsl:attribute name="smil:type">blindsWipe</xsl:attribute> 913 <xsl:attribute name="smil:subtype">horizontal</xsl:attribute> 914 </xsl:when> 915 <xsl:when test="$effect='dissolve'"> 916 <xsl:attribute name="smil:type">dissolve</xsl:attribute> 917 </xsl:when> 918 <xsl:when test="$effect='random transition'"> 919 <xsl:attribute name="smil:type">random</xsl:attribute> 920 </xsl:when> 921 </xsl:choose> 922 </xsl:if> 923 <xsl:if test="演:方式/演:单击鼠标='false'"> 924 <xsl:attribute name="presentation:transition-type">automatic</xsl:attribute> 925 </xsl:if> 926 <xsl:if test="演:方式/演:时间间隔"> 927 <xsl:attribute name="presentation:duration"><xsl:value-of select="concat('PT00H00M',演:方式/演:时间间隔,'S')"/></xsl:attribute> 928 </xsl:if> 929 <xsl:if test="(演:声音/@演:预定义声音 and not(演:声音/@演:预定义声音='none')) or 演:声音/@演:自定义声音"> 930 <xsl:choose> 931 <xsl:when test="演:声音/@演:预定义声音"> 932 <xsl:variable name="voice"> 933 <xsl:value-of select="演:声音/@演:预定义声音"/> 934 </xsl:variable> 935 <presentation:sound xlink:type="simple" xlink:show="new" xlink:actuate="onRequest"> 936 <xsl:attribute name="xlink:href"><xsl:choose><xsl:when test="$voice='applause'">../../../../../../../softwware/Redoffcie%203.0/share/gallery/sounds/applause.wav</xsl:when><xsl:when test="$voice='explosion'">../../../../../../../softwware/Redoffcie%203.0/share/gallery/sounds/explos.wav</xsl:when><xsl:when test="$voice='laser'">../../../../../../../softwware/Redoffcie%203.0/share/gallery/sounds/laser.wav</xsl:when><xsl:otherwise><xsl:value-of select="演:声音/@演:预定义声音"/></xsl:otherwise></xsl:choose></xsl:attribute> 937 </presentation:sound> 938 </xsl:when> 939 <xsl:otherwise> 940 <presentation:sound xlink:type="simple" xlink:show="new" xlink:actuate="onRequest"> 941 <xsl:attribute name="xlink:href"><xsl:value-of select="演:声音/@演:自定义声音"/></xsl:attribute> 942 </presentation:sound> 943 </xsl:otherwise> 944 </xsl:choose> 945 </xsl:if> 946 </style:drawing-page-properties> 947 </xsl:for-each> 948 </xsl:element> 949 </xsl:template> 950 <xsl:template name="officestyle"> 951 <xsl:variable name="random-name"> 952 <xsl:value-of select="generate-id()"/> 953 </xsl:variable> 954 <xsl:variable name="draw-name"> 955 <xsl:value-of select="substring($random-name,string-length($random-name)-1)"/> 956 </xsl:variable> 957 <xsl:choose> 958 <xsl:when test="图:渐变"> 959 <xsl:element name="draw:gradient"> 960 <xsl:attribute name="draw:name"><xsl:value-of select="concat('Gradient ',$draw-name)"/></xsl:attribute> 961 <xsl:attribute name="draw:style"><xsl:choose><xsl:when test="图:渐变/@图:种子类型='linear'"><xsl:value-of select="'linear'"/></xsl:when><xsl:when test="图:渐变/@图:种子类型='radar'"><xsl:value-of select="'radial'"/></xsl:when><xsl:when test="图:渐变/@图:种子类型='oval'"><xsl:value-of select="'ellipsoid'"/></xsl:when><xsl:when test="图:渐变/@图:种子类型='square'"><xsl:value-of select="'square'"/></xsl:when><xsl:when test="图:渐变/@图:种子类型='rectangle'"><xsl:value-of select="'rectangular'"/></xsl:when></xsl:choose></xsl:attribute> 962 <xsl:attribute name="draw:start-color"><xsl:value-of select="图:渐变/@图:起始色"/></xsl:attribute> 963 <xsl:attribute name="draw:end-color"><xsl:value-of select="图:渐变/@图:终止色"/></xsl:attribute> 964 <xsl:attribute name="draw:start-intensity"><xsl:value-of select="concat(图:渐变/@图:起始浓度,'%')"/></xsl:attribute> 965 <xsl:attribute name="draw:end-intensity"><xsl:value-of select="concat(图:渐变/@图:终止浓度,'%')"/></xsl:attribute> 966 <xsl:attribute name="draw:angle"><xsl:value-of select="图:渐变/@图:渐变方向 * 10"/></xsl:attribute> 967 <xsl:attribute name="draw:border"><xsl:value-of select="concat(图:渐变/@图:边界,'%')"/></xsl:attribute> 968 <xsl:if test="图:渐变/@图:种子X位置"> 969 <xsl:attribute name="draw:cx"><xsl:value-of select="concat(图:渐变/@图:种子X位置,'%')"/></xsl:attribute> 970 </xsl:if> 971 <xsl:if test="图:渐变/@图:种子Y位置"> 972 <xsl:attribute name="draw:cy"><xsl:value-of select="concat(图:渐变/@图:种子Y位置,'%')"/></xsl:attribute> 973 </xsl:if> 974 </xsl:element> 975 </xsl:when> 976 <xsl:when test="图:图片/@图:图形引用 or 图:图案/@图:图形引用"> 977 <xsl:element name="draw:fill-image"> 978 <xsl:attribute name="draw:name"><xsl:choose><xsl:when test="图:图案/@图:图形引用"><xsl:value-of select="图:图案/@图:类型"/></xsl:when><xsl:when test="图:图片/@图:图形引用"><xsl:value-of select="图:图片/@图:名称"/></xsl:when></xsl:choose></xsl:attribute> 979 <xsl:call-template name="bina_graphic"> 980 <xsl:with-param name="refGraphic"> 981 <xsl:choose> 982 <xsl:when test="图:图案/@图:图形引用"> 983 <xsl:value-of select="图:图案/@图:图形引用"/> 984 </xsl:when> 985 <xsl:when test="图:图片/@图:图形引用"> 986 <xsl:value-of select="图:图片/@图:图形引用"/> 987 </xsl:when> 988 </xsl:choose> 989 </xsl:with-param> 990 </xsl:call-template> 991 </xsl:element> 992 </xsl:when> 993 </xsl:choose> 994 </xsl:template> 995 <xsl:template name="background"> 996 <xsl:variable name="random-name"> 997 <xsl:value-of select="generate-id()"/> 998 </xsl:variable> 999 <xsl:variable name="draw-name"> 1000 <xsl:value-of select="substring($random-name,string-length($random-name)-1)"/> 1001 </xsl:variable> 1002 <xsl:choose> 1003 <xsl:when test="图:图片"> 1004 <xsl:attribute name="draw:fill">bitmap</xsl:attribute> 1005 <xsl:attribute name="draw:fill-image-name"><xsl:value-of select="图:图片/@图:名称"/></xsl:attribute> 1006 <xsl:if test="not(图:图片/@图:位置='title')"> 1007 <xsl:attribute name="style:repeat"><xsl:choose><xsl:when test="图:图片/@图:位置='center'">no-repeat</xsl:when><xsl:when test="图:图片/@图:位置='stretch'">stretch</xsl:when></xsl:choose></xsl:attribute> 1008 </xsl:if> 1009 </xsl:when> 1010 <xsl:when test="图:图案"> 1011 <xsl:attribute name="draw:fill">bitmap</xsl:attribute> 1012 <xsl:attribute name="draw:fill-color"><xsl:value-of select="图:图案/@图:前景色"/></xsl:attribute> 1013 </xsl:when> 1014 <xsl:when test="图:颜色"> 1015 <xsl:attribute name="draw:fill-color"><xsl:value-of select="图:颜色"/></xsl:attribute> 1016 </xsl:when> 1017 <xsl:when test="图:渐变"> 1018 <xsl:attribute name="draw:fill">gradient</xsl:attribute> 1019 <xsl:attribute name="draw:fill-color"><xsl:value-of select="图:渐变/@图:起始色"/></xsl:attribute> 1020 <xsl:attribute name="draw:fill-gradient-name"><xsl:value-of select="concat('Gradient ',$draw-name)"/></xsl:attribute> 1021 </xsl:when> 1022 </xsl:choose> 1023 </xsl:template> 1024 <xsl:template match="演:母版集"> 1025 <draw:layer-set> 1026 <draw:layer draw:name="layout"/> 1027 <draw:layer draw:name="background"/> 1028 <draw:layer draw:name="backgroundobjects"/> 1029 <draw:layer draw:name="controls"/> 1030 <draw:layer draw:name="measurelines"/> 1031 </draw:layer-set> 1032 <xsl:apply-templates select="演:母版"/> 1033 </xsl:template> 1034 <xsl:template match="演:母版"> 1035 <xsl:choose> 1036 <xsl:when test="@演:类型 = 'handout' "> 1037 <xsl:element name="style:handout-master"> 1038 <xsl:attribute name="style:name"><xsl:value-of select="@演:标识符"/></xsl:attribute> 1039 <xsl:attribute name="style:page-layout-name"><xsl:value-of select="@演:页面设置引用"/></xsl:attribute> 1040 <xsl:attribute name="draw:style-name"><xsl:value-of select="@演:配色方案引用"/></xsl:attribute> 1041 <xsl:for-each select="uof:锚点[@uof:缩略图='true']"> 1042 <draw:page-thumbnail draw:layer="backgroundobjects"> 1043 <xsl:attribute name="svg:width"><xsl:value-of select="concat(@uof:宽度,$uofUnit)"/></xsl:attribute> 1044 <xsl:attribute name="svg:height"><xsl:value-of select="concat(@uof:高度,$uofUnit)"/></xsl:attribute> 1045 <xsl:attribute name="svg:x"><xsl:value-of select="concat(@uof:x坐标,$uofUnit)"/></xsl:attribute> 1046 <xsl:attribute name="svg:y"><xsl:value-of select="concat(@uof:y坐标,$uofUnit)"/></xsl:attribute> 1047 </draw:page-thumbnail> 1048 </xsl:for-each> 1049 <xsl:apply-templates select="uof:锚点[not(@uof:缩略图='true')]"/> 1050 </xsl:element> 1051 </xsl:when> 1052 <xsl:when test="@演:类型 = 'slide'"> 1053 <xsl:element name="style:master-page"> 1054 <xsl:attribute name="style:name"><xsl:value-of select="@演:标识符"/></xsl:attribute> 1055 <xsl:attribute name="style:page-layout-name"><xsl:value-of select="@演:页面设置引用"/></xsl:attribute> 1056 <xsl:attribute name="draw:style-name"><xsl:value-of select="@演:配色方案引用"/></xsl:attribute> 1057 <xsl:apply-templates select="uof:锚点 "/> 1058 <xsl:for-each select="/uof:UOF/uof:演示文稿/演:主体/演:母版集/演:母版"> 1059 <xsl:if test="@演:类型 = 'notes'"> 1060 <xsl:element name="presentation:notes"> 1061 <xsl:attribute name="style:page-layout-name"><xsl:value-of select="@演:页面设置引用"/></xsl:attribute> 1062 <xsl:attribute name="draw:style-name"><xsl:value-of select="@演:配色方案引用"/></xsl:attribute> 1063 <xsl:apply-templates select="uof:锚点 "/> 1064 </xsl:element> 1065 </xsl:if> 1066 </xsl:for-each> 1067 </xsl:element> 1068 </xsl:when> 1069 </xsl:choose> 1070 </xsl:template> 1071 <xsl:template match="uof:句式样"> 1072 <xsl:element name="style:style"> 1073 <xsl:attribute name="style:name"><xsl:value-of select="@字:标识符"/></xsl:attribute> 1074 <xsl:if test="@字:基式样引用"> 1075 <xsl:attribute name="style:parent-style-name"><xsl:value-of select="@字:基式样引用"/></xsl:attribute> 1076 </xsl:if> 1077 <xsl:choose> 1078 <xsl:when test="ancestor::字:段落式样"> 1079 <xsl:attribute name="style:family">paragraph</xsl:attribute> 1080 </xsl:when> 1081 <xsl:otherwise> 1082 <xsl:attribute name="style:family">text</xsl:attribute> 1083 </xsl:otherwise> 1084 </xsl:choose> 1085 <xsl:element name="style:text-properties"> 1086 <xsl:apply-templates select="*"/> 1087 </xsl:element> 1088 </xsl:element> 1089 </xsl:template> 1090 <xsl:template name="段落式样"> 1091 <xsl:element name="style:style"> 1092 <xsl:variable name="outline" select="@字:标识符"/> 1093 <xsl:attribute name="style:family"><xsl:choose><xsl:when test="/uof:UOF/uof:式样集/uof:自动编号集/字:自动编号[@字:标识符=$outline]">presentation</xsl:when><xsl:otherwise>paragraph</xsl:otherwise></xsl:choose></xsl:attribute> 1094 <xsl:attribute name="style:name"><xsl:value-of select="@字:标识符"/></xsl:attribute> 1095 <xsl:if test="@字:基式样引用"> 1096 <xsl:attribute name="style:parent-style-name"><xsl:value-of select="@字:基式样引用"/></xsl:attribute> 1097 </xsl:if> 1098 <xsl:if test="/uof:UOF/uof:式样集/uof:自动编号集/字:自动编号[@字:标识符=$outline]"> 1099 <xsl:for-each select="/uof:UOF/uof:式样集/uof:自动编号集/字:自动编号[@字:标识符=$outline]"> 1100 <style:graphic-properties draw:stroke="none" draw:fill="none"> 1101 <xsl:element name="text:list-style"> 1102 <xsl:call-template name="自动编号"/> 1103 </xsl:element> 1104 </style:graphic-properties> 1105 </xsl:for-each> 1106 </xsl:if> 1107 <xsl:element name="style:paragraph-properties"> 1108 <xsl:if test="字:自动编号信息"> 1109 <xsl:attribute name="text:enable-numbering">true</xsl:attribute> 1110 </xsl:if> 1111 <xsl:if test="contains($outline,'title')"> 1112 <xsl:attribute name="fo:text-align">center</xsl:attribute> 1113 </xsl:if> 1114 <xsl:call-template name="paragraph-properties"/> 1115 </xsl:element> 1116 <xsl:element name="style:text-properties"> 1117 <xsl:apply-templates select="*"/> 1118 </xsl:element> 1119 </xsl:element> 1120 </xsl:template> 1121 <xsl:template name="paragraph-properties"> 1122 <xsl:choose> 1123 <xsl:when test="descendant::字:页边距[@uof:左]"> 1124 <xsl:attribute name="fo:margin-left"><xsl:value-of select="number(((descendant::字:页边距/@uof:左)div 10) *1)"/>cm</xsl:attribute> 1125 </xsl:when> 1126 <xsl:otherwise> 1127 <xsl:attribute name="fo:margin-left">0cm</xsl:attribute> 1128 </xsl:otherwise> 1129 </xsl:choose> 1130 <xsl:choose> 1131 <xsl:when test="descendant::字:页边距[@uof:右]"> 1132 <xsl:attribute name="fo:margin-right"><xsl:value-of select="number(((descendant::字:页边距/@uof:右)div 10) *1)"/>cm</xsl:attribute> 1133 </xsl:when> 1134 <xsl:otherwise> 1135 <xsl:attribute name="fo:margin-right">0cm</xsl:attribute> 1136 </xsl:otherwise> 1137 </xsl:choose> 1138 <xsl:attribute name="fo:text-indent">0cm</xsl:attribute> 1139 <xsl:call-template name="bidi"/> 1140 </xsl:template> 1141 <xsl:template name="bidi"> 1142 </xsl:template> 1143 <xsl:template name="jibianhao"> 1144 <xsl:param name="biaoshifu"/> 1145 <xsl:element name="text:list-level-style-number"> 1146 <xsl:variable name="currlevel" select="number(@字:级别值)"/> 1147 <xsl:attribute name="text:level"><xsl:value-of select="$currlevel"/></xsl:attribute> 1148 <xsl:attribute name="text:style-name">Numbering Symbols</xsl:attribute> 1149 <xsl:if test="字:起始编号"> 1150 <xsl:attribute name="text:start-value"><xsl:value-of select="字:起始编号"/></xsl:attribute> 1151 </xsl:if> 1152 <xsl:if test="字:正规格式"> 1153 <xsl:attribute name="text:num-regular-exp"><xsl:value-of select="字:正规格式/@值"/></xsl:attribute> 1154 </xsl:if> 1155 <xsl:attribute name="text:display-levels"><xsl:value-of select="string-length(字:编号格式表示) - string-length(translate(字:编号格式表示,'%','') )"/></xsl:attribute> 1156 <xsl:if test="字:编号格式"> 1157 <xsl:call-template name="编号格式"/> 1158 </xsl:if> 1159 <xsl:if test="字:编号格式表示"> 1160 <xsl:attribute name="style:num-prefix"><xsl:choose><xsl:when test="number($currlevel) =1"><xsl:value-of select="substring-before(字:编号格式表示,concat('%',$currlevel))"/></xsl:when><xsl:otherwise><xsl:value-of select="substring-after(substring-after( substring-before(字:编号格式表示,concat('%',$currlevel)),concat('%',string(number($currlevel) -1))),'.')"/></xsl:otherwise></xsl:choose></xsl:attribute> 1161 <xsl:attribute name="style:num-suffix"><xsl:value-of select="substring-after(字:编号格式表示,concat('%',$currlevel))"/></xsl:attribute> 1162 </xsl:if> 1163 <xsl:element name="style:list-level-properties"> 1164 <xsl:if test="@字:编号对齐方式"> 1165 <xsl:attribute name="fo:text-align"><xsl:value-of select="@字:编号对齐方式"/></xsl:attribute> 1166 </xsl:if> 1167 <xsl:call-template name="suojinleixing"/> 1168 </xsl:element> 1169 <xsl:element name="style:text-properties"> 1170 <xsl:if test="字:符号字体"> 1171 <xsl:variable name="Font-ID"> 1172 <xsl:value-of select="字:符号字体/@字:式样引用"/> 1173 </xsl:variable> 1174 <xsl:for-each select="/uof:UOF/uof:式样集/uof:句式样"> 1175 <xsl:if test="@字:标识符=$Font-ID"> 1176 <xsl:if test="字:字体/@字:中文字体引用"> 1177 <xsl:attribute name="fo:font-family"><xsl:value-of select="字:字体/@字:中文字体引用"/></xsl:attribute> 1178 </xsl:if> 1179 </xsl:if> 1180 </xsl:for-each> 1181 <xsl:for-each select="字:符号字体"> 1182 <xsl:apply-templates select="*"/> 1183 </xsl:for-each> 1184 </xsl:if> 1185 </xsl:element> 1186 </xsl:element> 1187 </xsl:template> 1188 <xsl:template name="xiangmufuhao"> 1189 <xsl:param name="biaoshifu"/> 1190 <xsl:variable name="currlevel" select="number(@字:级别值)"/> 1191 <xsl:element name="text:list-level-style-bullet"> 1192 <xsl:attribute name="text:level"><xsl:value-of select="$currlevel"/></xsl:attribute> 1193 <xsl:attribute name="text:style-name"><xsl:value-of select="concat( $biaoshifu,$currlevel)"/></xsl:attribute> 1194 <xsl:attribute name="style:num-suffix"><xsl:value-of select="substring-after(字:编号格式表示,'%1')"/></xsl:attribute> 1195 <xsl:attribute name="text:bullet-char"><xsl:value-of select="字:项目符号"/></xsl:attribute> 1196 <xsl:element name="style:list-level-properties"> 1197 <xsl:if test="@字:编号对齐方式"> 1198 <xsl:attribute name="fo:text-align"><xsl:value-of select="@字:编号对齐方式"/></xsl:attribute> 1199 </xsl:if> 1200 <xsl:call-template name="suojinleixing"/> 1201 </xsl:element> 1202 <xsl:element name="style:text-properties"> 1203 <xsl:if test="字:符号字体"> 1204 <xsl:variable name="Font-ID"> 1205 <xsl:value-of select="字:符号字体/@字:式样引用"/> 1206 </xsl:variable> 1207 <xsl:for-each select="/uof:UOF/uof:式样集/uof:句式样[@字:标识符=$Font-ID]"> 1208 <xsl:if test="字:字体/@字:中文字体引用"> 1209 <xsl:attribute name="fo:font-family"><xsl:value-of select="字:字体/@字:中文字体引用"/></xsl:attribute> 1210 </xsl:if> 1211 </xsl:for-each> 1212 <xsl:for-each select="字:符号字体"> 1213 <xsl:apply-templates select="*"/> 1214 </xsl:for-each> 1215 </xsl:if> 1216 </xsl:element> 1217 </xsl:element> 1218 </xsl:template> 1219 <xsl:template name="suojinleixing"> 1220 <xsl:if test="字:缩进/字:左/字:绝对/@字:值"> 1221 <xsl:attribute name="text:space-before"><xsl:value-of select="concat(number(字:缩进/字:左/字:绝对/@字:值),$uofUnit)"/></xsl:attribute> 1222 </xsl:if> 1223 <xsl:if test="字:缩进/字:右/字:绝对/@字:值"> 1224 <xsl:attribute name="text:min-label-width"><xsl:value-of select="concat(number(字:缩进/字:右/字:绝对/@字:值),$uofUnit)"/></xsl:attribute> 1225 </xsl:if> 1226 <xsl:if test="字:缩进/字:首行/字:绝对/@字:值"> 1227 <xsl:attribute name="text:min-label-distance"><xsl:value-of select="concat(number(字:缩进/字:首行/字:绝对/@字:值),$uofUnit)"/></xsl:attribute> 1228 </xsl:if> 1229 </xsl:template> 1230 <xsl:template name="imagefuhao"> 1231 <xsl:param name="biaoshifu"/> 1232 <xsl:variable name="currlevel" select="number(@字:级别值)"/> 1233 <xsl:element name="text:list-level-style-image" style:vertical-pos="middle" style:vertical-rel="line" fo:width="0.265cm" fo:height="0.265cm"> 1234 <xsl:attribute name="text:level"><xsl:value-of select="$currlevel"/></xsl:attribute> 1235 <xsl:attribute name="text:style-name"><xsl:value-of select="concat( $biaoshifu,$currlevel)"/></xsl:attribute> 1236 <xsl:attribute name="style:num-suffix"><xsl:value-of select="substring-after(字:编号格式表示,'%1')"/></xsl:attribute> 1237 <xsl:if test="字:图片符号引用"> 1238 <xsl:variable name="gid"> 1239 <xsl:value-of select="字:图片符号引用"/> 1240 </xsl:variable> 1241 <xsl:element name="office:binary-data"> 1242 <xsl:value-of select="/uof:UOF/uof:对象集/uof:其他对象[@uof:标识符=$gid]/uof:数据"/> 1243 </xsl:element> 1244 </xsl:if> 1245 <xsl:element name="style:list-level-properties"> 1246 <xsl:attribute name="style:vertical-pos">middle</xsl:attribute> 1247 <xsl:attribute name="style:vertical-rel">line</xsl:attribute> 1248 <xsl:attribute name="fo:width"><xsl:value-of select="concat(字:图片符号引用/@字:宽度,$uofUnit)"/></xsl:attribute> 1249 <xsl:attribute name="fo:height"><xsl:value-of select="concat(字:图片符号引用/@字:高度,$uofUnit)"/></xsl:attribute> 1250 <xsl:if test="字:符号字体"> 1251 <xsl:variable name="Font-ID"> 1252 <xsl:value-of select="字:符号字体/@字:式样引用"/> 1253 </xsl:variable> 1254 <xsl:for-each select="/uof:UOF/uof:式样集/uof:句式样"> 1255 <xsl:if test="@字:标识符=$Font-ID"> 1256 <xsl:if test="字:字体/@字:中文字体引用"> 1257 <xsl:attribute name="fo:font-family"><xsl:value-of select="字:字体/@字:中文字体引用"/></xsl:attribute> 1258 </xsl:if> 1259 </xsl:if> 1260 </xsl:for-each> 1261 </xsl:if> 1262 <xsl:call-template name="suojinleixing"/> 1263 <xsl:if test="@字:编号对齐方式"> 1264 <xsl:attribute name="fo:text-align"><xsl:value-of select="@字:编号对齐方式"/></xsl:attribute> 1265 </xsl:if> 1266 </xsl:element> 1267 <xsl:element name="style:text-properties"> 1268 <xsl:for-each select="字:符号字体"> 1269 <xsl:apply-templates select="*"/> 1270 </xsl:for-each> 1271 </xsl:element> 1272 </xsl:element> 1273 </xsl:template> 1274 <xsl:template name="编号格式"> 1275 <xsl:attribute name="style:num-format"><xsl:choose><xsl:when test="string(字:编号格式)='lower-letter'">a</xsl:when><xsl:when test="string(字:编号格式)='upper-letter'">A</xsl:when><xsl:when test="string(字:编号格式)='lower-roman'">i</xsl:when><xsl:when test="string(字:编号格式)='upper-roman'">I</xsl:when><xsl:when test="string(字:编号格式)='decimal-enclosed-circle'">①, ②, ③, ...</xsl:when><xsl:when test="string(字:编号格式)='ideograph-traditional'">甲, 乙, 丙, ...</xsl:when><xsl:when test="string(字:编号格式)='ideograph-zodiac'">子, 丑, 寅, ...</xsl:when><xsl:when test="string(字:编号格式)='chinese-counting'">一, 二, 三, ...</xsl:when><xsl:when test="string(字:编号格式)='chinese-legal-simplified'">壹, 贰, 叁, ...</xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:attribute> 1276 </xsl:template> 1277 <xsl:template match="演:幻灯片集"> 1278 <xsl:for-each select="演:幻灯片"> 1279 <xsl:element name="draw:page"> 1280 <xsl:attribute name="draw:name"><xsl:value-of select="@演:名称"/></xsl:attribute> 1281 <xsl:attribute name="draw:style-name"><xsl:value-of select="@演:标识符"/></xsl:attribute> 1282 <xsl:attribute name="draw:master-page-name"><xsl:value-of select="@演:母版引用"/></xsl:attribute> 1283 <xsl:if test="@演:页面版式引用"> 1284 <xsl:attribute name="presentation:presentation-page-layout-name"><xsl:value-of select="@演:页面版式引用"/></xsl:attribute> 1285 </xsl:if> 1286 <office:forms form:automatic-focus="false" form:apply-design-mode="false"/> 1287 <xsl:apply-templates select="uof:锚点"/> 1288 <xsl:apply-templates select="演:动画"/> 1289 <xsl:element name="presentation:notes"> 1290 <xsl:attribute name="draw:style-name">dp2</xsl:attribute> 1291 <xsl:apply-templates select="./演:幻灯片备注/uof:锚点"/> 1292 </xsl:element> 1293 </xsl:element> 1294 </xsl:for-each> 1295 </xsl:template> 1296 <xsl:template match="演:动画"> 1297 <xsl:element name="anim:par"> 1298 <xsl:attribute name="presentation:node-type">timing-root</xsl:attribute> 1299 <anim:seq presentation:node-type="main-sequence"> 1300 <xsl:for-each select="演:序列"> 1301 <anim:par begin="next"> 1302 <anim:par smil:begin="0s"> 1303 <xsl:variable name="animnodename">anim:par</xsl:variable> 1304 <xsl:choose> 1305 <xsl:when test="演:效果//演:其他"> 1306 <xsl:copy-of select="演:效果//演:其他/*"/> 1307 </xsl:when> 1308 <xsl:otherwise> 1309 <xsl:element name="{$animnodename}"> 1310 <xsl:attribute name="smil:fill"><xsl:choose><xsl:when test="演:定时/@演:回卷='true'">remove</xsl:when><xsl:otherwise>hold</xsl:otherwise></xsl:choose></xsl:attribute> 1311 <xsl:choose> 1312 <xsl:when test="演:增强/演:动画播放后/@演:播放后隐藏='true'"> 1313 <xsl:attribute name="presentation:preset-property">Direction;Accelerate;Decelerate</xsl:attribute> 1314 </xsl:when> 1315 <xsl:when test=".//演:轮子"> 1316 <xsl:attribute name="presentation:preset-property">Spokes</xsl:attribute> 1317 </xsl:when> 1318 <xsl:when test="演:效果/演:强调/演:更改填充颜色"> 1319 <xsl:attribute name="presentation:preset-property">FillColor;ColorStyle;Accelerate;Decelerate;AutoReverse</xsl:attribute> 1320 </xsl:when> 1321 <xsl:when test="演:效果/演:强调/演:更改字体颜色"> 1322 <xsl:attribute name="presentation:preset-property">CharColor;ColorStyle;Accelerate;Decelerate;AutoReverse</xsl:attribute> 1323 </xsl:when> 1324 <xsl:when test="演:效果/演:强调/演:更改字号"> 1325 <xsl:attribute name="presentation:preset-property">CharHeight</xsl:attribute> 1326 </xsl:when> 1327 <xsl:when test="演:效果/演:强调/演:更改字形"> 1328 <xsl:attribute name="presentation:preset-property">CharDecoration</xsl:attribute> 1329 </xsl:when> 1330 <xsl:when test="演:效果/演:强调/演:陀螺旋"> 1331 <xsl:attribute name="presentation:preset-property">Rotate;Accelerate;Decelerate;AutoReverse</xsl:attribute> 1332 </xsl:when> 1333 <xsl:when test="演:效果/演:强调/演:透明"> 1334 <xsl:attribute name="presentation:preset-property">Transparency</xsl:attribute> 1335 </xsl:when> 1336 <xsl:when test="演:效果/演:强调/演:更改线条颜色"> 1337 <xsl:attribute name="presentation:preset-property">LineColor;ColorStyle;Accelerate;Decelerate;AutoReverse</xsl:attribute> 1338 </xsl:when> 1339 </xsl:choose> 1340 <xsl:attribute name="presentation:node-type"><xsl:choose><xsl:when test="演:定时/@演:事件='on click'">on-click</xsl:when><xsl:otherwise><xsl:value-of select="演:定时/@演:事件"/></xsl:otherwise></xsl:choose></xsl:attribute> 1341 <xsl:attribute name="smil:begin"><xsl:value-of select="演:定时/@演:延时"/></xsl:attribute> 1342 <xsl:choose> 1343 <xsl:when test="演:定时/@演:重复='until next click' "> 1344 <xsl:attribute name="smil:repeatCount">indefinite</xsl:attribute> 1345 <xsl:attribute name="smil:end">next</xsl:attribute> 1346 </xsl:when> 1347 <xsl:when test="演:定时/@演:重复='until next slide' "> 1348 <xsl:attribute name="smil:repeatCount ">indefinite</xsl:attribute> 1349 </xsl:when> 1350 <xsl:when test="演:定时/@演:重复 !='none'"> 1351 <xsl:attribute name="smil:repeatCount"><xsl:value-of select="演:定时/@演:重复"/></xsl:attribute> 1352 </xsl:when> 1353 </xsl:choose> 1354 <xsl:if test="演:增强/演:动画文本/@演:发送"> 1355 <xsl:attribute name="anim:iterate-type"><xsl:choose><xsl:when test="演:增强/演:动画文本/@演:发送='by word'">by-word</xsl:when><xsl:when test="演:增强/演:动画文本/@演:发送='by letter'">by-letter</xsl:when><xsl:otherwise>all at once</xsl:otherwise></xsl:choose></xsl:attribute> 1356 </xsl:if> 1357 <xsl:if test="演:增强/演:动画文本/@演:间隔"> 1358 <xsl:attribute name="anim:iterate-interval"><xsl:value-of select="演:增强/演:动画文本/@演:间隔"/></xsl:attribute> 1359 </xsl:if> 1360 <xsl:if test="$animnodename='anim:iterate' "> 1361 <xsl:attribute name="anim:id"><xsl:value-of select="@演:动画对象"/></xsl:attribute> 1362 </xsl:if> 1363 <xsl:apply-templates select="演:效果"/> 1364 </xsl:element> 1365 </xsl:otherwise> 1366 </xsl:choose> 1367 </anim:par> 1368 </anim:par> 1369 </xsl:for-each> 1370 </anim:seq> 1371 </xsl:element> 1372 </xsl:template> 1373 <xsl:template match="演:效果"> 1374 <xsl:apply-templates select="演:进入 "/> 1375 <xsl:apply-templates select="演:强调"/> 1376 <xsl:apply-templates select="演:退出"/> 1377 </xsl:template> 1378 <xsl:template match="演:进入"> 1379 <xsl:attribute name="presentation:preset-class">entrance</xsl:attribute> 1380 <xsl:apply-templates select="." mode="entrance"/> 1381 </xsl:template> 1382 <xsl:template match="演:强调"> 1383 <xsl:attribute name="presentation:preset-class">emphasis</xsl:attribute> 1384 <xsl:apply-templates select="." mode="emphasis"/> 1385 </xsl:template> 1386 <xsl:template match="演:退出"> 1387 <xsl:attribute name="presentation:preset-class">exit</xsl:attribute> 1388 <xsl:apply-templates select="." mode="exit"/> 1389 </xsl:template> 1390 <xsl:template name="演速度"> 1391 <xsl:choose> 1392 <xsl:when test="./@演:速度='very fast' ">0.5s</xsl:when> 1393 <xsl:when test="./@演:速度='fast'">1s</xsl:when> 1394 <xsl:when test="./@演:速度='medium'">2s</xsl:when> 1395 <xsl:when test="./@演:速度='slow'">3s</xsl:when> 1396 <xsl:when test="./@演:速度='very slow'">5s</xsl:when> 1397 <xsl:otherwise>1s</xsl:otherwise> 1398 </xsl:choose> 1399 </xsl:template> 1400 <xsl:template match="演:出现" mode="entrance"> 1401 <xsl:attribute name="presentation:preset-id">ooo-entrance-appear</xsl:attribute> 1402 <anim:set smil:begin="0s" smil:dur="0.001s" smil:fill="hold" anim:sub-item="text" smil:attributeName="visibility" smil:to="visible"> 1403 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1404 </anim:set> 1405 </xsl:template> 1406 <xsl:template match="演:盒状" mode="entrance"> 1407 <xsl:attribute name="presentation:preset-id">ooo-entrance-box</xsl:attribute> 1408 <xsl:attribute name="presentation:preset-sub-type"><xsl:value-of select="@演:方向"/></xsl:attribute> 1409 <anim:set smil:begin="0s" smil:dur="0.004s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1410 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1411 </anim:set> 1412 <anim:transitionFilter smil:type="irisWipe" smil:subtype="rectangle" smil:direction="reverse"> 1413 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1414 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1415 </anim:transitionFilter> 1416 </xsl:template> 1417 <xsl:template match="演:棋盘" mode="entrance"> 1418 <xsl:attribute name="presentation:preset-id">ooo-entrance-checkerboard</xsl:attribute> 1419 <xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@演:方向='down'">downward</xsl:when><xsl:when test="@演:方向='across'">across</xsl:when></xsl:choose></xsl:attribute> 1420 <anim:set smil:begin="0s" smil:dur="0.004s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1421 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1422 </anim:set> 1423 <anim:transitionFilter smil:dur="2s" anim:sub-item="text" smil:type="checkerBoardWipe" smil:subtype="down"> 1424 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1425 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1426 </anim:transitionFilter> 1427 </xsl:template> 1428 <xsl:template match="演:圆形扩展" mode="entrance"> 1429 <xsl:attribute name="presentation:preset-id">ooo-entrance-circle</xsl:attribute> 1430 <xsl:attribute name="presentation:preset-sub-type"><xsl:value-of select="@演:方向"/></xsl:attribute> 1431 <anim:set smil:begin="0s" smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1432 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1433 </anim:set> 1434 <anim:transitionFilter smil:type="ellipseWipe" smil:subtype="horizontal" smil:direction="reverse"> 1435 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1436 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1437 </anim:transitionFilter> 1438 </xsl:template> 1439 <xsl:template match="演:阶梯状" mode="entrance"> 1440 <xsl:attribute name="presentation:preset-id">ooo-entrance-diagonal-squares</xsl:attribute> 1441 <xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@演:方向='left down'">left-to-bottom</xsl:when><xsl:when test="@演:方向='left up'">left-to-top</xsl:when><xsl:when test="@演:方向='right down'">right-to-bottom</xsl:when><xsl:when test="@演:方向='right up'">right-to-top</xsl:when></xsl:choose></xsl:attribute> 1442 <anim:set smil:begin="0s" smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1443 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1444 </anim:set> 1445 <anim:transitionFilter smil:type="waterfallWipe" smil:direction="reverse"> 1446 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1447 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1448 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@演:方向='left down'">horizontalLeft</xsl:when><xsl:when test="@演:方向='left up'">horizontalLeft</xsl:when><xsl:when test="@演:方向='right down'">horizontalRight</xsl:when><xsl:when test="@演:方向='right up'">horizontalRight</xsl:when></xsl:choose></xsl:attribute> 1449 </anim:transitionFilter> 1450 </xsl:template> 1451 <xsl:template match="演:菱形" mode="entrance"> 1452 <xsl:attribute name="presentation:preset-id">ooo-entrance-diamond</xsl:attribute> 1453 <xsl:attribute name="presentation:preset-sub-type"><xsl:value-of select="@演:方向"/></xsl:attribute> 1454 <anim:set smil:begin="0s" smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1455 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1456 </anim:set> 1457 <anim:transitionFilter smil:type="irisWipe" smil:subtype="diamond" smil:direction="reverse"> 1458 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1459 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1460 </anim:transitionFilter> 1461 </xsl:template> 1462 <xsl:template match="演:内向溶解" mode="entrance"> 1463 <xsl:attribute name="presentation:preset-id">ooo-entrance-dissolve-in</xsl:attribute> 1464 <anim:set smil:begin="0s" smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1465 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1466 </anim:set> 1467 <anim:transitionFilter smil:type="dissolve" smil:direction="reverse"> 1468 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1469 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1470 </anim:transitionFilter> 1471 </xsl:template> 1472 <xsl:template match="演:闪烁一次" mode="entrance"> 1473 <xsl:attribute name="presentation:preset-id">ooo-entrance-flash-once</xsl:attribute> 1474 <anim:set smil:begin="0s" smil:attributeName="visibility" smil:to="visible"> 1475 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1476 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1477 </anim:set> 1478 </xsl:template> 1479 <xsl:template match="演:飞入" mode="entrance"> 1480 <xsl:attribute name="presentation:preset-id">ooo-entrance-fly-in</xsl:attribute> 1481 <xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@演:方向= 'from bottom'">from-bottom</xsl:when><xsl:when test="@演:方向 = 'from top-right'">from-top-right</xsl:when><xsl:when test="@演:方向 = 'from top-left'">from-top-left</xsl:when><xsl:when test="@演:方向 = 'from bottom-left'">from-bottom-left</xsl:when><xsl:when test="@演:方向 = 'from bottom-right'">from-bottom-right</xsl:when><xsl:when test="@演:方向 = 'from right'">from-right</xsl:when><xsl:when test="@演:方向 = 'from left'">from-left</xsl:when><xsl:when test="@演:方向 = 'from top'">from-top</xsl:when></xsl:choose></xsl:attribute> 1482 <anim:set smil:begin="0s" smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1483 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1484 </anim:set> 1485 <xsl:variable name="smilvalueX"> 1486 <xsl:choose> 1487 <xsl:when test="contains(@演:方向,'right')">1+width/2;x</xsl:when> 1488 <xsl:when test="contains(@演:方向,'left')">0-width/2;x</xsl:when> 1489 <xsl:otherwise>x;x</xsl:otherwise> 1490 </xsl:choose> 1491 </xsl:variable> 1492 <xsl:variable name="smilvalueY"> 1493 <xsl:choose> 1494 <xsl:when test="contains(@演:方向,'bottom')">1+height/2;y</xsl:when> 1495 <xsl:when test="contains(@演:方向,'top')">0-height/2;y</xsl:when> 1496 <xsl:otherwise>y;y</xsl:otherwise> 1497 </xsl:choose> 1498 </xsl:variable> 1499 <anim:animate smil:fill="hold" smil:attributeName="x" smil:keyTimes="0;1" presentation:additive="base"> 1500 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1501 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1502 <xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueX"/></xsl:attribute> 1503 </anim:animate> 1504 <anim:animate smil:fill="hold" smil:attributeName="y" smil:keyTimes="0;1" presentation:additive="base"> 1505 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1506 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1507 <xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueY"/></xsl:attribute> 1508 </anim:animate> 1509 </xsl:template> 1510 <xsl:template match="演:缓慢飞入" mode="entrance"> 1511 <xsl:attribute name="presentation:preset-id">ooo-entrance-fly-in-slow</xsl:attribute> 1512 <xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@演:方向= 'from bottom'">from-bottom</xsl:when><xsl:when test="@演:方向 = 'from right'">from-right</xsl:when><xsl:when test="@演:方向 = 'from left'">from-left</xsl:when><xsl:when test="@演:方向 = 'from top'">from-top</xsl:when></xsl:choose></xsl:attribute> 1513 <anim:set smil:begin="0s" smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1514 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1515 </anim:set> 1516 <xsl:variable name="smilvalueX"> 1517 <xsl:choose> 1518 <xsl:when test="contains(@演:方向,'right')">1+width/2;x</xsl:when> 1519 <xsl:when test="contains(@演:方向,'left')">0-width/2;x</xsl:when> 1520 <xsl:otherwise>x;x</xsl:otherwise> 1521 </xsl:choose> 1522 </xsl:variable> 1523 <xsl:variable name="smilvalueY"> 1524 <xsl:choose> 1525 <xsl:when test="contains(@演:方向,'bottom')">1+height/2;y</xsl:when> 1526 <xsl:when test="contains(@演:方向,'top')">0-height/2;y</xsl:when> 1527 <xsl:otherwise>y;y</xsl:otherwise> 1528 </xsl:choose> 1529 </xsl:variable> 1530 <anim:animate smil:fill="hold" smil:attributeName="x" smil:keyTimes="0;1" presentation:additive="base"> 1531 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1532 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1533 <xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueX"/></xsl:attribute> 1534 </anim:animate> 1535 <anim:animate smil:fill="hold" smil:attributeName="y" smil:keyTimes="0;1" presentation:additive="base"> 1536 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1537 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1538 <xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueY"/></xsl:attribute> 1539 </anim:animate> 1540 </xsl:template> 1541 <xsl:template match="演:切入" mode="entrance"> 1542 <xsl:attribute name="presentation:preset-id">ooo-entrance-peek-in</xsl:attribute> 1543 <xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@演:方向= 'from bottom'">from-bottom</xsl:when><xsl:when test="@演:方向 = 'from right'">from-right</xsl:when><xsl:when test="@演:方向 = 'from left'">from-left</xsl:when><xsl:when test="@演:方向 = 'from top'">from-top</xsl:when></xsl:choose></xsl:attribute> 1544 <anim:set smil:begin="0s" smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1545 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1546 </anim:set> 1547 <anim:transitionFilter smil:type="slideWipe" smil:direction="reverse"> 1548 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1549 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1550 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@演:方向= 'from bottom'">fromBottom</xsl:when><xsl:when test="@演:方向 = 'from right'">fromRight</xsl:when><xsl:when test="@演:方向 = 'from left'">fromLeft</xsl:when><xsl:when test="@演:方向 = 'from top'">fromTop</xsl:when></xsl:choose></xsl:attribute> 1551 </anim:transitionFilter> 1552 </xsl:template> 1553 <xsl:template match="演:十字形扩展" mode="entrance"> 1554 <xsl:attribute name="presentation:preset-id">ooo-entrance-plus</xsl:attribute> 1555 <xsl:attribute name="presentation:preset-sub-type"><xsl:value-of select="@演:方向"/></xsl:attribute> 1556 <anim:set smil:begin="0s" smil:dur="0.00025s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1557 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1558 </anim:set> 1559 <anim:transitionFilter smil:type="fourBoxWipe" smil:direction="reverse"> 1560 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1561 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1562 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@演:方向= 'in'">cornersIn</xsl:when><xsl:when test="@演:方向 = 'out'">cornersOut</xsl:when></xsl:choose></xsl:attribute> 1563 </anim:transitionFilter> 1564 </xsl:template> 1565 <xsl:template match="演:随机线条" mode="entrance"> 1566 <xsl:attribute name="presentation:preset-id">ooo-entrance-bars</xsl:attribute> 1567 <xsl:attribute name="presentation:preset-sub-type"><xsl:value-of select="@演:方向"/></xsl:attribute> 1568 <anim:set smil:begin="0s" smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1569 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1570 </anim:set> 1571 <anim:transitionFilter smil:type="randomBarWipe" smil:direction="reverse"> 1572 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1573 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1574 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@演:方向= 'horizontal'">vertical</xsl:when><xsl:when test="@演:方向 = 'vertical'">horizontal</xsl:when></xsl:choose></xsl:attribute> 1575 </anim:transitionFilter> 1576 </xsl:template> 1577 <xsl:template match="演:劈裂" mode="entrance"> 1578 <xsl:attribute name="presentation:preset-id">ooo-entrance-split</xsl:attribute> 1579 <xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@演:方向 = 'horizontal out'">horizontal-out</xsl:when><xsl:when test="@演:方向= 'horizontal in'">horizontal-in</xsl:when><xsl:when test="@演:方向= 'vertical in'">vertical-in</xsl:when><xsl:when test="@演:方向= 'vertical out'">vertical-out</xsl:when></xsl:choose></xsl:attribute> 1580 <anim:set smil:begin="0s" smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1581 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1582 </anim:set> 1583 <anim:transitionFilter smil:dur="0.5s" smil:type="barnDoorWipe"> 1584 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1585 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@演:方向 = 'horizontal out'">horizontal</xsl:when><xsl:when test="@演:方向= 'horizontal in'">horizontal</xsl:when><xsl:when test="@演:方向= 'vertical in'">vertical</xsl:when><xsl:when test="@演:方向= 'vertical out'">vertical</xsl:when></xsl:choose></xsl:attribute> 1586 </anim:transitionFilter> 1587 </xsl:template> 1588 <xsl:template match="演:百叶窗" mode="entrance"> 1589 <xsl:attribute name="presentation:preset-id">ooo-entrance-venetian-blinds</xsl:attribute> 1590 <xsl:attribute name="presentation:preset-sub-type"><xsl:value-of select="@演:方向"/></xsl:attribute> 1591 <anim:set smil:begin="0s" smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1592 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1593 </anim:set> 1594 <anim:transitionFilter smil:type="blindsWipe" smil:direction="reverse"> 1595 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1596 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1597 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@演:方向= 'horizontal'">vertical</xsl:when><xsl:when test="@演:方向 = 'vertical'">horizontal</xsl:when></xsl:choose></xsl:attribute> 1598 </anim:transitionFilter> 1599 </xsl:template> 1600 <xsl:template match="演:扇形展开" mode="entrance"> 1601 <xsl:attribute name="presentation:preset-id">ooo-entrance-wedge</xsl:attribute> 1602 <anim:set smil:begin="0s" smil:dur="0.0015s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1603 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1604 </anim:set> 1605 <anim:transitionFilter smil:type="fanWipe" smil:subtype="centerTop"> 1606 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1607 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1608 </anim:transitionFilter> 1609 </xsl:template> 1610 <xsl:template match="演:轮子" mode="entrance"> 1611 <xsl:attribute name="presentation:preset-id">ooo-entrance-wheel</xsl:attribute> 1612 <xsl:attribute name="presentation:preset-sub-type"><xsl:value-of select="@演:辐射状"/></xsl:attribute> 1613 <anim:set smil:begin="0s" smil:dur="0.00025s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1614 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1615 </anim:set> 1616 <anim:transitionFilter smil:dur="0.5s" smil:type="pinWheelWipe"> 1617 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1618 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1619 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@演:辐射状='1'">oneBlade</xsl:when><xsl:when test="@演:辐射状='2'">twoBlade</xsl:when><xsl:when test="@演:辐射状='3'">threeBlade</xsl:when><xsl:when test="@演:辐射状='4'">fourBlade</xsl:when><xsl:when test="@演:辐射状='8'">eightBlade</xsl:when></xsl:choose></xsl:attribute> 1620 </anim:transitionFilter> 1621 </xsl:template> 1622 <xsl:template match="演:擦除" mode="entrance"> 1623 <xsl:attribute name="presentation:preset-id">ooo-entrance-wipe</xsl:attribute> 1624 <xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@演:速度 = 'from right'">from-right</xsl:when><xsl:when test="@演:速度 = 'from left'">from-left</xsl:when><xsl:when test="@演:速度 = 'from top'">from-top</xsl:when><xsl:when test="@演:速度 = 'from bottom'">from-bottom</xsl:when><xsl:otherwise>from-left</xsl:otherwise></xsl:choose></xsl:attribute> 1625 <anim:set smil:begin="0s" smil:dur="0.006s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1626 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1627 </anim:set> 1628 <anim:transitionFilter smil:type="barWipe" smil:subtype="leftToRight" smil:direction="reverse"> 1629 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1630 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1631 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="(@演:速度 = 'from right') or (@演:速度 = 'from left')">leftToRight</xsl:when><xsl:when test="(@演:速度 = 'from top') or (@演:速度 = 'from bottom')">topToBottom</xsl:when><xsl:otherwise>leftToRight</xsl:otherwise></xsl:choose></xsl:attribute> 1632 </anim:transitionFilter> 1633 </xsl:template> 1634 <xsl:template match="演:随机效果" mode="entrance"> 1635 <xsl:attribute name="presentation:preset-id">ooo-entrance-random</xsl:attribute> 1636 <anim:set smil:begin="0s" smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="visible"> 1637 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1638 </anim:set> 1639 <anim:animate smil:dur="1s" smil:fill="hold" smil:attributeName="width" smil:values="0;width" smil:keyTimes="0;1" presentation:additive="base"> 1640 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1641 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1642 </anim:animate> 1643 <anim:animate smil:fill="hold" smil:attributeName="height" smil:values="0;height" smil:keyTimes="0;1" presentation:additive="base"> 1644 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1645 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1646 </anim:animate> 1647 <anim:animate smil:fill="hold" smil:attributeName="rotate" smil:values="90;0" smil:keyTimes="0;1" presentation:additive="base"> 1648 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1649 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1650 </anim:animate> 1651 <anim:transitionFilter smil:type="fade" smil:subtype="crossfade"> 1652 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1653 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1654 </anim:transitionFilter> 1655 </xsl:template> 1656 <xsl:template match="更改填充颜色" mode="emphasis"> 1657 <xsl:attribute name="presentation:preset-id">ooo-emphasis-fill-color</xsl:attribute> 1658 <xsl:attribute name="presentation:preset-sub-type">2</xsl:attribute> 1659 <anim:animateColor smil:fill="hold" smil:attributeName="fill-color" presentation:additive="base" anim:color-interpolation="rgb" anim:color-interpolation-direction="clockwise"> 1660 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1661 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1662 <xsl:attribute name="smil:to"><xsl:value-of select="@演:颜色"/></xsl:attribute> 1663 </anim:animateColor> 1664 <anim:set smil:dur="0.5s" smil:fill="hold" smil:attributeName="fill" smil:to="solid"> 1665 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1666 </anim:set> 1667 </xsl:template> 1668 <xsl:template match="更改字体颜色" mode="emphasis"> 1669 <xsl:attribute name="presentation:preset-id">ooo-emphasis-font-color</xsl:attribute> 1670 <xsl:attribute name="presentation:preset-sub-type">2</xsl:attribute> 1671 <anim:animateColor smil:fill="hold" smil:attributeName="fill-color" presentation:additive="base" anim:color-interpolation="rgb" anim:color-interpolation-direction="clockwise"> 1672 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1673 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1674 <xsl:attribute name="smil:to"><xsl:value-of select="@演:颜色"/></xsl:attribute> 1675 </anim:animateColor> 1676 </xsl:template> 1677 <xsl:template match="演:更改字号" mode="emphasis"> 1678 <xsl:attribute name="presentation:preset-id">ooo-emphasis-font-size</xsl:attribute> 1679 <xsl:attribute name="presentation:preset-sub-type">2</xsl:attribute> 1680 <anim:animate smil:fill="hold" smil:attributeName="font-size" presentation:additive="base"> 1681 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1682 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1683 <xsl:attribute name="smil:to"><xsl:choose><xsl:when test="@演:预定义尺寸='tiny' ">0.25,1</xsl:when><xsl:when test="@演:预定义尺寸='smaller' ">0.5,1</xsl:when><xsl:when test="@演:预定义尺寸='larger' ">1.5,1</xsl:when><xsl:when test="@演:预定义尺寸='huge' ">4,1</xsl:when><xsl:when test="@演:自定义尺寸"><xsl:value-of select="@演:自定义尺寸"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:attribute> 1684 </anim:animate> 1685 </xsl:template> 1686 <xsl:template name="emp_font_style"> 1687 <xsl:param name="fontstyle"/> 1688 <xsl:choose> 1689 <xsl:when test="contains($fontstyle,' ')"> 1690 <anim:set smil:dur="indefinite" smil:attributeName="font-style"> 1691 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1692 <xsl:attribute name="smil:to"><xsl:value-of select="substring-before($fontstyle,' ')"/></xsl:attribute> 1693 </anim:set> 1694 <xsl:variable name="fontstyle1"> 1695 <xsl:choose> 1696 <xsl:when test="contains($fontstyle,' ')"> 1697 <xsl:value-of select="substring-after($fontstyle,' ')"/> 1698 </xsl:when> 1699 <xsl:when test="not($fontstyle=' ')"> 1700 <xsl:value-of select="$fontstyle"/> 1701 </xsl:when> 1702 </xsl:choose> 1703 </xsl:variable> 1704 <xsl:call-template name="emp_font_style"> 1705 <xsl:with-param name="fontstyle"> 1706 <xsl:value-of select="$fontstyle1"/> 1707 </xsl:with-param> 1708 </xsl:call-template> 1709 </xsl:when> 1710 <xsl:otherwise> 1711 </xsl:otherwise> 1712 </xsl:choose> 1713 </xsl:template> 1714 <xsl:template match="演:更改字形" mode="emphasis"> 1715 <xsl:attribute name="presentation:preset-id">ooo-emphasis-font-style</xsl:attribute> 1716 <xsl:attribute name="presentation:preset-sub-type">1</xsl:attribute> 1717 <xsl:call-template name="emp_font_style"> 1718 <xsl:with-param name="fontstyle"> 1719 <xsl:value-of select="@演:字形"/> 1720 </xsl:with-param> 1721 </xsl:call-template> 1722 </xsl:template> 1723 <xsl:template match="演:更改线条颜色" mode="emphasis"> 1724 <xsl:attribute name="presentation:preset-id">ooo-emphasis-line-color</xsl:attribute> 1725 <xsl:attribute name="presentation:preset-sub-type">2</xsl:attribute> 1726 <anim:animateColor smil:dur="0s" smil:fill="hold" smil:attributeName="stroke-color" presentation:additive="base" anim:color-interpolation="rgb" anim:color-interpolation-direction="clockwise"> 1727 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1728 <xsl:attribute name="smil:to"><xsl:value-of select="@演:颜色"/></xsl:attribute> 1729 </anim:animateColor> 1730 <anim:set smil:dur="0s" smil:fill="hold" anim:sub-item="text" smil:attributeName="stroke" smil:to="solid"> 1731 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1732 </anim:set> 1733 </xsl:template> 1734 <xsl:template match="演:陀螺旋" mode="emphasis"> 1735 <xsl:attribute name="presentation:preset-id">ooo-emphasis-spin</xsl:attribute> 1736 <xsl:attribute name="presentation:preset-sub-type">2</xsl:attribute> 1737 <anim:animateTransform smil:fill="hold" smil:by="180" presentation:additive="base" svg:type="rotate"> 1738 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1739 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1740 <xsl:attribute name="smil:by"><xsl:choose><xsl:when test="@演:预定义角度='quarter spin'">90</xsl:when><xsl:when test="@演:预定义角度='half spin'">180</xsl:when><xsl:when test="@演:预定义角度='full spin'">360</xsl:when><xsl:when test="@演:预定义角度='two spins'">720 </xsl:when><xsl:when test="@演:自定义角度"><xsl:value-of select="@演:自定义角度"/></xsl:when></xsl:choose></xsl:attribute> 1741 </anim:animateTransform> 1742 </xsl:template> 1743 <xsl:template match="演:透明" mode="emphasis"> 1744 <xsl:attribute name="presentation:preset-id">ooo-emphasis-transparency</xsl:attribute> 1745 <xsl:attribute name="smil:repeatCount"><xsl:choose><xsl:when test="(@演:期间 = 'until next click') or (@演:期间 ='until next slide') ">indefinite</xsl:when><xsl:when test="@演:期间='2' or @演:期间 ='3' or @演:期间 ='4' or @演:期间 ='5' or @演:期间 ='10'"><xsl:value-of select="@演:期间"/></xsl:when><xsl:otherwise>2</xsl:otherwise></xsl:choose></xsl:attribute> 1746 <anim:set smil:dur="indefinite" anim:sub-item="text" smil:attributeName="opacity"> 1747 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1748 <xsl:attribute name="smil:to"><xsl:choose><xsl:when test="@演:预定义透明度='25' ">0.25</xsl:when><xsl:when test="@演:预定义透明度='50' ">0.5</xsl:when><xsl:when test="@演:预定义透明度='75' ">0.75</xsl:when><xsl:when test="@演:预定义透明度='100' ">1</xsl:when><xsl:when test="@演:自定义透明度"><xsl:value-of select="@演:自定义透明度"/></xsl:when><xsl:otherwise>1</xsl:otherwise></xsl:choose></xsl:attribute> 1749 </anim:set> 1750 </xsl:template> 1751 <xsl:template match="演:缩放" mode="emphasis"> 1752 <xsl:attribute name="presentation:preset-id">ooo-emphasis-grow-and-shrink</xsl:attribute> 1753 <anim:animateTransform smil:fill="hold" anim:sub-item="text" presentation:additive="base" svg:type="scale"> 1754 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1755 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1756 <xsl:attribute name="smil:to"><xsl:choose><xsl:when test="@演:预定义尺寸='tiny' ">0.25,1</xsl:when><xsl:when test="@演:预定义尺寸='smaller' ">0.5,1</xsl:when><xsl:when test="@演:预定义尺寸='larger' ">1.5,1</xsl:when><xsl:when test="@演:预定义尺寸='huge' ">4,1</xsl:when><xsl:when test="@演:自定义尺寸"><xsl:value-of select="@演:自定义尺寸"/></xsl:when><xsl:otherwise>0.5,1</xsl:otherwise></xsl:choose></xsl:attribute> 1757 </anim:animateTransform> 1758 </xsl:template> 1759 <xsl:template match="演:盒状" mode="exit"> 1760 <xsl:attribute name="presentation:preset-id">ooo-exit-box</xsl:attribute> 1761 <xsl:attribute name="presentation:preset-sub-type"><xsl:value-of select="@演:方向"/></xsl:attribute> 1762 <anim:transitionFilter smil:type="irisWipe" smil:subtype="rectangle" smil:direction="reverse" smil:mode="out"> 1763 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1764 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1765 </anim:transitionFilter> 1766 <anim:set smil:dur="0.004s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 1767 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1768 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1769 </anim:set> 1770 </xsl:template> 1771 <xsl:template match="演:棋盘" mode="exit"> 1772 <xsl:attribute name="presentation:preset-id">ooo-exit-checkerboard</xsl:attribute> 1773 <xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@演:方向='down'">downward</xsl:when><xsl:when test="@演:方向='across'">across</xsl:when></xsl:choose></xsl:attribute> 1774 <anim:transitionFilter smil:dur="2s" anim:sub-item="text" smil:type="checkerBoardWipe" smil:subtype="down" smil:mode="out"> 1775 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1776 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1777 </anim:transitionFilter> 1778 <anim:set smil:dur="0.004s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 1779 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1780 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1781 </anim:set> 1782 </xsl:template> 1783 <xsl:template match="演:圆形扩展" mode="exit"> 1784 <xsl:attribute name="presentation:preset-id">ooo-exit-circle</xsl:attribute> 1785 <xsl:attribute name="presentation:preset-sub-type"><xsl:value-of select="@演:方向"/></xsl:attribute> 1786 <anim:transitionFilter smil:type="ellipseWipe" smil:subtype="horizontal" smil:direction="reverse" smil:mode="out"> 1787 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1788 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1789 </anim:transitionFilter> 1790 <anim:set smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 1791 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1792 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1793 </anim:set> 1794 </xsl:template> 1795 <xsl:template match="演:阶梯状" mode="exit"> 1796 <xsl:attribute name="presentation:preset-id">ooo-exit-diagonal-squares</xsl:attribute> 1797 <xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@演:方向='left down'">left-to-bottom</xsl:when><xsl:when test="@演:方向='left up'">left-to-top</xsl:when><xsl:when test="@演:方向='right down'">right-to-bottom</xsl:when><xsl:when test="@演:方向='right up'">right-to-top</xsl:when></xsl:choose></xsl:attribute> 1798 <anim:transitionFilter smil:type="waterfallWipe" smil:direction="reverse" smil:mode="out"> 1799 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1800 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1801 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@演:方向='left down'">horizontalLeft</xsl:when><xsl:when test="@演:方向='left up'">horizontalLeft</xsl:when><xsl:when test="@演:方向='right down'">horizontalRight</xsl:when><xsl:when test="@演:方向='right up'">horizontalRight</xsl:when></xsl:choose></xsl:attribute> 1802 </anim:transitionFilter> 1803 <anim:set smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 1804 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1805 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1806 </anim:set> 1807 </xsl:template> 1808 <xsl:template match="演:菱形" mode="exit"> 1809 <xsl:attribute name="presentation:preset-id">ooo-exit-diamond</xsl:attribute> 1810 <xsl:attribute name="presentation:preset-sub-type"><xsl:value-of select="@演:方向"/></xsl:attribute> 1811 <anim:transitionFilter smil:type="irisWipe" smil:subtype="diamond" smil:direction="reverse" smil:mode="out"> 1812 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1813 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1814 </anim:transitionFilter> 1815 <anim:set smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 1816 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1817 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1818 </anim:set> 1819 </xsl:template> 1820 <xsl:template match="演:消失" mode="exit"> 1821 <xsl:attribute name="presentation:preset-id">ooo-exit-disappear</xsl:attribute> 1822 <anim:set smil:begin="0s" smil:dur="0.001s" smil:fill="hold" anim:sub-item="text" smil:attributeName="visibility" smil:to="visible"> 1823 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1824 </anim:set> 1825 </xsl:template> 1826 <xsl:template match="演:向外溶解" mode="exit"> 1827 <xsl:attribute name="presentation:preset-id">ooo-exit-dissolve</xsl:attribute> 1828 <anim:transitionFilter smil:type="dissolve" smil:direction="reverse" smil:mode="out"> 1829 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1830 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1831 </anim:transitionFilter> 1832 <anim:set smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 1833 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1834 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1835 </anim:set> 1836 </xsl:template> 1837 <xsl:template match="演:闪烁一次" mode="exit"> 1838 <xsl:attribute name="presentation:preset-id">ooo-exit-flash-once</xsl:attribute> 1839 <anim:animate smil:attributeName="visibility" smil:values="hidden;visible" smil:keyTimes="0;0.5" smil:calcMode="discrete" presentation:additive="base"> 1840 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1841 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1842 </anim:animate> 1843 <anim:set smil:dur="0s" smil:attributeName="visibility" smil:to="hidden"> 1844 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1845 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1846 </anim:set> 1847 </xsl:template> 1848 <xsl:template match="演:飞出" mode="exit"> 1849 <xsl:attribute name="presentation:preset-id">ooo-exit-fly-out</xsl:attribute> 1850 <xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@演:方向= 'to bottom'">from-bottom</xsl:when><xsl:when test="@演:方向 = 'to top-right'">from-top-right</xsl:when><xsl:when test="@演:方向 = 'to top-left'">from-top-left</xsl:when><xsl:when test="@演:方向 = 'to bottom-left'">from-bottom-left</xsl:when><xsl:when test="@演:方向 = 'to bottom-right'">from-bottom-right</xsl:when><xsl:when test="@演:方向 = 'to right'">from-right</xsl:when><xsl:when test="@演:方向 = 'to left'">from-left</xsl:when><xsl:when test="@演:方向 = 'to top'">from-top</xsl:when></xsl:choose></xsl:attribute> 1851 <xsl:variable name="smilvalueX"> 1852 <xsl:choose> 1853 <xsl:when test="contains(@演:方向,'right')">x;1+width/2</xsl:when> 1854 <xsl:when test="contains(@演:方向,'left')">x;0-width/2</xsl:when> 1855 <xsl:otherwise>x;x</xsl:otherwise> 1856 </xsl:choose> 1857 </xsl:variable> 1858 <xsl:variable name="smilvalueY"> 1859 <xsl:choose> 1860 <xsl:when test="contains(@演:方向,'bottom')">y;1+height/2</xsl:when> 1861 <xsl:when test="contains(@演:方向,'top')">y;0-height/2</xsl:when> 1862 <xsl:otherwise>y;y</xsl:otherwise> 1863 </xsl:choose> 1864 </xsl:variable> 1865 <anim:animate smil:fill="hold" smil:attributeName="x" smil:keyTimes="0;1" presentation:additive="base"> 1866 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1867 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1868 <xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueX"/></xsl:attribute> 1869 </anim:animate> 1870 <anim:animate smil:fill="hold" smil:attributeName="y" smil:keyTimes="0;1" presentation:additive="base"> 1871 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1872 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1873 <xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueY"/></xsl:attribute> 1874 </anim:animate> 1875 <anim:set smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 1876 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1877 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1878 </anim:set> 1879 </xsl:template> 1880 <xsl:template match="演:缓慢移出" mode="exit"> 1881 <xsl:attribute name="presentation:preset-id">ooo-exit-crawl-out</xsl:attribute> 1882 <xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@演:方向= 'to bottom'">from-bottom</xsl:when><xsl:when test="@演:方向 = 'to right'">from-right</xsl:when><xsl:when test="@演:方向 = 'to left'">from-left</xsl:when><xsl:when test="@演:方向 = 'to top'">from-top</xsl:when></xsl:choose></xsl:attribute> 1883 <xsl:variable name="smilvalueX"> 1884 <xsl:choose> 1885 <xsl:when test="contains(@演:方向,'right')">x;1+width/2</xsl:when> 1886 <xsl:when test="contains(@演:方向,'left')">x;0-width/2</xsl:when> 1887 <xsl:otherwise>x;x</xsl:otherwise> 1888 </xsl:choose> 1889 </xsl:variable> 1890 <xsl:variable name="smilvalueY"> 1891 <xsl:choose> 1892 <xsl:when test="contains(@演:方向,'bottom')">y;1+height/2</xsl:when> 1893 <xsl:when test="contains(@演:方向,'top')">y;0-height/2</xsl:when> 1894 <xsl:otherwise>y;y</xsl:otherwise> 1895 </xsl:choose> 1896 </xsl:variable> 1897 <anim:animate smil:fill="hold" smil:attributeName="x" smil:keyTimes="0;1" presentation:additive="base"> 1898 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1899 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1900 <xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueX"/></xsl:attribute> 1901 </anim:animate> 1902 <anim:animate smil:fill="hold" smil:attributeName="y" smil:keyTimes="0;1" presentation:additive="base"> 1903 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1904 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1905 <xsl:attribute name="smil:values"><xsl:value-of select="$smilvalueY"/></xsl:attribute> 1906 </anim:animate> 1907 <anim:set smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 1908 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1909 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1910 </anim:set> 1911 </xsl:template> 1912 <xsl:template match="演:切出" mode="exit"> 1913 <xsl:attribute name="presentation:preset-id">ooo-exit-peek-out</xsl:attribute> 1914 <xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@演:方向= 'from bottom'">from-bottom</xsl:when><xsl:when test="@演:方向 = 'from right'">from-right</xsl:when><xsl:when test="@演:方向 = 'from left'">from-left</xsl:when><xsl:when test="@演:方向 = 'from top'">from-top</xsl:when></xsl:choose></xsl:attribute> 1915 <anim:transitionFilter smil:type="slideWipe" smil:direction="reverse" smil:mode="out"> 1916 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1917 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1918 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@演:方向= 'from bottom'">fromBottom</xsl:when><xsl:when test="@演:方向 = 'from right'">fromRight</xsl:when><xsl:when test="@演:方向 = 'from left'">fromLeft</xsl:when><xsl:when test="@演:方向 = 'from top'">fromTop</xsl:when></xsl:choose></xsl:attribute> 1919 </anim:transitionFilter> 1920 <anim:set smil:dur="0.0005s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 1921 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1922 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1923 </anim:set> 1924 </xsl:template> 1925 <xsl:template match="演:十字形扩展" mode="exit"> 1926 <xsl:attribute name="presentation:preset-id">ooo-exit-plus</xsl:attribute> 1927 <xsl:attribute name="presentation:preset-sub-type"><xsl:value-of select="@演:方向"/></xsl:attribute> 1928 <anim:transitionFilter smil:type="fourBoxWipe" smil:direction="reverse" smil:mode="out"> 1929 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1930 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1931 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@演:方向= 'in'">cornersIn</xsl:when><xsl:when test="@演:方向 = 'out'">cornersOut</xsl:when></xsl:choose></xsl:attribute> 1932 </anim:transitionFilter> 1933 <anim:set smil:dur="0.00025s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 1934 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1935 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1936 </anim:set> 1937 </xsl:template> 1938 <xsl:template match="演:随机线条" mode="exit"> 1939 <xsl:attribute name="presentation:preset-id">ooo-exit-random-bars</xsl:attribute> 1940 <xsl:attribute name="presentation:preset-sub-type"><xsl:value-of select="@演:方向"/></xsl:attribute> 1941 <anim:transitionFilter smil:type="randomBarWipe" smil:direction="reverse" smil:mode="out"> 1942 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1943 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1944 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@演:方向= 'horizontal'">vertical</xsl:when><xsl:when test="@演:方向 = 'vertical'">horizontal</xsl:when></xsl:choose></xsl:attribute> 1945 </anim:transitionFilter> 1946 <anim:set smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 1947 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1948 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1949 </anim:set> 1950 </xsl:template> 1951 <xsl:template match="演:劈裂" mode="exit"> 1952 <xsl:attribute name="presentation:preset-id">ooo-exit-split</xsl:attribute> 1953 <xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@演:方向 = 'horizontal out'">horizontal-out</xsl:when><xsl:when test="@演:方向= 'horizontal in'">horizontal-in</xsl:when><xsl:when test="@演:方向= 'vertical in'">vertical-in</xsl:when><xsl:when test="@演:方向= 'vertical out'">vertical-out</xsl:when></xsl:choose></xsl:attribute> 1954 <anim:transitionFilter smil:dur="0.5s" smil:type="barnDoorWipe" smil:mode="out"> 1955 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1956 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@演:方向 = 'horizontal out'">horizontal</xsl:when><xsl:when test="@演:方向= 'horizontal in'">horizontal</xsl:when><xsl:when test="@演:方向= 'vertical in'">vertical</xsl:when><xsl:when test="@演:方向= 'vertical out'">vertical</xsl:when></xsl:choose></xsl:attribute> 1957 </anim:transitionFilter> 1958 <anim:set smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 1959 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1960 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1961 </anim:set> 1962 </xsl:template> 1963 <xsl:template match="演:百叶窗" mode="exit"> 1964 <xsl:attribute name="presentation:preset-id">ooo-exit-venetian-blinds</xsl:attribute> 1965 <xsl:attribute name="presentation:preset-sub-type"><xsl:value-of select="@演:方向"/></xsl:attribute> 1966 <anim:transitionFilter smil:type="blindsWipe" smil:direction="reverse" smil:mode="out"> 1967 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1968 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1969 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@演:方向= 'horizontal'">vertical</xsl:when><xsl:when test="@演:方向 = 'vertical'">horizontal</xsl:when></xsl:choose></xsl:attribute> 1970 </anim:transitionFilter> 1971 <anim:set smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 1972 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1973 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1974 </anim:set> 1975 </xsl:template> 1976 <xsl:template match="演:扇形展开" mode="exit"> 1977 <xsl:attribute name="presentation:preset-id">ooo-exit-wedge</xsl:attribute> 1978 <anim:transitionFilter smil:type="fanWipe" smil:subtype="centerTop" smil:mode="out"> 1979 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1980 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1981 </anim:transitionFilter> 1982 <anim:set smil:dur="0.0015s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 1983 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1984 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1985 </anim:set> 1986 </xsl:template> 1987 <xsl:template match="演:轮子" mode="exit"> 1988 <xsl:attribute name="presentation:preset-id">ooo-exit-wheel</xsl:attribute> 1989 <xsl:attribute name="presentation:preset-sub-type"><xsl:value-of select="@演:辐射状"/></xsl:attribute> 1990 <anim:transitionFilter smil:dur="0.5s" smil:type="pinWheelWipe" smil:mode="out"> 1991 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1992 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 1993 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="@演:辐射状='1'">oneBlade</xsl:when><xsl:when test="@演:辐射状='2'">twoBlade</xsl:when><xsl:when test="@演:辐射状='3'">threeBlade</xsl:when><xsl:when test="@演:辐射状='4'">fourBlade</xsl:when><xsl:when test="@演:辐射状='8'">eightBlade</xsl:when></xsl:choose></xsl:attribute> 1994 </anim:transitionFilter> 1995 <anim:set smil:dur="0.00025s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 1996 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 1997 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 1998 </anim:set> 1999 </xsl:template> 2000 <xsl:template match="演:擦除" mode="exit"> 2001 <xsl:attribute name="presentation:preset-id">ooo-exit-wipe</xsl:attribute> 2002 <xsl:attribute name="presentation:preset-sub-type"><xsl:choose><xsl:when test="@演:速度 = 'from right'">from-right</xsl:when><xsl:when test="@演:速度 = 'from left'">from-left</xsl:when><xsl:when test="@演:速度 = 'from top'">from-top</xsl:when><xsl:when test="@演:速度 = 'from bottom'">from-bottom</xsl:when><xsl:otherwise>from-left</xsl:otherwise></xsl:choose></xsl:attribute> 2003 <anim:transitionFilter smil:type="barWipe" smil:subtype="leftToRight" smil:direction="reverse" smil:mode="out"> 2004 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 2005 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 2006 <xsl:attribute name="smil:subtype"><xsl:choose><xsl:when test="(@演:速度 = 'from right') or (@演:速度 = 'from left')">leftToRight</xsl:when><xsl:when test="(@演:速度 = 'from top') or (@演:速度 = 'from bottom')">topToBottom</xsl:when><xsl:otherwise>leftToRight</xsl:otherwise></xsl:choose></xsl:attribute> 2007 </anim:transitionFilter> 2008 <anim:set smil:dur="0.006s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 2009 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 2010 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 2011 </anim:set> 2012 </xsl:template> 2013 <xsl:template match="演:随机效果" mode="exit"> 2014 <xsl:attribute name="presentation:preset-id">ooo-exit-random</xsl:attribute> 2015 <anim:transitionFilter smil:type="fade" smil:subtype="crossfade" smil:mode="out"> 2016 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 2017 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 2018 </anim:transitionFilter> 2019 <anim:animate smil:attributeName="x" smil:values="x;x" smil:keyTimes="0;1" presentation:additive="base"> 2020 <xsl:attribute name="smil:dur"><xsl:call-template name="演速度"/></xsl:attribute> 2021 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 2022 </anim:animate> 2023 <anim:animate smil:dur="0.1s" smil:decelerate="1" smil:attributeName="y" smil:values="y;y-.03" smil:keyTimes="0;1" presentation:additive="base"> 2024 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 2025 </anim:animate> 2026 <anim:animate smil:begin="0.1s" smil:dur="0.9s" smil:accelerate="1" smil:attributeName="y" smil:values="y;y+1" smil:keyTimes="0;1" presentation:additive="base"> 2027 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 2028 </anim:animate> 2029 <anim:set smil:dur="0.001s" smil:fill="hold" smil:attributeName="visibility" smil:to="hidden"> 2030 <xsl:attribute name="smil:begin"><xsl:call-template name="演速度"/></xsl:attribute> 2031 <xsl:attribute name="smil:targetElement"><xsl:value-of select="ancestor::演:序列/@演:动画对象"/></xsl:attribute> 2032 </anim:set> 2033 </xsl:template> 2034 <xsl:template match="uof:锚点" name="图形解析"> 2035 <xsl:variable name="tuxing1" select="@uof:图形引用"/> 2036 <xsl:choose> 2037 <xsl:when test="/uof:UOF/uof:对象集/uof:其他对象[@uof:标识符=$tuxing1]"> 2038 <xsl:if test="/uof:UOF/uof:对象集/uof:其他对象[@uof:标识符=$tuxing1]/@uof:公共类型='png' or /uof:UOF/uof:对象集/uof:其他对象[@uof:标识符=$tuxing1]/@uof:公共类型='jpg' or /uof:UOF/uof:对象集/uof:其他对象[@uof:标识符=$tuxing1]/@uof:公共类型='bmp' or /uof:UOF/uof:对象集/uof:其他对象[@uof:标识符=$tuxing1]/@uof:公共类型='gif'"> 2039 <xsl:element name="draw:frame"> 2040 <xsl:attribute name="draw:name"><xsl:variable name="pos"><xsl:value-of select="count(preceding::uof:锚点)"/></xsl:variable><xsl:value-of select="concat('图形',$pos)"/></xsl:attribute> 2041 <xsl:attribute name="presentation:class">graphic</xsl:attribute> 2042 <xsl:attribute name="presentation:user-transformed">true</xsl:attribute> 2043 <xsl:attribute name="svg:x"><xsl:value-of select="concat(@uof:x坐标,$uofUnit)"/></xsl:attribute> 2044 <xsl:attribute name="svg:y"><xsl:value-of select="concat(@uof:y坐标,$uofUnit)"/></xsl:attribute> 2045 <xsl:attribute name="svg:width"><xsl:value-of select="concat(@uof:宽度,$uofUnit)"/></xsl:attribute> 2046 <xsl:attribute name="svg:height"><xsl:value-of select="concat(@uof:高度,$uofUnit)"/></xsl:attribute> 2047 <xsl:attribute name="draw:layer">layout</xsl:attribute> 2048 <xsl:if test="../演:动画/演:序列/@演:动画对象=$tuxing1"> 2049 <xsl:attribute name="draw:id"><xsl:value-of select="$tuxing1"/></xsl:attribute> 2050 </xsl:if> 2051 <draw:image> 2052 <xsl:if test="/uof:UOF/uof:对象集/uof:其他对象[@uof:标识符=$tuxing1]/uof:路径"> 2053 <xsl:attribute name="xlink:href"><xsl:value-of select="/uof:UOF/uof:对象集/uof:其他对象[@uof:标识符=$tuxing1]/uof:路径"/></xsl:attribute> 2054 </xsl:if> 2055 <xsl:if test="/uof:UOF/uof:对象集/uof:其他对象[@uof:标识符=$tuxing1]/uof:路径"> 2056 <xsl:attribute name="xlink:href"><xsl:value-of select="/uof:UOF/uof:对象集/uof:其他对象[@uof:标识符=$tuxing1]/uof:路径"/></xsl:attribute> 2057 </xsl:if> 2058 <xsl:if test="/uof:UOF/uof:对象集/uof:其他对象[@uof:标识符=$tuxing1]/uof:数据"> 2059 <office:binary-data> 2060 <xsl:value-of select="/uof:UOF/uof:对象集/uof:其他对象[@uof:标识符=$tuxing1]/uof:数据"/> 2061 </office:binary-data> 2062 </xsl:if> 2063 </draw:image> 2064 </xsl:element> 2065 </xsl:if> 2066 </xsl:when> 2067 <xsl:otherwise> 2068 <xsl:call-template name="graph"> 2069 <xsl:with-param name="id" select="/uof:UOF/uof:对象集/图:图形[@图:标识符=$tuxing1]"/> 2070 <xsl:with-param name="groupx" select="0"/> 2071 <xsl:with-param name="groupy" select="0"/> 2072 </xsl:call-template> 2073 </xsl:otherwise> 2074 </xsl:choose> 2075 </xsl:template> 2076 <xsl:template name="graph"> 2077 <xsl:param name="id"/> 2078 <xsl:param name="groupx"/> 2079 <xsl:param name="groupy"/> 2080 <xsl:for-each select="$id"> 2081 <xsl:variable name="tuxing1"> 2082 <xsl:value-of select="图:预定义图形/图:类别"/> 2083 </xsl:variable> 2084 <xsl:choose> 2085 <xsl:when test="$tuxing1='11'"> 2086 <xsl:call-template name="Rectangle"> 2087 <xsl:with-param name="groupx1" select="$groupx"/> 2088 <xsl:with-param name="groupy1" select="$groupy"/> 2089 </xsl:call-template> 2090 </xsl:when> 2091 <xsl:when test="$tuxing1='19'"> 2092 <xsl:call-template name="Oval"> 2093 <xsl:with-param name="groupx1" select="$groupx"/> 2094 <xsl:with-param name="groupy1" select="$groupy"/> 2095 </xsl:call-template> 2096 </xsl:when> 2097 <xsl:when test="$tuxing1='61'"> 2098 <xsl:call-template name="Line"> 2099 <xsl:with-param name="groupx1" select="$groupx"/> 2100 <xsl:with-param name="groupy1" select="$groupy"/> 2101 </xsl:call-template> 2102 </xsl:when> 2103 <xsl:when test="$tuxing1='64'"> 2104 <xsl:call-template name="Curve"> 2105 <xsl:with-param name="groupx1" select="$groupx"/> 2106 <xsl:with-param name="groupy1" select="$groupy"/> 2107 </xsl:call-template> 2108 </xsl:when> 2109 <xsl:when test="$tuxing1='65'"> 2110 <xsl:call-template name="Freeform"> 2111 <xsl:with-param name="groupx1" select="$groupx"/> 2112 <xsl:with-param name="groupy1" select="$groupy"/> 2113 </xsl:call-template> 2114 </xsl:when> 2115 <xsl:when test="$tuxing1='66'"> 2116 <xsl:call-template name="Scribble"> 2117 <xsl:with-param name="groupx1" select="$groupx"/> 2118 <xsl:with-param name="groupy1" select="$groupy"/> 2119 </xsl:call-template> 2120 </xsl:when> 2121 <xsl:when test="$tuxing1='3'"> 2122 <xsl:call-template name="演文本框"/> 2123 </xsl:when> 2124 <xsl:when test="$tuxing1='67'"> 2125 <xsl:call-template name="演缩略图"/> 2126 </xsl:when> 2127 <xsl:when test="$tuxing1='4'"> 2128 <xsl:element name="draw:g"> 2129 <xsl:variable name="tu"> 2130 <xsl:value-of select="@图:标识符"/> 2131 </xsl:variable> 2132 <xsl:attribute name="draw:style-name"><xsl:value-of select="$tu"/></xsl:attribute> 2133 <xsl:attribute name="draw:z-index"><xsl:value-of select="@图:层次"/></xsl:attribute> 2134 <xsl:variable name="this-group-x"> 2135 <xsl:value-of select="key('rel_graphic_name',@图:标识符)/@uof:x坐标"/> 2136 </xsl:variable> 2137 <xsl:variable name="this-group-y"> 2138 <xsl:value-of select="key('rel_graphic_name',@图:标识符)/uof:y坐标"/> 2139 </xsl:variable> 2140 <xsl:variable name="group-x"> 2141 <xsl:value-of select="number($groupx + $this-group-x)"/> 2142 </xsl:variable> 2143 <xsl:variable name="group-y"> 2144 <xsl:value-of select="number($groupy + $this-group-y)"/> 2145 </xsl:variable> 2146 <xsl:call-template name="组合图形"> 2147 <xsl:with-param name="zuheliebiao" select="@图:组合列表"/> 2148 <xsl:with-param name="groupx1" select="$group-x"/> 2149 <xsl:with-param name="groupy1" select="$group-y"/> 2150 </xsl:call-template> 2151 </xsl:element> 2152 </xsl:when> 2153 </xsl:choose> 2154 </xsl:for-each> 2155 </xsl:template> 2156 <xsl:template name="common"> 2157 <xsl:param name="groupx"/> 2158 <xsl:param name="groupy"/> 2159 <xsl:variable name="tuxing"> 2160 <xsl:value-of select="@图:标识符"/> 2161 </xsl:variable> 2162 <xsl:choose> 2163 <xsl:when test="key('rel_graphic_name',@图:标识符)"> 2164 <xsl:for-each select="key('rel_graphic_name',@图:标识符)"> 2165 <xsl:attribute name="svg:x"><xsl:value-of select="concat(@uof:x坐标,$uofUnit)"/></xsl:attribute> 2166 <xsl:attribute name="svg:y"><xsl:value-of select="concat(@uof:y坐标,$uofUnit)"/></xsl:attribute> 2167 <xsl:attribute name="svg:width"><xsl:value-of select="concat(@uof:宽度,$uofUnit)"/></xsl:attribute> 2168 <xsl:attribute name="svg:height"><xsl:value-of select="concat(@uof:高度,$uofUnit)"/></xsl:attribute> 2169 <xsl:attribute name="draw:layer"><xsl:choose><xsl:when test="parent::演:母版">backgroundobjects</xsl:when><xsl:otherwise>layout</xsl:otherwise></xsl:choose></xsl:attribute> 2170 <xsl:if test="../演:动画/演:序列/@演:动画对象=$tuxing"> 2171 <xsl:attribute name="draw:id"><xsl:value-of select="$tuxing"/></xsl:attribute> 2172 </xsl:if> 2173 </xsl:for-each> 2174 </xsl:when> 2175 <xsl:otherwise> 2176 <xsl:variable name="zuheweizhi-x"> 2177 <xsl:value-of select="图:组合位置/@图:x坐标"/> 2178 </xsl:variable> 2179 <xsl:variable name="zuheweizhi-y"> 2180 <xsl:value-of select="图:组合位置/@图:y坐标"/> 2181 </xsl:variable> 2182 <xsl:attribute name="text:anchor-type">paragraph</xsl:attribute> 2183 <xsl:attribute name="svg:x"><xsl:value-of select="concat(($groupx + $zuheweizhi-x),$uofUnit)"/></xsl:attribute> 2184 <xsl:attribute name="svg:y"><xsl:value-of select="concat(($groupy + $zuheweizhi-y),$uofUnit)"/></xsl:attribute> 2185 <xsl:attribute name="svg:width"><xsl:value-of select="concat(图:预定义图形 /图:属性/图:宽度,$uofUnit)"/></xsl:attribute> 2186 <xsl:attribute name="svg:height"><xsl:value-of select="concat(图:预定义图形/图:属性 /图:高度,$uofUnit)"/></xsl:attribute> 2187 <xsl:attribute name="draw:layer">layout</xsl:attribute> 2188 </xsl:otherwise> 2189 </xsl:choose> 2190 <xsl:attribute name="draw:style-name"><xsl:value-of select="@图:标识符"/></xsl:attribute> 2191 <xsl:attribute name="draw:z-index"><xsl:value-of select="@图:层次"/></xsl:attribute> 2192 <xsl:if test="图:预定义图形/图:属性/图:旋转角度 and not(图:预定义图形/图:属性/图:旋转角度='0.0')"> 2193 <xsl:variable name="rotate-angle"> 2194 <xsl:value-of select="(图:预定义图形/图:属性/图:旋转角度 * 2 * 3.14159265 ) div 360"/> 2195 </xsl:variable> 2196 <xsl:attribute name="draw:transform"><xsl:value-of select="concat('rotate (',$rotate-angle,') translate (-0.0194027777777778cm 3.317875cm)')"/></xsl:attribute> 2197 </xsl:if> 2198 <xsl:if test="图:文本内容"> 2199 <xsl:apply-templates select="图:文本内容/字:段落"/> 2200 <xsl:apply-templates select="图:文本内容/字:文字表"/> 2201 </xsl:if> 2202 </xsl:template> 2203 <xsl:template name="组合图形"> 2204 <xsl:param name="zuheliebiao"/> 2205 <xsl:param name="groupx1"/> 2206 <xsl:param name="groupy1"/> 2207 <xsl:variable name="x"> 2208 <xsl:value-of select="$groupx1"/> 2209 </xsl:variable> 2210 <xsl:variable name="y"> 2211 <xsl:value-of select="$groupy1"/> 2212 </xsl:variable> 2213 <xsl:variable name="first-pictures"> 2214 <xsl:value-of select="substring-before($zuheliebiao,',')"/> 2215 </xsl:variable> 2216 <xsl:variable name="other-pictures"> 2217 <xsl:value-of select="substring-after($zuheliebiao,',')"/> 2218 </xsl:variable> 2219 <xsl:choose> 2220 <xsl:when test="contains($other-pictures,',')"> 2221 <xsl:call-template name="graph"> 2222 <xsl:with-param name="id" select="/uof:UOF/uof:对象集/图:图形[@图:标识符 = $first-pictures]"/> 2223 <xsl:with-param name="groupx" select="$groupx1"/> 2224 <xsl:with-param name="groupy" select="$groupy1"/> 2225 </xsl:call-template> 2226 <xsl:call-template name="组合图形"> 2227 <xsl:with-param name="zuheliebiao" select="$other-pictures"/> 2228 <xsl:with-param name="groupx1" select="$x"/> 2229 <xsl:with-param name="groupy1" select="$y"/> 2230 </xsl:call-template> 2231 </xsl:when> 2232 <xsl:otherwise> 2233 <xsl:call-template name="graph"> 2234 <xsl:with-param name="id" select="/uof:UOF/uof:对象集/图:图形[@图:标识符 = $first-pictures]"/> 2235 <xsl:with-param name="groupx" select="$groupx1"/> 2236 <xsl:with-param name="groupy" select="$groupy1"/> 2237 </xsl:call-template> 2238 <xsl:call-template name="graph"> 2239 <xsl:with-param name="id" select="/uof:UOF/uof:对象集/图:图形[@图:标识符 = $other-pictures]"/> 2240 <xsl:with-param name="groupx" select="$groupx1"/> 2241 <xsl:with-param name="groupy" select="$groupy1"/> 2242 </xsl:call-template> 2243 </xsl:otherwise> 2244 </xsl:choose> 2245 </xsl:template> 2246 <xsl:template name="Curve"> 2247 <xsl:param name="groupx1"/> 2248 <xsl:param name="groupy1"/> 2249 <xsl:element name="draw:path"> 2250 <xsl:variable name="width" select="number(图:预定义图形/图:属性/图:宽度)*1000"/> 2251 <xsl:variable name="height" select="number(图:预定义图形/图:属性/图:高度)*1000"/> 2252 <xsl:attribute name="svg:viewBox"><xsl:value-of select="concat('0 0 ',$width, ' ',$height)"/></xsl:attribute> 2253 <xsl:attribute name="svg:d"><xsl:value-of select="图:预定义图形/图:关键点坐标/@图:路径"/></xsl:attribute> 2254 <xsl:call-template name="common"> 2255 <xsl:with-param name="groupx" select="$groupx1"/> 2256 <xsl:with-param name="groupy" select="$groupy1"/> 2257 </xsl:call-template> 2258 </xsl:element> 2259 </xsl:template> 2260 <xsl:template name="Freeform"> 2261 <xsl:param name="groupx1"/> 2262 <xsl:param name="groupy1"/> 2263 <xsl:element name="draw:polygon"> 2264 <xsl:variable name="width" select="number(图:预定义图形/图:属性/图:宽度)*1000"/> 2265 <xsl:variable name="height" select="number(图:预定义图形/图:属性/图:高度)*1000"/> 2266 <xsl:attribute name="svg:viewBox"><xsl:value-of select="concat('0 0 ',$width, ' ',$height)"/></xsl:attribute> 2267 <xsl:attribute name="draw:points"><xsl:call-template name="drawpoints"><xsl:with-param name="points" select="图:预定义图形/图:关键点坐标/@图:路径"/><xsl:with-param name="value"/></xsl:call-template></xsl:attribute> 2268 <xsl:call-template name="common"> 2269 <xsl:with-param name="groupx" select="$groupx1"/> 2270 <xsl:with-param name="groupy" select="$groupy1"/> 2271 </xsl:call-template> 2272 </xsl:element> 2273 </xsl:template> 2274 <xsl:template name="Scribble"> 2275 <xsl:param name="groupx1"/> 2276 <xsl:param name="groupy1"/> 2277 <xsl:element name="draw:polyline"> 2278 <xsl:variable name="width" select="number(图:预定义图形/图:属性/图:宽度)*1000"/> 2279 <xsl:variable name="height" select="number(图:预定义图形/图:属性/图:高度)*1000"/> 2280 <xsl:attribute name="svg:viewBox"><xsl:value-of select="concat('0 0 ',$width, ' ',$height)"/></xsl:attribute> 2281 <xsl:attribute name="draw:points"><xsl:call-template name="drawpoints"><xsl:with-param name="points" select="图:预定义图形/图:关键点坐标/@图:路径"/><xsl:with-param name="value"/></xsl:call-template></xsl:attribute> 2282 <xsl:call-template name="common"> 2283 <xsl:with-param name="groupx" select="$groupx1"/> 2284 <xsl:with-param name="groupy" select="$groupy1"/> 2285 </xsl:call-template> 2286 </xsl:element> 2287 </xsl:template> 2288 <xsl:template name="drawpoints"> 2289 <xsl:param name="points"/> 2290 <xsl:param name="value"/> 2291 <xsl:variable name="frist-piont"> 2292 <xsl:value-of select="substring-before($points,'lineto')"/> 2293 </xsl:variable> 2294 <xsl:variable name="other-points"> 2295 <xsl:value-of select="substring-after($points,'lineto')"/> 2296 </xsl:variable> 2297 <xsl:choose> 2298 <xsl:when test="contains($other-points,'lineto')"> 2299 <xsl:variable name="x-coor"> 2300 <xsl:value-of select="substring-before($frist-piont,' ') * 1000"/> 2301 </xsl:variable> 2302 <xsl:variable name="y-coor"> 2303 <xsl:value-of select="substring-after($frist-piont,' ') * 1000"/> 2304 </xsl:variable> 2305 <xsl:variable name="all-points"> 2306 <xsl:value-of select="concat($value,$x-coor,',',$y-coor,' ')"/> 2307 </xsl:variable> 2308 <xsl:call-template name="drawpoints"> 2309 <xsl:with-param name="points" select="$other-points"/> 2310 <xsl:with-param name="value" select="$all-points"/> 2311 </xsl:call-template> 2312 </xsl:when> 2313 <xsl:otherwise> 2314 <xsl:variable name="q-x-coor"> 2315 <xsl:value-of select="substring-before($frist-piont,' ') * 1000"/> 2316 </xsl:variable> 2317 <xsl:variable name="q-y-coor"> 2318 <xsl:value-of select="substring-after($frist-piont,' ') * 1000"/> 2319 </xsl:variable> 2320 <xsl:variable name="e-x-coor"> 2321 <xsl:value-of select="substring-before($other-points,' ') * 1000"/> 2322 </xsl:variable> 2323 <xsl:variable name="e-y-coor"> 2324 <xsl:value-of select="substring-after($other-points,' ') * 1000"/> 2325 </xsl:variable> 2326 <xsl:value-of select="concat($value,$q-x-coor,',',$q-y-coor,' ',$e-x-coor,',',$e-y-coor)"/> 2327 </xsl:otherwise> 2328 </xsl:choose> 2329 </xsl:template> 2330 <xsl:template name="Oval"> 2331 <xsl:param name="groupx1"/> 2332 <xsl:param name="groupy1"/> 2333 <xsl:element name="draw:ellipse"> 2334 <xsl:call-template name="common"> 2335 <xsl:with-param name="groupx" select="$groupx1"/> 2336 <xsl:with-param name="groupy" select="$groupy1"/> 2337 </xsl:call-template> 2338 </xsl:element> 2339 </xsl:template> 2340 <xsl:template name="Rectangle"> 2341 <xsl:param name="groupx1"/> 2342 <xsl:param name="groupy1"/> 2343 <xsl:element name="draw:rect"> 2344 <xsl:call-template name="common"> 2345 <xsl:with-param name="groupx" select="$groupx1"/> 2346 <xsl:with-param name="groupy" select="$groupy1"/> 2347 </xsl:call-template> 2348 </xsl:element> 2349 </xsl:template> 2350 <xsl:template name="Line"> 2351 <xsl:param name="groupx1"/> 2352 <xsl:param name="groupy1"/> 2353 <xsl:element name="draw:line"> 2354 <xsl:variable name="tuxing1" select="@图:标识符"/> 2355 <xsl:choose> 2356 <xsl:when test="key('rel_graphic_name',@图:标识符)"> 2357 <xsl:for-each select="key('rel_graphic_name',@图:标识符)"> 2358 <xsl:attribute name="svg:x1"><xsl:value-of select="concat(@uof:x坐标,$uofUnit)"/></xsl:attribute> 2359 <xsl:attribute name="svg:y1"><xsl:value-of select="concat(@uof:y坐标,$uofUnit)"/></xsl:attribute> 2360 <xsl:attribute name="svg:x2"><xsl:value-of select="concat((@uof:x坐标 + @uof:宽度),$uofUnit)"/></xsl:attribute> 2361 <xsl:attribute name="svg:y2"><xsl:value-of select="concat((@uof:y坐标 + @uof:高度),$uofUnit)"/></xsl:attribute> 2362 <xsl:if test="../演:动画/演:序列/@演:动画对象=$tuxing1"> 2363 <xsl:attribute name="draw:id"><xsl:value-of select="$tuxing1"/></xsl:attribute> 2364 </xsl:if> 2365 </xsl:for-each> 2366 </xsl:when> 2367 <xsl:otherwise> 2368 <xsl:variable name="zuheweizhi-x"> 2369 <xsl:value-of select="图:组合位置/@图:x坐标"/> 2370 </xsl:variable> 2371 <xsl:variable name="zuheweizhi-y"> 2372 <xsl:value-of select="图:组合位置/@图:y坐标"/> 2373 </xsl:variable> 2374 <xsl:variable name="hex"> 2375 <xsl:value-of select="concat(number($groupx1 + $zuheweizhi-x),$uofUnit)"/> 2376 </xsl:variable> 2377 <xsl:variable name="hey"> 2378 <xsl:value-of select="concat(number($groupy1 + $zuheweizhi-y),$uofUnit)"/> 2379 </xsl:variable> 2380 <xsl:attribute name="svg:x1"><xsl:value-of select="$hex"/></xsl:attribute> 2381 <xsl:attribute name="svg:y1"><xsl:value-of select="$hey"/></xsl:attribute> 2382 <xsl:attribute name="svg:x2"><xsl:value-of select="concat(($hex + 图:预定义图形/图:属性/图:宽度),$uofUnit)"/></xsl:attribute> 2383 <xsl:attribute name="svg:y2"><xsl:value-of select="concat(($hey + 图:预定义图形/图:属性/图:高度),$uofUnit)"/></xsl:attribute> 2384 </xsl:otherwise> 2385 </xsl:choose> 2386 <xsl:attribute name="text:anchor-type">paragraph</xsl:attribute> 2387 <xsl:attribute name="draw:style-name"><xsl:value-of select="$tuxing1"/></xsl:attribute> 2388 <xsl:attribute name="draw:z-index"><xsl:value-of select="@图:层次"/></xsl:attribute> 2389 <xsl:if test="图:预定义图形/图:属性/图:旋转角度 and not(图:预定义图形/图:属性/图:旋转角度='0.0')"> 2390 <xsl:variable name="rotate-angle"> 2391 <xsl:value-of select="(图:预定义图形/图:属性/图:旋转角度 * 2 * 3.14159265 ) div 360"/> 2392 </xsl:variable> 2393 <xsl:attribute name="draw:transform"><xsl:value-of select="concat('rotate (',$rotate-angle,') translate (-0.0194027777777778cm 3.317875cm)')"/></xsl:attribute> 2394 </xsl:if> 2395 <xsl:if test="图:文本内容"> 2396 <xsl:apply-templates select="图:文本内容/字:段落"/> 2397 <xsl:apply-templates select="图:文本内容/字:文字表"/> 2398 </xsl:if> 2399 </xsl:element> 2400 </xsl:template> 2401 <xsl:template name="演文本框"> 2402 <xsl:for-each select="key('rel_graphic_name',@图:标识符)"> 2403 <xsl:variable name="tuxing1" select="@uof:图形引用"/> 2404 <xsl:element name="draw:frame"> 2405 <xsl:attribute name="svg:x"><xsl:value-of select="concat(@uof:x坐标,$uofUnit)"/></xsl:attribute> 2406 <xsl:attribute name="svg:y"><xsl:value-of select="concat(@uof:y坐标,$uofUnit)"/></xsl:attribute> 2407 <xsl:attribute name="svg:width"><xsl:value-of select="concat(@uof:宽度,$uofUnit)"/></xsl:attribute> 2408 <xsl:attribute name="svg:height"><xsl:value-of select="concat(@uof:高度,$uofUnit)"/></xsl:attribute> 2409 <xsl:attribute name="draw:layer"><xsl:choose><xsl:when test="parent::演:母版">backgroundobjects</xsl:when><xsl:otherwise>layout</xsl:otherwise></xsl:choose></xsl:attribute> 2410 <xsl:if test="/uof:UOF/uof:对象集/图:图形[@图:标识符 = $tuxing1]/图:预定义图形/图:类别 = '3' and (parent::演:幻灯片/@演:配色方案引用) and not(@uof:占位符 = 'graphic')"> 2411 <xsl:attribute name="presentation:style-name"><xsl:value-of select="parent::演:幻灯片/@演:配色方案引用"/></xsl:attribute> 2412 </xsl:if> 2413 <xsl:if test="../演:动画/演:序列/@演:动画对象=$tuxing1"> 2414 <xsl:attribute name="draw:id"><xsl:value-of select="$tuxing1"/></xsl:attribute> 2415 </xsl:if> 2416 <xsl:if test="not(@uof:占位符 = 'graphic')"> 2417 <xsl:attribute name="presentation:style-name"><xsl:value-of select="@uof:图形引用"/></xsl:attribute> 2418 </xsl:if> 2419 <xsl:variable name="placeholdType"> 2420 <xsl:value-of select="@uof:占位符"/> 2421 </xsl:variable> 2422 <xsl:if test="@uof:占位符"> 2423 <xsl:attribute name="presentation:class"><xsl:choose><xsl:when test="@uof:占位符 = 'clipart'">graphic</xsl:when><xsl:when test="@uof:占位符 = 'media_clip'">graphic</xsl:when><xsl:when test="@uof:占位符 = 'graphics'">graphic</xsl:when><xsl:when test="@uof:占位符 = 'number'">page_number</xsl:when><xsl:when test="@uof:占位符 = 'centertitle'">title</xsl:when><xsl:when test="@uof:占位符 = 'date'">date-time</xsl:when><xsl:when test="@uof:占位符 = 'vertical_text'">vertical_outline</xsl:when><xsl:when test="@uof:占位符 = 'vertical_subtitle'">vertical_outline</xsl:when><xsl:otherwise><xsl:value-of select="@uof:占位符"/></xsl:otherwise></xsl:choose></xsl:attribute> 2424 </xsl:if> 2425 <xsl:for-each select="/uof:UOF/uof:对象集/图:图形[@图:标识符 = $tuxing1]"> 2426 <xsl:variable name="leibie"> 2427 <xsl:value-of select="图:预定义图形/图:类别"/> 2428 </xsl:variable> 2429 <xsl:if test="图:预定义图形/图:属性/图:旋转角度 and not(图:预定义图形/图:属性/图:旋转角度='0.0')"> 2430 <xsl:variable name="rotate-angle"> 2431 <xsl:value-of select="(图:预定义图形/图:属性/图:旋转角度 * 2 * 3.14159265 ) div 360"/> 2432 </xsl:variable> 2433 <xsl:attribute name="draw:transform"><xsl:value-of select="concat('rotate (',$rotate-angle,') translate (-0.0194027777777778cm 3.317875cm)')"/></xsl:attribute> 2434 </xsl:if> 2435 <xsl:choose> 2436 <xsl:when test="图:文本内容 or @图:其他对象"> 2437 <xsl:attribute name="presentation:user-transformed">true</xsl:attribute> 2438 </xsl:when> 2439 <xsl:otherwise> 2440 <xsl:attribute name="presentation:placeholder">true</xsl:attribute> 2441 </xsl:otherwise> 2442 </xsl:choose> 2443 <xsl:choose> 2444 <xsl:when test="$placeholdType = 'graphic' or $placeholdType = 'clipart' or $placeholdType ='media_clip'"> 2445 <draw:image/> 2446 </xsl:when> 2447 <xsl:when test="$placeholdType = 'table' or $placeholdType = 'chart' or $placeholdType ='object'"> 2448 <draw:object/> 2449 </xsl:when> 2450 <xsl:otherwise> 2451 <xsl:element name="draw:text-box"> 2452 <xsl:apply-templates select="图:文本内容/字:段落"/> 2453 </xsl:element> 2454 </xsl:otherwise> 2455 </xsl:choose> 2456 </xsl:for-each> 2457 </xsl:element> 2458 </xsl:for-each> 2459 </xsl:template> 2460 <xsl:template name="演缩略图"> 2461 <draw:page-thumbnail> 2462 <xsl:call-template name="common"/> 2463 <xsl:attribute name="draw:layer">layout</xsl:attribute> 2464 <xsl:attribute name="draw:page-number"><xsl:for-each select="../.."><xsl:value-of select="count(preceding-sibling::演:幻灯片) + 1"/></xsl:for-each></xsl:attribute> 2465 <xsl:attribute name="presentation:class">page</xsl:attribute> 2466 </draw:page-thumbnail> 2467 </xsl:template> 2468 <xsl:template match="演:页面版式"> 2469 <xsl:element name="style:presentation-page-layout"> 2470 <xsl:attribute name="style:name"><xsl:value-of select="@演:标识符"/></xsl:attribute> 2471 <xsl:apply-templates select="演:占位符" mode="layout"/> 2472 </xsl:element> 2473 </xsl:template> 2474 <xsl:template match="演:占位符" mode="layout"> 2475 <presentation:placeholder> 2476 <xsl:attribute name="presentation:object"><xsl:choose><xsl:when test="@演:类型='vertical_text'">vertical_outline</xsl:when><xsl:when test="@演:类型='date'">date-time</xsl:when><xsl:when test="@演:类型='number'">page_number</xsl:when><xsl:otherwise><xsl:value-of select="@演:类型"/></xsl:otherwise></xsl:choose></xsl:attribute> 2477 <xsl:attribute name="svg:x"><xsl:value-of select="concat(uof:锚点/@uof:x坐标,$uofUnit)"/></xsl:attribute> 2478 <xsl:attribute name="svg:y"><xsl:value-of select="concat(uof:锚点/@uof:y坐标,$uofUnit)"/></xsl:attribute> 2479 <xsl:attribute name="svg:width"><xsl:value-of select="concat(uof:锚点/@uof:宽度,$uofUnit)"/></xsl:attribute> 2480 <xsl:attribute name="svg:height"><xsl:value-of select="concat(uof:锚点/@uof:高度,$uofUnit)"/></xsl:attribute> 2481 </presentation:placeholder> 2482 </xsl:template> 2483 <xsl:template match="字:段落"> 2484 <xsl:choose> 2485 <xsl:when test="字:段落属性/字:自动编号信息"> 2486 <xsl:call-template name="编号解析"/> 2487 </xsl:when> 2488 <xsl:when test="字:句/字:分页符"> 2489 <xsl:call-template name="processPageBreaks"/> 2490 </xsl:when> 2491 <xsl:when test="string(parent::node()/@uof:locID)='t0107'"> 2492 <xsl:call-template name="jiaozhu"/> 2493 </xsl:when> 2494 <xsl:when test="string(parent::node()/@uof:locID)='t0108'"> 2495 <xsl:call-template name="weizhu"/> 2496 </xsl:when> 2497 <xsl:otherwise> 2498 <xsl:call-template name="commonParagraph"/> 2499 </xsl:otherwise> 2500 </xsl:choose> 2501 </xsl:template> 2502 <xsl:template name="jiaozhu"> 2503 <xsl:element name="text:footnote"> 2504 <xsl:element name="text:footnote-body"> 2505 <xsl:call-template name="commonParagraph"/> 2506 </xsl:element> 2507 </xsl:element> 2508 </xsl:template> 2509 <xsl:template name="weizhu"> 2510 <xsl:element name="text:endnote"> 2511 <xsl:element name="text:endnote-body"> 2512 <xsl:call-template name="commonParagraph"/> 2513 </xsl:element> 2514 </xsl:element> 2515 </xsl:template> 2516 <xsl:template name="processPageBreaks"> 2517 <xsl:variable name="pageBreak" select="字:句/字:分页符"/> 2518 <xsl:call-template name="createSubParagraph"> 2519 <xsl:with-param name="list" select="$pageBreak[1]/preceding-sibling::字:句"/> 2520 <xsl:with-param name="pageBreak"/> 2521 <xsl:with-param name="needsPageBreak">false</xsl:with-param> 2522 </xsl:call-template> 2523 <xsl:for-each select="$pageBreak"> 2524 <xsl:call-template name="createSubParagraph"> 2525 <xsl:with-param name="list" select="./following-sibling::字:句[preceding::字:句/字:分页符 = '.']"/> 2526 <xsl:with-param name="pageBreak" select="."/> 2527 <xsl:with-param name="needsPageBreak">true</xsl:with-param> 2528 </xsl:call-template> 2529 </xsl:for-each> 2530 </xsl:template> 2531 <xsl:template name="createSubParagraph"> 2532 <xsl:param name="list"/> 2533 <xsl:param name="pageBreak"/> 2534 <xsl:param name="needsPageBreak"/> 2535 <xsl:if test="(count($list) > 0) or ($needsPageBreak ='true') "> 2536 <xsl:element name="text:p"> 2537 <xsl:choose> 2538 <xsl:when test="$needsPageBreak = 'true'"> 2539 <xsl:choose> 2540 <xsl:when test="ancestor::字:段落/字:段落属性"> 2541 <xsl:attribute name="text:style-name">P<xsl:number from="/uof:UOF/uof:演示文稿/演:主体" level="any" count="字:段落属性"/></xsl:attribute> 2542 </xsl:when> 2543 <xsl:otherwise> 2544 <xsl:attribute name="text:style-name">PageBreak</xsl:attribute> 2545 </xsl:otherwise> 2546 </xsl:choose> 2547 </xsl:when> 2548 </xsl:choose> 2549 <xsl:if test="$pageBreak"> 2550 <xsl:apply-templates select="$pageBreak"/> 2551 </xsl:if> 2552 <xsl:apply-templates select="$list"/> 2553 </xsl:element> 2554 </xsl:if> 2555 </xsl:template> 2556 <xsl:template match="字:区域开始[@字:类型='bookmark']"> 2557 <text:bookmark-start text:name="{@字:标识符}"/> 2558 </xsl:template> 2559 <xsl:template match="字:区域结束[preceding::字:区域开始[1]/@字:类型='bookmark']"> 2560 <text:bookmark-end text:name="{@字:标识符引用}"/> 2561 </xsl:template> 2562 <xsl:template match="字:段落/字:域开始"> 2563 <xsl:choose> 2564 <xsl:when test="@字:类型='CREATEDATE'"> 2565 <xsl:variable name="datestr" select="../字:句/字:文本串"/> 2566 <xsl:element name="text:date"> 2567 <xsl:attribute name="style:data-style-name">Time<xsl:number from="/uof:UOF/uof:演示文稿/演:主体" level="any" count="字:段落/字:域开始[@字:类型 = 'CREATEDATE']"/></xsl:attribute> 2568 <xsl:attribute name="text:date-value"><xsl:value-of select="concat(substring-before($datestr,' '),'T',substring-after($datestr,' '))"/></xsl:attribute> 2569 <xsl:value-of select="$datestr"/> 2570 </xsl:element> 2571 </xsl:when> 2572 </xsl:choose> 2573 </xsl:template> 2574 <xsl:template name="commonParagraph"> 2575 <xsl:element name="text:p"> 2576 <xsl:if test="@字:动画标识"> 2577 <xsl:attribute name="text:id"><xsl:value-of select="@字:动画标识"/></xsl:attribute> 2578 </xsl:if> 2579 <xsl:call-template name="commonParagraphAttributes"/> 2580 <xsl:apply-templates/> 2581 </xsl:element> 2582 </xsl:template> 2583 <xsl:template name="commonParagraphAttributes"> 2584 <xsl:choose> 2585 <xsl:when test="字:段落属性"> 2586 <xsl:attribute name="text:style-name"><xsl:value-of select="字:段落属性/@字:式样引用"/></xsl:attribute> 2587 </xsl:when> 2588 <xsl:when test="generate-id(ancestor::字:主体/descendant::字:段落[1]) = generate-id(.)"> 2589 <xsl:variable name="paragraph-number"> 2590 <xsl:number from="/uof:UOF/uof:文字处理/字:主体" level="any" count="字:段落[字:段落属性]"/> 2591 </xsl:variable> 2592 <xsl:attribute name="text:style-name">P<xsl:value-of select="number($paragraph-number)"/>_1</xsl:attribute> 2593 </xsl:when> 2594 <xsl:when test="not(字:段落属性) and (descendant::字:分栏符 or ancestor::字:分节/descendant::字:节属性[字:分栏/@字:栏数 > 1])"> 2595 <xsl:attribute name="text:style-name">ColumnBreakPara</xsl:attribute> 2596 </xsl:when> 2597 <xsl:when test="字:句"> 2598 <xsl:apply-templates select="字:文本串"/> 2599 </xsl:when> 2600 </xsl:choose> 2601 </xsl:template> 2602 <xsl:template match="字:段落属性"/> 2603 <xsl:template match="字:句/字:句属性"/> 2604 <xsl:template match="字:句属性" mode="style"> 2605 <xsl:element name="style:style"> 2606 <xsl:attribute name="style:name">T<xsl:number from="/uof:UOF/uof:对象集" level="any" count="字:句属性" format="1"/></xsl:attribute> 2607 <xsl:attribute name="style:family">text</xsl:attribute> 2608 <xsl:if test="@字:式样引用"> 2609 <xsl:attribute name="style:parent-style-name"><xsl:value-of select="@字:式样引用"/></xsl:attribute> 2610 </xsl:if> 2611 <xsl:element name="style:text-properties"> 2612 <xsl:apply-templates select="./*"/> 2613 </xsl:element> 2614 </xsl:element> 2615 </xsl:template> 2616 <xsl:template match="字:句/字:文本串"> 2617 <xsl:choose> 2618 <xsl:when test="string(.) = ' ' "> 2619 <xsl:element name="text:s"/> 2620 </xsl:when> 2621 <xsl:when test="contains(.,' ')"> 2622 <xsl:call-template name="replace-spaces"> 2623 <xsl:with-param name="curr-string" select="."/> 2624 </xsl:call-template> 2625 </xsl:when> 2626 <xsl:otherwise> 2627 <xsl:value-of select="."/> 2628 </xsl:otherwise> 2629 </xsl:choose> 2630 </xsl:template> 2631 <xsl:template name="replace-spaces"> 2632 <xsl:param name="curr-string"/> 2633 <xsl:if test="contains($curr-string,' ')"> 2634 <xsl:value-of select="substring-before($curr-string,' ')"/> 2635 <text:s text:c="2"/> 2636 <xsl:variable name="next-string" select="substring-after($curr-string,' ')"/> 2637 <xsl:choose> 2638 <xsl:when test="contains($next-string, ' ')"> 2639 <xsl:call-template name="replace-spaces"> 2640 <xsl:with-param name="curr-string" select="$next-string"/> 2641 </xsl:call-template> 2642 </xsl:when> 2643 <xsl:otherwise> 2644 <xsl:value-of select="$next-string"/> 2645 </xsl:otherwise> 2646 </xsl:choose> 2647 </xsl:if> 2648 </xsl:template> 2649 <xsl:template match="字:句"> 2650 <xsl:if test="name(following-sibling::*[1])!='字:域结束'"> 2651 <xsl:if test="字:换行符"> 2652 <xsl:element name="text:line-break"/> 2653 </xsl:if> 2654 <xsl:variable name="currently-node" select="./字:锚点"/> 2655 <xsl:choose> 2656 <xsl:when test="字:句属性//字:隐藏文字/@字:值='true'"> 2657 <text:hidden-text text:is-hidden="true" text:string-value="{.}"/> 2658 </xsl:when> 2659 <xsl:when test="字:区域开始[@字:类型='hyperlink']"> 2660 <xsl:element name="text:a"> 2661 <xsl:attribute name="xlink:type">simple</xsl:attribute> 2662 <xsl:variable name="hyperDest" select="字:区域开始/@字:标识符"/> 2663 <xsl:attribute name="xlink:href"><xsl:for-each select="/uof:UOF/uof:链接集/uof:超级链接"><xsl:if test="@uof:链源=$hyperDest"><xsl:if test="@uof:目标"><xsl:value-of select="@uof:目标"/></xsl:if><xsl:if test="@uof:书签"><xsl:variable name="bookmarkDest" select="@uof:书签"/><xsl:for-each select="/uof:UOF/uof:书签集/uof:书签"><xsl:if test="@uof:名称=$bookmarkDest"><xsl:value-of select="concat('#',uof:文本位置/@字:区域引用)"/></xsl:if></xsl:for-each></xsl:if></xsl:if></xsl:for-each></xsl:attribute> 2664 <xsl:apply-templates select="字:文本串"/> 2665 </xsl:element> 2666 </xsl:when> 2667 <xsl:when test="(preceding-sibling::字:句) or (字:句属性)or(字:区域开始)"> 2668 <xsl:element name="text:span"> 2669 <xsl:choose> 2670 <xsl:when test="字:区域开始[@字:类型='annotation']"> 2671 <xsl:variable name="ref_comment"> 2672 <xsl:value-of select="字:区域开始/@字:标识符"/> 2673 </xsl:variable> 2674 <xsl:apply-templates/> 2675 <xsl:apply-templates select="/uof:UOF/uof:文字处理/字:公用处理规则/字:批注集/字:批注[@字:区域引用 = $ref_comment]"/> 2676 </xsl:when> 2677 <xsl:otherwise> 2678 <xsl:variable name="stylenum"> 2679 <xsl:number from="/uof:UOF/uof:文字处理/字:主体" level="any" count="字:句" format="1"/> 2680 </xsl:variable> 2681 <xsl:attribute name="text:style-name"><xsl:value-of select="字:句属性/@字:式样引用"/></xsl:attribute> 2682 <xsl:apply-templates/> 2683 </xsl:otherwise> 2684 </xsl:choose> 2685 </xsl:element> 2686 </xsl:when> 2687 <xsl:otherwise> 2688 <xsl:apply-templates/> 2689 </xsl:otherwise> 2690 </xsl:choose> 2691 </xsl:if> 2692 </xsl:template> 2693 <xsl:template match="node()[name() = '字:位置']"> 2694 <xsl:variable name="height">100% </xsl:variable> 2695 <xsl:variable name="position"> 2696 <xsl:choose> 2697 <xsl:when test="parent::字:句属性//字:位置"> 2698 <xsl:value-of select="concat( parent::字:句属性//字:位置, '%')"/> 2699 </xsl:when> 2700 </xsl:choose> 2701 </xsl:variable> 2702 <xsl:attribute name="style:text-position"><xsl:value-of select="concat(concat( $position, ' '), $height)"/></xsl:attribute> 2703 </xsl:template> 2704 <xsl:template match="字:字体"> 2705 <xsl:if test="@字:字号"> 2706 <xsl:attribute name="fo:font-size"><xsl:value-of select="@字:字号"/>pt</xsl:attribute> 2707 <xsl:attribute name="style:font-size-asian"><xsl:value-of select="@字:字号"/>pt</xsl:attribute> 2708 <xsl:attribute name="style:font-size-complex"><xsl:value-of select="@字:字号"/>pt</xsl:attribute> 2709 </xsl:if> 2710 <xsl:if test="@字:相对字号 and self::node( )[not(parent::字:句属性)]"> 2711 <xsl:variable name="stylename" select="parent::node()/@字:基式样引用"/> 2712 <xsl:variable name="zihao"> 2713 <xsl:for-each select="/uof:UOF/uof:式样集//uof:段落式样[@字:标识符=$stylename]"> 2714 <xsl:value-of select="字:字体/@字:字号"/> 2715 </xsl:for-each> 2716 </xsl:variable> 2717 <xsl:variable name="font-size" select="@字:相对字号"/> 2718 <xsl:attribute name="fo:font-size"><xsl:value-of select="($zihao * $font-size div 100)"/>pt</xsl:attribute> 2719 <xsl:attribute name="style:font-size-asian"><xsl:value-of select="($zihao * $font-size div 100)"/>pt</xsl:attribute> 2720 <xsl:attribute name="style:font-size-complex"><xsl:value-of select="($zihao * $font-size div 100)"/>pt</xsl:attribute> 2721 </xsl:if> 2722 <xsl:if test="@字:颜色"> 2723 <xsl:attribute name="fo:color"><xsl:value-of select="string(@字:颜色)"/></xsl:attribute> 2724 </xsl:if> 2725 <xsl:if test="@字:中文字体引用"> 2726 <xsl:attribute name="style:font-name-asian"><xsl:value-of select="@字:中文字体引用"/></xsl:attribute> 2727 </xsl:if> 2728 <xsl:if test="@字:西文字体引用"> 2729 <xsl:attribute name="style:font-name"><xsl:value-of select="@字:西文字体引用"/></xsl:attribute> 2730 </xsl:if> 2731 </xsl:template> 2732 <xsl:template match="字:斜体"> 2733 <xsl:if test="@字:值='true'"> 2734 <xsl:attribute name="fo:font-style">italic</xsl:attribute> 2735 <xsl:attribute name="fo:font-style-asian">italic</xsl:attribute> 2736 <xsl:attribute name="style:font-style-asian">italic</xsl:attribute> 2737 <xsl:attribute name="style:font-style-complex">italic</xsl:attribute> 2738 </xsl:if> 2739 </xsl:template> 2740 <xsl:template match="字:粗体"> 2741 <xsl:if test="@字:值='true'"> 2742 <xsl:attribute name="fo:font-weight">bold</xsl:attribute> 2743 <xsl:attribute name="fo:font-weight-asian">bold</xsl:attribute> 2744 <xsl:attribute name="style:font-weight-asian">bold</xsl:attribute> 2745 <xsl:attribute name="style:font-weight-complex">bold</xsl:attribute> 2746 </xsl:if> 2747 </xsl:template> 2748 <xsl:template match="字:下划线"> 2749 <xsl:choose> 2750 <xsl:when test="@字:字下划线 = 'true'"> 2751 <xsl:attribute name="style:text-underline">single</xsl:attribute> 2752 <xsl:attribute name=" style:text-underline-color">font-color</xsl:attribute> 2753 <xsl:attribute name="fo:score-spaces">false</xsl:attribute> 2754 </xsl:when> 2755 <xsl:when test="@字:类型 = 'thick'"> 2756 <xsl:attribute name="style:text-underline">bold</xsl:attribute> 2757 </xsl:when> 2758 <xsl:when test="@字:类型 = 'dotted-heavy'"> 2759 <xsl:attribute name="style:text-underline">bold-dotted</xsl:attribute> 2760 </xsl:when> 2761 <xsl:when test="@字:类型 = 'dashed-heavy'"> 2762 <xsl:attribute name="style:text-underline">bold-dash</xsl:attribute> 2763 </xsl:when> 2764 <xsl:when test="@字:类型 = 'dash-long'"> 2765 <xsl:attribute name="style:text-underline">long-dash</xsl:attribute> 2766 </xsl:when> 2767 <xsl:when test="@字:类型 = 'dash-long-heavy'"> 2768 <xsl:attribute name="style:text-underline">bold-long-dash</xsl:attribute> 2769 </xsl:when> 2770 <xsl:when test="@字:类型 = 'dash-dot-heavy'"> 2771 <xsl:attribute name="style:text-underline">bold-dot-dash</xsl:attribute> 2772 </xsl:when> 2773 <xsl:when test="@字:类型 = 'dash-dot-dot-heavy'"> 2774 <xsl:attribute name="style:text-underline">bold-dot-dot-dash</xsl:attribute> 2775 </xsl:when> 2776 <xsl:when test="@字:类型 = 'wavy-heavy'"> 2777 <xsl:attribute name="style:text-underline">bold-wave</xsl:attribute> 2778 </xsl:when> 2779 <xsl:when test="@字:类型 = 'wavy-double'"> 2780 <xsl:attribute name="style:text-underline">double-wave</xsl:attribute> 2781 </xsl:when> 2782 <xsl:otherwise> 2783 <xsl:attribute name="style:text-underline"><xsl:value-of select="@字:类型"/></xsl:attribute> 2784 </xsl:otherwise> 2785 </xsl:choose> 2786 <xsl:if test="@字:颜色 and not(@字:颜色 = 'auto')"> 2787 <xsl:attribute name="style:text-underline-color"><xsl:value-of select="concat( '#', @字:颜色)"/></xsl:attribute> 2788 </xsl:if> 2789 </xsl:template> 2790 <xsl:template match="字:阴影"> 2791 <xsl:attribute name="style:text-shadow">1pt 1pt</xsl:attribute> 2792 <xsl:attribute name="fo:text-shadow">1pt 1pt</xsl:attribute> 2793 </xsl:template> 2794 <xsl:template match="字:删除线"> 2795 <xsl:choose> 2796 <xsl:when test="@字:类型 = 'single' "> 2797 <xsl:attribute name="style:text-crossing-out">single-line</xsl:attribute> 2798 </xsl:when> 2799 <xsl:when test="@字类型 = 'double'"> 2800 <xsl:attribute name="style:text-crossing-out">double-line</xsl:attribute> 2801 </xsl:when> 2802 </xsl:choose> 2803 </xsl:template> 2804 <xsl:template match="字:突出显示"> 2805 <xsl:attribute name="fo:text-transform">uppercase</xsl:attribute> 2806 <xsl:attribute name="fo:text-background-color"><xsl:value-of select="string(@字:颜色)"/></xsl:attribute> 2807 </xsl:template> 2808 <xsl:template match="@字:颜色[not(.='auto')]"> 2809 <xsl:attribute name="fo:color">#<xsl:value-of select="."/></xsl:attribute> 2810 </xsl:template> 2811 <xsl:template match="字:浮雕"> 2812 <xsl:attribute name="style:font-relief">embossed</xsl:attribute> 2813 </xsl:template> 2814 <xsl:template match="字:外框"> 2815 <xsl:attribute name="style:text-outline">true</xsl:attribute> 2816 </xsl:template> 2817 <xsl:template match="字:缩放"> 2818 <xsl:attribute name="style:text-scale"><xsl:value-of select="@字:字号"/></xsl:attribute> 2819 </xsl:template> 2820 <xsl:template match="字:字符间距[parent::字:句属性]"> 2821 <xsl:attribute name="fo:letter-spacing"><xsl:value-of select="concat( floor(number(字:字符间距 div 1440) * 2540) div 1000, 'cm')"/></xsl:attribute> 2822 </xsl:template> 2823 <xsl:template match="uof:字体集"> 2824 <xsl:if test="not(uof:字体声明[@uof:名称='StarSymbol'])"> 2825 <style:font-face style:name="StarSymbol" svg:font-family="StarSymbol" style:font-charset="x-symbol"/> 2826 </xsl:if> 2827 <xsl:for-each select="uof:字体声明"> 2828 <xsl:element name="style:font-face"> 2829 <xsl:attribute name="style:name"><xsl:value-of select="@uof:名称"/></xsl:attribute> 2830 <xsl:attribute name="svg:font-family"><xsl:value-of select="@uof:字体族"/></xsl:attribute> 2831 <xsl:if test="@uof:字符集 = '02'"> 2832 <xsl:attribute name="style:font-charset">x-symbol</xsl:attribute> 2833 </xsl:if> 2834 <xsl:if test="@uof:字体族"> 2835 <xsl:choose> 2836 <xsl:when test="@uof:字体族 = 'Swiss'"> 2837 <xsl:attribute name="style:font-family-generic">swiss</xsl:attribute> 2838 </xsl:when> 2839 <xsl:when test="@uof:字体族 ='Modern'"> 2840 <xsl:attribute name="style:font-family-generic">modern</xsl:attribute> 2841 </xsl:when> 2842 <xsl:when test="@uof:字体族='Roman'"> 2843 <xsl:attribute name="style:font-family-generic">roman</xsl:attribute> 2844 </xsl:when> 2845 <xsl:when test="@uof:字体族 ='Script'"> 2846 <xsl:attribute name="style:font-family-generic">script</xsl:attribute> 2847 </xsl:when> 2848 <xsl:when test="@uof:字体族 ='Decorative'"> 2849 <xsl:attribute name="style:font-family-generic">decorative</xsl:attribute> 2850 </xsl:when> 2851 <xsl:when test="@uof:字体族 ='System'"> 2852 <xsl:attribute name="style:font-family-generic">system</xsl:attribute> 2853 </xsl:when> 2854 <xsl:otherwise> 2855 <xsl:attribute name="style:font-family-generic">system</xsl:attribute> 2856 </xsl:otherwise> 2857 </xsl:choose> 2858 </xsl:if> 2859 <xsl:attribute name="style:font-pitch">12</xsl:attribute> 2860 </xsl:element> 2861 </xsl:for-each> 2862 <xsl:apply-templates select="uof:字体声明"/> 2863 </xsl:template> 2864 <xsl:template match="uof:元数据"> 2865 <office:meta> 2866 <meta:generator>UOFText 2004</meta:generator> 2867 <dc:title> 2868 <xsl:value-of select="uof:标题"/> 2869 </dc:title> 2870 <dc:description> 2871 <xsl:value-of select="uof:摘要"/> 2872 </dc:description> 2873 <dc:subject> 2874 <xsl:value-of select="uof:主题"/> 2875 </dc:subject> 2876 <meta:initial-creator> 2877 <xsl:value-of select="uof:作者"/> 2878 </meta:initial-creator> 2879 <meta:creation-date> 2880 <xsl:value-of select="substring-before( uof:创建日期, 'Z')"/> 2881 </meta:creation-date> 2882 <dc:creator> 2883 <xsl:value-of select="uof:最后作者"/> 2884 </dc:creator> 2885 <dc:date> 2886 <xsl:value-of select="substring-before( uof:编辑时间, 'Z')"/> 2887 </dc:date> 2888 <meta:printed-by/> 2889 <meta:print-date/> 2890 <meta:keywords> 2891 <meta:keyword> 2892 <xsl:value-of select="uof:关键字集/uof:关键字"/> 2893 </meta:keyword> 2894 </meta:keywords> 2895 <dc:language/> 2896 <meta:editing-cycles> 2897 <xsl:value-of select="uof:编辑次数"/> 2898 </meta:editing-cycles> 2899 <meta:editing-duration> 2900 <xsl:if test="uof:编辑时间"> 2901 <xsl:value-of select="concat('PT', floor(uof:编辑时间 div 60), 'H', uof:编辑时间 mod 60, 'M0S')"/> 2902 </xsl:if> 2903 </meta:editing-duration> 2904 <meta:user-defined meta:name="Category"> 2905 <xsl:value-of select="uof:分类"/> 2906 </meta:user-defined> 2907 <meta:user-defined meta:name="Manager"> 2908 <xsl:value-of select="uof:经理名称"/> 2909 </meta:user-defined> 2910 <meta:user-defined meta:name="Company"> 2911 <xsl:value-of select="uof:公司名称"/> 2912 </meta:user-defined> 2913 <meta:user-defined meta:name="Version"> 2914 <xsl:value-of select="uof:创建应用程序"/> 2915 </meta:user-defined> 2916 <xsl:if test="uof:文档模板|child::*[@uof:locID='u0013']"> 2917 <meta:template xlink:type="simple" xlink:actuate="onRequest" xlink:href="{child::*[@uof:locID='u0013']}"/> 2918 </xsl:if> 2919 <xsl:if test="uof:用户自定义元数据集/uof:用户自定义元数据|child::*[@uof:locID='u0016']/*[@uof:locID='u0017']"> 2920 <xsl:for-each select="uof:用户自定义元数据集/uof:用户自定义元数据|child::*[@uof:locID='u0016']/*[@uof:locID='u0017']"> 2921 <xsl:element name="meta:user-defined"> 2922 <xsl:attribute name="meta:name"><xsl:value-of select="@uof:名称"/></xsl:attribute> 2923 </xsl:element> 2924 </xsl:for-each> 2925 </xsl:if> 2926 <meta:document-statistic meta:page-count="{child::*[@uof:locID='u0020']}" meta:paragraph-count="{child::*[@uof:locID='u0025']}" meta:word-count="{child::*[@uof:locID='u0023']}" meta:object-count="{child::*[@uof:locID='u0026']}" meta:character-count="{child::*[@uof:locID='u0021']}"/> 2927 <meta:document-statistic/> 2928 </office:meta> 2929 </xsl:template> 2930 <xsl:template match="uof:用户自定义元数据集"> 2931 <xsl:for-each select="node()[@名称]"> 2932 <meta:user-defined meta:name="{name()}"> 2933 <xsl:value-of select="."/> 2934 </meta:user-defined> 2935 </xsl:for-each> 2936 </xsl:template> 2937 <xsl:template name="parse-range"> 2938 <xsl:param name="range-value"/> 2939 <xsl:param name="last"/> 2940 <xsl:variable name="first-pit"> 2941 <xsl:choose> 2942 <xsl:when test="contains($range-value,',')"> 2943 <xsl:value-of select="substring-before($range-value,',')"/> 2944 </xsl:when> 2945 <xsl:otherwise> 2946 <xsl:value-of select="$range-value"/> 2947 </xsl:otherwise> 2948 </xsl:choose> 2949 </xsl:variable> 2950 <xsl:variable name="current"> 2951 <xsl:choose> 2952 <xsl:when test="contains($first-pit,':')"> 2953 <xsl:variable name="R-start" select="substring-before(substring-after($first-pit,'R'),'C')"/> 2954 <xsl:variable name="C-start" select="substring-before(substring-after($first-pit,'C'),':')"/> 2955 <xsl:variable name="second-pit" select="substring-after($first-pit,':')"/> 2956 <xsl:variable name="R-end" select="substring-before(substring-after($second-pit,'R'),'C')"/> 2957 <xsl:variable name="C-end" select="substring-after($second-pit,'C')"/> 2958 <xsl:variable name="the-str"> 2959 <xsl:call-template name="condition-rc-str"> 2960 <xsl:with-param name="r-start" select="$R-start"/> 2961 <xsl:with-param name="r-end" select="$R-end"/> 2962 <xsl:with-param name="c-start" select="$C-start"/> 2963 <xsl:with-param name="c-end" select="$C-end"/> 2964 <xsl:with-param name="last" select="''"/> 2965 </xsl:call-template> 2966 </xsl:variable> 2967 <xsl:value-of select="$the-str"/> 2968 </xsl:when> 2969 <xsl:otherwise> 2970 <xsl:value-of select="concat($first-pit,',')"/> 2971 </xsl:otherwise> 2972 </xsl:choose> 2973 </xsl:variable> 2974 <xsl:choose> 2975 <xsl:when test="contains($range-value,',')"> 2976 <xsl:call-template name="parse-range"> 2977 <xsl:with-param name="range-value" select="substring-after($range-value,',')"/> 2978 <xsl:with-param name="last" select="concat($last,$current)"/> 2979 </xsl:call-template> 2980 </xsl:when> 2981 <xsl:otherwise> 2982 <xsl:value-of select="concat($last,$current)"/> 2983 </xsl:otherwise> 2984 </xsl:choose> 2985 </xsl:template> 2986 <xsl:template name="condition-rc-str"> 2987 <xsl:param name="r-start"/> 2988 <xsl:param name="r-end"/> 2989 <xsl:param name="c-start"/> 2990 <xsl:param name="c-end"/> 2991 <xsl:param name="last"/> 2992 <xsl:variable name="current"> 2993 <xsl:call-template name="condition-c-str"> 2994 <xsl:with-param name="rc-str" select="concat('R',$r-start)"/> 2995 <xsl:with-param name="start" select="$c-start"/> 2996 <xsl:with-param name="end" select="$c-end"/> 2997 <xsl:with-param name="last" select="''"/> 2998 </xsl:call-template> 2999 </xsl:variable> 3000 <xsl:if test="$r-start < $r-end"> 3001 <xsl:call-template name="condition-rc-str"> 3002 <xsl:with-param name="r-start" select="$r-start + 1"/> 3003 <xsl:with-param name="r-end" select="$r-end"/> 3004 <xsl:with-param name="c-start" select="$c-start"/> 3005 <xsl:with-param name="c-end" select="$c-end"/> 3006 <xsl:with-param name="last" select="concat($last,$current)"/> 3007 </xsl:call-template> 3008 </xsl:if> 3009 <xsl:if test="$r-start = $r-end"> 3010 <xsl:value-of select="concat($last,$current)"/> 3011 </xsl:if> 3012 </xsl:template> 3013 <xsl:template name="condition-c-str"> 3014 <xsl:param name="rc-str"/> 3015 <xsl:param name="start"/> 3016 <xsl:param name="end"/> 3017 <xsl:param name="last"/> 3018 <xsl:variable name="current" select="concat($rc-str,'C',$start,',')"/> 3019 <xsl:if test="$start < $end"> 3020 <xsl:call-template name="condition-c-str"> 3021 <xsl:with-param name="rc-str" select="$rc-str"/> 3022 <xsl:with-param name="start" select="$start + 1"/> 3023 <xsl:with-param name="end" select="$end"/> 3024 <xsl:with-param name="last" select="concat($last,$current)"/> 3025 </xsl:call-template> 3026 </xsl:if> 3027 <xsl:if test="$start = $end"> 3028 <xsl:value-of select="concat($last,$current)"/> 3029 </xsl:if> 3030 </xsl:template> 3031 <xsl:template name="condition-str"> 3032 <xsl:param name="param-str"/> 3033 <xsl:choose> 3034 <xsl:when test="contains($param-str,'(')"> 3035 <xsl:call-template name="condition-str"> 3036 <xsl:with-param name="param-str" select="substring-after($param-str,'(')"/> 3037 </xsl:call-template> 3038 </xsl:when> 3039 <xsl:otherwise> 3040 <xsl:value-of select="substring-before($param-str,':')"/> 3041 </xsl:otherwise> 3042 </xsl:choose> 3043 </xsl:template> 3044 <xsl:template name="encode-as-cell-range-address"> 3045 <xsl:param name="string"/> 3046 <xsl:value-of select="$string"/> 3047 </xsl:template> 3048 <xsl:template name="encode-as-cell-address"> 3049 <xsl:param name="string"/> 3050 <xsl:value-of select="$string"/> 3051 </xsl:template> 3052 <xsl:param name="dpi" select="111"/> 3053 <xsl:param name="centimeter-in-mm" select="10"/> 3054 <xsl:param name="inch-in-mm" select="25.4"/> 3055 <xsl:param name="didot-point-in-mm" select="0.376065"/> 3056 <xsl:param name="pica-in-mm" select="4.2333333"/> 3057 <xsl:param name="point-in-mm" select="0.3527778"/> 3058 <xsl:param name="twip-in-mm" select="0.017636684"/> 3059 <xsl:param name="pixel-in-mm" select="$inch-in-mm div $dpi"/> 3060 <!-- ***** MEASUREMENT CONVERSIONS ***** 3061 PARAM 'value' 3062 The measure to be converted. 3063 The current measure is judged by a substring (e.g. 'mm', 'cm', 'in', 'pica'...) 3064 directly added to the number. 3065 3066 PARAM 'rounding-factor' 3067 Is used for the rounding of decimal places. 3068 The parameter number is the product of 1 and some '10', where 3069 every zero represents a decimal place. 3070 3071 For example, providing as parameter: 3072 <xsl:param name="rounding-factor" select="10000" /> 3073 Gives by default four decimal places. 3074 3075 To round two decimal places, basically the following is done: 3076 <xsl:value-of select="round(100 * value) div 100"/> 3077 3078 RETURN The converted number, by default rounded to four decimal places. 3079 In case the input measure could not be matched the same value is 3080 returned and a warning message is written out. 3081 3082 3083 3084 MEASURE LIST: 3085 * 1 milimeter (mm), the basic measure 3086 3087 * 1 centimeter (cm) = 10 mm 3088 3089 * 1 inch (in) = 25.4 mm 3090 While the English have already seen the light (read: the metric system), the US 3091 remains loyal to this medieval system. 3092 3093 * 1 point (pt) = 0.35277777.. mm 3094 Sometimes called PostScript point (ppt), as when Adobe created PostScript, they added their own system of points. 3095 There are exactly 72 PostScript points in 1 inch. 3096 3097 * 1 twip = twentieth of a (PostScript) point 3098 A twip (twentieth of a point) is a 1/20th of a PostScript point, a traditional measure in printing. 3099 3100 * 1 didot point (dpt) = 0.376065 mm 3101 Didot point after the French typographer Firmin Didot (1764-1836). 3102 3103 More details under 3104 http://www.unc.edu/~rowlett/units/dictP.html: 3105 "A unit of length used by typographers and printers. When printing was done 3106 from hand-set metal type, one point represented the smallest element of type 3107 that could be handled, roughly 1/64 inch. Eventually, the point was standardized 3108 in Britain and America as exactly 1/72.27 = 0.013 837 inch, which is 3109 about 0.35 mm (351.46 micrometers). In continental Europe, typographers 3110 traditionally used a slightly larger point of 0.014 83 inch (about 3111 1/72 pouce, 0.377 mm, or roughly 1/67 English inch), called a Didot point 3112 after the French typographer Firmin Didot (1764-1836). In the U.S., 3113 Adobe software defines the point to be exactly 1/72 inch (0.013 888 9 inch 3114 or 0.352 777 8 millimeters) and TeX software uses a slightly smaller point 3115 of 0.351 459 8035 mm. The German standards agency DIN has proposed that 3116 all these units be replaced by multiples of 0.25 millimeters (1/101.6 inch). 3117 3118 * 1 pica = 4.233333 mm 3119 1/6 inch or 12 points 3120 3121 * 1 pixel (px) = 0.26458333.. mm (relative to 'DPI', here: 96 dpi) 3122 Most pictures have the 96 dpi resolution, but the dpi variable may vary by stylesheet parameter 3123 3124 3125 --> 3126 <!-- changing measure to mm --> 3127 <xsl:template name="convert2mm"> 3128 <xsl:param name="value"/> 3129 <xsl:param name="rounding-factor" select="10000"/> 3130 <xsl:choose> 3131 <xsl:when test="contains($value, 'mm')"> 3132 <xsl:value-of select="substring-before($value, 'mm')"/> 3133 </xsl:when> 3134 <xsl:when test="contains($value, 'cm')"> 3135 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'cm' ) * $centimeter-in-mm)) div $rounding-factor"/> 3136 </xsl:when> 3137 <xsl:when test="contains($value, 'in')"> 3138 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'in' ) * $inch-in-mm)) div $rounding-factor"/> 3139 </xsl:when> 3140 <xsl:when test="contains($value, 'pt')"> 3141 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'pt') * $point-in-mm)) div $rounding-factor"/> 3142 </xsl:when> 3143 <xsl:when test="contains($value, 'twip')"> 3144 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'twip') * $twip-in-mm)) div $rounding-factor"/> 3145 </xsl:when> 3146 <xsl:when test="contains($value, 'dpt')"> 3147 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'dpt') * $didot-point-in-mm)) div $rounding-factor"/> 3148 </xsl:when> 3149 <xsl:when test="contains($value, 'pica')"> 3150 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'pica') * $pica-in-mm)) div $rounding-factor"/> 3151 </xsl:when> 3152 <xsl:when test="contains($value, 'px')"> 3153 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'px') * $pixel-in-mm)) div $rounding-factor"/> 3154 </xsl:when> 3155 <xsl:otherwise> 3156 <xsl:message>measure_conversion.xsl: Find no conversion for <xsl:value-of select="$value"/> to 'mm'!</xsl:message> 3157 <xsl:value-of select="$value"/> 3158 </xsl:otherwise> 3159 </xsl:choose> 3160 </xsl:template> 3161 <!-- changing measure to cm --> 3162 <xsl:template name="convert2cm"> 3163 <xsl:param name="value"/> 3164 <xsl:param name="rounding-factor" select="10000"/> 3165 <xsl:choose> 3166 <xsl:when test="contains($value, 'mm')"> 3167 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'mm') div $centimeter-in-mm)) div $rounding-factor"/> 3168 </xsl:when> 3169 <xsl:when test="contains($value, 'cm')"> 3170 <xsl:value-of select="substring-before($value, 'cm')"/> 3171 </xsl:when> 3172 <xsl:when test="contains($value, 'in')"> 3173 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'in') div $centimeter-in-mm * $inch-in-mm)) div $rounding-factor"/> 3174 </xsl:when> 3175 <xsl:when test="contains($value, 'pt')"> 3176 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'pt') div $centimeter-in-mm * $point-in-mm)) div $rounding-factor"/> 3177 </xsl:when> 3178 <xsl:when test="contains($value, 'dpt')"> 3179 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'dpt') div $centimeter-in-mm * $didot-point-in-mm)) div $rounding-factor"/> 3180 </xsl:when> 3181 <xsl:when test="contains($value, 'pica')"> 3182 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'pica') div $centimeter-in-mm * $pica-in-mm)) div $rounding-factor"/> 3183 </xsl:when> 3184 <xsl:when test="contains($value, 'twip')"> 3185 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'twip') div $centimeter-in-mm * $twip-in-mm)) div $rounding-factor"/> 3186 </xsl:when> 3187 <xsl:when test="contains($value, 'px')"> 3188 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'px') div $centimeter-in-mm * $pixel-in-mm)) div $rounding-factor"/> 3189 </xsl:when> 3190 <xsl:otherwise> 3191 <xsl:message>measure_conversion.xsl: Find no conversion for <xsl:value-of select="$value"/> to 'cm'!</xsl:message> 3192 <xsl:value-of select="$value"/> 3193 </xsl:otherwise> 3194 </xsl:choose> 3195 </xsl:template> 3196 <!-- changing measure to inch (cp. section comment) --> 3197 <xsl:template name="convert2in"> 3198 <xsl:param name="value"/> 3199 <xsl:param name="rounding-factor" select="10000"/> 3200 <xsl:choose> 3201 <xsl:when test="contains($value, 'mm')"> 3202 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'mm') div $inch-in-mm)) div $rounding-factor"/> 3203 </xsl:when> 3204 <xsl:when test="contains($value, 'cm')"> 3205 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'cm') div $inch-in-mm * $centimeter-in-mm)) div $rounding-factor"/> 3206 </xsl:when> 3207 <xsl:when test="contains($value, 'in')"> 3208 <xsl:value-of select="substring-before($value, 'in')"/> 3209 </xsl:when> 3210 <xsl:when test="contains($value, 'pt')"> 3211 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'pt') div $inch-in-mm * $point-in-mm)) div $rounding-factor"/> 3212 </xsl:when> 3213 <xsl:when test="contains($value, 'dpt')"> 3214 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'dpt') div $inch-in-mm * $didot-point-in-mm)) div $rounding-factor"/> 3215 </xsl:when> 3216 <xsl:when test="contains($value, 'pica')"> 3217 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'pica') div $inch-in-mm * $pica-in-mm)) div $rounding-factor"/> 3218 </xsl:when> 3219 <xsl:when test="contains($value, 'twip')"> 3220 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'twip') div $inch-in-mm * $twip-in-mm)) div $rounding-factor"/> 3221 </xsl:when> 3222 <xsl:when test="contains($value, 'px')"> 3223 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'px') div $inch-in-mm * $pixel-in-mm)) div $rounding-factor"/> 3224 </xsl:when> 3225 <xsl:otherwise> 3226 <xsl:message>measure_conversion.xsl: Find no conversion for <xsl:value-of select="$value"/> to 'in'!</xsl:message> 3227 <xsl:value-of select="$value"/> 3228 </xsl:otherwise> 3229 </xsl:choose> 3230 </xsl:template> 3231 <!-- changing measure to dpt (cp. section comment) --> 3232 <xsl:template name="convert2dpt"> 3233 <xsl:param name="value"/> 3234 <xsl:param name="rounding-factor" select="10000"/> 3235 <xsl:choose> 3236 <xsl:when test="contains($value, 'mm')"> 3237 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'mm') div $didot-point-in-mm)) div $rounding-factor"/> 3238 </xsl:when> 3239 <xsl:when test="contains($value, 'cm')"> 3240 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'cm') div $didot-point-in-mm * $centimeter-in-mm)) div $rounding-factor"/> 3241 </xsl:when> 3242 <xsl:when test="contains($value, 'in')"> 3243 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'in') div $didot-point-in-mm * $inch-in-mm)) div $rounding-factor"/> 3244 </xsl:when> 3245 <xsl:when test="contains($value, 'pt')"> 3246 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'pt') div $didot-point-in-mm * $point-in-mm)) div $rounding-factor"/> 3247 </xsl:when> 3248 <xsl:when test="contains($value, 'dpt')"> 3249 <xsl:value-of select="substring-before($value, 'dpt')"/> 3250 </xsl:when> 3251 <xsl:when test="contains($value, 'pica')"> 3252 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'pica') div $didot-point-in-mm * $pica-in-mm)) div $rounding-factor"/> 3253 </xsl:when> 3254 <xsl:when test="contains($value, 'twip')"> 3255 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'twip') div $didot-point-in-mm * $twip-in-mm)) div $rounding-factor"/> 3256 </xsl:when> 3257 <xsl:when test="contains($value, 'px')"> 3258 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'px') div $didot-point-in-mm * $pixel-in-mm)) div $rounding-factor"/> 3259 </xsl:when> 3260 <xsl:otherwise> 3261 <xsl:message>measure_conversion.xsl: Find no conversion for <xsl:value-of select="$value"/> to 'dpt'!</xsl:message> 3262 <xsl:value-of select="$value"/> 3263 </xsl:otherwise> 3264 </xsl:choose> 3265 </xsl:template> 3266 <!-- changing measure to pica (cp. section comment) --> 3267 <xsl:template name="convert2pica"> 3268 <xsl:param name="value"/> 3269 <xsl:param name="rounding-factor" select="10000"/> 3270 <xsl:choose> 3271 <xsl:when test="contains($value, 'mm')"> 3272 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'mm') div $pica-in-mm)) div $rounding-factor"/> 3273 </xsl:when> 3274 <xsl:when test="contains($value, 'cm')"> 3275 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'cm') div $pica-in-mm * $centimeter-in-mm)) div $rounding-factor"/> 3276 </xsl:when> 3277 <xsl:when test="contains($value, 'in')"> 3278 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'in') div $pica-in-mm * $inch-in-mm)) div $rounding-factor"/> 3279 </xsl:when> 3280 <xsl:when test="contains($value, 'pt')"> 3281 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'pt') div $pica-in-mm * $point-in-mm)) div $rounding-factor"/> 3282 </xsl:when> 3283 <xsl:when test="contains($value, 'dpt')"> 3284 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'dpt') div $pica-in-mm * $didot-point-in-mm)) div $rounding-factor"/> 3285 </xsl:when> 3286 <xsl:when test="contains($value, 'pica')"> 3287 <xsl:value-of select="substring-before($value, 'pica')"/> 3288 </xsl:when> 3289 <xsl:when test="contains($value, 'twip')"> 3290 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'twip') div $pica-in-mm * $twip-in-mm)) div $rounding-factor"/> 3291 </xsl:when> 3292 <xsl:when test="contains($value, 'px')"> 3293 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'px') div $pica-in-mm * $pixel-in-mm)) div $rounding-factor"/> 3294 </xsl:when> 3295 <xsl:otherwise> 3296 <xsl:message>measure_conversion.xsl: Find no conversion for <xsl:value-of select="$value"/> to 'pica'!</xsl:message> 3297 <xsl:value-of select="$value"/> 3298 </xsl:otherwise> 3299 </xsl:choose> 3300 </xsl:template> 3301 <!-- changing measure to pt (cp. section comment) --> 3302 <xsl:template name="convert2pt"> 3303 <xsl:param name="value"/> 3304 <xsl:param name="rounding-factor" select="10000"/> 3305 <xsl:choose> 3306 <xsl:when test="contains($value, 'mm')"> 3307 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'mm') div $point-in-mm)) div $rounding-factor"/> 3308 </xsl:when> 3309 <xsl:when test="contains($value, 'cm')"> 3310 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'cm') div $point-in-mm * $centimeter-in-mm)) div $rounding-factor"/> 3311 </xsl:when> 3312 <xsl:when test="contains($value, 'in')"> 3313 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'in') div $point-in-mm * $inch-in-mm)) div $rounding-factor"/> 3314 </xsl:when> 3315 <xsl:when test="contains($value, 'pt')"> 3316 <xsl:value-of select="substring-before($value, 'pt')"/> 3317 </xsl:when> 3318 <xsl:when test="contains($value, 'dpt')"> 3319 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'dpt') div $point-in-mm * $didot-point-in-mm)) div $rounding-factor"/> 3320 </xsl:when> 3321 <xsl:when test="contains($value, 'pica')"> 3322 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'pica') div $point-in-mm * $pica-in-mm)) div $rounding-factor"/> 3323 </xsl:when> 3324 <xsl:when test="contains($value, 'twip')"> 3325 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'twip') div $point-in-mm * $twip-in-mm)) div $rounding-factor"/> 3326 </xsl:when> 3327 <xsl:when test="contains($value, 'px')"> 3328 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'px') div $point-in-mm * $pixel-in-mm)) div $rounding-factor"/> 3329 </xsl:when> 3330 <xsl:otherwise> 3331 <xsl:message>measure_conversion.xsl: Find no conversion for <xsl:value-of select="$value"/> to 'pt'!</xsl:message> 3332 <xsl:value-of select="$value"/> 3333 </xsl:otherwise> 3334 </xsl:choose> 3335 </xsl:template> 3336 <xsl:template name="编号解析"> 3337 <xsl:variable name="bianhao"> 3338 <xsl:value-of select="字:段落属性/字:自动编号信息/@字:编号引用"/> 3339 </xsl:variable> 3340 <xsl:variable name="bianhaojibie"> 3341 <xsl:value-of select="字:段落属性/字:自动编号信息/@字:编号级别"/> 3342 </xsl:variable> 3343 <xsl:variable name="isxiangmuorisimage"> 3344 <xsl:for-each select="/uof:UOF/uof:式样集/uof:自动编号集/字:自动编号"> 3345 <xsl:choose> 3346 <xsl:when test="$bianhao=@字:标识符"> 3347 <xsl:choose> 3348 <xsl:when test="字:级别[@字:级别值= (number($bianhaojibie))]/字:项目符号">true</xsl:when> 3349 <xsl:when test="字:级别[@字:级别值= (number($bianhaojibie))]/字:图片符号引用">true</xsl:when> 3350 <xsl:otherwise>false</xsl:otherwise> 3351 </xsl:choose> 3352 </xsl:when> 3353 <xsl:otherwise>false</xsl:otherwise> 3354 </xsl:choose> 3355 </xsl:for-each> 3356 </xsl:variable> 3357 <xsl:choose> 3358 <xsl:when test="$isxiangmuorisimage='true'"> 3359 <xsl:call-template name="无序"/> 3360 </xsl:when> 3361 <xsl:otherwise> 3362 <xsl:call-template name="有序"/> 3363 </xsl:otherwise> 3364 </xsl:choose> 3365 </xsl:template> 3366 <xsl:template name="有序"> 3367 <xsl:variable name="currlistid" select="字:段落属性/字:自动编号信息/@字:编号引用"/> 3368 <xsl:variable name="currlistlvl" select="字:段落属性/字:自动编号信息/@字:编号级别"/> 3369 <xsl:variable name="firstoccur" select="/descendant::字:段落属性[字:自动编号信息/@字:编号引用 = $currlistid][1]"/> 3370 <xsl:element name="text:list"> 3371 <xsl:attribute name="text:style-name">List<xsl:value-of select="count($firstoccur/preceding::字:自动编号信息)"/></xsl:attribute> 3372 <xsl:if test="字:段落属性/字:自动编号信息/@字:重新编号"> 3373 <xsl:attribute name="text:continue-numbering"><xsl:choose><xsl:when test="字:段落属性/字:自动编号信息/@字:重新编号='true'">false</xsl:when><xsl:otherwise>true</xsl:otherwise></xsl:choose></xsl:attribute> 3374 </xsl:if> 3375 <xsl:element name="text:list-item"> 3376 <xsl:call-template name="ordered-levels"> 3377 <xsl:with-param name="level" select="$currlistlvl -1"/> 3378 </xsl:call-template> 3379 </xsl:element> 3380 </xsl:element> 3381 </xsl:template> 3382 <xsl:template name="ordered-levels"> 3383 <xsl:param name="level"/> 3384 <xsl:choose> 3385 <xsl:when test="$level = '0'"> 3386 <xsl:call-template name="commonParagraph"/> 3387 </xsl:when> 3388 <xsl:otherwise> 3389 <xsl:element name="text:list"> 3390 <xsl:element name="text:list-item"> 3391 <xsl:call-template name="ordered-levels"> 3392 <xsl:with-param name="level" select="$level -1"/> 3393 </xsl:call-template> 3394 </xsl:element> 3395 </xsl:element> 3396 </xsl:otherwise> 3397 </xsl:choose> 3398 </xsl:template> 3399 <xsl:template name="无序"> 3400 <xsl:variable name="currlistid" select="字:段落属性/字:自动编号信息/@字:编号引用"/> 3401 <xsl:variable name="currlistlvl" select="字:段落属性/字:自动编号信息/@字:编号级别"/> 3402 <xsl:variable name="firstoccur" select="/descendant::字:段落属性[字:自动编号信息/@字:编号引用 = $currlistid][1]"/> 3403 <xsl:element name="text:list"> 3404 <xsl:attribute name="text:style-name">List<xsl:value-of select="count($firstoccur/preceding::字:自动编号信息)"/></xsl:attribute> 3405 <xsl:element name="text:list-item"> 3406 <xsl:call-template name="unordered-levels"> 3407 <xsl:with-param name="level" select="$currlistlvl -1"/> 3408 </xsl:call-template> 3409 </xsl:element> 3410 </xsl:element> 3411 </xsl:template> 3412 <xsl:template name="unordered-levels"> 3413 <xsl:param name="level"/> 3414 <xsl:choose> 3415 <xsl:when test="$level = '0'"> 3416 <xsl:call-template name="commonParagraph"/> 3417 </xsl:when> 3418 <xsl:otherwise> 3419 <xsl:element name="text:list"> 3420 <xsl:element name="text:list-item"> 3421 <xsl:call-template name="unordered-levels"> 3422 <xsl:with-param name="level" select="$level -1"/> 3423 </xsl:call-template> 3424 </xsl:element> 3425 </xsl:element> 3426 </xsl:otherwise> 3427 </xsl:choose> 3428 </xsl:template> 3429 <!-- changing measure to pt (cp. section comment) --> 3430 <xsl:template name="convert2twip"> 3431 <xsl:param name="value"/> 3432 <xsl:param name="rounding-factor" select="10000"/> 3433 <xsl:choose> 3434 <xsl:when test="contains($value, 'mm')"> 3435 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'mm') div $twip-in-mm)) div $rounding-factor"/> 3436 </xsl:when> 3437 <xsl:when test="contains($value, 'cm')"> 3438 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'cm') div $twip-in-mm * $centimeter-in-mm)) div $rounding-factor"/> 3439 </xsl:when> 3440 <xsl:when test="contains($value, 'in')"> 3441 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'in') div $twip-in-mm * $inch-in-mm)) div $rounding-factor"/> 3442 </xsl:when> 3443 <xsl:when test="contains($value, 'pt')"> 3444 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'pt') div $twip-in-mm * $point-in-mm)) div $rounding-factor"/> 3445 </xsl:when> 3446 <xsl:when test="contains($value, 'dpt')"> 3447 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'dpt') div $twip-in-mm * $didot-point-in-mm)) div $rounding-factor"/> 3448 </xsl:when> 3449 <xsl:when test="contains($value, 'pica')"> 3450 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'pica') div $twip-in-mm * $pica-in-mm)) div $rounding-factor"/> 3451 </xsl:when> 3452 <xsl:when test="contains($value, 'twip')"> 3453 <xsl:value-of select="substring-before($value, 'twip')"/> 3454 </xsl:when> 3455 <xsl:when test="contains($value, 'px')"> 3456 <xsl:value-of select="round($rounding-factor * number(substring-before($value, 'px') div $twip-in-mm * $pixel-in-mm)) div $rounding-factor"/> 3457 </xsl:when> 3458 <xsl:otherwise> 3459 <xsl:message>measure_conversion.xsl: Find no conversion for <xsl:value-of select="$value"/> to 'twip'!</xsl:message> 3460 <xsl:value-of select="$value"/> 3461 </xsl:otherwise> 3462 </xsl:choose> 3463 </xsl:template> 3464 <!-- changing measure to pixel by via parameter provided dpi (dots per inch) standard factor (cp. section comment) --> 3465 <xsl:template name="convert2px"> 3466 <xsl:param name="value"/> 3467 <xsl:choose> 3468 <xsl:when test="contains($value, 'mm')"> 3469 <xsl:value-of select="round(number(substring-before($value, 'mm')) div $pixel-in-mm)"/> 3470 </xsl:when> 3471 <xsl:when test="contains($value, 'cm')"> 3472 <xsl:value-of select="round(number(substring-before($value, 'cm')) div $pixel-in-mm * $centimeter-in-mm)"/> 3473 </xsl:when> 3474 <xsl:when test="contains($value, 'in')"> 3475 <xsl:value-of select="round(number(substring-before($value, 'in')) div $pixel-in-mm * $inch-in-mm)"/> 3476 </xsl:when> 3477 <xsl:when test="contains($value, 'pt')"> 3478 <xsl:value-of select="round(number(substring-before($value, 'pt')) div $pixel-in-mm * $point-in-mm)"/> 3479 </xsl:when> 3480 <xsl:when test="contains($value, 'dpt')"> 3481 <xsl:value-of select="round(number(substring-before($value, 'dpt')) div $pixel-in-mm * $didot-point-in-mm)"/> 3482 </xsl:when> 3483 <xsl:when test="contains($value, 'pica')"> 3484 <xsl:value-of select="round(number(substring-before($value, 'pica')) div $pixel-in-mm * $pica-in-mm)"/> 3485 </xsl:when> 3486 <xsl:when test="contains($value, 'twip')"> 3487 <xsl:value-of select="round(number(substring-before($value, 'twip')) div $pixel-in-mm * $twip-in-mm)"/> 3488 </xsl:when> 3489 <xsl:when test="contains($value, 'px')"> 3490 <xsl:value-of select="$value"/> 3491 </xsl:when> 3492 <xsl:otherwise> 3493 <xsl:message>measure_conversion.xsl: Find no conversion for <xsl:value-of select="$value"/> to 'px'!</xsl:message> 3494 <xsl:value-of select="$value"/> 3495 </xsl:otherwise> 3496 </xsl:choose> 3497 </xsl:template> 3498</xsl:stylesheet> 3499