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 / fil5FD0E9B28858603F68D9E0011DE41664 < prev    next >
Extensible Markup Language  |  2010-07-12  |  3KB  |  71 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE stylesheet SYSTEM "chrome://yasearch/locale/bookmarks/bookmarks.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.  
  11. <xsl:template match="yaru[@yasearch_error]">
  12.   <html:div class="yaru-error">
  13.     <html:p>&yasearch.livewindow.lastfriends.error.1.label;.</html:p>
  14.     <html:p>&yasearch.livewindow.lastfriends.error.2.label; <html:a href="mailto:support@bar.yandex.ru?subject=&yasearch.livewindow.lastfriends.error.support.subject;">&yasearch.livewindow.lastfriends.error.support.label;</html:a>.</html:p>
  15.   </html:div>
  16. </xsl:template>
  17.  
  18. <xsl:template match="yaru">
  19.   <html:div>
  20.     <xsl:choose>
  21.       <xsl:when test="count(friends/friend) = 0">
  22.         <html:p>&yasearch.livewindow.lastfriends.nolinks.1.label;.</html:p>
  23.         <html:p>&yasearch.livewindow.lastfriends.nolinks.2.label;.</html:p>
  24.         <html:p>&yasearch.livewindow.lastfriends.nolinks.3.label; <html:a href="http://{@yasearch_login}.ya.ru/posts_add_friend.xml" yaLinkAction="1955">&yasearch.livewindow.lastfriends.nolinks.4.label;</html:a>.</html:p>
  25.       </xsl:when>
  26.       <xsl:otherwise>
  27.         <vbox flex="1" id="yasearch-livewindow-firends-links">
  28.           <grid>
  29.             <columns>
  30.               <column style="max-width:10em"/>
  31.               <column flex="1"/>
  32.             </columns>
  33.             <rows>
  34.               <xsl:apply-templates select="friends/friend"/>
  35.             </rows>
  36.           </grid>
  37.         </vbox>
  38.       </xsl:otherwise>
  39.     </xsl:choose>
  40.   </html:div>
  41. </xsl:template>
  42.  
  43. <xsl:template match="friends/friend">
  44.   <row>
  45.     <hbox class="friend-login" tooltip="yasearch-bookmark-links-tooltip"
  46.           yaTooltiptext="{name}" yaLinkAction="1935" yaLinkTarget="new-tab">
  47.       <label value="{substring(normalize-space(name), 1, 1)}" href="http://{login}.ya.ru"/>
  48.       <label value="{substring(normalize-space(name), 2, 200)}" href="http://{login}.ya.ru"/>
  49.       <label value=":"/>
  50.     </hbox>
  51.     <hbox flex="1" class="friend-url" tooltip="yasearch-bookmark-links-tooltip"
  52.           yaLinkAction="1940">
  53.       <xsl:choose>
  54.         <xsl:when test="string-length(normalize-space(title)) = 0">
  55.           <xsl:attribute name="yaTooltiptext">
  56.             <xsl:value-of select="url"/>
  57.           </xsl:attribute>
  58.           <label value="{substring(normalize-space(url), 1, 400)}" href="{url}"/>
  59.         </xsl:when>
  60.         <xsl:otherwise>
  61.           <xsl:attribute name="yaTooltiptext">
  62.             <xsl:value-of select="title"/>
  63.           </xsl:attribute>
  64.           <label value="{substring(normalize-space(title), 1, 400)}" href="{url}"/>
  65.         </xsl:otherwise>
  66.       </xsl:choose>
  67.     </hbox>
  68.   </row>
  69. </xsl:template>
  70.  
  71. </xsl:stylesheet>