home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / xml / gnome / xslt / docbook / utils / graphics.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2009-03-17  |  2.2 KB  |  60 lines

  1. <?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
  2. <!--
  3. This program is free software; you can redistribute it and/or modify it under
  4. the terms of the GNU Lesser General Public License as published by the Free
  5. Software Foundation; either version 2 of the License, or (at your option) any
  6. later version.
  7.  
  8. This program is distributed in the hope that it will be useful, but WITHOUT
  9. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  10. FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  11. details.
  12.  
  13. You should have received a copy of the GNU Lesser General Public License
  14. along with this program; see the file COPYING.LGPL.  If not, write to the
  15. Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  16. 02111-1307, USA.
  17. -->
  18.  
  19. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  20.                 version="1.0">
  21.  
  22. <xsl:import href="../../gettext/gettext.xsl"/>
  23.  
  24. <xsl:output method="text" encoding="utf-8"/>
  25.  
  26. <xsl:template match="/">
  27.   <xsl:if test="//note[@role = 'bug'][1]">
  28.     <xsl:text>admon-bug.png </xsl:text>
  29.   </xsl:if>
  30.   <xsl:if test="//caution[1]">
  31.     <xsl:text>admon-caution.png </xsl:text>
  32.   </xsl:if>
  33.   <xsl:if test="//important[1]">
  34.     <xsl:text>admon-important.png </xsl:text>
  35.   </xsl:if>
  36.   <xsl:if test="//note[not(@role) or @role != 'bug'][1]">
  37.     <xsl:text>admon-note.png </xsl:text>
  38.   </xsl:if>
  39.   <xsl:if test="//tip[1]">
  40.     <xsl:text>admon-tip.png </xsl:text>
  41.   </xsl:if>
  42.   <xsl:if test="//warning[1]">
  43.     <xsl:text>admon-warning.png </xsl:text>
  44.   </xsl:if>
  45.   <xsl:if test="//blockquote[1]">
  46.     <xsl:call-template name="l10n.gettext">
  47.       <xsl:with-param name="msgid" select="'blockquote-watermark-201C.png'"/>
  48.     </xsl:call-template>
  49.     <xsl:text> </xsl:text>
  50.   </xsl:if>
  51.   <xsl:if test="//classsynopsis[@language = 'cpp'][1] or //programlisting[@language = 'cpp']">
  52.     <xsl:text>watermark-code-cpp.png </xsl:text>
  53.   </xsl:if>
  54.   <xsl:if test="//classsynopsis[@language = 'python'][1] or //programlisting[@language = 'python']">
  55.     <xsl:text>watermark-code-python.png </xsl:text>
  56.   </xsl:if>
  57. </xsl:template>
  58.  
  59. </xsl:stylesheet>
  60.