Main Page · Namespace List · Alphabetical List · Class List · File List · Namespace Members · Class Members · File Members · Related Pages

driverdetails.xslt

Go to the documentation of this file.
00001 <?xml version="1.0" encoding="utf8" standalone="yes"?>
00002 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
00003 
00004 <!--
00005 ***************************************************************************
00006  *   Copyright (C) 2005-2006 by Konrad Wilhelm Kleine
00007  *   konrad@plothe-kleine.de
00008  *
00009  *   This file is used to 'render' xml input to html output.
00010  *   The input is a driver description xml file and the output a formatted
00011  *   html document that can be used in a QMessageBox. Only a small part
00012  *   of the input is rendered, which is the English comment.
00013  *
00014  *   PLEASE NOTICE: If not stated otherwise, whenever we speak of 'printer
00015  *                  drivers' or simply 'drivers', we mean the PPD files
00016  *                  and not the actual drivers.
00017  *
00018  *   STATUS: File has been reviewed and commented
00019  *
00020  *   $Id: driverdetails.xslt,v 1.2 2006/04/23 16:06:22 hbci Exp $
00021  *
00022  *   This program is free software; you can redistribute it and/or modify
00023  *   it under the terms of the GNU General Public License as published by
00024  *   the Free Software Foundation; either version 2 of the License, or
00025  *   (at your option) any later version.
00026  *
00027  *   This program is distributed in the hope that it will be useful,
00028  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00029  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00030  *   GNU General Public License for more details.
00031  *
00032  *   You should have received a copy of the GNU General Public License
00033  *   along with this program; if not, write to the Free Software Foundation,
00034  *   Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00035  ***************************************************************************
00036  -->
00037 
00038   <!--Preserve-Space Elements-->
00039   <xsl:preserve-space elements="" />
00040 
00041   <!--Output Method-->
00042   <xsl:output method="html" encoding="utf8" indent="yes"
00043         media-type="text/html" />
00044 
00045   <!--Parameters-->
00046   <xsl:param name="commentTitle" select="'Comment'" />
00047 
00048   <!--Main Entry-point-->
00049     <xsl:template match="/">
00050     <xsl:apply-templates select="/driver/comments/en" />
00051   </xsl:template>
00052 
00053   <xsl:template match="/driver/comments/en">
00054     <h1><xsl:value-of select="$commentTitle" /></h1>
00055     <xsl:element name="a"><xsl:attribute name="href"><xsl:value-of select="/driver/url" /></xsl:attribute>
00056       <xsl:value-of select="/driver/url" />
00057     </xsl:element>
00058     <hr />
00059     <xsl:apply-templates />
00060   </xsl:template>
00061 
00062 </xsl:stylesheet>


To get more information, please visit our project site hosted at SourceForge.net Logo
To support this project, please click on this image: Support This Project

Copyright © 2005-2006 Linux Printer Setup Documentation generated by Doxygen 1.4.4 LPS 1.0 (Disclaimer)