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 / filD122D8930F79C74C5BF62152A8F15B11 < prev    next >
Extensible Markup Language  |  2010-07-12  |  1KB  |  40 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE stylesheet SYSTEM "chrome://yasearch/locale/yasearch.dtd">
  3.  
  4. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.   xmlns:data="urn:data"
  6.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  7.   extension-element-prefixes="data"
  8. >
  9.  
  10. <xsl:import href="chrome://yasearch/content/xsl-templ/xsl-menu-popup.xsl"/>
  11.  
  12. <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  13.  
  14. <xsl:variable name="id" select="'yandex-bar-services'"/>
  15. <xsl:variable name="id-prefix" select="'yasearchbox-engine-'"/>
  16.  
  17. <xsl:template match="data:services">
  18.   <menupopup>
  19.     <xsl:apply-templates select="data:group/data:service[@search-url]"/>
  20.     <xsl:apply-templates select="data:group/data:complex[data:complex/data:service[@search-url] | data:service[@search-url]]"/>
  21.   </menupopup>
  22. </xsl:template>
  23.  
  24. <xsl:template match="data:service">
  25.   <menuitem>
  26.     <xsl:apply-templates select="@*"/>
  27.     <xsl:apply-templates/>
  28.     <xsl:attribute name="class">
  29.       <xsl:text>menuitem-iconic searchbar-engine-menuitem</xsl:text>
  30.     </xsl:attribute>
  31.   </menuitem>
  32. </xsl:template>
  33.  
  34. <xsl:template match="@id">
  35.   <xsl:attribute name="id">
  36.     <xsl:value-of select="concat($id-prefix, .)"/>
  37.   </xsl:attribute>
  38. </xsl:template>
  39.  
  40. </xsl:stylesheet>