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 / filC188D0B3D41EB1DBFC1834719FFDD862 < prev    next >
Extensible Markup Language  |  2010-07-12  |  3KB  |  62 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: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. <xsl:variable name="error" select="counter/data/@error"/>
  11.  
  12. <xsl:param name="cbl" select="'{'"/>
  13. <xsl:param name="cbr" select="'}'"/>
  14.  
  15. <xsl:template match="counter">
  16.   <toolbarbutton>
  17.     <xsl:attribute name="yaLabel">
  18.       <xsl:choose>
  19.         <xsl:when test="$error = 0">
  20.           <xsl:value-of select="data/@v"/>
  21.         </xsl:when>
  22.         <xsl:otherwise>
  23.           <xsl:text>0</xsl:text>
  24.         </xsl:otherwise>
  25.       </xsl:choose>
  26.     </xsl:attribute>
  27.     <menupopup id="yasearch-fotki-menupopup">
  28.       <menuitem label="&yasearch.fotki.reloadCounter.label;"
  29.                 oncommand="Ya.nsIYa.manualRefreshHTTPData('fotki')"/>
  30.       <menuseparator/>
  31.       <menuitem oncommand="Ya.loadURI('http://fotki.yandex.ru/users/{@login}/favorites', event, {$cbl}action:3530{$cbr})">
  32.         <xsl:attribute name="label">
  33.           <xsl:text>&yasearch.fotki.favorites.label;</xsl:text>
  34.           <xsl:if test="$error = 0 and data/@v != 0">
  35.             <xsl:value-of select="concat(' (', data/@v, ')')"/>
  36.           </xsl:if>
  37.         </xsl:attribute>
  38.       </menuitem>
  39.       <menuitem oncommand="Ya.loadURI('http://fotki.yandex.ru/users/{@login}', event, {$cbl}action:3510{$cbr})">
  40.         <xsl:attribute name="label">
  41.           <xsl:text>&yasearch.fotki.myfotki.label;</xsl:text>
  42.           <xsl:if test="$error = 0 and data/@vs != 0">
  43.             <xsl:value-of select="concat(' (&yasearch.fotki.myfotki.views.label;: ', data/@vs, ')')"/>
  44.           </xsl:if>
  45.         </xsl:attribute>
  46.       </menuitem>
  47.       <menuitem oncommand="Ya.loadURI('http://fotki.yandex.ru/users/{@login}/comments', event, {$cbl}action:3540{$cbr})">
  48.         <xsl:attribute name="label">
  49.           <xsl:text>&yasearch.fotki.comments.label;</xsl:text>
  50.           <xsl:if test="$error = 0 and data/@c != 0">
  51.             <xsl:value-of select="concat(' (', data/@c, ')')"/>
  52.           </xsl:if>
  53.         </xsl:attribute>
  54.       </menuitem>
  55.       <menuseparator/>
  56.       <menuitem label="&yasearch.fotki.upload.label;"
  57.                 oncommand="Ya.loadURI('http://fotki.yandex.ru/upload', event, {$cbl}action:3520{$cbr})"/>
  58.     </menupopup>
  59.   </toolbarbutton>
  60. </xsl:template>
  61.  
  62. </xsl:stylesheet>