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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE stylesheet SYSTEM "chrome://yasearch/locale/bloggers/bloggers.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="page">
  12.   <vbox flex="1">
  13.     <xsl:choose>
  14.       <xsl:when test="number(@count) > 0">
  15.         <yaclickscrollbox id="yasearch-blogger-content-scroll" orient="vertical" flex="1">
  16.           <xsl:apply-templates select="user"/>
  17.         </yaclickscrollbox>
  18.         <hbox id="yasearch-blogger-getmore-link" pack="center">
  19.           <label value="&yasearch.bloggers.openLink.label.small;"
  20.                  onclick="(window.Ya || window).Bloggers.openLink('tab');"/>
  21.         </hbox>
  22.       </xsl:when>
  23.       <xsl:otherwise>
  24.         <vbox flex="1" align="center" valign="middle">
  25.           <label value="&yasearch.bloggers.nodata.label;"/>
  26.         </vbox>
  27.       </xsl:otherwise>
  28.     </xsl:choose>
  29.   </vbox>
  30. </xsl:template>
  31.  
  32. <xsl:template match="user">
  33.   <hbox tooltip="yasearch-bloggers-window-tooltip">
  34.     <xsl:attribute name="url">
  35.       <xsl:value-of select="url"/>
  36.     </xsl:attribute>
  37.     
  38.     <vbox>
  39.       <hbox pack="center">
  40.         <xsl:apply-templates select="img"/>
  41.       </hbox>
  42.     </vbox>
  43.     <vbox class="ya-blogger-text" flex="1">
  44.       <hbox>
  45.         <label flex="1" crop="end" class="ya-blogger-user">
  46.           <xsl:attribute name="value">
  47.             <xsl:value-of select="username"/>
  48.           </xsl:attribute>
  49.         </label>
  50.         <spacer/>
  51.         <label crop="end" class="ya-blogger-time">
  52.           <xsl:attribute name="value">
  53.             <xsl:value-of select="date"/>
  54.           </xsl:attribute>
  55.         </label>
  56.       </hbox>
  57.       <description>
  58.         <xsl:value-of select="subject"/>
  59.       </description>
  60.       <description class="ya-blogger-snipp">
  61.         <xsl:value-of select="snippet"/>
  62.       </description>
  63.     </vbox>
  64.   </hbox>
  65. </xsl:template>
  66.  
  67. <xsl:template match="img">
  68.   <image align="center" valign="top">
  69.     <xsl:attribute name="src">
  70.       <xsl:value-of select="@src"/>
  71.     </xsl:attribute>
  72.     <xsl:attribute name="width">
  73.       <xsl:value-of select="@width"/>
  74.     </xsl:attribute>
  75.     <xsl:attribute name="height">
  76.       <xsl:value-of select="@height"/>
  77.     </xsl:attribute>
  78.   </image>
  79. </xsl:template>
  80.  
  81. </xsl:stylesheet>