home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / AIMP2 / aimp_2.61.583.exe / $TEMP / YandexPackSetup.msi / fil90586AE52E42ABF060C4596A673EAD62 < prev    next >
Extensible Markup Language  |  2010-07-12  |  2KB  |  73 lines

  1. <?xml version="1.0"?>
  2.  
  3. <xsl:stylesheet version="1.0"
  4.   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.   xmlns:html="http://www.w3.org/1999/xhtml"
  6.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  7. >
  8.  
  9. <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  10.  
  11. <xsl:param name="serviceType" select="'bar'"/>
  12. <xsl:param name="serviceURL" select="''"/>
  13. <xsl:param name="serviceURLAction" select="0"/>
  14.  
  15. <xsl:template match="services">
  16.   <xsl:apply-templates select="service[@name=$serviceType]"/>
  17. </xsl:template>
  18.  
  19. <xsl:template match="service">
  20.   <vbox serviceTitle="{title}">
  21.     <hbox>
  22.       <description id="about-service-link" value="{title}" class="header-desc">
  23.         <xsl:if test="string($serviceURL)">
  24.           <xsl:attribute name="yahref">
  25.             <xsl:value-of select="$serviceURL"/>
  26.           </xsl:attribute>
  27.         </xsl:if>
  28.         <xsl:if test="number($serviceURLAction) > 0">
  29.           <xsl:attribute name="yaLinkAction">
  30.             <xsl:value-of select="$serviceURLAction"/>
  31.           </xsl:attribute>
  32.         </xsl:if>
  33.       </description>
  34.       <description value=" —" class="header-desc" style="font-weight: normal;"/>
  35.     </hbox>
  36.     
  37.     <description>
  38.       <xsl:value-of select="description/title"/>
  39.     </description>
  40.     
  41.     <description class="header-desc">
  42.       <xsl:value-of select="description/text"/>
  43.     </description>
  44.     
  45.     <grid flex="1">
  46.       <rows><row/></rows>
  47.       <columns>
  48.         <xsl:for-each select="about/text">
  49.           <column flex="1" pack="center">
  50.             <hbox flex="1">
  51.               <vbox pack="center">
  52.               <image>
  53.                 <xsl:attribute name="src">
  54.                   <xsl:value-of select="concat('chrome://yasearch/content/services/mybar/', $serviceType, '/')"/>
  55.                   <xsl:number/>
  56.                   <xsl:text>.png</xsl:text>
  57.                 </xsl:attribute>
  58.               </image>
  59.               </vbox>
  60.               <vbox flex="1" pack="center">
  61.                 <description>
  62.                   <xsl:value-of select="."/>
  63.                 </description>
  64.               </vbox>
  65.             </hbox>
  66.           </column>
  67.         </xsl:for-each>
  68.       </columns>
  69.     </grid>
  70.   </vbox>
  71. </xsl:template>
  72.  
  73. </xsl:stylesheet>