[yelp-xsl] Adding missing files: icons.xsl and color.xsl



commit 5ac356d57244ed697544db4797ec8aaf47733925
Author: Shaun McCance <shaunm gnome org>
Date:   Wed May 26 23:59:48 2010 -0500

    Adding missing files: icons.xsl and color.xsl

 xslt/common/color.xsl |  205 +++++++++++++++++++++++++++++++++++++++++++++++++
 xslt/common/icons.xsl |  169 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 374 insertions(+), 0 deletions(-)
---
diff --git a/xslt/common/color.xsl b/xslt/common/color.xsl
new file mode 100644
index 0000000..e8bf86c
--- /dev/null
+++ b/xslt/common/color.xsl
@@ -0,0 +1,205 @@
+<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
+<!--
+This program is free software; you can redistribute it and/or modify it under
+the terms of the GNU Lesser General Public License as published by the Free
+Software Foundation; either version 2 of the License, or (at your option) any
+later version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+details.
+
+You should have received a copy of the GNU Lesser General Public License
+along with this program; see the file COPYING.LGPL.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+                version="1.0">
+
+<!--!!==========================================================================
+Colors
+Specify common named colors to style output.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This stylesheet provides a common interface to specify custom colors for
+transformations to presentation-oreinted formats.  This allows similar
+output for different types of input documents.
+-->
+
+
+<!--@@==========================================================================
+color.background
+The background color.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This parameter specifies the default background color.  Foreground colors
+should be legible on this color.
+-->
+<xsl:param name="color.background" select="'#ffffff'"/>
+
+
+<!--@@==========================================================================
+color.link
+The color of links.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This parameter specifies the color for unvisited links.  It should be
+legible on all background colors.
+-->
+<xsl:param name="color.link" select="'#204a87'"/>
+
+
+<!--@@==========================================================================
+color.link_visited
+The color of visited links.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This parameter specifies the color for visited links.  It should be
+legible on all background colors.
+-->
+<xsl:param name="color.link_visited" select="'#5c3566'"/>
+
+
+<!--@@==========================================================================
+color.text
+The normal text color.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This parameter specifies the default color for normal text.  It should be
+legible on all background colors.
+-->
+<xsl:param name="color.text" select="'#000000'"/>
+
+
+<!--@@==========================================================================
+color.text_light
+The light text color.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This parameter specifies the color for light text.  The light text
+color is used to make bold headings and certain parenthetical text
+less intense.  It should be legible on all background colors.
+-->
+<xsl:param name="color.text_light" select="'#2e3436'"/>
+
+
+<!--@@==========================================================================
+color.text_error
+The error text color.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This parameter specifies the color for error text.  The error text
+color is used to style error messages from command line sessions.
+It should be legible on all background colors.
+-->
+<xsl:param name="color.text_error" select="'#a40000'"/>
+
+
+<!--@@==========================================================================
+color.blue_background
+The blue background color.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This parameter specifies the blue background color.  The blue
+background color may be used by certain types of block elements.
+Foreground colors should be legible on this color.
+-->
+<xsl:param name="color.blue_background" select="'#e6f2ff'"/>
+
+
+<!--@@==========================================================================
+color.blue_border
+The blue border color.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This parameter specifies the blue border color.  The blue
+border color may be used by certain types of block elements.
+-->
+<xsl:param name="color.blue_border" select="'#729fcf'"/>
+
+
+<!--@@==========================================================================
+color.gray_background
+The gray background color.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This parameter specifies the gray background color.  The gray
+background color may be used by certain types of block elements.
+Foreground colors should be legible on this color.
+-->
+<xsl:param name="color.gray_background" select="'#f3f3f0'"/>
+
+
+<!--@@==========================================================================
+color.dark_background
+The dark gray background color.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This parameter specifies the dark gray background color.  The dark
+gray background color may be used by certain types of block elements.
+Foreground colors should be legible on this color.
+-->
+<xsl:param name="color.dark_background" select="'#e5e5e3'"/>
+
+
+<!--@@==========================================================================
+color.gray_border
+The gray border color.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This parameter specifies the gray border color.  The gray
+border color may be used by certain types of block elements.
+-->
+<xsl:param name="color.gray_border" select="'#babdb6'"/>
+
+
+<!--@@==========================================================================
+color.red_background
+The red background color.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This parameter specifies the red background color.  The red
+background color may be used by certain types of block elements.
+Foreground colors should be legible on this color.
+-->
+<xsl:param name="color.red_background" select="'#ffdede'"/>
+
+
+<!--@@==========================================================================
+color.red_border
+The red border color.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This parameter specifies the red border color.  The red
+border color may be used by certain types of block elements.
+-->
+<xsl:param name="color.red_border" select="'#ef2929'"/>
+
+
+<!--@@==========================================================================
+color.yellow_background
+The yellow background color.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This parameter specifies the yellow background color.  The yellow
+background color may be used by certain types of block elements.
+Foreground colors should be legible on this color.
+-->
+<xsl:param name="color.yellow_background" select="'#fffacc'"/>
+
+
+<!--@@==========================================================================
+color.yellow_border
+The yellow border color.
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This parameter specifies the yellow border color.  The yellow
+border color may be used by certain types of block elements.
+-->
+<xsl:param name="color.yellow_border" select="'#edd400'"/>
+
+
+</xsl:stylesheet>
diff --git a/xslt/common/icons.xsl b/xslt/common/icons.xsl
new file mode 100644
index 0000000..3e39d14
--- /dev/null
+++ b/xslt/common/icons.xsl
@@ -0,0 +1,169 @@
+<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
+<!--
+This program is free software; you can redistribute it and/or modify it under
+the terms of the GNU Lesser General Public License as published by the Free
+Software Foundation; either version 2 of the License, or (at your option) any
+later version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+details.
+
+You should have received a copy of the GNU Lesser General Public License
+along with this program; see the file COPYING.LGPL.  If not, write to the
+Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+                version="1.0">
+
+<!--!!==========================================================================
+Icons
+Specify common named icons to style output.
+:Requires: gettext
+:Revision:version="1.0" date="2010-05-25" status="final"
+
+This stylesheet provides a common interface to specify icons for transformations
+to presentation-oreinted formats. This allows similar output for different
+types of input documents.
+-->
+
+
+<!--@@==========================================================================
+icons.base_url
+The default URL prefix for all icons.
+:Revision:version="1.0" date="2010-01-26" status="final"
+
+This parameter provides a default URL prefix. All icon locations in this
+stylesheet reference files directly under this URL prefix by default. If
+you override the individual icon parameters in this stylesheet, this parameter
+has no effect. This parameter should end with a trailing slash.
+-->
+<xsl:param name="icons.base_url" select="''"/>
+
+
+<!--@@==========================================================================
+icons.size.note
+The size of the note icons.
+:Revision:version="1.0" date="2010-03-05" status="final"
+
+This parameter specifies the size of the note icons. Use an integer giving
+the width of the image files in pixels. Icons are assumed to be square, and
+all note icons are assumed to have the same size.
+-->
+<xsl:param name="icons.size.note" select="24"/>
+
+
+<!--@@==========================================================================
+icons.note
+The URL for the note icon.
+:Revision:version="1.0" date="2010-05-03" status="final"
+
+This parameter specifies the URL for the icon used for regular notes.
+-->
+<xsl:param name="icons.note"
+           select="concat($icons.base_url, 'yelp-note.png')"/>
+
+
+<!--@@==========================================================================
+icons.note.bug
+The URL for the bug note icon.
+:Revision:version="1.0" date="2010-05-03" status="final"
+
+This parameter specifies the URL for the icon used for bug notes.
+-->
+<xsl:param name="icons.note.bug"
+           select="concat($icons.base_url, 'yelp-note-bug.png')"/>
+
+
+<!--@@==========================================================================
+icons.note.important
+The URL for the important note icon.
+:Revision:version="1.0" date="2010-05-03" status="final"
+
+This parameter specifies the URL for the icon used for important notes.
+-->
+<xsl:param name="icons.note.important"
+           select="concat($icons.base_url, 'yelp-note-important.png')"/>
+
+
+<!--@@==========================================================================
+icons.note.tip
+The URL for the tip note icon.
+:Revision:version="1.0" date="2010-05-03" status="final"
+
+This parameter specifies the URL for the icon used for tip notes.
+-->
+<xsl:param name="icons.note.tip"
+           select="concat($icons.base_url, 'yelp-note-tip.png')"/>
+
+
+<!--@@==========================================================================
+icons.note.warning
+The URL for the warning note icon.
+:Revision:version="1.0" date="2010-05-03" status="final"
+
+This parameter specifies the URL for the icon used for warning notes.
+-->
+<xsl:param name="icons.note.warning"
+           select="concat($icons.base_url, 'yelp-note-warning.png')"/>
+
+
+<!--@@==========================================================================
+icons.size.quote
+The size of the quote icons.
+:Revision:version="1.0" date="2010-05-03" status="final"
+
+This parameter specifies the size of the quote icons. Use an integer giving
+the width of the image files in pixels. Icons are assumed to be square, and
+all quote icons are assumed to have the same size.
+-->
+<xsl:param name="icons.size.quote" select="48"/>
+
+
+<!--@@==========================================================================
+icons.quote
+The URL for the block quote watermark.
+:Revision:version="1.0" date="2010-05-03" status="final"
+
+This parameter specifies the URL for the watermark for block quotes. The
+default name of the image file is translatable. If you set this parameter,
+you should ensure that your graphic uses a suitable quote character for the
+language your document is written in.
+-->
+<xsl:param name="icons.quote">
+  <xsl:value-of select="$icons.base_url"/>
+  <xsl:call-template name="l10n.gettext">
+    <xsl:with-param name="msgid" select="'yelp-quote-201C.png'"/>
+  </xsl:call-template>
+</xsl:param>
+
+
+<!--@@==========================================================================
+icons.size.code
+The size of the code icons.
+:Revision:version="1.0" date="2010-05-03" status="final"
+
+This parameter specifies the size of the code icons. Use an integer giving
+the width of the image files in pixels. Icons are assumed to be square, and
+all code icons are assumed to have the same size.
+-->
+<xsl:param name="icons.size.quote" select="128"/>
+
+
+<!--@@==========================================================================
+icons.code
+The URL for the block code watermark.
+:Revision:version="1.0" date="2010-05-03" status="final"
+
+This parameter specifies the URL for the watermark for code blocks.
+-->
+<xsl:param name="icons.code">
+  <xsl:value-of select="$icons.base_url"/>
+  <xsl:text>yelp-code.png</xsl:text>
+</xsl:param>
+
+
+</xsl:stylesheet>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]