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 / fil2B70CC8B61DEEA529BA58F24367E8BB2 < prev    next >
Extensible Markup Language  |  2010-07-12  |  2KB  |  49 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:variable name="domain" select="concat('http://', counter/@login, '.ya.ru')"/>
  16.  
  17. <xsl:template match="counter">
  18.   <toolbarbutton>
  19.     <xsl:attribute name="yaLabel">
  20.       <xsl:choose>
  21.         <xsl:when test="$error = 0">
  22.           <xsl:value-of select="data/@v"/>
  23.         </xsl:when>
  24.         <xsl:otherwise>
  25.           <xsl:text>0</xsl:text>
  26.         </xsl:otherwise>
  27.       </xsl:choose>
  28.     </xsl:attribute>
  29.     <menupopup id="yasearch-yaru-menupopup">
  30.       <menuitem label="&yasearch.yaru.reloadCounter.label;"
  31.                 oncommand="Ya.nsIYa.manualRefreshHTTPData('yaru')"/>
  32.       <menuseparator/>
  33.       <menuitem label="&yasearch.yaru.replies.unread.label;"
  34.                 oncommand="Ya.loadURI('{$domain}/replies_history_unread.xml', event, {$cbl}action:3450{$cbr})"/>
  35.        <menuitem label="&yasearch.yaru.friends.read.label;"
  36.                 oncommand="Ya.loadURI('{$domain}/friends.xml', event, {$cbl}action:3410{$cbr})"/>
  37.       <menuitem label="&yasearch.yaru.post.text.label;"
  38.                 oncommand="Ya.loadURI('{$domain}/posts_add_text.xml', event, {$cbl}action:3420{$cbr})"/>
  39.       <menuitem label="&yasearch.yaru.post.photo.label;"
  40.                 oncommand="Ya.loadURI('{$domain}/posts_add_photo.xml', event, {$cbl}action:3430{$cbr})"/>
  41.       <menuitem label="&yasearch.yaru.post.status.label;"
  42.                 oncommand="Ya.loadURI('{$domain}/posts_add_status.xml', event, {$cbl}action:3440{$cbr})"/>
  43.       <menuitem label="&yasearch.yaru.post.sendPage.label;"
  44.                 oncommand="Ya.pageDataSender.sendToService('yaru', event, {$cbl}action:3460{$cbr})"/>
  45.     </menupopup>
  46.   </toolbarbutton>
  47. </xsl:template>
  48.  
  49. </xsl:stylesheet>