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 / filE1DA12BF676BADA86440D1A0700B32BB < prev    next >
Extensible Markup Language  |  2010-07-12  |  1KB  |  35 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="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  6. >
  7.  
  8. <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  9.  
  10. <xsl:template match="/">
  11.   <menulist id="yasearch-bookmarks-folder" class="folder-icon" oncommand="YaBookmarks.handleListChange(this)">
  12.     <menupopup>
  13.       <menuitem label=" &yasearch.bookmarks.label;" class="folder-icon" style="padding-left:3px !important"/>
  14.       <xsl:apply-templates/>
  15.     </menupopup>
  16.   </menulist>
  17. </xsl:template>
  18.  
  19. <xsl:template match="folder">
  20.   <menuitem label=" {@name}" class="folder-icon">
  21.     <xsl:attribute name="style">
  22.       <xsl:text>padding-left:</xsl:text>
  23.       <xsl:value-of select="(count(ancestor::*)-1)*11 + 3"/>
  24.       <xsl:text>px !important;</xsl:text>
  25.     </xsl:attribute>
  26.     <xsl:if test="not(@id='undefined')">
  27.       <xsl:attribute name="yafolderid">
  28.         <xsl:value-of select="@id"/>
  29.       </xsl:attribute>
  30.     </xsl:if>
  31.   </menuitem>
  32.   <xsl:apply-templates select="folder"/>
  33. </xsl:template>
  34.  
  35. </xsl:stylesheet>