~ubuntu-branches/ubuntu/lucid/gnome-doc-utils/lucid

« back to all changes in this revision

Viewing changes to xslt/docbook/omf/db2omf.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-12-19 08:34:21 UTC
  • mto: (2.1.1 etch) (1.1.18 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20051219083421-k72rkh3n6vox1c0t
Tags: upstream-0.5.2
ImportĀ upstreamĀ versionĀ 0.5.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version='1.0' encoding='utf-8'?><!-- -*- indent-tabs-mode: nil -*- -->
 
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
-->
2
18
 
3
19
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4
20
                xmlns:doc="http://www.gnome.org/~shaunm/xsldoc"
395
411
  <xsl:param name="info"
396
412
             select="*[substring(local-name(.), string-length(local-name(.)) - 3)
397
413
                       = 'info']"/>
398
 
  <xsl:variable name="date" select="$info/revhistory/revision[1]/date"/>
 
414
  <xsl:variable name="date" select="$info/revhistory/revision[last()]/date"/>
399
415
  <xsl:if test="not($date)">
400
416
    <xsl:message>
401
417
      <xsl:text>db2omf: Missing revision element in revhistory</xsl:text>
427
443
             select="*[substring(local-name(.), string-length(local-name(.)) - 3)
428
444
                       = 'info']"/>
429
445
  <xsl:variable name="revnumber"
430
 
                select="$info/revhistory/revision[1]/revnumber"/>
 
446
                select="$info/revhistory/revision[last()]/revnumber"/>
431
447
  <xsl:variable name="date"
432
 
                select="$info/revhistory/revision[1]/date"/>
 
448
                select="$info/revhistory/revision[last()]/date"/>
433
449
  <xsl:if test="not($revnumber)">
434
450
    <xsl:message>
435
451
      <xsl:text>db2omf: Missing revnumber element in revhistory</xsl:text>