home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 June / maximum-cd-2011-06.iso / DiscContents / LibO_3.3.1_Win_x86_install_multi.exe / libreoffice1.cab / uof2odf_presentation.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2010-12-01  |  209.5 KB  |  3,479 lines

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